Live broadcast interaction method and device
By storing and managing the update panel and user data of third-party interactive programs on the open platform, the problem of the interactive panel update of the live broadcast platform affecting user experience and data loss is solved, hot updates and custom configurations are realized, and user experience and data recovery capabilities are improved.
Patent Information
- Application Number
- CN202510443071.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-07-08
AI Technical Summary
The third-party interactive program update of existing live broadcast platforms requires forced restart, which affects the user experience, and the interactive panel function is difficult to adjust, and user data is easily lost when network abnormalities are not available.
By sending the update panel of the third-party interactive program to the open platform, generating the URL address and making update notifications, the client obtains the update panel by refreshing the page, supports panel custom configuration, and stores user session information on the open platform to recover data.
It realizes hot updates of the interactive panel, avoids the impact of forced restarts, improves user experience, and solves data loss problems, meeting users' diverse interactive needs.
Smart Images

Figure CN120281996A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of network technologies, and in particular, to a live interaction method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art
[0002] In order to improve the diversity of interactive gameplay on live streaming platforms, many current live streaming platforms will integrate interactive programs developed by some third-party developer servers. These third-party interactive programs achieve data interaction with the live streaming business system through an event-driven architecture and have functions such as audience behavior response, real-time data visualization, and virtual item settlement.
[0003] However, the panel of the third-party interactive program may need to be updated due to bugs. Currently, the update will forcibly update all live rooms using the third-party interactive program, resulting in the need to restart the third-party interactive program in the live room to implement the corresponding panel update, which affects the experience of users in the live rooms where the third-party interactive program is running.
[0004] It should be noted that the above content is not necessarily prior art and is not used to limit the patent protection scope of the present application. Summary of the Invention
[0005] Embodiments of the present application provide a live interaction method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the above technical problems.
[0006] One aspect of embodiments of the present application provides a live interaction method, which is applied to a third-party developer server. The method includes: Sending an updated interactive panel of a third-party interactive program to an open platform for the open platform to store the interactive panel and generate a URL address of the interactive panel, and performing an update notification based on the URL address; When receiving a first request from a client of a live room, obtaining a first target URL address in the first request, where the first target URL address corresponds to a first target interactive panel; Obtaining the first target interactive panel from the open platform based on the first target URL address; Responding to the first request based on the first target interactive panel for the client to update to the first target interactive panel by refreshing the page.
[0007] Optionally, before sending the updated interactive panel of the third-party interactive program to the open platform, the method further includes: Obtain the panel configuration interface of the third - party interactive program from the target application programming interface of the open platform; Based on the input to the panel configuration interface, customize the panel of the third - party interactive program to obtain the updated interactive panel.
[0008] Optionally, the method further includes: When the target third - party interactive program runs in the target live - broadcast room, obtain the session information of each client in the target third - party interactive program in the target live - broadcast room, and send the session information to the open platform for persistent storage; When receiving a second request from the target client logged in to the target live - broadcast room to enter the target third - party interactive program, determine the identity credential information of the target client based on the second request; Based on the identity credential information, obtain the target session information from the open platform for the target client to enter the target third - party interactive program based on the target session information.
[0009] Optionally, the second request includes the second target URL address of the second target interactive panel of the target third - party interactive program; Correspondingly, the method further includes: Obtain the second target URL address from the second request; Based on the second target URL address, obtain the second target interactive panel from the open platform; Based on the target session information, fill the second target interactive panel, and return the filled second target interactive panel to the target client for the target client to enter the target third - party interactive program based on the filled second target interactive panel.
[0010] Optionally, the obtaining the target session information from the open platform based on the identity credential information includes: Send a third request for querying the session to the open platform based on the identity credential information for the open platform to authenticate based on the identity credential information and return the target session information when the authentication passes.
[0011] Optionally, the target session information includes session ID, user interaction account, user name, and user avatar.
[0012] Another aspect of the embodiments of the present application provides a live - broadcast interaction device applied to a third - party developer server. The device includes: A sending module, configured to send an interaction panel updated by a third-party interaction program to an open platform, so that the open platform stores the interaction panel and generates a URL address of the interaction panel, and performs an update notification based on the URL address; A first obtaining module, configured to obtain a first target URL address in the first request when receiving the first request from a client of a live broadcast room, where the first target URL address corresponds to a first target interaction panel; A second obtaining module, configured to obtain the first target interaction panel from the open platform based on the first target URL address; A returning module, configured to respond to the first request based on the first target interaction panel, so that the client can update to the first target interaction panel by refreshing the page.
[0013] Another aspect of the embodiments of the present application provides a computer device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein: the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described above.
[0014] Another aspect of the embodiments of the present application provides a computer-readable storage medium, in which computer instructions are stored, and when the computer instructions are executed by a processor, the method described above is implemented.
[0015] Another aspect of the embodiments of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0016] The embodiments of the present application adopting the above technical solutions may include the following advantages: By sending the interaction panel updated by the third-party interaction program to the open platform for the open platform to store and generate the URL address of the updated interaction panel, and performing an update notification based on the URL address, obtaining the target URL address in the request according to the request of the live broadcast room client, obtaining the target interaction panel from the open platform according to the target URL address, and returning the target interaction panel to the client for the client to update to the target interaction panel by refreshing the page, the client of the live broadcast room can update the interaction panel by refreshing the page, without the need to update by force restarting, realizing the hot update of the interaction panel, thus not affecting the live broadcast users who are using the third-party interaction program and ensuring the experience of these live broadcast users. At the same time, since force restarting is avoided, problems such as user data loss caused by force restarting can also be avoided. Description of the Drawings
[0017] The accompanying drawings exemplarily illustrate embodiments and form part of the specification, and are used together with the written description of the specification to explain the exemplary implementation manners of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. In all the drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0018] Figure 1 Schematically shows an operating environment diagram of the live interaction method according to Embodiment 1 of the present application; Figure 2 Schematically shows a flowchart of the live interaction method according to Embodiment 1 of the present application; Figure 3 Schematically shows an additional process of the live interaction method according to Embodiment 1 of the present application; Figure 4 Schematically shows another additional process of the live interaction method according to Embodiment 1 of the present application; Figure 5 Schematically shows yet another additional process of the live interaction method according to Embodiment 1 of the present application; Figure 6 Schematically shows an interaction panel and its page; Figure 7 Schematically shows an example of a timing process of the live interaction method according to Embodiment 1 of the present application; Figure 8 Schematically shows a block diagram of the live interaction device according to Embodiment 2 of the present application; and Figure 9 Schematically shows a schematic diagram of the hardware architecture of a computer device according to Embodiment 3 of the present application. Detailed implementation manners
[0019] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0020] It should be noted that in the embodiments of the present application, the descriptions involving "first", "second", etc. are only for descriptive purposes, and should not be construed as indicating or implying their relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of such features. Additionally, the technical solutions between various embodiments may be combined with each other, but it must be based on the ability of those of ordinary skill in the art to implement. When the combination of technical solutions results in contradictions or is unable to be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present application.
[0021] In the description of the present application, it should be understood that the numerical labels before the steps do not identify the order of execution of the steps, but are only used to facilitate the description of the present application and to distinguish each step, and thus should not be construed as a limitation to the present application.
[0022] First, the following provides the term explanations involved in the present application: Interactive panel: It refers to the user interface area in a live broadcast or other interactive scenarios for presenting various interactive functions and content.
[0023] Third-party interactive program: It refers to a software program created and maintained by a third-party developer independent of the main system or platform, aiming to provide additional interactive functions for a specific platform or application.
[0024] Open platform: It refers to a software system that allows third-party developers or service providers to expand functions, develop applications or integrate services based on the platform resources by publicly exposing its application programming interface (API) and development tools. It also often provides supporting data services, test environments and operation support to form a multi-party collaborative business system.
[0025] Secondly, to facilitate those of ordinary skill in the art to understand the technical solutions provided in the embodiments of the present application, the related technologies are described below: Currently, the panel of the third-party interactive program on the live broadcast platform may need to be updated due to bugs, and the update will force an update for all live rooms using the third-party interactive program, resulting in the need for the live rooms to restart the third-party interactive program to achieve the corresponding panel update, which affects the experience of the users in the live rooms where the third-party interactive program is running.
[0026] In addition, the applicant has also found that the current third-party interactive programs have the following problems: 1. The third-party interactive programs are all basic interactive panels, with the functions of the interaction interface being fixed and there being limitations in the copywriting configuration. It is difficult for third-party developers to adjust or expand the interactive panel according to actual needs.
[0027] 2. When the user re - enters the third - party interactive program after exiting the live - broadcast room due to reasons such as network anomalies, the historical data of the user in the third - party interactive program will have the problem of data reset due to the lack of a suitable persistent storage mechanism, which also seriously affects the user experience.
[0028] For this reason, the embodiments of this application provide a live - broadcast interaction technical solution. In this technical solution: 1. By saving the updated interactive panel of the third - party developer to the open platform, the client of the live - broadcast room can obtain the updated interactive panel through the URL address of the updated interactive panel, enabling the client of the live - broadcast room to update the interactive panel by refreshing the page, without the need to update by forcibly restarting the third - party interactive program, achieving the hot update of the interactive panel, and thus not affecting the live - broadcast users who are using the third - party interactive program; 2. By providing a preset application programming interface and a panel configuration interface, the third - party developer can adjust or expand the interactive panel according to actual needs, realizing the customization of the interactive panel; 3. By storing the session information of the logged - in users in the open platform, users who exit the live - broadcast room due to abnormal reasons and then re - enter the third - party interactive program can be restored to the state before exiting, avoiding the problem of data reset and improving the user experience. See the following for details.
[0029] Finally, for ease of understanding, an exemplary operating environment is provided below.
[0030] As Figure 1 shown, the environmental schematic diagram includes a third - party developer server 2, an open platform 4, and a client 6 of the live - broadcast room, where: The third - party developer server 2 can be a workstation, a personal computer, a virtual instance in a cloud platform, etc., providing a development environment and a development interface for users. The third - party developer server 2 can run operating systems such as Windows, IOS, or Unix. The third - party developer server 2 can store the interactive panel of the third - party interactive program in the open platform 4.
[0031] The open platform 4 can be composed of multiple computing devices. These multiple computing devices can include virtualized computing instances. The virtualized computing instances can include virtual machines, such as emulations of computer systems, operating systems, servers, etc. The computing devices can load virtual machines based on a virtual image and / or other data that defines a specific software (e.g., operating system, dedicated application, server) for emulation. As the demand for different types of processing services changes, different virtual machines can be loaded and / or terminated on one or more computing devices. A hypervisor can be implemented to manage the use of different virtual machines on the same computing device.
[0032] The third-party developer server 2 can be configured to communicate with the open platform 4, the client 6, etc. via a network. Optionally, communication can also be configured between the client 6 and the open platform 4 via a network.
[0033] The client 6 can provide a user access page or communicate with the third-party developer server 2 to obtain an interaction panel of a third-party interaction program from the open platform 4, etc.
[0034] The technical solutions of the present application will be introduced below through multiple embodiments. It should be noted that these embodiments can be implemented in many different forms and should not be construed as being limited only to the embodiments described herein.
[0035] Embodiment 1 Figure 2 A flowchart of the live interaction method according to Embodiment 1 of the present application is schematically shown. It should be noted that the live interaction method of the embodiments of the present application is applied to the third-party developer server, that is, the execution entity is the third-party developer server.
[0036] As Figure 2 shown, the live interaction method may include steps S200 to S206, where: Step S200: Send the updated interaction panel of the third-party interaction program to the open platform for the open platform to store the updated interaction panel and generate a URL address of the updated interaction panel, and perform an update notification based on the URL address.
[0037] Step S202: When receiving a first request from the live room client, obtain a first target URL address in the first request, and the first target URL address corresponds to a first target interaction panel.
[0038] Step S204: Obtain the first target interaction panel from the open platform based on the first target URL address.
[0039] Step S206: Respond to the first request based on the first target interaction panel for the client to update to the first target interaction panel by refreshing the page.
[0040] The live interaction method provided in this embodiment sends the interaction panel updated by the third-party interaction program to the open platform for the open platform to store and generate the URL address of the updated interaction panel, and performs an update notification based on the URL address. It obtains the target URL address in the request according to the request of the live broadcast room client, obtains the target interaction panel from the open platform according to the target URL address, and returns the target interaction panel to the client for the client to update to the target interaction panel by refreshing the page. This can enable the client of the live broadcast room to update the interaction panel by refreshing the page, without the need to update by forced restart, achieving the hot update of the interaction panel, thus not affecting the live broadcast users who are using the third-party interaction program and ensuring the experience of these live broadcast users. At the same time, since forced restart is avoided, problems such as user data loss caused by forced restart can also be avoided.
[0041] The following combines Figure 2 to elaborate in detail on each step in steps S200 to S206 and other optional steps.
[0042] Step S200 Send the interaction panel updated by the third-party interaction program to the open platform for the open platform to store the updated interaction panel and generate the URL address of the updated interaction panel, and perform an update notification based on the URL address.
[0043] Specifically, the third-party developer can update the interaction panel of the third-party interaction program as needed. After the update is completed, the interaction panel updated by the third-party interaction program can be sent to the open platform through the third-party developer server. The open platform can store the updated interaction panel and generate the URL (Uniform Resource Locator) address of the updated interaction panel according to the storage location. To improve the security of the open platform, the open platform can review the updated interaction panel before storing it and then store it after passing the review. After generating the URL address of the updated interaction panel, the open platform can return the URL address of the updated interaction panel to the third-party developer server, and the third-party developer server can notify the corresponding live broadcast room to update according to this URL address. Optionally, when there is communication between the open platform and the client of the live broadcast room, the open platform can also directly notify the update according to this URL address. When notifying the corresponding live broadcast room to update, an update notification can be generated according to this URL address. After receiving the update notification, the client of the live broadcast room can request the update of the interaction panel according to the URL address in the update notification.
[0044] Step S202, when receiving a first request from the live streaming room client, obtain the first target URL address in the first request, where the first target URL address corresponds to a first target interaction panel.
[0045] Among them, the first request may refer to a request from the live streaming room client to update the interaction panel of the third-party interaction program, and the first request may carry the URL address corresponding to the updated interaction panel.
[0046] Specifically, the third-party developer server can receive the first request from the live streaming room client. When receiving the first request, obtain the first target URL address in the first request, where the first target URL address corresponds to a first target interaction panel, which can specifically be the interaction panel of a certain third-party interaction program. It should be understood that there are multiple interaction panels of multiple third-party interaction programs stored in the open platform. Therefore, the first request from the client needs to carry the URL address of the interaction panel, so that the third-party developer server can determine the target interaction panel that the current client needs to update. Taking the communication between the client and the third-party developer server through the HTTP protocol as an example, the first target URL address can be used as a parameter of the GET request, so that the first request carries the first target URL address. After receiving the first request, the third-party developer server can obtain the first target URL address from the parameters of the GET request.
[0047] Step S204 , obtain the first target interaction panel from the open platform based on the first target URL address.
[0048] Specifically, the third-party developer server can send a request to the open platform according to the first target URL address. After receiving the request, the open platform obtains the first target interaction panel from the corresponding storage location according to the first target URL address, and then returns the first target interaction panel to the third-party developer server.
[0049] Step S206 , respond to the first request based on the first target interaction panel, so that the client can update to the first target interaction panel by refreshing the page.
[0050] Specifically, after obtaining the first target interaction panel, the third-party developer server can perform necessary logical processing on the first target interaction panel, such as filling the data corresponding to the client into the first target interaction panel, and then returning the processed first target interaction panel to the client. After receiving the returned processed first target interaction panel, the client can update the current interaction panel to the first target interaction panel by refreshing the page. Optionally, the third-party developer server can also generate a corresponding interaction page based on the first target interaction panel, and then return the generated interaction page to the client. The client updates the interaction panel in the original page to the first target interaction panel by refreshing the page.
[0051] In an alternative embodiment, before step S200, that is, before sending the interaction panel updated by the third-party interaction program to the open platform, as Figure 3 shown, the live interaction method of the embodiment of the present application may further include: Step S300, obtaining the panel configuration interface of the third-party interaction program from the target application programming interface of the open platform.
[0052] Step S302, customizing and configuring the panel of the third-party interaction program based on the input to the panel configuration interface to obtain an updated interaction panel.
[0053] Specifically, the third-party developer can send a request to the target application programming interface (API) of the open platform through the third-party developer server. After receiving the request, the open platform performs authentication. If the authentication fails, the request can be rejected; if the authentication passes, the open platform can provide the panel configuration interface of the third-party interaction program to the third-party developer server through the target application programming interface. The request sent can include the ID of the third-party interaction program, so that the open platform returns the corresponding panel configuration interface according to the ID of the third-party interaction program. The panel configuration interface can be a page container developed by the front end of the open platform, and specifically can include relevant data for configuring the interaction panel. For example, it can include the basic interaction panel and the extended data of the interaction panel, and can allow the third-party developer to adjust or expand the interaction panel of a certain third-party interaction program according to actual needs. After obtaining the panel configuration interface from the target application programming interface, the third-party developer can input instructions for adjusting or expanding the existing interaction panel on the panel configuration interface according to actual needs, such as adding interaction controls, configuring the names of the newly added interaction controls, or adjusting the names of the existing interaction controls, etc.; and the third-party developer server adjusts or expands the interaction panel according to the input instructions of the third-party developer. After completing the custom configuration, an updated interaction panel can be obtained.
[0054] In this embodiment, by obtaining the panel configuration interface of the third-party interactive program from the target application programming interface of the open platform and customizing the panel of the third-party interactive program based on the input to the panel configuration interface, an updated interactive panel can be obtained, enabling third-party developers to customize the interactive panel according to actual needs, thereby expanding the content of the basic interactive panel and meeting the diverse needs of users.
[0055] In an alternative embodiment, as Figure 4 shown, the live interactive method of the embodiment of the present application may further include: Step S400, when the target third-party interactive program is running in the target live broadcast room, obtain the session information of each client in the target third-party interactive program in the target live broadcast room, and send the session information to the open platform for persistent storage.
[0056] Step S402, when receiving a second request from the target client logged in to the target live broadcast room to enter the target third-party interactive program, determine the identity credential information of the target client based on the second request.
[0057] Step S404, obtain the target session information from the open platform based on the identity credential information for the target client to enter the target third-party interactive program based on the target session information.
[0058] In an exemplary embodiment, the session information or the target session information may include information such as a session ID, a user interaction account, a user name, and a user avatar. Among them, the session ID may be a unique identifier for the session generated by the third-party interactive program; and the user interaction account may be the account of the user corresponding to the third-party interactive program. To obtain the target session information, the session information may be associated with the identity credential information of the user or the relevant information of the user, so that when a request from the client is received, the corresponding target session information can be obtained according to the identity credential information or the relevant information of the user.
[0059] Specifically, when the target live broadcast room (which can be any live broadcast room) runs the target third-party interactive program, the session information of each client in the target live broadcast room in the target third-party interactive program is obtained, and the obtained session information is sent to the open platform for persistent storage, such as storing it in a designated location on the open platform; when performing persistent storage, the session information can be associated with the user-related information corresponding to each client. The user-related information is obtained with the user's authorization. When a user of the live broadcast room accidentally exits the live broadcast room due to network anomalies and the like, and then logs back in to the live broadcast room and wants to re-enter the target third-party interactive program, a second request may be sent to the third-party developer server; the second request may carry the identity credential information of the target client, wherein the identity credential information may be the credential information issued when the corresponding user of the target client logs in; when receiving the second request, the third-party developer server may obtain the identity credential information of the corresponding user of the target client in the second request; then, the third-party developer server may send a request to the open platform based on the identity credential information, and the open platform may obtain the target session information corresponding to the target client based on the identity credential information, and return the target session information to the third-party developer server, and the third-party developer server may perform logical processing on the page of the third-party interactive program (including the corresponding interactive panel) based on the target session information, and then return the page after logical processing to the target client, and the target client may enter the target third-party interactive program with the target session information and restore to the state before exiting, for example, if item A is purchased and the level reaches level B before exiting, the state of having purchased item A and being level B may be restored based on the target session information.
[0060] In this embodiment, when the target third-party interactive program is running in the target live broadcast room, the session information of each client in the target live broadcast room in the target third-party interactive program is obtained, and the session information is sent to the open platform for persistent storage. When a second request is received from the target client that has logged into the target live broadcast room to enter the target third-party interactive program, the identity credential information of the target client is determined based on the second request, and the target session information is obtained from the open platform based on the identity credential information, so that the target client can enter the target third-party interactive program based on the target session information. This can enable users who re-enter the third-party interactive program after exiting due to network abnormalities or other reasons to restore to the state before exiting according to the session information, thereby avoiding the problem of data being reset to zero and ensuring that the user experience is not affected.
[0061] In an optional embodiment, the second request includes a second target URL address of a second target interactive panel of the target third-party interactive program. Figure 5 As shown, the live interactive method of the embodiment of the present application may also include: Step S500: Obtain a second target URL address from the second request.
[0062] Step S502: Acquire a second target interactive panel from the open platform based on the second target URL address.
[0063] Step S504, filling in a second target interactive panel based on the target session information, and returning the filled second target interactive panel to the target client, so that the target client can enter the target third-party interactive program based on the filled second target interactive panel.
[0064] Specifically, when the third-party developer server receives the second request, it can parse the second request and obtain the second target URL address from the second request; then, the third-party developer server can initiate a request to the open platform according to the second target URL address. After receiving the request, the open platform obtains the corresponding second target interactive panel from the corresponding storage location according to the second target URL address, and returns the second target interactive panel to the third-party developer server. After receiving the second target interactive panel, the third-party developer server can fill the relevant data of the second target interactive panel with the target session information obtained from the open platform, and then return the filled second target interactive panel to the target client, and the user of the target client can enter the target third-party interactive program according to the filled second target interactive panel. Among them, the acquisition of the second target interactive panel and the target session information can be carried out simultaneously or successively. In addition, in addition to filling the second target interactive panel according to the target session information, if there are some other data stored by the third-party developer server in the second target interactive panel, the relevant data stored by the third-party developer server can also be filled into the second target interactive panel at the same time.
[0065] In this embodiment, by obtaining the second target URL address from the second request, obtaining the second target interactive panel from the open platform based on the second target URL address, filling the second target interactive panel based on the target session information, and returning the filled second target interactive panel to the target client so that the target client can enter the target third-party interactive program based on the filled second target interactive panel, the data of the target interactive panel can be restored to the state before exit, thereby avoiding the problem of data being reset to zero and effectively ensuring the user experience.
[0066] In an optional embodiment, in step S404, obtaining target session information from the open platform based on the identity credential information may include: sending a third request for querying the session to the open platform based on the identity credential information, so that the open platform can perform authentication based on the identity credential information, and return the target session information if the authentication is successful.
[0067] Specifically, the third-party developer server may send a third request to the open platform to query the sessions of the target client based on the identity credential information. When the open platform receives the third request, it authenticates the identity credential information. If the authentication fails, it may reject the corresponding request. If the authentication passes, it then obtains the target session information and returns it to the third-party developer server. Optionally, the third-party developer server may also generate a signature based on the identity credential information and then send the third request according to the signature. In addition to verifying the identity credential information, the open platform also verifies the signature of the third-party developer server. When both verifications pass, it obtains the target session information and returns it to the third-party developer server.
[0068] In this embodiment, by sending a third request to query the session to the open platform based on the identity credential information, so that the open platform authenticates based on the identity credential information and returns the target session information when the authentication passes, the legitimacy of the request can be verified through authentication, thereby ensuring the data security of the open platform.
[0069] To make the present application easier to understand, the following Figure 6 and Figure 7 provide some exemplary applications. Among them Figure 6 is a schematic diagram of an interactive panel, Figure 7 is a timing process example diagram of the live interaction method. Figure 6 In order to protect privacy, sensitive information such as user avatars and user names is blurred.
[0070] As Figure 6 shown, the interactive panel can be customized in a rich and diverse manner according to needs. The customization of the interactive panel can be carried out by a third-party developer through an application programming interface provided by the open platform (such as a video platform using a third-party interactive program). The corresponding interactive panel is obtained through the application programming interface, and then the interactive panel is adjusted and extended through the panel configuration interface, so as to realize the customization of the interactive panel.
[0071] As Figure 7 shown, the live interaction method may include the following process: 1. The host in the live room starts a third-party interactive program in the live room to enable an interactive gameplay. When the user enters the live room and is in a logged-in state, the system will automatically return the user's authorization status for this session of the game (this part of the information has been desensitized).
[0072] 2. The user opens the custom panel page and clicks to enter the game. The client will send a query request to the third-party developer server carrying a valid token and the URL address of the custom panel.
[0073] 3. When the third-party developer server receives a query request, it calls the system interface for querying session information, passes in the token and signature, and requests the game session-related data of the current user.
[0074] 4. The open platform validates the parameters and authenticates the authority based on the corresponding data. If it passes, it returns the game session-related data of the current user (such as session ID, player openid, uname, uface).
[0075] 5. After obtaining the game session-related data of the current user, the third-party developer server performs business processing on the custom panel according to the session-related data (such as verifying the session status, binding user information, etc.), and finally generates dynamic page content and returns it to the user.
[0076] In the above exemplary application, the third-party developer can customize the interactive panel, thereby expanding the content of the basic panel and improving the richness of the interactive panel; by carrying the URL address of the custom panel in the request and performing business processing on the custom panel according to the returned session-related data, the dynamic resource loading ability can be achieved; at the same time, when the custom panel is updated, the update of the client custom panel can also be achieved by refreshing the page, without the need to achieve it through forced restart, and the hot update of the custom panel can be realized; in addition, by storing the user's session-related data in the open platform, the problem that the user data is reset to zero when the user re-enters the third-party interactive program due to network anomalies or other reasons can be solved, and the user data in the third-party interactive program can be restored to the state before exiting, thus effectively ensuring the user experience.
[0077] Embodiment 2 Figure 8 The block diagram of the live interactive device according to Embodiment 2 of the present application is schematically shown. The device is applied to the third-party developer server and can be divided into one or more program modules. One or more program modules are stored in the storage medium and are executed by one or more processors to complete the embodiments of the present application. The program modules referred to in the embodiments of the present application refer to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. As Figure 8 shown, the device 600 may include: a sending module 610, a first obtaining module 620, a second obtaining module 630, and a returning module 640, where: The sending module 610 is configured to send the updated interactive panel of the third-party interactive program to the open platform for the open platform to store the interactive panel and generate the URL address of the interactive panel, and perform an update notification based on the URL address; A first acquisition module 620, configured to acquire a first target URL address in the first request when receiving the first request from a client of a live broadcast room, where the first target URL address corresponds to a first target interactive panel; A second acquisition module 630, configured to acquire the first target interactive panel from the open platform based on the first target URL address; A return module 640, configured to respond to the first request based on the first target interactive panel, so that the client can update to the first target interactive panel by refreshing the page.
[0078] In an optional embodiment, the apparatus 600 is further configured to: Acquire a panel configuration interface of the third-party interactive program from a target application programming interface of the open platform; Customize and configure the panel of the third-party interactive program based on an input to the panel configuration interface to obtain the updated interactive panel.
[0079] In an optional embodiment, the apparatus 600 is further configured to: When a target third-party interactive program is running in a target live broadcast room, acquire session information of each client in the target live broadcast room in the target third-party interactive program, and send the session information to the open platform for persistent storage; When receiving a second request from a target client logged in to the target live broadcast room to enter the target third-party interactive program, determine identity credential information of the target client based on the second request; Acquire target session information from the open platform based on the identity credential information, so that the target client can enter the target third-party interactive program based on the target session information.
[0080] In an optional embodiment, the second request includes a second target URL address of a second target interactive panel of the target third-party interactive program; Correspondingly, the apparatus 600 is further configured to: Acquire the second target URL address from the second request; Acquire the second target interactive panel from the open platform based on the second target URL address; Populate the second target interactive panel based on the target session information, and return the populated second target interactive panel to the target client, so that the target client can enter the target third-party interactive program based on the populated second target interactive panel.
[0081] In an optional embodiment, the apparatus 600 is further configured to: Send a third request for querying sessions to the open platform based on the identity credential information, so that the open platform authenticates based on the identity credential information and returns the target session information if the authentication is passed.
[0082] In an alternative embodiment, the target session information includes a session ID, a user interaction account, a user name, and a user avatar.
[0083] Embodiment III Figure 9 Schematically shows a hardware architecture diagram of a computer device 10000 suitable for implementing the live interaction method according to Embodiment III of the present application. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle-mounted terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server or a server cluster composed of multiple servers). As Figure 9 shown, the computer device 10000 includes, but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can be communicatively linked to each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium. The readable storage medium includes flash memory, a hard disk, a multimedia card, a card-type memory (such as an SD or DX memory), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage module of the computer device 10000, such as the hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Of course, the memory 10010 may also include both the internal storage module and the external storage device of the computer device 10000. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed on the computer device 10000, such as the program code of the live interaction method. In addition, the memory 10010 may also be used to temporarily store various data that have been output or will be output.
[0084] The processor 10020 can be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other chips in some embodiments. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.
[0085] The network interface 10030 can include a wireless network interface or a wired network interface. The network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network can be an enterprise internal network (Intranet), the Internet, the Global System of Mobile communication (abbreviated as GSM), Wideband Code Division Multiple Access (abbreviated as WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi and other wireless or wired networks.
[0086] It should be noted that Figure 9 Only the computer device with components 10010 - 10030 is shown, but it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively.
[0087] In this embodiment, the live interaction method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as the processor 10020) to complete the embodiments of the present application.
[0088] Embodiment Four The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the live interaction method in the embodiment are implemented.
[0089] In this embodiment, the computer-readable storage medium includes flash memory, hard disks, multimedia cards, card-type memories (such as SD or DX memories, etc.), random access memories (RAM), static random access memories (SRAM), read-only memories (ROM), electrically erasable programmable read-only memories (EEPROM), programmable read-only memories (PROM), magnetic memories, magnetic disks, optical disks, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as the hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc., equipped on the computer device. Of course, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the computer device. In this embodiment, the computer-readable storage medium is generally used to store the operating system installed on the computer device and various application software, such as the program code of the live interactive method in the embodiment. In addition, the computer-readable storage medium may also be used to temporarily store various data that have been output or will be output.
[0090] Embodiment 5 The embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0091] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the embodiments of the present application can be implemented by a general-purpose computer device. They can be concentrated on a single computer device or distributed on a network composed of multiple computer devices. Optionally, they can be implemented by program codes executable by the computer device. Thus, they can be stored in a storage device and executed by the computer device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0092] It should be noted that the above are only the preferred embodiments of the present application, and do not limit the patent protection scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. A live interactive method, characterized in that, Applied to the third-party developer server, the method includes: Sending the updated interactive panel of the third-party interactive program to the open platform for the open platform to store the interactive panel and generate the URL address of the interactive panel, and performing an update notification based on the URL address; When receiving the first request from the client of the live broadcast room, obtaining the first target URL address in the first request, where the first target URL address corresponds to the first target interactive panel; Obtaining the first target interactive panel from the open platform based on the first target URL address; Responding to the first request based on the first target interactive panel for the client to update to the first target interactive panel by refreshing the page.
2. The method according to claim 1, characterized in that, Before sending the updated interactive panel of the third-party interactive program to the open platform, the method further includes: Obtaining the panel configuration interface of the third-party interactive program from the target application programming interface of the open platform; Customizing and configuring the panel of the third-party interactive program based on the input to the panel configuration interface to obtain the updated interactive panel.
3. The method according to claim 1, characterized in that The method further includes: When the target third-party interactive program is running in the target live broadcast room, obtaining the session information of each client in the target live broadcast room for the target third-party interactive program, and sending the session information to the open platform for persistent storage; When receiving the second request from the target client logged in to the target live broadcast room to enter the target third-party interactive program, determining the identity credential information of the target client based on the second request; Obtaining the target session information from the open platform based on the identity credential information for the target client to enter the target third-party interactive program based on the target session information.
4. The method according to claim 3, wherein The second request includes the second target URL address of the second target interactive panel of the target third-party interactive program; Correspondingly, the method further includes: Obtaining the second target URL address from the second request; Obtaining the second target interactive panel from the open platform based on the second target URL address; Filling the second target interactive panel based on the target session information, and returning the filled second target interactive panel to the target client for the target client to enter the target third-party interactive program based on the filled second target interactive panel.
5. The method according to claim 3, wherein The obtaining the target session information from the open platform based on the identity credential information includes: Sending a third request for querying the session to the open platform based on the identity credential information for the open platform to perform authentication based on the identity credential information and return the target session information when the authentication passes.
6. The method according to any one of claims 3 to 5, characterized in that, The target session information includes session ID, user interaction account, user name, and user avatar.
7. A live interactive device, characterized in that, Applied to the third-party developer server, the device includes: A sending module, configured to send an interactive panel updated by a third-party interactive program to an open platform, so that the open platform stores the interactive panel and generates a URL address of the interactive panel, and performs an update notification based on the URL address; A first obtaining module, configured to obtain a first target URL address in the first request when receiving the first request from a client of a live broadcast room, where the first target URL address corresponds to a first target interactive panel; A second obtaining module, configured to obtain the first target interactive panel from the open platform based on the first target URL address; A returning module, configured to respond to the first request based on the first target interactive panel, so that the client can update to the first target interactive panel by refreshing the page.
8. A computer device, characterized in that, Comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein: The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, Computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.