CN113573081A - Play function management method and system for live broadcast room, electronic equipment and storage medium - Google Patents

Play function management method and system for live broadcast room, electronic equipment and storage medium Download PDF

Info

Publication number
CN113573081A
CN113573081A CN202110806742.3A CN202110806742A CN113573081A CN 113573081 A CN113573081 A CN 113573081A CN 202110806742 A CN202110806742 A CN 202110806742A CN 113573081 A CN113573081 A CN 113573081A
Authority
CN
China
Prior art keywords
function
play
live broadcast
play function
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110806742.3A
Other languages
Chinese (zh)
Other versions
CN113573081B (en
Inventor
冯思源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Shiqu Information Technology Co ltd
Original Assignee
Hangzhou Shiqu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Shiqu Information Technology Co ltd filed Critical Hangzhou Shiqu Information Technology Co ltd
Priority to CN202110806742.3A priority Critical patent/CN113573081B/en
Publication of CN113573081A publication Critical patent/CN113573081A/en
Application granted granted Critical
Publication of CN113573081B publication Critical patent/CN113573081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Abstract

The application discloses a play function management method of a live broadcast room, which is applied to a primary client of a live broadcast program and comprises the following steps: receiving a play online instruction sent by a server, and determining a URL (uniform resource locator) address and a function display position corresponding to a target play function according to the play online instruction; loading a URL (uniform resource locator) address in the webpage view container, and moving the transparent webpage view container to a function display position; judging whether notification information returned by a WEB side through a bridging mechanism is received or not; if so, displaying the function page in the live broadcast picture by switching the webpage view container to a non-transparent state so as to enable the target playing function to be online. The playing method function online efficiency and stability of the live broadcast application program can be improved. The application also discloses a play function management system of the live broadcast room, an electronic device and a storage medium, and the play function management system has the beneficial effects.

Description

Play function management method and system for live broadcast room, electronic equipment and storage medium
Technical Field
The present application relates to the field of software development technologies, and in particular, to a play function management method and system for a live broadcast room, an electronic device, and a storage medium.
Background
A new event playing method (for example, a pop window or a pit is displayed in a specific scene of a live broadcast room, and functions and displays corresponding to an event are displayed in the pop window and the pit) is developed in the application App, and usually a long period is required. After the Android and IOS terminals are developed, the application App needs to be packaged again, and after the application App is released in an application market and downloaded or updated by a user, a new active playing method can be experienced.
Therefore, how to improve the playing function online efficiency and stability of the live broadcast application program is a technical problem that needs to be solved by those skilled in the art at present.
Disclosure of Invention
The application aims to provide a play function management method and system for a live broadcast room, a storage medium and an electronic device, and the play function online efficiency and stability of a live broadcast application program can be improved.
In order to solve the technical problem, the application provides a play function management method for a live broadcast room, which is applied to a native client of a live broadcast program, and the play function management method for the live broadcast room comprises the following steps:
receiving a play online instruction sent by a server, and determining a URL (uniform resource locator) address and a function display position corresponding to a target play function according to the play online instruction;
loading the URL address in a webpage view container, and moving the webpage view container in a transparent state to the function display position;
judging whether notification information returned by a WEB side through a bridging mechanism is received or not; the notification information is information sent to the native client by the WEB side after the function page corresponding to the URL address is loaded;
if so, displaying the function page in a live broadcast picture by switching the webpage view container to a non-transparent state so as to enable the target playing function to be online; and the data acquisition and function realization of the function page are realized by the native client through a bridging mechanism.
Optionally, the determining whether to receive notification information returned by the WEB end through the bridge mechanism includes:
judging whether notification information returned by the WEB side through a bridging mechanism is received within preset time;
if so, executing the operation of displaying the function page in a live broadcast picture by switching the webpage view container to a non-transparent state;
if not, destroying the webpage view container.
Optionally, after the target play function is on-line, the method further includes:
receiving a function calling request sent by the WEB side through a bridging mechanism;
and determining a target function module according to the function description and/or the function parameters in the function calling request, and controlling the target function module to execute the operation corresponding to the function calling request.
Optionally, after the target play function is on-line, the method further includes:
receiving a data calling request sent by the WEB side through a bridging mechanism;
and determining target data according to a data structure and/or data description in the data calling request, and returning the target data to the WEB side through a bridging mechanism so that the WEB side can receive the target data through a data monitoring interface.
Optionally, after the target play function is on-line, the method further includes:
and if a play function closing request or a play function hiding request sent by the WEB side through a bridging mechanism is received, destroying or hiding the webpage view container corresponding to the play function closing request or the play function hiding request.
Optionally, after the target play function is on-line, the method further includes:
and if a play function closing instruction or a play function hiding instruction sent by the server is received, destroying or hiding the webpage view container corresponding to the play function closing instruction or the play function hiding instruction.
Optionally, after receiving the play online instruction sent by the server, the method further includes:
according to the play online instruction, an identification code corresponding to the target play function is determined, and the identification code is sent to the WEB side, so that the WEB side can add the identification code to request information; the request information comprises any one or a combination of any several of a function calling request, a data calling request, a play function closing request and a play function hiding request;
and if the request information sent by the WEB side is received, executing signature verification operation on the WEB side according to a signature verification code in the request information.
This application still provides a play method function management system of live broadcast room, is applied to the primary client end of live broadcast program, play method function management system includes:
the online instruction receiving module is used for receiving a playing online instruction sent by the server and determining a URL (Uniform resource locator) address and a function display position corresponding to a target playing function according to the playing online instruction;
the page loading module is used for loading the URL address in a webpage view container and moving the webpage view container in a transparent state to the function display position;
the judging module is used for judging whether notification information returned by the WEB side through a bridging mechanism is received or not; the notification information is information sent to the native client by the WEB side after the function page corresponding to the URL address is loaded;
the function online module is used for displaying the function page in a live broadcast picture by switching the webpage view container to a non-transparent state so as to enable the target playing function to be online if notification information returned by the WEB side through a bridging mechanism is received; and the data acquisition and function realization of the function page are realized by the native client through a bridging mechanism.
The application also provides a storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed, the steps executed by the play function management method of the live broadcast room are realized.
The application also provides electronic equipment which comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor realizes the execution of the play function management method of the live broadcast room when calling the computer program in the memory.
The application provides a play function management method for a live broadcast room, which comprises the following steps: receiving a play online instruction sent by a server, and determining a URL (uniform resource locator) address and a function display position corresponding to a target play function according to the play online instruction; loading the URL address in a webpage view container, and moving the webpage view container in a transparent state to the function display position; judging whether notification information returned by a WEB side through a bridging mechanism is received or not; the notification information is information sent to the native client by the WEB side after the function page corresponding to the URL address is loaded; if so, displaying the function page in a live broadcast picture by switching the webpage view container to a non-transparent state so as to enable the target playing function to be online; and the data acquisition and function realization of the function page are realized by the native client through a bridging mechanism.
After a playing online instruction sent by a server is received, a URL address and a function display position corresponding to a target playing function to be online are determined, and then the URL address is loaded in a webpage view container of a primary client of a live program to obtain a function page corresponding to the target playing function. Because page loading needs a certain time, the webpage view container in the transparent state is moved to the function display position, and then the webpage view container is switched to the non-transparent state after the function page loading is completed, so that the function page is displayed in a live broadcast picture, and the online process of the target playing function is completed. In the scheme, the data acquisition and the function realization of the function page are both realized by the native client through a bridging mechanism, and the WEB terminal is responsible for displaying the function page of the target play function. According to the scheme, the new play function can be online without updating the live program, and the WEB side can control and use the data and functions of the native client, so that the play function online efficiency and stability of the live application program can be improved. This application still provides a play method function management system, a storage medium and an electronic equipment of live broadcast room simultaneously, has above-mentioned beneficial effect, no longer gives unnecessary details here.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a play function management method for a live broadcast room according to an embodiment of the present application;
fig. 2 is a flowchart of a method for displaying a function page according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a play function management system of a live broadcast room according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a play function management method for a live broadcast room according to an embodiment of the present application.
The specific steps may include:
s101: receiving a play online instruction sent by a server, and determining a URL (uniform resource locator) address and a function display position corresponding to a target play function according to the play online instruction;
the embodiment can be applied to electronic equipment such as a mobile phone and a tablet computer of a native client running a live program, the server can be specifically a live server, and the server controls a specific play function of online of the native client by sending a play online instruction to the native client.
The play function in this embodiment specifically refers to services such as forwarding, lottery, and the like provided by a live program. The play online instruction includes a URL (Uniform Resource Locator) address of the target play function and a function display position. The function display position specifically refers to a position of a function page of the target play method function in a live broadcast picture, and the function display position may include a vertex coordinate, a page length, and a page width of the function page.
S102: loading the URL address in a webpage view container, and moving the webpage view container in a transparent state to the function display position;
after the URL address and the function display position corresponding to the target play function are obtained, the native client may load the URL address in the web view container so as to obtain the function page corresponding to the target play function. In this embodiment, the webpage view container may also be moved to the function display position, so that the function page corresponding to the target play function is displayed at a specific position of the live broadcast picture.
It can be understood that a certain time is required in the loading process of the URL address, and therefore, the web view container may be set to a transparent state in the loading process of the URL address, so that the web view container and the corresponding function page are not displayed in the live broadcast room.
S103: judging whether notification information returned by a WEB side through a bridging mechanism is received or not; if yes, entering S104; if not, ending the flow;
after the functional page corresponding to the URL address is loaded, the WEB side sends notification information to the original client side; therefore, if the native client receives the notification information, it indicates that the function page in the network view container is completely loaded; if the native client does not receive the notification information, indicating that the function page in the network view container is not completely loaded; if the native client does not receive the notification message for a long time (if the waiting time since the URL address starts to be loaded is greater than the preset time), it indicates that the function page in the web view container fails to be loaded.
S104: displaying the function page in a live broadcast picture by switching the webpage view container to a non-transparent state so as to enable the target playing function to be online;
the method comprises the steps that a webpage view container can be switched from a transparent state to a non-transparent state on the basis of the completion of loading of a URL address corresponding to a target play function, so that a function page corresponding to the target play function is displayed in a live broadcast picture, and the target play function is enabled to be online.
After the target play function is online, the data acquisition and function realization of the function page are realized by the native client through a bridging mechanism, so that the logic and display of the target play function are realized through the WEB terminal, and the data acquisition and function realization of the target play function are realized through the native client, thereby not only improving the online efficiency of the play function, but also ensuring the performance and user experience after online target play function meeting in a live broadcast room.
After receiving a play online instruction sent by a server, the embodiment determines a URL address and a function display position corresponding to a target play function to be online, and further loads the URL address in a webpage view container of a native client of a live program to obtain a function page corresponding to the target play function. Since page loading requires a certain time, in this embodiment, the webpage view container in the transparent state is moved to the function display position, and then the webpage view container is switched to the non-transparent state after the function page loading is completed, so that the function page is displayed in a live broadcast picture, and the online process of the target play function is completed. In the scheme, the data acquisition and the function realization of the function page are both realized by the native client through a bridging mechanism, and the WEB terminal is responsible for displaying the function page of the target play function. According to the scheme, the new play function can be online without updating the live program, and the WEB side can control and use the data and functions of the native client, so that the play function online efficiency and stability of the live application program can be improved.
Referring to fig. 2, fig. 2 is a flowchart of a method for displaying a function page according to an embodiment of the present application, where this embodiment further describes S103 and S104 in the embodiment corresponding to fig. 1, and a further embodiment can be obtained by combining this embodiment with the embodiment corresponding to fig. 1, where this embodiment may include the following steps:
s201: judging whether notification information returned by the WEB side through a bridging mechanism is received within preset time; if yes, entering S202; if not, the step S203 is entered;
s202: displaying the function page in a live broadcast picture by switching the webpage view container to a non-transparent state so as to enable the target playing function to be online;
s203: destroying the webpage view container.
In this embodiment, timing may be started when the URL address is loaded, and if the notification information is received when the timing time is less than or equal to the preset time, it indicates that the function page is loaded, and the web view container may be switched to a non-transparent state; if the timing time is longer than the preset time and the notification information is not received, the loading failure of the function page of the WEB side is indicated, and the destruction processing is carried out on the webpage view container. By the method, the processing efficiency of the online target playing method function can be improved, and the condition that the page loading time of the waiting function is too long is avoided.
The following illustrates, by way of example, the issuing process of the play function in the embodiment of fig. 1 and fig. 2 after combining the embodiments: the server side pushes a WEB page URL address corresponding to the play activity and a position where the function needs to be displayed to the primary client side through a polling interface, an IM message and the like according to the service requirement, generates a unique signature verification code, and pushes the URL address, the position where the function needs to be displayed and the signature verification code to the primary client side. 1 after receiving a WEB page URL address and a display position, a native client initializes a WebView container according to corresponding information, loads a URL of a page to obtain a corresponding WEB page, places the container at a corresponding position, and transmits an obtained signature verification code to the WEB client for communication signature verification of the native client and the WEB page subsequently. The native client refers to a functional block or App developed using the native capabilities of the client, for distinguishing the hybrid development part, namely: does not include a portion of exposing H5 with a client Webview container.
The display flow of the play function is as follows:
step A1: and the native client generates a transparent WebView container and loads a corresponding URL, and timing is started, wherein the WebView container and a corresponding WEB end page are not displayed in a live broadcast room.
Step A2: and starting initialization loading of a WEB page (namely, a WEB page) corresponding to the URL, and after the loading is completed and the page can be normally displayed, sending a notification message of the completion of the loading to the original client through a bridging mechanism (this means that the WEB page sends a message to the client).
Wherein, the page is normally displayed, which particularly means that the WEB page finishes a normal initialization life cycle; if the WEB segment acquires data required by the page display (the data can be provided by a server or acquired locally), and no error influencing the function is captured, the page is judged to be normally displayed.
Step A3: after the native client receives the message that the WEB end finishes loading, if the timing time does not exceed the maximum timeout time (namely the preset time mentioned above), the native client judges that the WEB end page is loaded successfully, and the native client changes the WebView container into non-transparent to display in the live broadcast room.
And in the step, the WebView container is restored to be non-transparent, the WebView container is displayed, and the WEB page is also displayed because the WEB page is loaded in the WebView container.
Step A4: and if the native client does not receive the event notification that the WEB end completes loading within the maximum timeout duration, the loading of the WEB end is considered to be failed, and the destruction processing is carried out on the WebView container.
As a further introduction to the embodiment corresponding to fig. 1, the play uploading instruction may further include a check code corresponding only to the target play function, and after receiving the play uploading instruction sent by the server, the check code corresponding to the target play function may be further determined according to the play uploading instruction, and the check code is sent to the WEB terminal, so that the WEB terminal adds the check code to the request information; and if the request information sent by the WEB side is received, executing signature verification operation on the WEB side according to a signature verification code in the request information. The request information comprises any one or combination of any several of a function calling request, a data calling request, a play function closing request and a play function hiding request.
As a further introduction to the corresponding embodiment of fig. 1, after the target play function comes online, the WEB peer may use the function of the native client in the following manner: the native client receives a function calling request sent by the WEB side through a bridging mechanism; and determining a target function module according to the function description and/or the function parameters in the function calling request, and controlling the target function module to execute the operation corresponding to the function calling request.
The process of the WEB side using the function of the native client is illustrated as follows:
step B1: and when the WEB side needs to call the functions of the native client side in the live broadcast room, the description and the parameters of the corresponding functions and the signature check code of the WebView container are sent to the native client side through a bridging mechanism.
And step B2: the native client receives the request of the function call, and propagates the request to the corresponding function block (i.e. the target function module in the foregoing) in a global broadcast manner.
And step B3: and the function block corresponding to the native client receives the broadcast and executes the operation corresponding to the function according to the corresponding description.
For example, after the WEB side clicks the button, the WEB side needs to share the live broadcast room to other users, and sends a description of live broadcast room sharing to the native client side through the bridge event, and after the native client side broadcasts, the live broadcast room sharing control component (i.e., the above target function module) of the native client side receives a corresponding message, and performs a sharing operation on the live broadcast room.
As a further introduction to the corresponding embodiment of fig. 1, after the target play function is on-line, the WEB side may use data of the native client side in the following manner: the client receives a data calling request sent by the WEB side through a bridging mechanism; and determining target data according to a data structure and/or data description in the data calling request, and returning the target data to the WEB side through a bridging mechanism so that the WEB side can receive the target data through a data monitoring interface.
The above process of using the data of the native client by the WEB side is illustrated as follows:
step C1: if the WEB side needs to call the live broadcast room data held by the native client in the live broadcast room, the corresponding data structure, description and signature check code of the WebView container can be sent to the native client through a bridging mechanism.
The data structure and description corresponding to the live broadcast data may be a data structure or description customized for the service, that is, data or description that can be identified by the service.
And step C2: and the WEB terminal registers corresponding data monitoring in the page and waits for the native client to return the data.
The data monitoring is specifically referred to as a callback interface, that is, a callback function is transmitted to the monitoring registration interface, and when a corresponding monitoring event is triggered, the callback function can receive a result.
And C3: the native client prepares the data required in the description after receiving the request of WEB end data acquisition, and transmits the data to the WEB end through a bridging mechanism after the preparation is completed.
And C4: and receiving data transmitted by the original client in the listener of the WEB side.
As a further introduction to the corresponding embodiment of fig. 1, after the target play function is online, the WEB end may offline the target play function in the following manner: and if a play function closing request or a play function hiding request sent by the WEB side through a bridging mechanism is received, destroying or hiding the webpage view container corresponding to the play function closing request or the play function hiding request.
The process of destroying and hiding the play function by the WEB end is illustrated as follows:
step D1: the WEB side wants to destroy/hide the corresponding play function, for example, if a close button is clicked, the corresponding play function needs to be destroyed. And the WEB terminal sends the description of destruction/hiding and the signature check code of the WebView container to the native client through a bridging mechanism.
Step D2: and the native client receives the corresponding WebView destroying/hiding request, and destroys/hides the corresponding WebView container according to the received signature check code of the WebView container.
In the above process, the destruction or hiding is determined by the service, for example, if some functions may be reused subsequently, the hiding operation is performed, otherwise, the destruction operation is performed.
As a further introduction to the corresponding embodiment of fig. 1, after the target play function is online, the server may offline the target play function in the following manner: and if a play function closing instruction or a play function hiding instruction sent by the server is received, destroying or hiding the webpage view container corresponding to the play function closing instruction or the play function hiding instruction.
The process of destroying and hiding the play function by the server is illustrated as follows:
step E1: the server side needs to destroy/hide the corresponding play function, sends a notice of destruction/hiding through a polling interface or an IM push function, and issues a corresponding signature verification code.
Step E2: and the native client receives the corresponding destroy/hide request, and closes the corresponding WebView container according to the received signature check code of the WebView container.
Currently, the schemes for quick online and offline of activities in a live broadcast room in the industry are generally as follows:
(1) the method comprises the steps that a playing function of a primary client is pre-embedded in an App live broadcast room in advance, the configuration of a playing method is designed according to a service scene, when the playing method needs to be online, the playing method is set through configuration items, and the playing method is displayed in the live broadcast room. The disadvantage of this solution is that the function of the native client needs to be written in advance and the user is required to download the App containing this function, and if the function that cannot be covered by the configuration is encountered, the activity cannot be completed and the application cannot be quickly brought online. The user cannot realize the presentation of the activity without downloading the App containing the function.
(2) And developing a live broadcast room by a pure WEB technology. The scheme can realize real-time online and offline of business activities, but has the defects of poor performance and poor user experience. The reason is that the performance of the WEB side is inferior to that of the native client side, and the WEB side is limited in the implementation of functions due to security restrictions of the browser and the system.
Based on the defects of the prior art, a technical scheme which can realize real-time online and offline of a live playing method and can ensure excellent performance and experience of a live broadcast room is needed to be provided, so that a complex service scene of the live broadcast room is served.
In the technical scheme provided by this embodiment, the logic and the display of the function are implemented through WEB-side development, and the data acquisition and the function implementation of the internal foundation of the live broadcast room are implemented by the native client, and then exposed to the WEB-side through the bridging technology of the native client and the WEB-side, that is, the data and the function of the native client can be controlled and used at the WEB-side. The WEB terminal codes are quickly uploaded and downloaded, so that a new active playing method is quickly uploaded and downloaded; through the bridging of the data and functions of the native client, the performance and experience of the live play method are ensured. In addition, a WEB loading timeout mechanism and a communication signature verification mechanism are designed in the embodiment, so that the stability of the WEB side in actual use is ensured.
The bridging mechanism is a means for communicating between a client and a Web page loaded in Webview held by the client, and a scene using the scheme in the industry generally provides basic functions such as sharing, skipping and the like for the loaded page in a client container, while the communication mechanism is used as a basis for enhancing service capability in the embodiment provided by the application. The embodiment provided by the application combines the advantages of the WEB end and the native client, combines the service scene of the live broadcast room, designs a mixed development scheme, and has at least the following advantages compared with the prior art: (1) the embodiment combines the characteristics of rapid release of the WEB terminal and high performance of the native client, and ensures the performance of the function on the basis of ensuring flexible online and offline of the activity playing method. (2) In the embodiment, only basic functions, WEB end and server end communication mechanisms and the online and offline and change of subsequent functions need to be pre-embedded in the native client, and the development and release of the native client are not involved. (3) Compared with the native client, the development of the WEB end of the embodiment needs to be repeatedly developed in different systems, and the efficiency is higher. (4) The embodiment provides a loading timeout protection mechanism of a WEB terminal, ensures the stability in the process of loading the play function, and avoids the condition that loading of WEB pages fails to cause that other functions in a live broadcast room cannot be used. (5) The embodiment provides a signature checking mechanism, and under the scene that multiple activities coexist in the same live broadcast room, the isolation of the play activity business is performed, and the functions are not influenced mutually.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a play function management system of a live broadcast room provided in an embodiment of the present application, where the play function management system is applied to a native client of a live broadcast program, and the play function management system includes:
the online instruction receiving module 301 is configured to receive a play online instruction sent by a server, and determine a URL address and a function display position corresponding to a target play function according to the play online instruction;
a page loading module 302, configured to load the URL address in a web view container, and move the web view container in a transparent state to the function display position;
the judging module 303 is configured to judge whether notification information returned by the WEB side through the bridge mechanism is received; the notification information is information sent to the native client by the WEB side after the function page corresponding to the URL address is loaded;
a function online module 304, configured to, if notification information returned by the WEB end through the bridge mechanism is received, display the function page in a live broadcast by switching the WEB view container to a non-transparent state, so as to enable the target play function to be online; and the data acquisition and function realization of the function page are realized by the native client through a bridging mechanism.
After receiving a play online instruction sent by a server, the embodiment determines a URL address and a function display position corresponding to a target play function to be online, and further loads the URL address in a webpage view container of a native client of a live program to obtain a function page corresponding to the target play function. Since page loading requires a certain time, in this embodiment, the webpage view container in the transparent state is moved to the function display position, and then the webpage view container is switched to the non-transparent state after the function page loading is completed, so that the function page is displayed in a live broadcast picture, and the online process of the target play function is completed. In the scheme, the data acquisition and the function realization of the function page are both realized by the native client through a bridging mechanism, and the WEB terminal is responsible for displaying the function page of the target play function. According to the scheme, the new play function can be online without updating the live program, and the WEB side can control and use the data and functions of the native client, so that the play function online efficiency and stability of the live application program can be improved.
Further, the determining module 303 is configured to determine whether notification information returned by the WEB side through the bridge mechanism is received within a preset time; if yes, starting a work flow corresponding to the function on-line module 304; if not, destroying the webpage view container.
Further, the method also comprises the following steps:
the function calling module is used for receiving a function calling request sent by the WEB terminal through a bridging mechanism; and the function calling module is also used for determining a target function module according to the function description and/or the function parameters in the function calling request and controlling the target function module to execute the operation corresponding to the function calling request.
Further, the method also comprises the following steps:
the data calling module is used for receiving a data calling request sent by the WEB terminal through a bridging mechanism; and the data processing module is further configured to determine target data according to a data structure and/or a data description in the data call request, and return the target data to the WEB side through a bridge mechanism, so that the WEB side receives the target data through a data monitoring interface.
Further, the method also comprises the following steps:
the first function offline module is used for destroying or hiding the webpage view container corresponding to the play function closing request or the play function hiding request if the play function closing request or the play function hiding request sent by the WEB side through the bridge mechanism is received.
Further, the method also comprises the following steps:
and the second function offline module is used for destroying or hiding the webpage view container corresponding to the play function closing instruction or the play function hiding instruction if the play function closing instruction or the play function hiding instruction sent by the server is received.
Further, the method also comprises the following steps:
the system comprises a target playing method function, a label checking module and a WEB end, wherein the target playing method function comprises a playing method online instruction, a label checking module and a request message sending module, the label checking module is used for determining a label checking code corresponding to the target playing method function according to the playing method online instruction and sending the label checking code to the WEB end so that the WEB end can add the label checking code to the request message; the request information comprises any one or a combination of any several of a function calling request, a data calling request, a play function closing request and a play function hiding request; and if the request information sent by the WEB end is received, executing signature verification operation on the WEB end according to a signature verification code in the request information.
Since the embodiment of the system part corresponds to the embodiment of the method part, the embodiment of the system part is described with reference to the embodiment of the method part, and is not repeated here.
The present application also provides a storage medium having a computer program stored thereon, which when executed, may implement the steps provided by the above-described embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The application further provides an electronic device, which may include a memory and a processor, where the memory stores a computer program, and the processor may implement the steps provided by the foregoing embodiments when calling the computer program in the memory. Of course, the electronic device may also include various network interfaces, power supplies, and the like.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A play function management method of a live broadcast room is applied to a native client of a live broadcast program, and comprises the following steps:
receiving a play online instruction sent by a server, and determining a URL (uniform resource locator) address and a function display position corresponding to a target play function according to the play online instruction;
loading the URL address in a webpage view container, and moving the webpage view container in a transparent state to the function display position;
judging whether notification information returned by a WEB side through a bridging mechanism is received or not; the notification information is information sent to the native client by the WEB side after the function page corresponding to the URL address is loaded;
if so, displaying the function page in a live broadcast picture by switching the webpage view container to a non-transparent state so as to enable the target playing function to be online; and the data acquisition and function realization of the function page are realized by the native client through a bridging mechanism.
2. The method for managing play functions of a live broadcast room according to claim 1, wherein the determining whether notification information returned by a WEB end through a bridge mechanism is received includes:
judging whether notification information returned by the WEB side through a bridging mechanism is received within preset time;
if so, executing the operation of displaying the function page in a live broadcast picture by switching the webpage view container to a non-transparent state;
if not, destroying the webpage view container.
3. A play function management method for a live broadcast room as claimed in claim 1, further comprising, after the target play function is on-line:
receiving a function calling request sent by the WEB side through a bridging mechanism;
and determining a target function module according to the function description and/or the function parameters in the function calling request, and controlling the target function module to execute the operation corresponding to the function calling request.
4. A play function management method for a live broadcast room as claimed in claim 1, further comprising, after the target play function is on-line:
receiving a data calling request sent by the WEB side through a bridging mechanism;
and determining target data according to a data structure and/or data description in the data calling request, and returning the target data to the WEB side through a bridging mechanism so that the WEB side can receive the target data through a data monitoring interface.
5. A play function management method for a live broadcast room as claimed in claim 1, further comprising, after the target play function is on-line:
and if a play function closing request or a play function hiding request sent by the WEB side through a bridging mechanism is received, destroying or hiding the webpage view container corresponding to the play function closing request or the play function hiding request.
6. A play function management method for a live broadcast room as claimed in claim 1, further comprising, after the target play function is on-line:
and if a play function closing instruction or a play function hiding instruction sent by the server is received, destroying or hiding the webpage view container corresponding to the play function closing instruction or the play function hiding instruction.
7. A play function management method for a live broadcast room according to any one of claims 1 to 6, after receiving a play online instruction sent by a server, further comprising:
according to the play online instruction, an identification code corresponding to the target play function is determined, and the identification code is sent to the WEB side, so that the WEB side can add the identification code to request information; the request information comprises any one or a combination of any several of a function calling request, a data calling request, a play function closing request and a play function hiding request;
and if the request information sent by the WEB side is received, executing signature verification operation on the WEB side according to a signature verification code in the request information.
8. A play function management system of a live broadcast room is applied to a native client of a live broadcast program, and comprises:
the online instruction receiving module is used for receiving a playing online instruction sent by the server and determining a URL (Uniform resource locator) address and a function display position corresponding to a target playing function according to the playing online instruction;
the page loading module is used for loading the URL address in a webpage view container and moving the webpage view container in a transparent state to the function display position;
the judging module is used for judging whether notification information returned by the WEB side through a bridging mechanism is received or not; the notification information is information sent to the native client by the WEB side after the function page corresponding to the URL address is loaded;
the function online module is used for displaying the function page in a live broadcast picture by switching the webpage view container to a non-transparent state so as to enable the target playing function to be online if notification information returned by the WEB side through a bridging mechanism is received; and the data acquisition and function realization of the function page are realized by the native client through a bridging mechanism.
9. An electronic device comprising a memory in which a computer program is stored and a processor which, when calling the computer program in the memory, implements the steps of the play function management method of a live broadcast room as claimed in any one of claims 1 to 7.
10. A storage medium having stored thereon computer-executable instructions which, when loaded and executed by a processor, carry out the steps of a method of play function management in a live broadcast room as claimed in any one of claims 1 to 7.
CN202110806742.3A 2021-07-16 2021-07-16 Method, system, electronic equipment and storage medium for managing play function of live broadcasting room Active CN113573081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110806742.3A CN113573081B (en) 2021-07-16 2021-07-16 Method, system, electronic equipment and storage medium for managing play function of live broadcasting room

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110806742.3A CN113573081B (en) 2021-07-16 2021-07-16 Method, system, electronic equipment and storage medium for managing play function of live broadcasting room

Publications (2)

Publication Number Publication Date
CN113573081A true CN113573081A (en) 2021-10-29
CN113573081B CN113573081B (en) 2024-01-26

Family

ID=78165254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110806742.3A Active CN113573081B (en) 2021-07-16 2021-07-16 Method, system, electronic equipment and storage medium for managing play function of live broadcasting room

Country Status (1)

Country Link
CN (1) CN113573081B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679589A (en) * 2022-02-07 2022-06-28 上海哔哩哔哩科技有限公司 Dynamic adjustment method and device for direct seeding mixed flow service
CN114675915A (en) * 2022-02-15 2022-06-28 上海哔哩哔哩科技有限公司 Page display method and device, computing equipment and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7525965B1 (en) * 2005-06-30 2009-04-28 Sun Microsystems, Inc. Trick play for multicast streams
US20120010995A1 (en) * 2008-10-23 2012-01-12 Savnor Technologies Web content capturing, packaging, distribution
CN106686420A (en) * 2016-12-09 2017-05-17 广州华多网络科技有限公司 Live streaming application program management method and apparatus
US20180020260A1 (en) * 2016-07-15 2018-01-18 Evermore Technology Inc. Internet multimedia system based on uniform resource locator
CN108174302A (en) * 2016-12-07 2018-06-15 广州华多网络科技有限公司 A kind of update method and device that movable function playing method in application is broadcast live
CN111045758A (en) * 2018-10-12 2020-04-21 北京密境和风科技有限公司 View processing method and device, electronic equipment and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7525965B1 (en) * 2005-06-30 2009-04-28 Sun Microsystems, Inc. Trick play for multicast streams
US20120010995A1 (en) * 2008-10-23 2012-01-12 Savnor Technologies Web content capturing, packaging, distribution
US20180020260A1 (en) * 2016-07-15 2018-01-18 Evermore Technology Inc. Internet multimedia system based on uniform resource locator
CN108174302A (en) * 2016-12-07 2018-06-15 广州华多网络科技有限公司 A kind of update method and device that movable function playing method in application is broadcast live
CN106686420A (en) * 2016-12-09 2017-05-17 广州华多网络科技有限公司 Live streaming application program management method and apparatus
CN111045758A (en) * 2018-10-12 2020-04-21 北京密境和风科技有限公司 View processing method and device, electronic equipment and computer storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHRISTIANE HAGEDORN; HEINI UTUNEN; JAN RENZ; CHRISTOPH MEINEL: "Exploring possibilities to partially transform simulation exercises into interactive games on OpenWHO.org digitizing live role-playing game exercises online for epidemics and health emergency work", 2018 IEEE 6TH INTERNATIONAL CONFERENCE ON SERIOUS GAMES AND APPLICATIONS FOR HEALTH (SEGAH) *
彭永超;费昊;: "基于Webrtc和PWA的视频互动直播系统", 电脑编程技巧与维护, no. 02 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679589A (en) * 2022-02-07 2022-06-28 上海哔哩哔哩科技有限公司 Dynamic adjustment method and device for direct seeding mixed flow service
CN114679589B (en) * 2022-02-07 2023-11-17 上海哔哩哔哩科技有限公司 Live mixed-flow service dynamic adjustment method and device
CN114675915A (en) * 2022-02-15 2022-06-28 上海哔哩哔哩科技有限公司 Page display method and device, computing equipment and computer storage medium

Also Published As

Publication number Publication date
CN113573081B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
US20220179682A1 (en) Task processing method, apparatus, and system based on distributed system
WO2018103521A1 (en) Monitoring method for server, device, and storage medium
US9442709B1 (en) Transition experience during loading and updating an interface and applications pack
CN113573081A (en) Play function management method and system for live broadcast room, electronic equipment and storage medium
CN104685469A (en) Background application page architecture for WEB applications
CN109710270A (en) A kind of security application delivery method, device and storage medium
CN106713954B (en) Video live broadcast starting reminding method and device
CN111381981A (en) Method, device and equipment for pushing applet messages and storage medium
CN110764881A (en) Distributed system background retry method and device
US9628939B2 (en) Data calling method and device
CN104346198A (en) Information processing apparatus, server apparatus, information processing method, and program
US7366505B2 (en) Apparatus and method for delivering messages to a mobile information terminal
CN106027631B (en) Data transmission method and device
CN110647739A (en) Software installation detection method, device, terminal and storage medium
US20210125230A1 (en) Using activity-backed overlays to display rich media content on portable devices during periods of user inactivity
US20060112379A1 (en) Method and system for on demand java resources
CN108197958B (en) Method and device for counting off-line cattle and storage medium
CN109995931B (en) Method and device for realizing automatic calling
CN110493644A (en) TV applications upgrade method, television terminal and server
CN107391132B (en) Method, device and equipment for target App to execute preset action
CN111385265A (en) Communication method and device in iOS system
CN109195021A (en) Screenshot sharing method and device
CN115080265A (en) Application relay method, device, system, electronic equipment, computer readable storage medium and computer program product
CN113961162A (en) Screen projection control method, screen projection sending end, screen projection receiving end and screen projection system
CN112583770B (en) Data transmission method, device, storage medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant