Game viewing method, device, electronic device and storage medium
By sending game screen and voice data during the game viewing process, the problem of spectators being unable to hear the game voice is solved, and the participation and interactivity of the viewers are improved.
Patent Information
- Application Number
- CN202111350570.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2041-11-15
AI Technical Summary
When watching a game, the spectators can only see the game screen of the game players but cannot hear the game voice, resulting in poor participation and interactivity.
By receiving the viewing request of the first terminal device, the viewing voice status of the target second terminal device is determined, and when the conditions are met, its game screen data and voice data are sent to the first terminal device to achieve game screen rendering and voice playback.
It improves the participation and interactivity of spectators, enables them to hear the voices of gamers, and enhances their understanding and experience of the game.
Smart Images

Figure CN114011067B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a game viewing method, device, electronic device, and storage medium. Background Art
[0002] Currently, most competitive or survival games require communication between teammates, thus providing team and nearby channels. However, in both team and nearby channels, only other players can hear the current player's voice. This is particularly true when viewing a game from a spectator perspective, where spectators can only see the current player's game screen and cannot hear their voices. This reduces engagement and interactivity for both spectators and other viewers. Summary of the Invention
[0003] In view of this, the purpose of this application is to provide a game viewing method, device, electronic device and storage medium, which can receive a viewing request from a first terminal device, and send the acquired game screen data and game voice data to the first terminal device when the voice viewing conditions are met, so that the first terminal device can hear the player's voice while watching the game, thereby improving the viewing participation and interactivity of the viewing users.
[0004] An embodiment of the present application also provides a game watching method, including: receiving a watching request from a first terminal device, the watching request carrying a watching identifier, the watching identifier being used to indicate a target second terminal device that the first terminal device requests to watch; determining the watching voice status of the target second terminal device indicated by the watching identifier; if the watching voice status of the target second terminal device meets the voice watching condition, obtaining game screen data and game voice data of the target second terminal device; sending the obtained game screen data and game voice data to the first terminal device, so as to render the game screen of the second terminal device according to the game screen data in the first terminal device, and play the game voice of the target second terminal device according to the game voice data.
[0005] Preferably, the spectator voice status of the target second terminal device is determined in the following manner: based on a stored terminal voice configuration table, the spectator voice status of the target second terminal device is obtained, the terminal voice configuration table including the terminal device and the spectator voice status corresponding to the terminal device.
[0006] Preferably, the game watching method also includes: receiving watching voice information from the target second terminal device, the watching voice information being generated based on the user's operation on the watching voice control in the game interface of the target second terminal device; and updating the watching voice status corresponding to the target second terminal device stored in the terminal voice configuration table based on the received watching voice information.
[0007] Preferably, the spectator voice information includes a first voice identifier, which indicates that the spectator voice status of the target second terminal device is in the on state, wherein the step of updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table according to the received spectator voice information includes: updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table to the on state indicated by the first voice identifier; or, the spectator voice information includes a second voice identifier, which indicates that the spectator voice status of the target second terminal device is in the off state, wherein the step of updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table according to the received spectator voice information includes: updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table to the off state indicated by the second voice identifier.
[0008] Preferably, the game viewing method further includes: determining the viewing voice status of the first terminal device, wherein if the viewing voice status of the first terminal device and the target second terminal device both meet the voice viewing conditions, then obtaining the game screen data and game voice data of the target second terminal device.
[0009] Preferably, the spectator voice status of the first terminal device is determined by at least one of the following methods: obtaining the spectator voice status of the first terminal device by parsing the spectator request, the spectator request carries a spectator identifier and a voice identifier, and the voice identifier is used to indicate the spectator voice status of the first terminal device; obtaining the spectator voice status of the first terminal device based on the stored terminal voice configuration table.
[0010] Preferably, the voice identifier carried in the viewing request indicates the default voice state of the first terminal device, and / or the voice viewing condition includes that the viewing voice states of the first terminal device and the target second terminal device are both in the turned-on state.
[0011] Preferably, the game viewing method further includes: if the viewing voice status of at least one of the first terminal device and the target second terminal device does not meet the voice viewing condition, obtaining game screen data of the target second terminal device.
[0012] Preferably, the game watching method also includes: in the process of the first terminal device watching the target second terminal device, detecting a switching request of the first terminal device, the switching request is used to indicate switching from the target second terminal device to the other second terminal device; if the switching request of the first terminal device is detected, determining the historical viewing voice status of the first terminal device and the viewing voice status of the other second terminal devices respectively, the historical viewing voice status being the viewing voice status of the first terminal device when the first terminal device historically watched the other second terminal devices; if the historical viewing voice status of the first terminal device and the viewing voice status of the other second terminal devices both meet the voice watching conditions, obtaining the game screen data and game voice data of the other second terminal devices; and sending the obtained game screen data and game voice data to the first terminal device.
[0013] Preferably, the step of obtaining the game screen data and game voice data of the target second terminal device includes: obtaining the game screen data and game voice data of the target second terminal device from a game database, wherein the game database stores game screen data and / or game voice data corresponding to multiple second terminal devices, and the game database is constructed in the following manner: after multiple second terminal devices participating in the current game enter the current game, determining the spectator voice status of each second terminal device; for the second terminal device whose spectator voice status is on, obtaining the game screen data and game voice data from the second terminal device and storing them; for the second terminal device whose spectator voice status is off, obtaining the game screen data from the second terminal device and storing them.
[0014] Preferably, the game watching method also includes: for each second terminal device, counting the number of times the watching voice status of the second terminal device is turned on during the current game; after the current game is over, the second terminal device whose counted number of activations meets the replay condition is used as the replay terminal device, and the game screen data and / or game voice data corresponding to the replay terminal device is stored as the game replay data of the current game.
[0015] Preferably, the game watching method further includes: when receiving watching voice information from the target second terminal device, generating prompt information and sending it to the first terminal device, the prompt information including text information indicating that the watching voice status of the target second terminal device is switched from one of the on state or the off state to the other.
[0016] Preferably, the game viewing method further includes: when viewing voice information is received from the target second terminal device, generating identification information and sending it to the first terminal device, the identification information is displayed in the viewing interface of the first terminal device, and is used to indicate the viewing voice status of the target second terminal device.
[0017] Preferably, the game voice data includes in-game voice data and out-game voice data, the in-game voice data includes at least one of game background sound data, game character sound data, and game special effect sound data, and the out-game voice data includes the player's voice data collected through the second terminal device.
[0018] The present application also provides a game viewing device, comprising:
[0019] A receiving module, configured to receive a viewing request from a first terminal device, wherein the viewing request carries a viewing identifier, and the viewing identifier is used to indicate a target second terminal device that the first terminal device requests to view the game;
[0020] A judgment module, configured to determine the spectator voice status of the target second terminal device indicated by the spectator identifier;
[0021] an acquisition module, configured to acquire game screen data and game voice data of the target second terminal device if the spectating voice status of the target second terminal device meets the voice spectating condition;
[0022] The sending module is used to send the acquired game screen data and game voice data to the first terminal device, so as to render the game screen of the second terminal device according to the game screen data in the first terminal device, and play the game voice of the target second terminal device according to the game voice data.
[0023] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned game viewing method are performed.
[0024] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the game viewing method described above are executed.
[0025] The game viewing method, device, electronic device, and storage medium provided in the embodiments of the present application receive a viewing request from a first terminal device, determine the target second terminal device requested by the first terminal device to view the game, and determine the viewing voice status of the target second terminal device. If the viewing voice status of the target second terminal device meets the voice viewing conditions, the game screen data and game voice data of the target second terminal device are sent to the first terminal device, so that the first terminal device renders the game screen of the second terminal device based on the game screen data and plays the game voice of the target second terminal device based on the game voice data. Compared with the existing technology in which only teammates or nearby players in the same game can hear each other's game voice, users in the viewing perspective can also hear the game voice of the current viewing player, thereby improving the viewing participation and interactivity of the viewing users.
[0026] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 A flowchart of a game viewing method provided by an embodiment of the present application is shown;
[0029] Figure 2 A flowchart of a method for updating the voice status of a spectator provided in an embodiment of the present application is shown;
[0030] Figure 3 A flowchart of a method for switching spectator objects provided by an embodiment of the present application is shown;
[0031] Figure 4 A flowchart of a method for obtaining game data provided by an embodiment of the present application is shown;
[0032] Figure 5 A flowchart of a method for providing a voice prompt for watching a game according to an embodiment of the present application is shown;
[0033] Figure 6 A schematic diagram of the structure of a game viewing device provided in an embodiment of the present application is shown;
[0034] Figure 7 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for which protection is claimed, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work falls within the scope of protection of the present application.
[0036] Game interface:
[0037] Refers to the interface corresponding to the application provided or displayed through a graphical user interface, which includes a UI interface and a game screen for players to interact. In an optional embodiment, the UI interface may include game controls (such as skill controls, movement controls, function controls, etc.), indicators (such as direction indicators, character indicators, etc.), information display areas (such as the number of kills, match time, etc.), or game setting controls (such as system settings, stores, gold coins, etc.). In an optional embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device, and the game screen may include virtual objects such as game characters, NPC characters, AI characters, etc. that execute game logic in the virtual scene.
[0038] Observer users:
[0039] Spectators do not participate in the game in the game room, but can instead watch any character in the current game room. The spectator's terminal device displays a spectator interface, where they can switch between characters. There are no restrictions on how spectators can access the spectator interface.
[0040] Game Characters:
[0041] A virtual object that can be controlled by the player and moves within the game environment. In some video games, this can also be called a Shikigami character or a hero character. A player character can be at least one of several different forms, including an avatar, a virtual animal, an anime character, or a virtual vehicle. A preset number of game characters can be controlled by the player in a single game room.
[0042] In an optional embodiment, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a gaming method based on cloud computing. In the cloud gaming operation mode, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the information processing method are completed on the cloud gaming server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, TV, computer, PDA, etc.; but the terminal device for information processing is the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation instructions to the cloud gaming server. The cloud gaming server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0043] In an optional embodiment, the terminal device can be a local terminal device. Taking a game as an example, the local terminal device stores the game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in various ways, for example, it can be rendered and displayed on the terminal display, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface including the game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0044] In an optional embodiment, the game voice data includes in-game voice data and out-of-game voice data. The in-game voice data may include at least one of game background sound data, game character sound data, and game special effect sound data. The out-of-game voice data includes the player's voice data collected by the second terminal device. Specifically, the player's voice data may be collected by the microphone of the second terminal device.
[0045] In one embodiment of the present application, a game system may include a first terminal device, a second terminal device, and a game server. The first terminal device and the second terminal device each communicate with the server to implement data communication. In this embodiment, the first terminal device and the second terminal device are each installed with a client that executes the game viewing method provided in this application, and the game server is the server-side that executes the game viewing method provided in this application. Through the client, the first terminal device and the second terminal device can each communicate with the game server.
[0046] First, the application scenarios to which this application is applicable are introduced. This application can be applied to the field of game viewing.
[0047] Research has found that most competitive or survival games require communication between teammates, hence the use of team and nearby channels. However, in both team and nearby channels, only other players can hear the current player's voice. This is particularly true when viewing a game from a spectator perspective, where spectators can only see the current player's game screen and cannot hear their voices. This reduces engagement and interactivity for both spectators and other viewers.
[0048] Based on this, an embodiment of the present application provides a game viewing method, so that the first terminal device can hear the player's voice while watching the game, thereby improving the viewing participation and interactivity of the viewing users.
[0049] See also Figure 1 , Figure 1 This is a flow chart of a method for watching a game provided by an embodiment of the present application. Figure 1 As shown in , the game viewing method provided by the embodiment of the present application includes:
[0050] S101: Receive a viewing request from a first terminal device, where the viewing request carries a viewing identifier, and the viewing identifier is used to indicate a target second terminal device that the first terminal device requests to view the game.
[0051] Here, the first terminal device may be a terminal device used by a spectator user, and is used to display a viewing interface, through which the game screen of any game player in the same game can be viewed. The viewing request here may be used to request the game server to view the game screen of the game player using the target second terminal device on the viewing interface of the first terminal device. The game screen here may be a game screen from a first-person perspective or a game screen from a third-person perspective, and the spectator user may switch between first-person perspective viewing and third-person perspective viewing through the viewing interface. The second terminal device here is a terminal device used by the game player. The viewing identifier may be a unique identity identifier (UID) of the second terminal device, and is used to indicate the terminal device of the game player requested to be viewed by the first terminal device.
[0052] Among them, the spectator user can also select any game player in the same game through the viewing interface and watch the game player. At this time, a viewing request is generated through the first terminal device and sent to the game server. The game server determines the target second terminal device that the first terminal device requests to watch through the viewing request.
[0053] S102: Determine the spectator voice status of the target second terminal device indicated by the spectator identifier.
[0054] In this step, the spectator voice status refers to the status of the spectator voice channel provided by the game client on the second terminal device. The game player can control the opening or closing of the spectator voice channel through the game interface. For example, in addition to the icons of the team voice channel and the nearby voice channel, the edge of the game interface corresponding to the game player also displays an icon for the spectator voice channel. The game player can turn the spectator voice status on or off by touching the icon of the spectator voice channel. If a game player turns on the spectator voice channel, the game player's second terminal device can send the game voice data collected by the microphone of the second terminal device to the first terminal device via the game server.
[0055] Specifically, the game server may determine the spectator voice status of the target second terminal device in the following manner:
[0056] The game server obtains the spectator voice status of the target second terminal device based on the stored terminal voice configuration table.
[0057] The terminal voice configuration table here may include a unique identity identifier of the terminal device and a corresponding viewing voice status of the terminal device.
[0058] In this way, the game server can use a pre-configured terminal voice configuration table to find the spectator voice status of a second terminal device based on the unique identifier of the second terminal device. At the start of the game, the spectator voice status of all second terminal devices can be disabled by default. During the game, the game server can modify the spectator voice status of the corresponding second terminal device in the terminal voice configuration table based on the game player's activation or deactivation of their spectator voice channel.
[0059] S103: If the spectating voice status of the target second terminal device meets the voice spectating condition, obtain the game screen data and game voice data of the target second terminal device.
[0060] The game screen data here is used to render the game screen on the target second terminal device, and the game voice data here includes in-game voice data and out-of-game voice data. The in-game voice data here is used to present game sound effects, and may include, for example, at least one of game background sound data, game character sound data, or game special effect sound data, and may be preset within the game server. The out-of-game voice data here is used to present the player's voice, and may include, for example, real-time player voice data or voice data collected via the microphone of the target second terminal device. It is understood that the voice data here can be used to communicate with other players. By collecting this voice data, players can also use it in in-game voice communication channels such as team channels or nearby channels to communicate in-game.
[0061] In this step, if the game server determines that the spectator voice state of the target second terminal device is on, it is determined that the voice spectator condition is met, and the game server obtains the game screen data and game voice data of the target second terminal device.
[0062] Among them, the game screen data and game voice data of the second terminal device can be pre-stored in the game server, and the game server searches for the corresponding game screen data and game voice data in the memory; the game server can also determine that the target second terminal device meets the voice viewing conditions, and then send a data acquisition request to the target second terminal device to obtain the game screen data and game voice data of the target second terminal device. It can be understood that the game screen data and game voice data here are synchronized.
[0063] S104. Send the acquired game screen data and game voice data to the first terminal device, so that the game screen of the second terminal device is rendered in the first terminal device according to the game screen data, and the game voice of the target second terminal device is played according to the game voice data.
[0064] Specifically, the game server sends the acquired game screen data and game voice data to the first terminal device. The first terminal device can render the game screen of the second terminal device based on the game screen data. The spectator can watch the game screen of the second terminal device through the viewing interface of the first terminal device. At the same time, the first terminal device plays the game voice of the target second terminal device based on the game voice data. In this way, when watching any game player, if the player also opens the game voice channel, the spectator can also hear the game player's voice communication, which can help the spectator understand the game player's game operation. At the same time, if the spectator opens the live broadcast, the spectator can hear the game player's voice while seeing the game player's game screen. The audience can better understand the game player's ideas and game strategies, thereby improving the spectator's participation in the game.
[0065] The game spectating method provided in an embodiment of the present application receives a spectating request from a first terminal device, determines the target second terminal device for the spectating request, and determines the spectating voice status of the target second terminal device. If the spectating voice status of the target second terminal device meets the voice spectating conditions, the game screen data and game voice data of the target second terminal device are sent to the first terminal device, so that the first terminal device renders the game screen of the second terminal device based on the game screen data and plays the game voice of the target second terminal device based on the game voice data. Compared to the existing technology where only teammates or nearby players in the same game can hear each other's game voice, users in the spectating perspective can also hear the game voice of the current spectating player, thereby improving the spectating user's participation and interactivity in the game.
[0066] See also Figure 2 , Figure 2 This is a flow chart of a method for updating the spectator voice status provided in another embodiment of the present application. Figure 2 As shown in , the method for updating the spectator voice status provided by the embodiment of the present application includes:
[0067] S201: Receive spectator voice information from a target second terminal device, where the spectator voice information is generated based on a user's operation on a spectator voice control in a game interface of the target second terminal device.
[0068] During the game, a game player can proactively change the spectator voice status, for example by touching the spectator voice control on the game interface or pressing the T key on the keyboard, to change the current spectator voice status from on or off. At this point, the second terminal device generates spectator voice information and sends it to the game server. The spectator voice information indicates the spectator voice status of the second terminal device and may include a unique identifier for the second terminal device and updated spectator voice status information for the second terminal device, such as when the spectator voice status of a second terminal device is updated from on to off, or when the spectator voice status of a second terminal device is currently updated to off.
[0069] S202: Update the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table according to the received spectator voice information.
[0070] The game server can update the terminal voice configuration table through the spectator voice information, so that the current spectator voice status of the target second terminal device can be confirmed at any time through the terminal voice configuration table.
[0071] Furthermore, the spectator voice information may include a first voice identifier, the first voice identifier indicating that the spectator voice status of the target second terminal device is turned on, wherein the step of updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table according to the received spectator voice information includes:
[0072] The spectator voice state corresponding to the target second terminal device stored in the terminal voice configuration table is updated to the on state indicated by the first voice identifier.
[0073] Alternatively, the spectator voice information includes a second voice identifier, the second voice identifier indicating that the spectator voice status of the target second terminal device is in an off state, wherein the step of updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table according to the received spectator voice information includes:
[0074] The spectator voice state corresponding to the target second terminal device and stored in the terminal voice configuration table is updated to the closed state indicated by the second voice identifier.
[0075] In this way, the current spectator voice status of the target second terminal device can be quickly determined through the first voice identifier or the second voice identifier in the spectator voice information, and the spectator voice status corresponding to the target second terminal device in the terminal voice configuration table can be updated.
[0076] Furthermore, in step S103, after determining that the spectator voice status of the target second terminal device meets the voice spectator condition, the spectator voice status of the first terminal device can also be determined. If the spectator voice status of the first terminal device and the target second terminal device both meet the voice spectator condition, the game screen data and game voice data of the target second terminal device are obtained.
[0077] It is understood that if the spectator voice status of both the first terminal device and the second terminal device is turned on, the game screen data and game voice data of the target second terminal device are obtained and sent to the first terminal device. The first terminal device then renders the game screen of the second terminal device based on the game screen data and plays the game voice of the target second terminal device based on the game voice data.
[0078] Specifically, the spectator voice status of the first terminal device may be determined by at least one of the following methods:
[0079] The spectator voice status of the first terminal device is obtained by parsing the spectator request, which carries a spectator identifier and a voice identifier. The voice identifier is used to indicate the spectator voice status of the first terminal device. Alternatively, the spectator voice status of the first terminal device can be obtained based on a stored terminal voice configuration table.
[0080] The voice identifier here indicates the spectator voice status of the first terminal device. Specifically, the spectator voice status of the first terminal device may be enabled by default. The spectator user can change the spectator voice status of the first terminal device in the spectator interface. The terminal voice configuration table corresponding to the spectator voice status of the first terminal device can be the same table as the terminal voice configuration table corresponding to the second terminal device, or they can be two different terminal voice configuration tables.
[0081] It is understood that the spectator request sent by the first terminal device may also include the spectator voice status of the first terminal device. The game server determines the spectator voice status of the first terminal device based on the voice identifier and simultaneously determines the spectator voice status of the target second terminal device based on the spectator identifier and the terminal voice configuration table. When the spectator voice status of both the first and second terminal devices is enabled, the game screen data and game voice data of the target second terminal device are obtained and sent to the first terminal device. Alternatively, the game server directly determines the spectator voice status of the first terminal device based on the stored terminal voice configuration table.
[0082] Furthermore, in step S103, if it is determined that the target second terminal device's voice status does not meet the voice viewing conditions, or if it is determined that the first terminal device's voice status is off, only the game screen data of the target second terminal device is obtained and sent to the first terminal device. It is understandable that in this case, the spectating user can only view the game screen through the viewing perspective of the first terminal device.
[0083] See also Figure 3 , Figure 3 This is a flow chart of a method for switching spectator objects provided in another embodiment of the present application. Figure 3 As shown in , the method for switching spectator objects provided in the embodiment of the present application includes:
[0084] S301. During a process in which a first terminal device watches a target second terminal device, a switching request of the first terminal device is detected, where the switching request is used to instruct a switch from watching the target second terminal device to watching another second terminal device.
[0085] Specifically, the spectator can switch the game player he wants to watch on the viewing interface, and the first terminal device generates a switching request and sends it to the game server. The switching request here can include the unique identity of the other second terminal device corresponding to the game player he wants to watch.
[0086] S302. If a switching request of the first terminal device is detected, determine the historical viewing voice status of the first terminal device and the viewing voice status of other second terminal devices respectively, where the historical viewing voice status is the viewing voice status of the first terminal device when the first terminal device historically views other second terminal devices.
[0087] Specifically, the game server can determine the corresponding other second terminal devices based on the switching request, and determine the historical viewing voice status of the first terminal device and the viewing voice status of the other second terminal devices. The historical viewing voice status here can be the status of the game voice channel when the first terminal device was watching the previous game player.
[0088] S303: If the historical viewing voice status of the first terminal device and the viewing voice status of other second terminal devices both meet the voice viewing condition, obtain game screen data and game voice data of other second terminal devices.
[0089] Specifically, when the game server determines that the spectator voice status of the first terminal device and the other second terminal devices are both turned on, the game screen data and game voice data of the other second terminal devices can be obtained according to the unique identity.
[0090] S304: Send the acquired game screen data and game voice data to the first terminal device.
[0091] Specifically, the game server sends the game screen data and game audio data corresponding to the other second terminal device to the first terminal device, so that the first terminal device can render the game screen of the second terminal device based on the game screen data and play the game audio of the target second terminal device based on the game audio data. This allows the first terminal device to watch other game players and hear their conversations, thus switching the viewing target.
[0092] See also Figure 4 , Figure 4 This is a flow chart of a method for obtaining game data provided by another embodiment of the present application. Figure 4 As shown, the method for obtaining game data provided in the embodiment of the present application includes:
[0093] The game screen data and game voice data of the target second terminal device are obtained from the game database.
[0094] The game database stores game screen data and / or game voice data corresponding to multiple second terminal devices, and the game database is constructed in the following manner:
[0095] S401. After a plurality of second terminal devices participating in a current game enter the current game, determine the spectator voice status of each second terminal device.
[0096] Specifically, when the current game starts, the game server can send a request to all second terminal devices to determine the viewing voice status of the second terminal devices. Here, the viewing voice channel of the second terminal device at the start of the game can be closed by default.
[0097] S402: For a second terminal device whose spectator voice state is turned on, obtain game screen data and game voice data from the second terminal device and store them.
[0098] The game server sends a request to the second terminal device whose spectator voice state is turned on to obtain the game screen data and game voice data of the second terminal in real time and store them.
[0099] S403: For a second terminal device whose spectator voice status is turned off, obtain game screen data from the second terminal device and store the data.
[0100] For the second terminal device whose spectator voice status is off, the game server sends a request to obtain and store the game screen data.
[0101] Specifically, the game screen data and game voice data stored in the game library can be used to form a game screen recording video after the game is over, so that players or spectators can review the game. While watching the game screen, they can also hear the voice of the game players, which can further understand the players' operating ideas and improve the efficiency of game review.
[0102] Furthermore, each player on the second terminal device can choose to enable this feature before the game begins, determining whether to generate a screen recording of their game after the game ends. It is also possible to record the game of all players and access any player's screen recording through the spectator on the first terminal device. These screen recordings can be used for game replays or to provide footage for other game competition videos.
[0103] Furthermore, for each second terminal device, the number of times the spectator voice status of the second terminal device was turned on during the current game round is counted. After the current game round ends, the second terminal device whose activation number meets the replay condition is used as the replay terminal device, and the game screen data and / or game voice data corresponding to the replay terminal device is stored as the game replay data of the current game round.
[0104] Specifically, for each second terminal device, each time the spectator voice channel is opened, the game server increments the opening count by one. After the current game is over, the second terminal device with a greater than preset opening count is determined as a playback terminal device. The playback terminal device refers to the second terminal device that stores game screen data and / or game audio data, which is stored in the game database. After the game is over, the game screen data and / or game audio data are used to generate a corresponding game screen recording video of the second terminal device.
[0105] See also Figure 5 , Figure 5 This is a flow chart of a method for providing a voice prompt for watching a game in another embodiment of the present application. Figure 5 As shown, the method for providing a game viewing voice prompt provided by an embodiment of the present application includes:
[0106] S501: When receiving a game watching voice message from a target second terminal device, generate identification information.
[0107] The target second terminal device here can be the second terminal device corresponding to any game player in the current game. The identification information here is used to indicate that the spectator voice channel of the target second terminal device is in an open state.
[0108] S502: Send identification information to the first terminal device, and display the identification information in the viewing interface of the first terminal device to indicate the viewing voice status of the target second terminal device.
[0109] Specifically, when the game server receives a viewing voice message from a target second terminal device, for example, if the viewing voice message contains a first voice identifier, it indicates that the viewing voice channel for the second terminal device is enabled. At this point, the game server generates identification information and sends it to the first terminal device. After the first terminal device receives the identification information, it displays corresponding prompt information on the viewing interface based on the identification information. For example, text messages such as "Player XXX has just enabled the game voice channel" can be displayed on the viewing interface. This allows spectators to be informed of which game players have enabled the game voice channel, allowing them to prioritize watching players with enabled voice channels, thereby improving their viewing experience.
[0110] Based on the same inventive concept, the embodiment of the present application also provides a game viewing device corresponding to the game viewing method. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned game viewing method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0111] See also Figure 6 , Figure 6 This is a structural diagram of a game viewing device provided in an embodiment of the present application. Figure 6 As shown in , the game viewing device 600 includes:
[0112] A receiving module 610 is configured to receive a viewing request from a first terminal device, the viewing request carrying a viewing identifier, which indicates a target second terminal device that the first terminal device requests to view the game;
[0113] The judgment module 620 is used to determine the spectator voice status of the target second terminal device indicated by the spectator identifier;
[0114] An acquisition module 630 is configured to acquire game screen data and game voice data of the target second terminal device if the spectating voice status of the target second terminal device meets the voice spectating condition;
[0115] The sending module 640 is used to send the acquired game screen data and game voice data to the first terminal device, so as to render the game screen of the second terminal device according to the game screen data in the first terminal device, and play the game voice of the target second terminal device according to the game voice data.
[0116] Furthermore, the determination module 620 is specifically configured to:
[0117] The spectator voice status of the target second terminal device is determined in the following manner: based on a stored terminal voice configuration table, the spectator voice status of the target second terminal device is obtained, where the terminal voice configuration table includes terminal devices and the spectator voice status corresponding to the terminal devices.
[0118] Furthermore, the receiving module 610 is further configured to:
[0119] Receive spectator voice information from the target second terminal device, where the spectator voice information is generated based on the user's operation of the spectator voice control in the game interface of the target second terminal device; and update the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table based on the received spectator voice information.
[0120] Further, the spectator voice information includes a first voice identifier, which indicates that the spectator voice status of the target second terminal device is in the on state, wherein the step of updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table according to the received spectator voice information includes: updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table to the on state indicated by the first voice identifier; or, the spectator voice information includes a second voice identifier, which indicates that the spectator voice status of the target second terminal device is in the off state, wherein the step of updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table according to the received spectator voice information includes: updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table to the off state indicated by the second voice identifier.
[0121] Furthermore, the acquisition module 630 is further configured to:
[0122] Determine the spectator voice status of the first terminal device, wherein if the spectator voice status of the first terminal device and the target second terminal device both meet the voice spectator condition, obtain game screen data and game voice data of the target second terminal device.
[0123] Furthermore, the determination module 620 is further configured to:
[0124] The spectator voice status of the first terminal device is determined by at least one of the following methods: obtaining the spectator voice status of the first terminal device by parsing the spectator request, the spectator request carries a spectator identifier and a voice identifier, and the voice identifier is used to indicate the spectator voice status of the first terminal device; obtaining the spectator voice status of the first terminal device based on a stored terminal voice configuration table.
[0125] Furthermore, the voice identifier carried in the viewing request indicates the default voice state of the first terminal device, and / or the voice viewing condition includes that the viewing voice states of the first terminal device and the target second terminal device are both in the turned-on state.
[0126] Furthermore, the acquisition module 630 is further configured to:
[0127] If the spectating voice status of at least one of the first terminal device and the target second terminal device does not meet the voice spectating condition, the game screen data of the target second terminal device is obtained.
[0128] Furthermore, the receiving module 610 is further configured to:
[0129] During the process of a first terminal device watching a target second terminal device, a switching request of the first terminal device is detected, where the switching request is used to indicate switching from the target second terminal device to other second terminal devices; if a switching request of the first terminal device is detected, the historical viewing voice status of the first terminal device and the viewing voice status of the other second terminal devices are determined respectively, where the historical viewing voice status is the viewing voice status of the first terminal device when the first terminal device historically watched other second terminal devices; if the historical viewing voice status of the first terminal device and the viewing voice status of the other second terminal devices both meet the voice viewing conditions, the game screen data and game voice data of the other second terminal devices are obtained; and the obtained game screen data and game voice data are sent to the first terminal device.
[0130] Furthermore, the acquisition module 630 is specifically configured to:
[0131] The step of obtaining the game screen data and game voice data of the target second terminal device includes: obtaining the game screen data and game voice data of the target second terminal device from a game database, wherein the game database stores game screen data and / or game voice data corresponding to multiple second terminal devices, and the game database is constructed in the following manner: after multiple second terminal devices participating in the current game enter the current game, determining the spectator voice status of each second terminal device; for the second terminal device whose spectator voice status is on, obtaining the game screen data and game voice data from the second terminal device and storing them; for the second terminal device whose spectator voice status is off, obtaining the game screen data from the second terminal device and storing them.
[0132] Furthermore, it also includes:
[0133] For each second terminal device, the number of times the spectator voice status of the second terminal device is turned on during the current game is counted; after the current game is over, the second terminal device whose counted number of activations meets the replay conditions is used as the replay terminal device, and the game screen data and / or game voice data corresponding to the replay terminal device is stored as the game replay data of the current game.
[0134] Furthermore, it also includes:
[0135] When the spectator voice information is received from the target second terminal device, a prompt message is generated and sent to the first terminal device. The prompt message includes text information indicating that the spectator voice state of the target second terminal device is switched from one of the on state and the off state to the other.
[0136] Furthermore, it also includes:
[0137] When the spectator voice information is received from the target second terminal device, identification information is generated and sent to the first terminal device. The identification information is displayed in the spectator interface of the first terminal device to indicate the spectator voice status of the target second terminal device.
[0138] Furthermore, it also includes:
[0139] The game voice data includes in-game voice data and out-game voice data. The in-game voice data includes at least one of game background sound data, game character sound data, and game special effect sound data. The out-game voice data includes the player's voice data collected through the second terminal device.
[0140] Compared with the prior art in which only teammates or nearby players in the same game can hear each other's game voices, the game viewing device provided by the embodiment of the present application allows users from the viewing perspective to also hear the game voices of the current viewing players, thereby improving the viewing participation and interactivity of the viewing users.
[0141] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown in FIG, the electronic device 700 includes a processor 710 , a memory 720 and a bus 730 .
[0142] The memory 720 stores machine-readable instructions executable by the processor 710. When the electronic device 700 is running, the processor 710 communicates with the memory 720 via the bus 730. When the machine-readable instructions are executed by the processor 710, the above-mentioned Figure 1 The specific implementation of the steps of the game viewing method in the method embodiment shown can be found in the method embodiment and will not be repeated here.
[0143] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The specific implementation of the steps of the game viewing method in the method embodiment shown can be found in the method embodiment and will not be repeated here.
[0144] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0145] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. There may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interface, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.
[0146] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0148] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0149] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-mentioned embodiments within the technical scope disclosed in the present application, or perform equivalent replacements for some of the technical features thereof. These modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for watching a game, characterized in that: Applicable to game servers, including: receiving a spectator request from a first terminal device, the spectator request carrying a spectator identifier, the spectator identifier being used to indicate a target second terminal device in the game match requested to be spectated by the first terminal device, the first terminal device and the target second terminal device respectively communicating with a game server, and a game application for the game match being installed on both the first terminal device and the target second terminal device; Based on the stored terminal voice configuration table, obtaining the spectator voice status of the target second terminal device; If the spectator voice status of the target second terminal device meets the voice spectator condition, obtaining the game screen data and game voice data of the target second terminal device, where the game voice data includes in-game voice data and out-of-game voice data; Sending the acquired game screen data and game voice data to the first terminal device, so that the first terminal device renders the game screen of the second terminal device according to the game screen data, and plays the game voice of the target second terminal device according to the game voice data; and receiving spectator voice information from a target second terminal device, the spectator voice information being generated based on a user's operation of a spectator voice control in a game interface of the target second terminal device, the spectator voice control being used to control the accessibility of out-of-game voice data collected by a microphone of the second terminal device; The spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table is updated according to the received spectator voice information.
2. The method according to claim 1, characterized in that The spectating voice information includes a first voice identifier, and the first voice identifier indicates that the spectating voice state of the target second terminal device is turned on. The step of updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table according to the received spectator voice information includes: Updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table to the on state indicated by the first voice identifier; Alternatively, the spectating voice information includes a second voice identifier, and the second voice identifier indicates that the spectating voice state of the target second terminal device is in a closed state. The step of updating the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table according to the received spectator voice information includes: The spectator voice state corresponding to the target second terminal device stored in the terminal voice configuration table is updated to the closed state indicated by the second voice identifier.
3. The method according to claim 1, characterized in that Also includes: Determine the spectator voice status of the first terminal device, If the spectator voice states of the first terminal device and the target second terminal device both meet the voice spectator condition, the game screen data and game voice data of the target second terminal device are obtained.
4. The method according to claim 3, characterized in that The spectator voice status of the first terminal device is determined by at least one of the following methods: Obtaining a viewing voice status of the first terminal device by parsing the viewing request, wherein the viewing request carries a viewing identifier and a voice identifier, and the voice identifier is used to indicate the viewing voice status of the first terminal device; Based on the stored terminal voice configuration table, the spectator voice status of the first terminal device is obtained.
5. The method according to claim 4, characterized in that The voice identifier carried in the watch request indicates the default voice state of the first terminal device, And / or, the voice viewing condition includes that the viewing voice status of the first terminal device and the target second terminal device are both in an open state.
6. The method according to claim 3, characterized in that Also includes: If the spectating voice status of at least one of the first terminal device and the target second terminal device does not meet the voice spectating condition, the game screen data of the target second terminal device is obtained.
7. The method according to claim 1, characterized in that Also includes: During the process of the first terminal device watching the target second terminal device, detecting a switching request of the first terminal device, the switching request being used to instruct switching from the target second terminal device to another second terminal device; If a handover request of the first terminal device is detected, determining the historical viewing voice state of the first terminal device and the viewing voice state of the other second terminal devices respectively, wherein the historical viewing voice state is the viewing voice state of the first terminal device when the first terminal device historically views the other second terminal devices; If the historical spectator voice status of the first terminal device and the spectator voice status of other second terminal devices both meet the voice spectator condition, then obtain the game screen data and game voice data of the other second terminal devices; The acquired game screen data and game voice data are sent to the first terminal device.
8. The method according to claim 1, characterized in that The steps of obtaining game screen data and game voice data of the target second terminal device include: Obtain the game screen data and game voice data of the target second terminal device from the game database, The game database stores game screen data and / or game voice data corresponding to a plurality of second terminal devices, and the game database is constructed in the following manner: After multiple second terminal devices participating in the current game enter the current game, determining the spectator voice status of each second terminal device; For a second terminal device whose spectator voice state is turned on, obtaining game screen data and game voice data from the second terminal device and storing the data; For the second terminal device whose spectator voice status is turned off, the game screen data is obtained from the second terminal device and stored.
9. The method according to claim 8, characterized in that Also includes: For each second terminal device, count the number of times the spectator voice status of the second terminal device is turned on during the current game; After the current game is over, the second terminal device whose counted opening times meet the replay conditions is used as the replay terminal device, and the game screen data and / or game voice data corresponding to the replay terminal device are stored as the game replay data of the current game.
10. The method according to claim 2, characterized in that Also includes: When the spectator voice information is received from the target second terminal device, a prompt message is generated and sent to the first terminal device, wherein the prompt message includes text information indicating that the spectator voice state of the target second terminal device is switched from one of the on state and the off state to the other.
11. The method according to claim 2, characterized in that Also includes: When the spectator voice information is received from the target second terminal device, identification information is generated and sent to the first terminal device. The identification information is displayed in the spectator interface of the first terminal device to indicate the spectator voice status of the target second terminal device.
12. The method according to claim 1, characterized in that The game voice data includes in-game voice data and out-game voice data. The in-game voice data includes at least one of game background sound data, game character sound data, and game special effect sound data. The out-game voice data includes the player's voice data collected through the second terminal device.
13. A game viewing device, characterized in that: Applicable to game servers, including: a receiving module, configured to receive a spectator request from a first terminal device, the spectator request carrying a spectator identifier, the spectator identifier being used to indicate a target second terminal device in the game match requested to be spectated by the first terminal device, the first terminal device and the target second terminal device respectively communicating with a game server, and having a game application for the game match installed on both the first terminal device and the target second terminal device; a determination module configured to obtain a spectator voice status of a target second terminal device based on a stored terminal voice configuration table; and further configured to receive spectator voice information from the target second terminal device, the spectator voice information being generated based on a user's operation of a spectator voice control in a game interface of the target second terminal device; and to update the spectator voice status corresponding to the target second terminal device stored in the terminal voice configuration table based on the received spectator voice information; an acquisition module, configured to acquire game screen data and game voice data of the target second terminal device if the spectating voice status of the target second terminal device meets the voice spectating condition; a sending module, configured to send the acquired game screen data and game voice data to the first terminal device, so that the first terminal device renders the game screen of the second terminal device according to the game screen data, and plays the game voice of the target second terminal device according to the game voice data; Among them, game voice data includes in-game voice data and out-of-game voice data.
14. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the game viewing method as described in any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the game viewing method according to any one of claims 1 to 12 are executed.
Citation Information
Patent Citations
Baffle watching method in game system and storage medium
CN108043033A
Game picture display method and device, equipment and storage medium
CN113633973A