Method, apparatus, device, storage medium and program product for information interaction
By quickly switching to a second server within the live streaming interface and utilizing its archived data, the issues of screen interruption and data inconsistency caused by server failures in live streaming games were resolved. This achieved data consistency and screen continuity for the target application, improving the stability of the live streaming experience.
Patent Information
- Application Number
- CN202411378405.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2044-09-29
AI Technical Summary
In existing live-streamed games, server failures can cause screen interruptions and data inconsistencies, making it difficult for traditional disaster recovery technologies to guarantee the continuity and stability of the game screen in the live-stream interface.
The first screen content of the target application is displayed on the live streaming interface. In response to server failure, a recovery message is obtained, a connection is established with the second server, and the second screen content of the target application is displayed. The archived data of the second server is used to ensure data consistency.
It enables rapid switching to a second server in case of server failure, ensuring data consistency and video continuity for the target application, avoiding video interruptions, and enhancing the stability and continuity of the live streaming experience.
Smart Images

Figure CN119277118B_ABST
Abstract
Description
Technical Field
[0001] The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to methods, apparatus, devices, computer-readable storage media, and computer program products for providing information interaction. Background Technology
[0002] With the development of computer technology, more and more users are watching live streams through various computer devices. At the same time, the interactive methods in the live stream interface are also becoming more diversified, such as live games.
[0003] Live gaming is a game mode that combines live streaming with interactive gaming. Live gaming displays a game window in the live streaming interface, and users (such as streamers and viewers) can watch the game content through the game window in the live streaming interface. They can also interact with the live streaming interface to affect the content displayed in the game window. Summary of the Invention
[0004] In a first aspect of this disclosure, a method for information interaction is provided. The method includes: displaying first screen content of a target application in a live streaming interface; in response to a failure of a first server associated with the target application, obtaining a recovery message, the recovery message indicating at least a second server to be connected; establishing a connection with the second server based on the recovery message; and displaying second screen content of the target application in the live streaming interface, the second screen content indicating application data of the target application obtained from the second server and live interactive data associated with the target application.
[0005] In a second aspect of this disclosure, an apparatus for information interaction is provided. The apparatus includes: a first display module configured to display first screen content of a target application in a live streaming interface; an acquisition module configured to acquire a recovery message in response to a failure of a first server associated with the target application, the recovery message indicating at least a second server to be connected; a connection module configured to establish a connection with the second server based on the recovery message; and a second display module configured to display second screen content of the target application in the live streaming interface, the second screen content indicating application data of the target application acquired from the second server and live interactive data associated with the target application.
[0006] In a third aspect of this disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the device to perform the method of the first aspect.
[0007] In a fourth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program that can be executed by a processor to implement the method of the first aspect.
[0008] In a fifth aspect of this disclosure, a computer program product is provided. The computer program product includes computer-executable instructions that, when executed by a processor, implement the method of the first aspect.
[0009] It should be understood that the content described in this content section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0010] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0011] Figure 1 A schematic diagram of an example environment in which embodiments of the present disclosure can be implemented is shown;
[0012] Figures 2A to 2B A schematic diagram of an interface according to some embodiments of the present disclosure is shown;
[0013] Figure 3 An interactive schematic diagram illustrating the information interaction process according to some embodiments of the present disclosure is shown;
[0014] Figure 4 A flowchart illustrating an information interaction process according to some embodiments of the present disclosure is shown;
[0015] Figure 5 A schematic structural block diagram of an apparatus for information interaction according to certain embodiments of the present disclosure is shown;
[0016] Figure 6 A block diagram of an electronic device capable of implementing several embodiments of the present disclosure is shown. Detailed Implementation
[0017] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0018] It should be noted that the headings of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and embodiments of any type may be included under any section / subsection. Furthermore, embodiments described in any section / subsection may be combined in any way with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0019] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below. The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0020] The embodiments of this disclosure may involve user data, data acquisition, and / or use. All of these aspects comply with applicable laws, regulations, and relevant provisions. In the embodiments of this disclosure, all data collection, acquisition, processing, manipulation, forwarding, and use are conducted with the user's knowledge and confirmation. Accordingly, in implementing the embodiments of this disclosure, the type, scope of use, and usage scenarios of any data or information that may be involved should be communicated to the user and their authorization obtained in accordance with relevant laws and regulations through appropriate means. The specific methods of notification and / or authorization may vary depending on the actual situation and application scenario, and the scope of this disclosure is not limited in this respect.
[0021] In this specification and the embodiments, any processing of personal information will be carried out only under the premise of legality (such as obtaining the consent of the personal information subject, or being necessary for the performance of a contract), and will only be carried out within the scope stipulated or agreed upon. A user's refusal to process personal information other than that necessary for basic functions will not affect the user's use of basic functions.
[0022] As described above, the current live streaming interface can display a window of the target application. The streamer interacts with viewers through the platform and performs actions within the window. Viewers can not only watch the streamer's actions within the target application's window but also participate in discussions, voting, and supporting the streamer's actions within the application. This interactive approach adds more fun to live streaming and enriches the target application with social elements.
[0023] It should be understood that the target application can display video content in the live streaming interface. The target application includes, but is not limited to, game applications or other virtual interactive applications. For ease of understanding, the embodiments of this disclosure use a game application as an example to illustrate this disclosure.
[0024] Taking the target application as a target game in a live-streaming game scenario as an example, the service of the target game is usually provided by the game server.
[0025] To ensure the continuity of the game footage in the live stream interface and to guarantee a better live streaming and viewing experience, game servers typically utilize traditional server disaster recovery technologies (such as data backup and recovery, hot backup, and mirroring) for disaster recovery configuration.
[0026] However, since some of the game data of the target game comes from live streaming platforms, the data processed by the game server contains a lot of real-time interactive data. For example, server disaster recovery solutions such as data backup and recovery cannot guarantee data consistency. Disaster recovery solutions such as hot backup and mirror replication take a long time to perform data recovery and require additional software and hardware costs.
[0027] In view of the above, embodiments of this disclosure provide an information interaction scheme. According to this scheme, a first screen of the target application can be displayed in the live streaming interface; further, in response to a failure of a first server associated with the target application, a recovery message indicating at least a second server to be connected can be obtained; further, a connection with the second server can be established based on the recovery message; further, a second screen of the target application can be displayed in the live streaming interface, the second screen indicating application data of the target application obtained from the second server and live interactive data associated with the target application.
[0028] Based on this approach, the embodiments of this disclosure can automatically and quickly switch to a second server when the first server fails, to display the application data of the target application and the second screen content indicated by the related live interactive data, ensuring the data consistency of the target application. Furthermore, the embodiments of this disclosure can quickly restore the screen content of the target application using the second server without waiting for the first server to recover, effectively avoiding screen interruptions caused by server failures and enhancing the continuity and stability of the target application's background services.
[0029] Example Environment
[0030] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. For example... Figure 1 As shown, example environment 100 may include electronic device 110.
[0031] In this example environment 100, an application 120 is installed on an electronic device 110. A user 140 can interact with the application 120 via the electronic device 110 and / or its attached devices. For example, the application 120 may be a content creation application, a content sharing application, or a social application, or any other suitable application. For example, the application 120 may provide the user 140 with services including but not limited to live streaming and live streaming viewing.
[0032] exist Figure 1 In environment 100, if application 120 is active, application 120 can provide a presentation interface 150 for user 140.
[0033] In some embodiments, electronic device 110 communicates with server 130 to provide services to application 120. Electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, electronic device 110 can also support any type of user-facing interface (such as "wearable" circuitry).
[0034] Server 130 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks, and big data and artificial intelligence platforms. Server 130 may include, for example, computing systems / servers such as mainframes, edge computing nodes, computing devices in a cloud environment, etc. Server 130 can provide backend services for applications 120 that support content presentation in electronic devices 110.
[0035] A communication connection can be established between server 130 and electronic device 110. This communication connection can be established via wired or wireless means. The communication connection may include, but is not limited to, Bluetooth, mobile network, Universal Serial Bus, and Wi-Fi connections; the embodiments of this disclosure are not limited in this respect. In the embodiments of this disclosure, server 130 and electronic device 110 can achieve signaling interaction through the communication connection between them.
[0036] It should be understood that the structure and function of the various elements in environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of this disclosure.
[0037] The following description will continue with reference to the accompanying drawings, which will provide some exemplary embodiments of this disclosure.
[0038] Example Interaction
[0039] The following will be referenced Figures 2A to 2B To describe an example interface display according to an embodiment of this disclosure. Figures 2A to 2B Example interfaces 200A to 200B according to some embodiments of the present disclosure are shown. Interfaces 200A to 200B may be, for example, provided by... Figure 1 The electronic device 110 shown is provided.
[0040] like Figure 2A As shown, the electronic device 110 may, for example, present an interface 200A (live streaming interface), which may display at least one live video area. This live video area displays, for example, a live video stream received via a network, such as live video area 211 (for receiving the live video stream from streamer A) and live video area 212 (for receiving the live video stream from streamer B). Interface 200A may also include one or more controls for interaction between the streamer and viewers, and display interactive information (such as comments, likes, bullet comments, virtual gifts, etc.) within interface 200A.
[0041] Furthermore, the electronic device 110 may, for example, display the first screen content of at least one target application in the interface 200A, such as screen content 220, which displays a character 221 operated by anchor a and anchor b.
[0042] During the process of displaying the first screen content of the target application in the live streaming interface, users can influence the target application through interaction with the interface 200A. Taking a game application as an example, viewers in the live streaming room can control the character controlled by the streamer in the game application through various types of interaction, such as moving the character. In some embodiments, the target application can display the first screen content based on the services provided by the first server.
[0043] In some embodiments, the first server may malfunction, which will cause the content of the first screen to be abnormal.
[0044] The embodiments of this disclosure can switch servers to ensure the normal operation of the target application and the continuity of the display of the target application's screen content in the live streaming interface. Specifically, the electronic device 110 can obtain a recovery message in response to a failure of the first server associated with the target application, the recovery message indicating at least a second server to be connected.
[0045] As examples, a failure refers to various problems or events that prevent a server (e.g., the first server) from providing services normally. The recovery message contains at least the identification information of the second server (e.g., identifier, address information, etc.) to guide electronic device 110 to restore the target application through the second server.
[0046] The first server is the server that supports the first-screen content of the target application, that is, it provides background services for the target application. For example, the first server can run on the aforementioned server 130. The second server is a different server from the first server. For example, the second server can also run on the aforementioned server 130 to provide background services to the target application.
[0047] Furthermore, the electronic device 110 establishes a connection with the second server indicated by the recovery message, and displays the second screen content of the target application in the live broadcast interface based on the connection with the second server.
[0048] To ensure the continuity of the second screen content with the first screen content, the second server can be configured to retrieve archived data associated with the target application from the archive module. This archived data includes application data of the target application and live interactive data associated with the target application. Based on this application data and live interactive data, the second server can support the electronic device 110 in displaying second screen content that is continuous with the first screen content on the live streaming interface, more accurately restoring the target application and ensuring data consistency.
[0049] As some examples, application data includes, but is not limited to, character status information and match information within a game application. Live streaming interaction data includes, but is not limited to, virtual resource interaction data (such as virtual gifts), feedback behavior data (such as likes), and text interaction data (such as comments and bullet comments).
[0050] In some embodiments, electronic device 110 may determine whether a response is needed to establish a connection with a second server in the current target application. Specifically, electronic device 110 may determine the state of the target user associated with the live streaming interface in the target application to determine whether a response is needed to establish a connection with a second server.
[0051] As examples, the target user associated with the live streaming interface can be the streamer in the live streaming interface, the target user can perform operations on the target application, and the state of the target user in the target application can be the state of the object operated by the target user in the target application or the display state of the target application.
[0052] As some examples, the target users are Figure 2A In the target application, either streamer A or streamer B can operate the corresponding character 221. Correspondingly, the target user's state in the target application is, for example, the active state of character 221 in the game application, such as whether they are still in a game. As an example, if a character has been eliminated in a game, the corresponding user can be identified as an inactive user. Conversely, if a character has not been eliminated in a game, the corresponding user can be identified as an active user.
[0053] The preset conditions are the conditions under which electronic device 110 needs to respond to the connection with the second server. The preset conditions include, but are not limited to, the target user associated with the live broadcast interface being an active user, and the screen displayed by the target application being a character operation screen.
[0054] Based on this, electronic device 110 can establish a connection with the second server when a response is required. Specifically, in response to a preset condition being met, electronic device 110 determines the address information of the second server based on the received recovery message; and establishes a connection with the second server based on the address information of the second server.
[0055] As examples, address information such as Internet Protocol addresses, domain names, port numbers, Uniform Resource Locators, virtual addresses, and / or cloud service addresses can uniquely identify a second server.
[0056] In some embodiments, if the aforementioned state does not meet the preset conditions, the screen content of the target application in the live broadcast interface will remain unchanged or change only slightly. Based on this, the electronic device 110 can ignore the recovery message to reduce the resource consumption caused by switching servers. Specifically, in response to the state not meeting the preset conditions, the electronic device 110 ignores the recovery message, that is, the electronic device 110 does not need to respond to establish a connection with the second server, but instead displays the current first screen content in the live broadcast interface.
[0057] In some embodiments, the electronic device 110 may present a transition page on the live streaming interface during server switching to reduce the user's negative experience of the failure. Specifically, in response to a failure of the first server associated with the target application, the electronic device 110 displays preset screen content on the live streaming interface.
[0058] As examples, the preset screen content can be set randomly in advance or associated with the target application. For example, the preset screen content can include screen elements associated with the target application.
[0059] Furthermore, the electronic device 110 can display preset screen content on the live streaming interface by switching the first screen content to the preset screen content, or by other reasonable methods of changing the screen content. For example... Figure 2B The screen content 230 in the live broadcast interface 200B shown will not be displayed on the electronic device while the screen content 230 is displayed.
[0060] The electronic device 110 can display the second screen content in the live broadcast interface by switching the preset screen content to the second screen content, or by other reasonable screen content change methods.
[0061] In some embodiments, the content of the second screen may be different from the scene of the content of the first screen. The electronic device 110 can achieve, for example, the effect of "scene transition" by using the first screen content - preset screen content - second screen content, which can guide and shift the user's attention, avoid displaying irrelevant error information and technical details on the live broadcast interface, and ensure the live broadcast effect of the live broadcast interface.
[0062] In some embodiments, the first server and the second server may be managed by a management server. The target application may be associated with multiple participants, each of whom may connect to the first server and / or the second server using a corresponding client terminal. The client terminal may be implemented in, for example, electronic device 110, or other electronic devices. The management server may be implemented in, for example, server 130, or other servers.
[0063] To better understand the live streaming interaction scheme disclosed herein, the following will combine... Figure 3 This describes a multi-terminal interaction process according to embodiments of the present disclosure.
[0064] Figure 3 An interaction diagram illustrating the information interaction process according to some embodiments of this disclosure is shown. Figure 3 In the example, the first client 111 and the second client 112 can run on the electronic device 110.
[0065] As examples, each of the first client 111 and the second client 112 may contain one or more, with each first client 111 or each second client 112 corresponding to a participant (i.e., a user using the client). The target user associated with the first client 111 (i.e., the user using the first client 111) meets the preset conditions in the state of the target application, while the target user associated with the second client 112 (i.e., the user using the second client 112) does not meet the preset conditions in the state of the target application.
[0066] Furthermore, the live streaming platform 113 is a platform that provides live streaming interface-related services. The live streaming platform 113 can run on the electronic device 110 or on the server 130.
[0067] Management server 131, as described above, can run on server 130. Management server 131 can run detection tool 132 to provide detection services. Management server 131 can also manage the first server 133 and the second server 134. Archive module 135, as described above, is used to archive application data of the target application and related live interactive data.
[0068] As examples, the management server can determine that a failure has occurred in the first server when it detects that the exit code of the first server process is inconsistent with the preset exit code. This improves the real-time performance and reliability of the detection, increases the speed and accuracy of detecting failures in the first server, and further enhances the stability of the target application.
[0069] In some embodiments, the management server 131 can communicate directly with the first client 111 and the second client 112. The management server 131 can also send the information to be communicated to the room service module 136, which forwards it to the first client 111 and the second client 112. The room service module 136 can run on the management server 131.
[0070] In some embodiments, the detection tool 132, the first server 133, the second server 134, the archiving module 135, and the room service module 136 may also run partially or entirely on the server 130 or other servers, and be connected to the management server 131 via wired, wireless, or other means.
[0071] like Figure 4As shown, in the initial stage, the first client 111 communicates directly with the first server 133 (311). The first server 133, as the background service of the target application in the live broadcast interface of the first client 111, can determine the application data of the target application and obtain the live interactive data associated with the target application from the live broadcast platform 113. Furthermore, the first server 133 can write (312) the application data and the live interactive data to the archiving module to achieve data backup.
[0072] In some embodiments, the first server 133 may be configured with multiple modules to achieve modular management of application data and live interactive data, thereby improving data management efficiency. For example, the first server 133 may be configured with modules for managing live interactive data, modules for managing role status data, modules for managing user information, and so on.
[0073] In some embodiments, the first server 133 may periodically write application data and live interactive data to the archiving module 135 to ensure the timeliness of data backup.
[0074] Furthermore, the target application can be associated with interactive events in a virtual scene, such as a game scene or other virtual interactive scene. Taking a game scene as an example, interactive events could be game match events.
[0075] Based on this, the first server 133 can use the identification information of the interactive event (such as the game ID) as the key and the application data and live interactive data corresponding to the interactive event as the value, and periodically write the application data and live interactive data corresponding to the interactive event to the archive module 135 in a key-value format.
[0076] In some embodiments, the first server 133 fails (321), the detection tool 132 detects (322) the first server 133 fails, and sends (323) the information that the first server has failed to the management server 131.
[0077] Based on this, the management server 131 can switch the server connected to the target application to ensure the accuracy of the target application data. Specifically, in response to the failure of the first server 133, the management server 131 can determine the second server 134 to be switched, start the second server 134, and allocate (331) the identification information of this interaction event as an archiving certificate to the second server 134 through a preset server selection strategy (such as random selection, encoding order selection, preset selection algorithm selection, etc.).
[0078] In some embodiments, the second server 134 connects (332) to the live streaming platform 312 based on the identification information of the interactive events allocated by the management server. Further, the live streaming platform 312 binds (333) the live streaming room events corresponding to the live streaming interface to the second server 134.
[0079] In some embodiments, the second server 134 further obtains (334) archive data associated with the interactive event (e.g., archive data associated with the current game match event) from the archive module based on the identification information of the interactive event assigned by the management server. Based on this, the management server successfully starts (335) the second server.
[0080] In some embodiments, the management server sends a recovery message (341) to the room service module, and the room service module distributes the recovery message (342) to the first client 111 and the second client 112 to switch the client to the server.
[0081] Furthermore, the first client 111 and the second client 112 determine (343) whether to respond to establish a connection with the second server. Based on this, the first client 111 determines to establish a connection with the second server, and therefore, in response to the failure of the first server associated with the target application, displays (344) the preset screen content in the live broadcast interface, and establishes (351) a connection with the second server. Furthermore, the first client 111 successfully establishes a connection with the second server (352), realizing direct communication (353) between the first client 111 and the second server. The second client 112 determines that it does not need to establish a connection with the second server, and therefore ignores (345) the recovery message. For the specific implementation method, please refer to the above description, which will not be repeated here.
[0082] In some embodiments, the second server 134 may, in response to a connection with the first client 111, restore the target application based on archived data.
[0083] In some embodiments, the second server may operate only in response to a connection with any client, and may be in an inactive state when the second server is not connected to any client. Compared to continuously running the second server, the embodiments of this disclosure can reduce the resource consumption of running the second server and the costs of server operation and maintenance.
[0084] In some embodiments, the second server 134 may further determine whether a connection has been established with all the first clients 111, or whether the duration of the failure of the first server 133 has reached a preset duration. Further, if so, the second server 134 restores the target application based on the archived data to ensure that the target application progress of each first client 111 is synchronized, thereby improving the accuracy of the target application data.
[0085] Specifically, the second server can be configured to determine whether a group of active participants among multiple participants are connected to the second server, the group of active participants being determined based on the state of the multiple participants in the target application; and to restore the target application based on archived data in response to a failure where all active participants have connected to the second server or the first server has been down for a preset duration. As some examples, an active participant may be, for example, the first client 111, meaning that the state of the active participant in the target application meets preset conditions.
[0086] In some embodiments, the second server can restore the target application based on the archived data in the following ways: the second server generates a target scene corresponding to the number of first clients 111 based on the archived data and the number of first clients 111. The target scene is different from the scene in the first screen content to reflect the "scene transition" effect. Based on the live interactive data in the archived data, the second server restores the interactive events in the target scene (362). Furthermore, based on the generated target scene and the restored interactive events, the second server restores the target application (363) so that the first client 111 can present the second screen content.
[0087] Based on this approach, the embodiments of this disclosure can automatically and quickly switch to a second server when the first server fails, displaying the application data of the target application and the second screen content indicated by the related live interactive data, ensuring the data consistency of the target application. Furthermore, the embodiments of this disclosure can quickly restore the screen content of the target application using the second server without waiting for the first server to recover, effectively avoiding screen interruptions caused by server failures and enhancing the continuity and stability of the target application's background services. Moreover, during the background server switching process of the electronic device, the front end of the electronic device presents preset screen content to the user, avoiding the display of irrelevant error information and technical details on the live broadcast interface, improving the display effect of the target application's screen content in the live broadcast interface, and ensuring the user's visual experience.
[0088] Example process
[0089] Figure 4 A flowchart of an information interaction process 400 according to some embodiments of the present disclosure is shown. Process 400 can be implemented at electronic device 110. Reference is made below. Figure 1 Describe the process 400.
[0090] In box 410, the first screen content of the target application is displayed in the live streaming interface.
[0091] In box 420, in response to a failure of the first server associated with the target application, a recovery message is obtained, which at least indicates the second server to be connected to.
[0092] In box 430, a connection to the second server is established based on the recovery message.
[0093] In box 440, the second screen content of the target application is displayed in the live broadcast interface. The second screen content indicates the application data of the target application obtained from the second server and the live broadcast interaction data associated with the target application.
[0094] In some embodiments, establishing a connection with the second server based on the recovery message further includes: determining the state of the target user associated with the live streaming interface in the target application; determining the address information of the second server based on the received recovery message in response to the state meeting a preset condition; and establishing a connection with the second server based on the address information of the second server.
[0095] In some embodiments, process 400 further includes ignoring the recovery message in response to a state not meeting a preset condition.
[0096] In some embodiments, process 400 further includes: in response to a failure of a first server associated with the target application, displaying preset screen content in the live streaming interface.
[0097] In some embodiments, the target application is associated with multiple participants, and the second server is configured to: determine whether a group of active participants among the multiple participants are connected to the second server, the group of active participants being determined based on the status of the multiple participants in the target application; and, in response to a failure where all of the group of active participants have connected to the second server or the failure of the first server has reached a preset duration, restore the target application based on application data and live interactive data.
[0098] In some embodiments, the second server is configured to obtain application data and live interactive data from an archive module associated with the first server.
[0099] In some embodiments, the target application is associated with interactive events in a virtual scene, and the second server is further configured to: obtain archived data associated with the interactive events from the archived module based on the identification information of the interactive events, the archived data including application data and live interactive data.
[0100] In some embodiments, the first server is configured to: determine application data of a target application; acquire live interactive data associated with the target application; and write the application data and live interactive data to an archiving module.
[0101] In some embodiments, writing application data and live interaction data to the archive module includes periodically writing application data and live interaction data to the archive module.
[0102] In some embodiments, obtaining a recovery message includes: obtaining a recovery message generated by a management server, the management server being configured to: determine a second server to be switched over in response to determining that a first server has failed; and generate a recovery message based on the address information of the second server.
[0103] In some embodiments, live streaming interaction data includes at least one of the following: virtual resource interaction data, feedback behavior data, and text interaction data.
[0104] Example devices and equipment
[0105] Embodiments of this disclosure also provide corresponding apparatus for implementing the above methods or processes. Figure 5 A schematic structural block diagram of an apparatus 500 for information interaction according to certain embodiments of the present disclosure is shown. The apparatus 500 may be implemented as or included in the electronic device 110 discussed above. The various modules / components in the apparatus 500 may be implemented by hardware, software, firmware, or any combination thereof.
[0106] like Figure 5 As shown, the device 500 includes a first display module 510 configured to display a first screen of a target application in a live streaming interface; an acquisition module 520 configured to acquire a recovery message in response to a failure of a first server associated with the target application, the recovery message indicating at least a second server to be connected; a connection module 530 configured to establish a connection with the second server based on the recovery message; and a second display module 540 configured to display a second screen of the target application in the live streaming interface, the second screen indicating application data of the target application obtained from the second server and live interactive data associated with the target application.
[0107] In some embodiments, the connection module 530 is further configured to: determine the state of the target user associated with the live streaming interface in the target application; in response to the state meeting a preset condition, determine the address information of the second server based on the received recovery message; and establish a connection with the second server based on the address information of the second server.
[0108] In some embodiments, the apparatus 500 further includes a message ignoring module configured to ignore recovery messages in response to a state not meeting a preset condition.
[0109] In some embodiments, the device 500 further includes a third display module configured to display preset screen content in the live streaming interface in response to a failure of a first server associated with the target application.
[0110] In some embodiments, the target application is associated with multiple participants, and the second server is configured to: determine whether a group of active participants among the multiple participants are connected to the second server, the group of active participants being determined based on the status of the multiple participants in the target application; and, in response to a failure where all of the group of active participants have connected to the second server or the failure of the first server has reached a preset duration, restore the target application based on application data and live interactive data.
[0111] In some embodiments, the second server is configured to obtain application data and live interactive data from the archive module associated with the first server.
[0112] In some embodiments, the first server is further configured to: obtain archived data associated with the interactive event from the archived module based on the identification information of the interactive event, wherein the archived data includes application data and live interactive data.
[0113] In some embodiments, the first server is configured to: determine application data of a target application; acquire live interactive data associated with the target application; and write the application data and live interactive data to an archiving module.
[0114] In some embodiments, the first server is further configured to periodically write application data and live interactive data to the archive module.
[0115] In some embodiments, the acquisition module 520 is further configured to: acquire a recovery message generated by the management server, the management server being configured to: determine a second server to be switched in response to determining that the first server has failed; and generate a recovery message based on the address information of the second server.
[0116] In some embodiments, live streaming interaction data includes at least one of the following: virtual resource interaction data, feedback behavior data, and text interaction data.
[0117] The units included in device 500 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units may be implemented using software and / or firmware, such as machine-executable instructions stored on a storage medium. In addition to or as an alternative to machine-executable instructions, some or all of the units in device 500 may be implemented at least partially by one or more hardware logic components. By way of example and not limitation, exemplary types of hardware logic components that may be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-chips (SoCs), complex programmable logic devices (CPLDs), and so on.
[0118] Figure 6 A block diagram of an electronic device 600 in which one or more embodiments of the present disclosure may be implemented is shown. It should be understood that... Figure 6 The electronic device 600 shown is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. Figure 6 The electronic device 600 shown can be used to achieve Figure 1 The electronic device 110 shown or Figure 5 The device 500 shown.
[0119] like Figure 6 As shown, electronic device 600 is in the form of a general-purpose electronic device. Components of electronic device 600 may include, but are not limited to, one or more processors or processing units 610, memory 620, storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. Processing unit 610 may be a physical or virtual processor and is capable of performing various processes according to programs stored in memory 620. In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing capability of electronic device 600.
[0120] Electronic device 600 typically includes multiple computer storage media. Such media can be any accessible media that is accessible to electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 620 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 630 can be a removable or non-removable medium and can include machine-readable media, such as flash drives, disks, or any other media that can be used to store information and / or data (e.g., training data for training) and can be accessed within electronic device 600.
[0121] Electronic device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not explicitly stated... Figure 6 As shown, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks can be provided. In these cases, each drive can be connected to a bus (not shown) via one or more data media interfaces. Memory 620 may include computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of this disclosure.
[0122] The communication unit 640 enables communication with other electronic devices via a communication medium. Additionally, the functionality of the components of the electronic device 600 can be implemented using a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, the electronic device 600 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0123] Input device 650 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 660 can be one or more output devices, such as a monitor, speaker, printer, etc. Electronic device 600 can also communicate with one or more external devices (not shown) via communication unit 640 as needed. These external devices include storage devices, display devices, etc., and can communicate with one or more devices that enable user interaction with electronic device 600, or with any device that enables electronic device 600 to communicate with one or more other electronic devices (e.g., network card, modem, etc.). Such communication can be performed via input / output (I / O) interface (not shown).
[0124] According to an exemplary implementation of this disclosure, a computer-readable storage medium is provided that stores computer-executable instructions thereon, wherein the computer-executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of this disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above.
[0125] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0126] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0127] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0128] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0129] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. A method for information exchange, comprising: The first screen content of the target application is displayed in the live streaming interface, and the live streaming interface also presents a live video area corresponding to at least one broadcaster user. The target application includes a virtual object controlled by the at least one broadcaster. In response to a failure of a first server associated with the target application, a recovery message is obtained, the recovery message indicating at least a second server to be connected; Based on the recovery message, a connection is established with the second server; as well as The live streaming interface displays a second screen of the target application. This second screen displays application data of the target application obtained from the second server and live streaming interaction data associated with the target application. The target application is associated with multiple participants, and the second server is configured as follows: Determine whether a group of active participants among the plurality of participants are connected to the second server, wherein the group of active participants is determined based on the status of the plurality of participants in the target application; as well as In response to the failure where all active participants have connected to the second server or the first server for a preset duration, the target application is restored based on the application data and the live interaction data.
2. The method according to claim 1, wherein establishing the connection with the second server based on the recovery message further comprises: Determine the status of the target user associated with the live streaming interface in the target application; In response to the state meeting preset conditions, the address information of the second server is determined based on the received recovery message; as well as Based on the address information of the second server, a connection is established with the second server.
3. The method according to claim 2, further comprising: If the state does not meet the preset condition, the recovery message is ignored.
4. The method according to claim 1, further comprising: In response to the failure of the first server associated with the target application, preset screen content is displayed in the live streaming interface.
5. The method of claim 1, wherein the second server is configured to obtain the application data and the live interaction data from an archive module associated with the first server.
6. The method of claim 5, wherein the target application is associated with interactive events in a virtual scene, and the second server is further configured to: Based on the identification information of the interactive event, archived data associated with the interactive event is obtained from the archive module. The archived data includes the application data and the live interactive data.
7. The method of claim 5, wherein the first server is configured to: Determine the application data of the target application; Acquire the live interactive data associated with the target application; and Write the application data and the live interaction data into the archive module.
8. The method according to claim 7, wherein writing the application data and the live interaction data to the archiving module comprises: The application data and the live interaction data are periodically written to the archive module.
9. The method of claim 1, wherein obtaining the recovery message comprises: The recovery message generated by the management server is obtained, and the management server is configured to: In response to determining that the first server has experienced the aforementioned failure, a second server to be switched over is determined; as well as The recovery message is generated based on the address information of the second server.
10. The method of claim 1, wherein the live interactive data comprises at least one of the following: Virtual resource interaction data, feedback behavior data, and text interaction data.
11. A device for information interaction, comprising: The first display module is configured to display the first screen content of the target application in the live streaming interface, the live streaming interface also presenting a live video area corresponding to at least one broadcaster user, and the target application includes a virtual object controlled by the at least one broadcaster. The acquisition module is configured to acquire a recovery message in response to a failure of a first server associated with the target application, the recovery message indicating at least a second server to be connected. The connection module is configured to establish a connection with the second server based on the recovery message; as well as The second display module is configured to display a second screen of the target application in the live streaming interface. The second screen content indicates application data of the target application obtained from the second server and live interactive data associated with the target application. The target application is associated with multiple participants, and the second server is configured as follows: Determine whether a group of active participants among the plurality of participants are connected to the second server, wherein the group of active participants is determined based on the status of the plurality of participants in the target application; as well as In response to the failure where all active participants have connected to the second server or the first server for a preset duration, the target application is restored based on the application data and the live interaction data.
12. An electronic device, comprising: At least one processing unit; as well as At least one memory, coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 10 when executed by the at least one processing unit.
13. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method according to any one of claims 1 to 10.
14. A computer program product tangibly stored in a computer storage medium and comprising computer-executable instructions that, when executed by a device, cause the device to perform the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Multi-player video on-line game method
CN104645614A
Live video display method, device and equipment and storage medium
CN110858910A
Method and system for preventing repeated stream pushing
CN114051146A
Video live broadcast system
CN114095739A