Game management method, device, equipment, storage medium and product based on live broadcast
Through the game service framework, the game resource configuration is obtained from the basic backend and interacts with the game backend, which solves the problems of game development code redundancy and low management efficiency in live broadcast scenarios, reduces code redundancy and saves development resources, and improves game efficiency. Management efficiency.
Patent Information
- Application Number
- CN202310149676.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-02-13
AI Technical Summary
In live broadcast scenarios, game development is prone to code redundancy, leading to waste of development resources and low game management efficiency.
Obtain game resource configuration from the basic backend through the game service framework, load the game panel, and interact with the game backend, unifying the code framework, reducing code redundancy in game development, and improving game management efficiency.
It reduces code redundancy in game development, saves development resources, and improves game management efficiency. Game developers in the live broadcast room only need to focus on the internal gameplay of the game, simplifying the interaction with the game backend.
Smart Images

Figure CN116170611B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of live broadcast technology, and in particular to game management methods, devices, equipment, storage media and products based on live broadcast. Background Art
[0002] In the mobile live broadcast scenario, interactive mini-games in the live broadcast room are an effective way to increase the activity in the live broadcast room, which can make the audience more inclined to stay in the live broadcast room and the anchor will be more willing to start broadcasting, thereby achieving the effect of increasing audience retention, the number of people who come on the microphone and the number of people who start broadcasting.
[0003] Currently, the interactive games in the live broadcast room include native client-based games and web-based H5 games. Every time a new game is developed, multiple teams are required to participate in the development. For example, the new game logo is defined in the background of the room to allow others in the live broadcast room to sense entering and exiting the game mode, the basic background defines the game resource configuration, and the design team determines the location and interaction of the new game panel. Client live broadcast teams on different platforms need to connect to native games or web games and do business adaptation work in the live broadcast room (since changes need to be made to the client, previously developed games also need to be updated and launched). As the number of games provided in the live broadcast room increases, code redundancy is likely to occur, resulting in a waste of development resources and low game management efficiency. Summary of the invention
[0004] The embodiments of the present application provide a game management method, device, equipment, storage medium and product based on live broadcast to solve the technical problems in the related technology that game development is prone to code redundancy, resulting in waste of development resources and low game management efficiency, effectively reduce code redundancy in game development, reduce waste of development resources, and improve game management efficiency.
[0005] In a first aspect, an embodiment of the present application provides a game management method based on live broadcast, comprising:
[0006] Obtain game resource configuration from the basic background through the game service framework, and determine the game parameters configured in the game preparation page;
[0007] Loading a first game panel based on the game resource configuration through a game service framework, displaying a game screen in the first game panel based on the game parameters and game status data provided by a game backend through a first game container, and sending first game data to the game backend;
[0008] Notify the room backend to enter the game mode, and the room backend notifies each audience terminal in the live broadcast room to enter the game mode. When the audience terminal enters the game mode, the second game panel is loaded based on the game resource configuration, and the game screen is displayed in the second game panel through the second game container based on the game parameters and the game status data provided by the game backend, and the second game data is sent to the game backend, and the game backend generates game status data based on the first game data and the second game data.
[0009] In a second aspect, an embodiment of the present application provides a game management device based on live broadcast, including a game configuration module, a game loading module and a mode notification module, wherein:
[0010] The game configuration module is configured to obtain game resource configuration from the basic background through the game service framework and determine the game parameters configured in the game preparation page;
[0011] The game loading module is configured to load a first game panel based on the game resource configuration through a game service framework, display a game screen in the first game panel based on the game parameters and game status data provided by a game backend through a first game container, and send first game data to the game backend;
[0012] The mode notification module is configured to notify the room background to enter the game mode, and the room background notifies each audience terminal in the live broadcast room to enter the game mode. When the audience terminal enters the game mode, the second game panel is loaded based on the game resource configuration, and the game screen is displayed in the second game panel through the second game container based on the game parameters and the game status data provided by the game background, and the second game data is sent to the game background, and the game background generates game status data based on the first game data and the second game data.
[0013] In a third aspect, an embodiment of the present application provides a game management device based on live broadcast, including: a memory and one or more processors;
[0014] The memory is used to store one or more programs;
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the live broadcast-based game management method as described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a non-volatile storage medium storing computer executable instructions, which, when executed by a computer processor, are used to execute the live broadcast-based game management method as described in the first aspect.
[0017] In the fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and at least one processor of a device reads and executes the computer program from the computer-readable storage medium, so that the device performs the live broadcast-based game management method as described in the first aspect.
[0018] In the embodiment of the present application, a first game panel is loaded based on the game resource configuration through a game service framework, a game screen is displayed in the first game panel based on the game parameters and the game status data provided by the game background through the first game container, the first game data is sent to the game background, and the room background is notified to enter the game mode, and the room background notifies each audience terminal in the live broadcast room to enter the game mode. The audience terminal can load a second game panel based on the game resource configuration, and a game screen is displayed in the second game panel based on the game parameters and the game status data provided by the game background through the second game container, and the second game data is sent to the game background. The game background can generate game status data based on the first game data and the second game data to realize game play in the live broadcast room, and the general process of game implementation can be integrated into the game service framework. The developers of the live broadcast room game only need to focus on the internal gameplay of the game, and the interaction with the game background can be realized through the game service framework, which effectively unifies the code framework, reduces code redundancy in game development, reduces the waste of development resources, and improves game management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the architecture of a game management system based on live broadcasting provided in an embodiment of the present application;
[0020] Figure 2 is a flow chart of a game management method based on live broadcast provided in an embodiment of the present application;
[0021] Figure 3 This is a schematic diagram of a live broadcast interface display in a single-person live broadcast mode provided in an embodiment of the present application;
[0022] Figure 4 This is a schematic diagram of a live broadcast interface display in a game mode provided by an embodiment of the present application;
[0023] Figure 5 This is a schematic diagram of a live broadcast interface display in a multi-person live broadcast mode provided by an embodiment of the present application;
[0024] Figure 6 This is a schematic diagram of a live broadcast interface display in another game mode provided in an embodiment of the present application;
[0025] Figure 7It is a structural diagram of a game management device based on live broadcast provided in an embodiment of the present application;
[0026] Figure 8 It is a structural diagram of a game management device based on live broadcast provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The above process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The above process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0028] The live broadcast-based game management method provided in this application can be applied to the management of interactive mini-games (such as guessing games, truth or false games, etc.) in live broadcast scenarios. It aims to integrate the general process of the game through the game service framework. The developers of the live broadcast room games only need to focus on the internal gameplay of the game. The interaction with the game background is realized through the game service framework, thereby unifying the code framework, reducing code redundancy in game development, reducing the waste of development resources, and improving game management efficiency. For traditional live broadcast game management solutions, the launch of new games requires the participation of multiple teams in development, such as defining new game logos in the room background to allow other people in the live broadcast room to perceive the entry and exit of game modes, defining game resource configuration in the basic background, and the design team determining the location and interaction of the new game panel, etc. Client live broadcast teams on different platforms need to connect to native games or web games and do business adaptation work in the live broadcast room (because they need to be changed to the client, the previously developed games also need to update the version online), and each new game requires the client to release the version, the old version cannot see the new game screen and cannot participate in the game, the game is launched slowly, and the user's game feedback cannot be collected quickly. Based on this, a game management method based on live broadcast is provided in an embodiment of the present application to solve the technical problems that game development of existing live broadcast game management solutions is prone to code redundancy, resulting in waste of development resources and low game management efficiency.
[0029] Figure 1A schematic diagram of the architecture of a game management system based on live broadcasting provided in an embodiment of the present application is given, such as Figure 1 As shown, the game management system provided by this solution includes a game management device based on live broadcast (such as the anchor end corresponding to the anchor in the live broadcast scene, or the audience end corresponding to the audience), a game backend, a room backend and a basic backend, wherein the user end is respectively communicated with the game backend, the room backend and the basic backend, and the game backend is communicated with the room backend. Optionally, the game backend, the room backend and the basic backend can be configured in the same server or in different servers.
[0030] The game background provided by this solution records the data processing logic (game play) of different games. The game background can be used to receive game data provided by the host and audience ends, and process the game data based on the data processing logic of the corresponding game and generate game status data, and send it to the host and audience ends through the room background, so that the host and audience ends can update the displayed game screen based on the game status data. The room background provided by this solution allows users to manage the live broadcast room and the user ends (including the host and audience ends) in the live broadcast room, as well as perform data communication for user end quality inspection in the live broadcast room. The basic background provided by this solution records the game resource configurations corresponding to different games. Optionally, the game resource configurations of different games can be identified by the game identification information (such as the game ID), and the corresponding game resource configurations can be obtained from the basic background based on the game identification information.
[0031] The game management device provided by this solution includes a game service framework (client game basic service framework) and a game container. The game service framework and the game container are connected in communication, and the game container can play games based on the set gameplay or game logic. Optionally, other business modules related to live broadcasting can also be configured in the game management device. Other business modules are connected in communication with the game service framework to adapt related businesses during the game mode.
[0032] Optionally, the game container provided by this solution includes a first game container configured on the anchor side and a second game container configured on the audience side. In one embodiment, the game container provided by this solution includes a web container (web container, WebView) and a native container (ViewContainer), and the native container may include native containers provided by different operating systems such as IOS and Android, wherein the web container may be connected to the game service framework through the js bridge layer. The web container may implement the gameplay of the game based on h5 technology, and optionally, the web container may implement the gameplay of the game based on the game running resources (game logic code, etc.) obtained by setting the address (URL), and the native container may implement the gameplay of the game based on pre-configured game running resources.
[0033] The live broadcast-based game management system provided by this solution can implement the live broadcast-based game management method provided by this solution through a game management device, and achieve corresponding technical effects.
[0034] Figure 2 A flowchart of a live broadcast-based game management method provided in an embodiment of the present application is given. The live broadcast-based game management method provided in an embodiment of the present application can be executed by a live broadcast-based game management device, which can be implemented in hardware and / or software and integrated in a live broadcast-based game management device.
[0035] The following description is made by taking a live broadcast-based game management device executing a live broadcast-based game management method as an example. Figure 2 , the game management method based on live broadcast includes:
[0036] S101: Obtain game resource configuration from the basic background through the game service framework, and determine the game parameters configured in the game preparation page.
[0037] The game resource configuration provided by this solution can be used to record the configuration method of the game screen, live screen and / or related services in the live broadcast mode (for example, position adjustment of the game screen, live broadcast screen and / or related services, display style setting, hidden mode setting, etc.); the game parameters can be used to record users who can participate in the game (for example, all viewers, microphone viewers, viewers who follow the anchor, viewers who reach the set fan level, etc.), game-related parameters (for example, the duration of a single game, the number of levels, etc.), etc., among which the parameter types of the game-related parameters can be configured based on different games.
[0038] Exemplarily, the game service framework provided by the present solution obtains game resource configuration from the basic background, wherein different games may correspond to different game resource configurations, and the game resource configuration may be obtained from the basic background when the game management device starts the corresponding live broadcast program, or when the game management device starts the live broadcast (for example, the anchor end starts the live broadcast) or the game management device enters the live broadcast room (for example, the audience end enters the live broadcast room).
[0039] In one embodiment, the game preparation page provided by this solution can be loaded in the game service framework based on the game container, wherein the game preparation page is the game internal page of the game container. Optionally, the basic background also records a game list corresponding to multiple games currently online. This solution obtains the game list and the game resource configuration corresponding to each game from the basic background through the game service framework, and displays the game entrance in the live broadcast interface through the game service framework (for example, the game entrance icon for entering the game mode is displayed in the live broadcast interface). After detecting the user's selection operation on the game entrance, the game list can be displayed in response to the selection operation, and the user can select the game to be opened through the game list.
[0040] After the user selects the game to be started, the game container loads the game preparation page of the selected game. The user can configure the game parameters through the game preparation page. After completing the configuration of the game parameters, the user can click the OK button in the game preparation page to confirm the game parameters configured for the selected game in the game preparation page. Optionally, after completing the configuration of the game parameters in the game preparation page, the game parameters can be sent to the game background, and the game background sends the game parameters to other audience terminals in the live broadcast room.
[0041] S102: Loading a first game panel based on game resource configuration through a game service framework, displaying a game screen in the first game panel based on game parameters and game status data provided by a game backend through a first game container, and sending first game data to the game backend.
[0042] This solution displays the game screen in the live broadcast interface through a game panel, wherein the game panel includes a first game panel displayed on the anchor end and a second game panel displayed on the audience end. Exemplarily, the first game panel is loaded through the game service framework, and the first game panel is configured based on the game resources (corresponding to the selected game).
[0043] In one embodiment, the game resource configuration may be used to indicate the display position, size, template, color, etc. of the game panel. Correspondingly, when loading the first game panel, the display position, size, template, color, etc. of the first game panel in the live broadcast interface are set based on the game resource configuration.
[0044] Optionally, after determining the game parameters configured in the game preparation page, the game management device enters the game mode, and the first game container generates corresponding first game data based on the game interaction operation of the user in the game, and sends it to the game background. The game background can generate game status data based on the game data provided by each user terminal (including the anchor terminal and the audience terminal) and the corresponding data processing logic of the game, and send it to each user terminal.
[0045] After the first game panel is loaded and displayed in the live broadcast interface, the first game container can generate a game screen based on the game parameters determined above and the game status data provided by the game background and the data processing logic corresponding to the game, and display the game screen in the first game panel. At this time, the anchor and the audience can watch the game screen displayed in the first game panel in the live broadcast interface.
[0046] In a possible embodiment, the game management method provided by the present solution may load the first game panel based on the game resource configuration through the game service framework, and perform live screen position adjustment and / or business adaptation.
[0047] Exemplarily, when entering the game mode, the first game panel is loaded through the game service framework, and the first game panel is set based on the game resource configuration, and based on the display position of the first game panel in the live broadcast interface, the position of the live broadcast screen in the live broadcast interface is adjusted, and / or the services in the live broadcast interface are adapted to the game mode. Among them, the service adaptation process can be understood as the adaptation process of the service identifiers (such as icons and controls corresponding to the services) provided by each service in the game mode, such as moving the position of the service identifier in the live broadcast interface, or hiding the service identifier.
[0048] For example, the live broadcast screen is scaled and adjusted to a position outside the first game panel. At the same time, some of the service logos are moved to a position outside the first game panel and the live broadcast screen after the move, or the service icons whose display positions conflict with the live broadcast screen after the move are hidden, so as to achieve service adaptation in the game mode. This solution reduces the conflict between the various display elements in the live broadcast interface by adjusting the position of the live broadcast screen and / or adapting the services, thereby ensuring the orderly display of the live broadcast interface and the live broadcast experience.
[0049] like Figure 3 A live broadcast interface display diagram in a single-player live broadcast mode is provided, wherein the live broadcast interface displays the live broadcast screen S11 of the anchor, which is displayed in full screen in the live broadcast interface, and the live broadcast interface displays the business control A and the game entrance B. The anchor can call out the game preparation page through the game entrance and configure the game parameters in the game preparation page. After completing the configuration of the game parameters, enter the game mode. Figure 4As shown in a schematic diagram of the live broadcast interface display in a game mode, after entering the game mode, the first game panel S2 is displayed in the live broadcast interface, and the game screen S21 is displayed in the first game panel S2, the original live broadcast screen S11 is reduced to the live broadcast screen S12, and moved to the bottom of the first game panel S2 for display, and because the display position of the business control A interferes with the display of the live broadcast screen S12, the business control A is hidden in the figure.
[0050] like Figure 5 A schematic diagram of a live broadcast interface display in a multi-person live broadcast mode is provided, in which the live broadcast interface displays the live broadcast screen S31 of the host and other connected users (which can be viewers or other hosts), and the display method is to display the live broadcast interface in different areas, and the live broadcast interface displays the service control A and the game entrance B. The host can call out the game preparation page through the game entrance and configure the game parameters in the game preparation page. After completing the configuration of the game parameters, the game mode is entered. Figure 6 As shown in the schematic diagram of the live broadcast interface display under another game mode provided, after entering the game mode, the first game panel S4 is displayed in the live broadcast interface, and the game screen S41 is displayed in the first game panel S4, the original live broadcast screen S31 is reduced to the live broadcast screen S32, and moved to the bottom of the first game panel S4 for display, and because the display position of the business control A interferes with the display of the live broadcast screen S32, the business control A is hidden in the figure.
[0051] In one embodiment, when the game screen is displayed in the first game panel through the first game container based on the game parameters and the game status data provided by the game background, the solution includes: receiving the game status data broadcast by the room background through the game service framework, and sending the game status data to the first game container, wherein the game status data broadcast by the room background is provided by the game background through data transparent transmission; and displaying the game screen in the first game panel through the first game container based on the game parameters and the game status data.
[0052] Exemplarily, after receiving the first game data provided by the first game container and the second game data provided by the second game container, the game background generates game status data based on the first game data and the second game data, and sends it to the room background through data transparent transmission. After receiving the game status data, the room background synchronously broadcasts the game status data to each user terminal in the live broadcast room (including the audience terminal and the game management device as the anchor terminal).
[0053] Furthermore, the game management device can receive the game status data broadcasted by the room background through the game service framework, and send the game status data to the first game container. After receiving the game status data, the first game container can update the game screen according to the game parameters and the game status data, and display it in the first game panel. At the same time, the audience end can receive the game status data broadcasted by the room background through the game service framework configured by itself, and send the game status data to the second game container. After receiving the game status data, the second game container can update the game screen according to the game parameters and the game status data, and display it in the second game panel.
[0054] This solution uses a unified broadcast data format to transparently transmit game status data from the room background to the game service framework. The room background and the game service framework do not need to pay attention to the interaction protocol between the specific game and its corresponding game background. The game can parse the game status data in a predetermined format to achieve real-time communication with other terminals. Optionally, the game background sets a scheduled full game status data and sends it to the room background, which is transparently transmitted to the game service framework. The game container can correct abnormal game status based on the full game status data, thereby reducing the confusion of game status due to network anomalies and ensuring the user's gaming and live broadcast experience.
[0055] In one embodiment, the first game container provided by the present solution includes a web page container and a native container. Based on this, when the present solution displays the game screen in the first game panel based on the game parameters and the game status data provided by the game background through the first game container, and sends the first game data to the game background, it is configured as follows: when the first game container is a web page container, the first game container displays the game screen in the first game panel based on the game parameters and the game status data provided by the game background based on the web page game implementation method, and sends the first game data to the game background; when the first game container is a native container, the first game container displays the game screen in the first game panel based on the game parameters and the game status data provided by the game background based on the native game implementation method, and sends the first game data to the game background.
[0056] Among them, the game container type required for game operation can be set during game development, and the game operation resources that realize different game play methods correspond to different game identification information. When the game is based on the web container operation, the game operation resources that realize the game play method can be configured in the game background or other service background. The game management device (anchor end) and the audience end can determine the download address (URL) of the game operation resource based on the game identification information, and load the game operation resource from the game background or other service background based on the download address, so that the web container can realize the game play based on the game operation resource. When the game is based on the native container operation, the game operation resource can be pre-packaged and installed in the game management device (anchor end) and the audience end. The native container in the game management device and the audience end can directly obtain the pre-configured game operation resource locally based on the game identification information and realize the game play. It can also be configured in the game background or other service background to realize the game play method. The game management device and the audience end can determine the download address of the game operation resource based on the game identification information, and load the game operation resource from the game background or other service background based on the download address, so that the native container can realize the game play based on the game operation resource.
[0057] Exemplarily, when the first game container for running the game is a web page container, the first game container will obtain game parameters and game status data provided by the game background based on the web page game implementation method, and display the game screen in the first game panel according to the game status data based on the game running resources corresponding to the game, and send the first game data to the game background based on the game interactive operations performed in the first game panel. When the first game container for running the game is a native container, the first game container will obtain game parameters and game status data provided by the game background based on the native game implementation method, and display the game screen in the first game panel according to the game status data based on the game running resources corresponding to the game, and send the first game data to the game background based on the game interactive operations performed in the first game panel. This solution improves the scalability and compatibility of game development by configuring web page containers and native containers respectively for the environments on which different games depend, and supports the access of native games and web page games at the same time.
[0058] S103: Notify the room backend to enter the game mode, and the room backend notifies each audience terminal in the live broadcast room to enter the game mode. When the audience terminal enters the game mode, the second game panel is loaded based on the game resource configuration, and the game screen is displayed in the second game panel based on the game parameters and the game status data provided by the game backend through the second game container, and the second game data is sent to the game backend. The game backend generates game status data based on the first game data and the second game data.
[0059] Exemplarily, after entering the game mode, the game management device (anchor end) notifies the room background to enter the game mode, and the room background sends a game mode notification to each audience end in the live broadcast room (live broadcast room) to enter the game mode.
[0060] In one embodiment, each audience terminal enters the game mode after receiving the game mode notification. When entering the game mode, the audience terminal will start the game service framework and the second game container configured in the audience terminal, load the second game panel in the game service framework based on the game resource configuration of the game being opened, and display the second game panel in the live broadcast interface of the audience terminal. The audience terminal can generate the game screen based on the game parameters and game status data provided by the game background through the second game container and the data processing logic corresponding to the game, and display the game screen in the second game panel. The audience can watch the game screen through the second game panel loaded in the live broadcast interface. At the same time, the audience can initiate a game interactive operation on the second game panel, and the second game container can generate the corresponding second game data based on the game interactive operation, and send the second game data to the game background.
[0061] In one embodiment, the host and the audience allowed to participate in the game can perform game interaction operations in the first game panel on the host end and the second game panel on the audience end, respectively, wherein the first game panel can generate first game data based on the host's game interaction operations and send it to the game background, and the second game panel can generate second game data based on the audience's game interaction operations and send it to the game background. After receiving the first game data and the second game data, the game background provided by this solution processes the first game data and the second game data based on the data processing logic of the corresponding game and generates game status data, and sends the game status data to the game management device (host end) and each audience end in the corresponding live broadcast room, so that the game management device can update the game screen displayed in the first game panel based on the game parameters and the latest game status data, and the audience end can update the game screen displayed in the second game panel based on the game parameters and the latest game status data.
[0062] In one embodiment, when notifying each audience terminal in the live broadcast room to enter the game mode, the room background provided by this solution is configured to: broadcast game identification information to each audience terminal in the live broadcast room to notify each audience terminal in the live broadcast room to enter the game mode. Based on this, when the audience terminal provided by this solution loads the second game panel based on the game resource configuration, it is configured to: obtain the game resource configuration based on the game identification provided by the room background, load the second game panel based on the game resource configuration, and adjust the live broadcast screen position and / or adapt the service.
[0063] Exemplarily, after determining the game parameters, the game management device provided by the present solution notifies the room background to enter the game mode based on the game identification information of the started game. After determining that the game management device enters the game mode, the game identification information of the game played in the live broadcast room is broadcast to each audience terminal in the live broadcast room of the game management device, thereby notifying each audience terminal in the live broadcast room to enter the game mode.
[0064] Each audience terminal in the live broadcast room enters the game mode when receiving the game identification information sent by the room background. When entering the game mode, the audience terminal obtains the corresponding game resource configuration according to the received game identification information, loads and sets the second game panel in the game service framework according to the game resource configuration, and displays the second game panel in the live broadcast interface of the audience terminal. At the same time, based on the display position of the second game panel in the live broadcast interface, the position of the live broadcast screen in the live broadcast interface is adjusted, and / or each service in the live broadcast interface is adapted to the service in the game mode.
[0065] In one embodiment, for a viewer terminal that enters a live broadcast room during a game, when entering the live broadcast room, the viewer terminal sends a room login signaling pointing to the live broadcast room to the room background, and the room background can return a reply message to the viewer terminal based on the room login signaling, and carry the game identification information in the reply message. After the viewer terminal determines to log in to the live broadcast room based on the reply message, it enters the game mode based on the game identification information in the reply message, obtains the game resource configuration based on the game identification, and loads the second game panel based on the game resource configuration, and adjusts the live broadcast screen position and / or adapts the service.
[0066] This solution notifies each audience terminal to enter the game mode by broadcasting game identification information to the audience terminal in the live broadcast room, thereby realizing lightweight transmission of data and effectively shortening the login response time of the room. In one embodiment, the game management device and audience terminal provided by this solution can pre-acquire the game resource configuration of each online game from the basic background and cache it locally when starting the live broadcast software or entering the live broadcast room. After the audience terminal obtains the game identification information, the game resource configuration of the game has been pre-pulled from the basic background and cached locally. The game resource configuration can be directly retrieved and obtained locally based on the game identification information, thereby speeding up the game loading speed. At the same time, the general characteristics of game management are realized through the game identification information. The system does not need to care about the specific game started and the internal implementation details of the game. It only needs to obtain the game resource configuration based on the game identification information and load the game based on the game resource configuration, thereby further speeding up the game loading speed and optimizing the user experience.
[0067] Among them, the service adaptation processing can be understood as the adaptation processing of the service identifiers (such as icons and controls corresponding to the services, etc.) provided by each service in the audience end in the game mode, such as moving the position of the service identifier in the live broadcast interface, or hiding the service identifier. For example, the actual live broadcast screen in the audience end (provided by the anchor end or the transcoding service) is scaled, and the scaled live broadcast screen is adjusted to a position outside the second game panel. At the same time, some of the service identifiers are moved to a position outside the second game panel and the live broadcast screen after the move, or the service icons whose display position conflicts with the live broadcast screen after the move are hidden, so as to achieve service adaptation in the game mode. This scheme reduces the conflict between the various display elements in the live broadcast interface by adjusting the position of the live broadcast screen and / or adapting the service in the audience end, thereby ensuring the orderly display of the live broadcast interface and the live broadcast experience.
[0068] In one embodiment, the first game container provided by the present solution includes a web page container and a native container. Based on this, when the audience end provided by the present solution displays the game screen in the second game panel based on the game parameters and the game status data provided by the game background through the second game container, it is configured as follows: when the second game container is a web page container, the second game container displays the game screen in the second game panel based on the game parameters and the game status data provided by the game background based on the web game implementation method, and sends the second game data to the game background; when the second game container is a native container, the second game container displays the game screen in the second game panel based on the game parameters and the game status data provided by the game background based on the native game implementation method, and sends the second game data to the game background.
[0069] Exemplarily, when the second game container for running the game is a web page container, the second game container will obtain the game parameters and the game status data provided by the game background based on the web page game implementation method, and display the game screen in the second game panel according to the game status data based on the game running resources corresponding to the game, and send the second game data to the game background based on the game interactive operation performed in the second game panel. When the second game container for running the game is a native container, the second game container will obtain the game parameters and the game status data provided by the game background based on the native game implementation method, and display the game screen in the second game panel according to the game status data based on the game running resources corresponding to the game, and send the second game data to the game background based on the game interactive operation performed in the second game panel. This solution configures the web page container and the native container respectively for the environment on which different games depend, and supports the access of native games and web page games at the same time, thereby improving the scalability and compatibility of game development. Web page games (such as h5 games) can be directly launched without publishing, and the old version of the user end can also play the newly launched game, which speeds up the launch of the game.
[0070] In a possible embodiment, the game management method provided by the present solution further includes, after notifying the room background to enter the game mode: upon receiving a game exit operation, closing the first game panel; notifying the room background to exit the game mode, and the room background notifying each audience terminal in the live broadcast room to exit the game mode, wherein the audience terminal closes the second game panel when exiting the game mode.
[0071] Exemplarily, when the anchor needs to end the game in the current live broadcast room, the game exit operation can be triggered by the end button or end control provided in the live broadcast interface or the first game panel. Correspondingly, when the game management device receives the game exit operation, it closes the first game panel through the game service framework, restores the display position and size of the live broadcast screen in the live broadcast interface, adapts to other services and releases resources, and notifies the room background to exit the game mode. When the room background receives the notification of exiting the game mode, it broadcasts the game mode exit notification to each audience terminal in the live broadcast room, thereby notifying each audience terminal in the live broadcast room to exit the game mode. Among them, when the audience terminal exits the game mode in response to the game mode exit notification, it closes the second game panel through the game service framework, restores the display position and size of the live broadcast screen in the live broadcast interface, adapts to other services and releases resources. When this solution receives the game exit operation, it closes the first game panel, and synchronously notifies other audience terminals to exit the game mode and close the second game panel synchronously through the room background. The room background and the game service framework do not need to pay attention to the specific game implementation, and synchronize the game progress between each user terminal more quickly to optimize the live broadcast experience.
[0072] In one possible embodiment, the game service framework may be version managed, that is, the minimum game service framework version required by the game is added to the game resource configuration of each game, and before entering the game mode, it is determined whether the version of the currently configured game service framework meets the minimum version requirement. If so, the game mode is continued to be entered, otherwise the user is prompted to update the game service framework to ensure the normal operation of the game during the live broadcast.
[0073] In the above, the first game panel is loaded based on the game resource configuration through the game service framework, the game screen is displayed in the first game panel based on the game parameters and the game status data provided by the game background through the first game container, the first game data is sent to the game background, and the room background is notified to enter the game mode, and the room background notifies each audience terminal in the live broadcast room to enter the game mode. The audience terminal can load the second game panel based on the game resource configuration, and the game screen is displayed in the second game panel based on the game parameters and the game status data provided by the game background through the second game container, and the second game data is sent to the game background. The game background can generate game status data based on the first game data and the second game data to realize game play in the live broadcast room. The general process of game implementation can be integrated into the game service framework. The developers of the live broadcast room game only need to focus on the internal gameplay of the game, and the interaction with the game background can be realized through the game service framework, which effectively unifies the code framework, reduces code redundancy in game development, reduces the waste of development resources, and improves game management efficiency.
[0074] Figure 7 Schematic diagram of a game management device based on live broadcast provided by an embodiment of the present application. Figure 7 The live broadcast-based game management device includes a game configuration module 71, a game loading module 72 and a mode notification module 73.
[0075] Among them, the game configuration module 71 is configured to obtain the game resource configuration from the basic background through the game service framework, and determine the game parameters configured in the game preparation page; the game loading module 72 is configured to load the first game panel based on the game resource configuration through the game service framework, display the game screen in the first game panel based on the game parameters and the game status data provided by the game background through the first game container, and send the first game data to the game background; the mode notification module 73 is configured to notify the room background to enter the game mode, and the room background notifies each audience terminal in the live broadcast room to enter the game mode, wherein, when the audience terminal enters the game mode, it loads the second game panel based on the game resource configuration, displays the game screen in the second game panel based on the game parameters and the game status data provided by the game background through the second game container, and sends the second game data to the game background, and the game background generates game status data based on the first game data and the second game data.
[0076] In the above, the first game panel is loaded based on the game resource configuration through the game service framework, the game screen is displayed in the first game panel based on the game parameters and the game status data provided by the game background through the first game container, the first game data is sent to the game background, and the room background is notified to enter the game mode, and the room background notifies each audience terminal in the live broadcast room to enter the game mode. The audience terminal can load the second game panel based on the game resource configuration, and the game screen is displayed in the second game panel based on the game parameters and the game status data provided by the game background through the second game container, and the second game data is sent to the game background. The game background can generate game status data based on the first game data and the second game data to realize game play in the live broadcast room. The general process of game implementation can be integrated into the game service framework. The developers of the live broadcast room game only need to focus on the internal gameplay of the game, and the interaction with the game background can be realized through the game service framework, which effectively unifies the code framework, reduces code redundancy in game development, reduces the waste of development resources, and improves game management efficiency.
[0077] Based on the above embodiment, when the game loading module 72 loads the first game panel based on the game resource configuration through the game service framework, it is configured to load the first game panel based on the game resource configuration through the game service framework, and adjust the live screen position and / or adapt the business.
[0078] Based on the above embodiment, when the game loading module 72 displays the game screen in the first game panel and sends the first game data to the game background through the first game container based on the game parameters and the game status data provided by the game background, the configuration is as follows:
[0079] In the case where the first game container is a web page container, the first game container displays the game screen in the first game panel based on the web page game implementation method according to the game parameters and the game status data provided by the game background, and sends the first game data to the game background;
[0080] In the case where the first game container is a native container, the first game container displays the game screen in the first game panel based on the native game implementation method according to the game parameters and the game status data provided by the game background, and sends the first game data to the game background.
[0081] On the basis of the above embodiment, when the room background notifies each audience terminal in the live broadcast room to enter the game mode, it is configured as follows:
[0082] Broadcasting game identification information to each audience terminal in the live broadcast room to notify each audience terminal in the live broadcast room to enter the game mode;
[0083] When the audience loads the second game panel based on the game resource configuration, it includes:
[0084] The game resource configuration is obtained based on the game identifier provided by the room background, and the second game panel is loaded based on the game resource configuration, and the live screen position is adjusted and / or the business is adapted.
[0085] Based on the above embodiment, when the game loading module 72 displays the game screen in the first game panel based on the game parameters and the game status data provided by the game background through the first game container, it is configured as follows:
[0086] Receive game status data broadcast by the room background through the game service framework, and send the game status data to the first game container, wherein the game status data broadcast by the room background is provided by the game background through data transparent transmission;
[0087] The game screen is displayed in the first game panel based on the game parameters and the game status data through the first game container.
[0088] On the basis of the above embodiment, when the audience terminal displays the game screen in the second game panel through the second game container based on the game parameters and the game status data provided by the game background, the configuration is as follows:
[0089] In the case where the second game container is a web page container, the second game container displays the game screen in the second game panel based on the web page game implementation method according to the game parameters and the game status data provided by the game background, and sends the second game data to the game background;
[0090] When the second game container is a native container, the second game container displays the game screen in the second game panel based on the native game implementation method according to the game parameters and the game status data provided by the game background, and sends the second game data to the game background.
[0091] On the basis of the above-mentioned embodiment, the game management device based on live broadcast further includes a game exit module and an exit notification module.
[0092] Among them, the game exit module is configured to close the first game panel when receiving the game exit operation; the exit notification module is configured to notify the room background to exit the game mode, and the room background notifies each audience terminal in the live broadcast room to exit the game mode, wherein the audience terminal closes the second game panel when exiting the game mode.
[0093] It is worth noting that in the above-mentioned embodiment of the game management device based on live broadcast, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0094] The embodiment of the present application also provides a game management device based on live broadcast, and the game management device based on live broadcast can be integrated with the game management device based on live broadcast provided in the embodiment of the present application. Figure 8 Schematic diagram of a game management device based on live broadcast provided by an embodiment of the present application. Figure 8 The game management device based on live broadcast includes: an input device 83, an output device 84, a memory 82 and one or more processors 81; the memory 82 is used to store one or more programs; when one or more programs are executed by one or more processors 81, the one or more processors 81 implement the game management method based on live broadcast as provided in the above embodiment. The game management device, equipment and computer based on live broadcast provided above can be used to execute the game management method based on live broadcast provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0095] The embodiments of the present application also provide a non-volatile storage medium storing computer executable instructions, which are used to execute the live broadcast-based game management method provided in the above embodiments when executed by a computer processor. Of course, the non-volatile storage medium storing computer executable instructions provided in the embodiments of the present application, whose computer executable instructions are not limited to the live broadcast-based game management method provided above, can also execute the related operations in the live broadcast-based game management method provided in any embodiment of the present application. The live broadcast-based game management device, equipment and storage medium provided in the above embodiments can execute the live broadcast-based game management method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the live broadcast-based game management method provided in any embodiment of the present application.
[0096] On the basis of the above embodiments, the embodiments of the present application also provide a computer program product. The technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer program product is stored in a storage medium, including a number of instructions for enabling a computer device, a mobile terminal or a processor therein to execute all or part of the steps of the live broadcast-based game management method provided in each embodiment of the present application.
Claims
1. A game management method based on live broadcast, characterized in that: include: Obtain game resource configuration from the basic background through the game service framework, and determine the game parameters configured in the game preparation page; Loading a first game panel based on the game resource configuration through a game service framework, receiving game status data broadcasted by a room background through the game service framework, and sending the game status data to a first game container, wherein the game status data broadcasted by the room background is provided by the game background through data transparent transmission; displaying a game screen in the first game panel based on the game parameters and the game status data through the first game container, and sending first game data to the game background; Notify the room backend to enter the game mode, and the room backend notifies each audience terminal in the live broadcast room to enter the game mode. When the audience terminal enters the game mode, the second game panel is loaded based on the game resource configuration, and the game screen is displayed in the second game panel through the second game container based on the game parameters and the game status data provided by the game backend, and the second game data is sent to the game backend, and the game backend generates game status data based on the first game data and the second game data.
2. The game management method based on live broadcast according to claim 1, characterized in that: The loading of the first game panel based on the game resource configuration through the game service framework includes: The first game panel is loaded based on the game resource configuration through the game service framework, and the live screen position is adjusted and / or the business is adapted.
3. The game management method based on live broadcast according to claim 1, characterized in that: The displaying the game screen in the first game panel based on the game parameters and the game status data through the first game container, and sending the first game data to the game background, includes: In the case where the first game container is a web page container, the first game container displays a game screen in the first game panel based on the web page game implementation mode according to the game parameters and the game status data provided by the game backend, and sends first game data to the game backend; In the case where the first game container is a native container, the first game container displays the game screen in the first game panel based on the native game implementation method, according to the game parameters and the game status data provided by the game background, and sends the first game data to the game background.
4. The game management method based on live broadcast according to claim 1, characterized in that: When the room backend notifies each audience terminal in the live broadcast room to enter the game mode, it includes: Broadcasting game identification information to each audience terminal in the live broadcast room to notify each audience terminal in the live broadcast room to enter the game mode; When the audience terminal loads the second game panel based on the game resource configuration, it includes: The game resource configuration is obtained based on the game identifier provided by the room background, and the second game panel is loaded based on the game resource configuration, and the live screen position is adjusted and / or the business is adapted.
5. The game management method based on live broadcast according to claim 1, characterized in that: When the audience terminal displays the game screen in the second game panel based on the game parameters and the game status data provided by the game background through the second game container, it includes: In the case where the second game container is a web page container, the second game container displays the game screen in the second game panel based on the web page game implementation mode according to the game parameters and the game status data provided by the game background, and sends the second game data to the game background; In the case where the second game container is a native container, the second game container displays the game screen in the second game panel based on the native game implementation method, according to the game parameters and the game status data provided by the game background, and sends the second game data to the game background.
6. The game management method based on live broadcast according to claim 1, characterized in that: After notifying the room background to enter the game mode, it also includes: When receiving a game exit operation, closing the first game panel; The room backend is notified to exit the game mode, and the room backend notifies each audience terminal in the live broadcast room to exit the game mode, wherein the audience terminal closes the second game panel when exiting the game mode.
7. A game management device based on live broadcast, characterized in that: It includes game configuration module, game loading module and mode notification module, among which: The game configuration module is configured to obtain game resource configuration from the basic background through the game service framework and determine the game parameters configured in the game preparation page; The game loading module is configured to load a first game panel based on the game resource configuration through a game service framework, receive game status data broadcast by a room background through the game service framework, and send the game status data to a first game container, wherein the game status data broadcast by the room background is provided by the game background through data transparent transmission; display a game screen in the first game panel based on the game parameters and the game status data through the first game container, and send the first game data to the game background; The mode notification module is configured to notify the room background to enter the game mode, and the room background notifies each audience terminal in the live broadcast room to enter the game mode. When the audience terminal enters the game mode, the second game panel is loaded based on the game resource configuration, and the game screen is displayed in the second game panel through the second game container based on the game parameters and the game status data provided by the game background, and the second game data is sent to the game background, and the game background generates game status data based on the first game data and the second game data.
8. A game management device based on live broadcast, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the live broadcast-based game management method as described in any one of claims 1-6.
9. A non-volatile storage medium storing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to execute the live broadcast-based game management method as described in any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the live broadcast-based game management method described in any one of claims 1-6 is implemented.
