CN116328290A - Method and device for realizing online fight of cloud game, storage medium and electronic equipment - Google Patents

Method and device for realizing online fight of cloud game, storage medium and electronic equipment Download PDF

Info

Publication number
CN116328290A
CN116328290A CN202310577963.7A CN202310577963A CN116328290A CN 116328290 A CN116328290 A CN 116328290A CN 202310577963 A CN202310577963 A CN 202310577963A CN 116328290 A CN116328290 A CN 116328290A
Authority
CN
China
Prior art keywords
cloud
game
cloud game
control instructions
video data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310577963.7A
Other languages
Chinese (zh)
Inventor
王凯
李二帅
刘宝国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Haima Cloud Technology Co ltd
Original Assignee
Anhui Haima Cloud Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Haima Cloud Technology Co ltd filed Critical Anhui Haima Cloud Technology Co ltd
Priority to CN202310577963.7A priority Critical patent/CN116328290A/en
Publication of CN116328290A publication Critical patent/CN116328290A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method, a device, a storage medium and electronic equipment for realizing online fight of a cloud game, wherein the method is applied to a cloud server and comprises the following steps: receiving control instructions sent by at least two terminal devices, virtualizing the control instructions into control instructions of cloud input devices corresponding to the control instructions, and sending the control instructions of the cloud input devices to a cloud game so that the cloud game can control cloud game objects to be controlled based on the control instructions of the cloud input devices to realize online fight, wherein the control instructions carry the identification of the cloud game objects to be controlled, and the identification of the cloud input devices corresponds to the identification of the cloud game objects to be controlled; and acquiring audio and video data generated in the cloud game operation process, and pushing the audio and video data to the terminal equipment. The cloud game online fight method and the cloud game online fight system can realize cloud game online fight and ensure user game experience.

Description

Method and device for realizing online fight of cloud game, storage medium and electronic equipment
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device for implementing online fight of a cloud game.
Background
With the development of cloud game technology, there is an urgent need to realize multi-person online fight of cloud games, but no mature scheme capable of realizing the functions is available in the prior art.
Disclosure of Invention
In view of the foregoing, the present invention has been made to provide a method, an apparatus, a storage medium, and an electronic device for implementing online engagement of a cloud game, which overcome the foregoing problems.
The invention provides a method for realizing online fight of a cloud game, which is applied to a cloud server and comprises the following steps:
receiving control instructions sent by at least two terminal devices, virtualizing the control instructions into control instructions of cloud input devices corresponding to the control instructions, and sending the control instructions of the cloud input devices to a cloud game so that the cloud game can control cloud game objects to be controlled based on the control instructions of the cloud input devices to realize online fight, wherein the control instructions carry the identification of the cloud game objects to be controlled, and the identification of the cloud input devices corresponds to the identification of the cloud game objects to be controlled;
and acquiring audio and video data generated in the cloud game operation process, and pushing the audio and video data to the terminal equipment.
In a second aspect, the present invention further provides a device for implementing online fight of a cloud game, applied to a cloud server, where the device includes:
the cloud game comprises a virtualization control module, a cloud game processing module and a cloud game processing module, wherein the virtualization control module is used for receiving control instructions sent by at least two terminal devices, virtualizing the control instructions into control instructions of cloud input devices corresponding to the cloud input devices, and sending the control instructions of the cloud input devices to a cloud game so that the cloud game can control cloud game objects to be controlled based on the control instructions of the cloud input devices to realize online fight, wherein the control instructions carry identification of the cloud game objects to be controlled, and the identification of the cloud input devices corresponds to the identification of the cloud game objects to be controlled;
and the plug flow module is used for acquiring the audio and video data generated in the cloud game running process and plug-flowing the audio and video data to the terminal equipment.
In a third aspect, the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a method of achieving online combat of a cloud game as described above.
In a fourth aspect, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method for implementing online engagement of a cloud game as described above when the processor executes the computer program.
According to the method, the device, the storage medium and the electronic equipment for realizing online fight of the cloud game, the received control instructions of at least two terminal equipment are virtualized into the control instructions of the cloud input equipment corresponding to each other, and the control instructions of the cloud input equipment are sent to the cloud game, so that the cloud game can control cloud game objects to be controlled based on the control instructions of the cloud input equipment, online fight is realized, audio and video data generated in the cloud game running process can be pushed to each terminal equipment, the function of connecting the same game instance in different places to perform online fight of the cloud game is realized, and the game experience of a user is ensured.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flowchart of a method for implementing online fight of a cloud game according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for implementing online fight of a cloud game according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Fig. 1 schematically illustrates a flowchart of a method for implementing online combat of a cloud game according to an embodiment of the present invention. Referring to fig. 1, the method for implementing online fight of a cloud game in an embodiment of the present invention is applied to a cloud server, and specifically includes the following steps:
s11, receiving control instructions sent by at least two terminal devices, virtualizing the control instructions into control instructions of cloud input devices corresponding to the control instructions, and sending the control instructions of the cloud input devices to a cloud game, so that the cloud game controls cloud game objects to be controlled based on the control instructions of the cloud input devices to achieve online fight, wherein the control instructions carry identification of the cloud game objects to be controlled, and the identification of the cloud input devices corresponds to the identification of the cloud game objects to be controlled.
In the embodiment of the invention, it is to be noted that, because the plurality of players are connected with the same cloud instance (belonging to the cloud server), in order to enable the cloud instance and the game to identify different devices and respective inputs, and further realize that multiple persons perform input operation on the same cloud device in different places, the capability of local online fight is realized through a cloud play scheme, and when the cloud plays the fight, input information (including input of devices such as a touch screen, a handle, a remote controller and a virtual handle) of each player needs to be virtualized into operation instructions of different cloud input devices (each having an independent device ID) so as to effectively isolate the input information.
S12, acquiring audio and video data generated in the cloud game operation process, and pushing the audio and video data to the terminal equipment.
According to the method for realizing online fight of the cloud game, the received control instructions of at least two terminal devices are virtualized into the control instructions of the cloud input devices corresponding to the terminal devices, and the control instructions of the cloud input devices are sent to the cloud game, so that the cloud game can control cloud game objects to be controlled based on the control instructions of the cloud input devices, online fight is realized, audio and video data generated in the running process of the cloud game can be pushed to each terminal device, the function of connecting the same game instance by multiple persons in different places to perform online fight of the cloud game is realized, and the game experience of users is ensured.
In the embodiment of the present invention, before receiving the control instruction sent by at least two terminal devices, the method for implementing online cloud game fight further includes the following steps:
receiving a first cloud play request for the cloud game sent by a first terminal device in the at least two terminal devices, and distributing a cloud instance for the first terminal device based on the first cloud play request to create an online fight room, wherein the first cloud play request carries first character type information and an identifier of a first cloud game object to be controlled, the first character type information indicates that a user is a homeowner, and the cloud game is operated in the cloud instance;
receiving a second cloud play request sent by a second terminal device and joining the room to perform online fight, and distributing a stream address of the cloud instance to the second terminal device based on the second cloud play request so that the second terminal device obtains a path of cloud game audio/video stream based on the stream address, wherein the second cloud play request carries second role type information and identification of a second cloud game object to be controlled, and the second role type information indicates that a user is a tenant.
In this embodiment, when the cloud server receives a cloud play request (i.e., a first cloud play request) for a cloud game sent by a terminal device (i.e., a first terminal device) of a homeowner, a cloud instance is allocated to the first terminal device based on the first cloud play request, so as to create an online fight room. In the process of applying for the cloud game by the homeowner, the request parameters are more than the previous common cloud game application, the first character type information and the identification of the first cloud game object to be controlled are more than those of the previous common cloud game application, wherein the first character type information indicates that the user is the homeowner, and the identification of the first cloud game object to be controlled indicates the game object to be controlled by the homeowner. It should be noted that, when the homeowner creates a room, the homeowner will call the application cloud game interface to conduct a transfer check (including the device number, the end type, the game package name corresponding information, the cToken information, and the game setting parameters including resolution, code rate, game duration, etc.), and compare with the parameters (resolution, code rate, etc.) configured by the access manufacturer by default, and finally generate a parameter configuration suitable for the homeowner, and apply for the cloud game with the parameters. The game instance allocated for the homeowner represents that the room creation was successful, waiting for other guests to join the room. When a cloud play request (namely a second cloud play request) for joining the room to perform online fight is received, which is sent by a terminal device (namely a second terminal device) of a tenant, the cloud server allocates a stream address of the cloud instance to the second terminal device based on the second cloud play request, and establishes a binding relationship between a homeowner and the tenant, so that the second terminal device obtains a path of cloud game audio/video stream based on the stream address, wherein the second cloud play request carries second role type information and an identifier of a second cloud game object to be controlled, the second role type information indicates that a user is the tenant, and the identifier of the second cloud game object to be controlled indicates a game object to be controlled by the tenant. When the tenant joins the room, the identity of the homeowner is obtained, the identity of the homeowner is transferred through the request parameters to check whether the tenant type is correct, and the request parameters (including the device number, the terminal type, the cToken information, etc.) are checked. Homeowner configuration information may be multiplexed, for example: resolution, code rate, etc.; the user-defined code rate can also be determined by requesting parameters and a switch to apply for another path of flow under the game of the homeowner. When the tenant applies to join the room, another path of flow under the homeowner instance is successfully distributed; at this time, a tenant identity may be generated and bound to a homeowner, who records all of the bound tenant identities. In the game process, if a homeowner actively exits the game for personal reasons, all tenants in the room also terminate the game, the homeowner notifies other tenants to exit the game, and a message is sent through a websocket long connection to notify the homeowner that the homeowner has been offline. When the tenant exits the room or the game time arrives, the stream information under the current instance is disconnected, the binding relationship with the tenant is released, and the current tenant is kicked off from the tenant identification information recorded by the tenant. When the tenant exits, websocket communication information is sent to the homeowner, and the homeowner is informed that the tenant is offline. That is, the homeowner applies for the cloud instance when entering, releases the cloud instance when exiting, and the tenant enters and exits only affects the number of terminals and the control complexity of connecting the cloud instance at the same time.
It should be noted that the first cloud play request and the second cloud play request carry the corresponding identifiers of the cloud game objects to be controlled, where the identifiers of the cloud game objects to be controlled correspond to the identifiers of the cloud input device. When a control instruction carrying the identification of the cloud game object to be controlled is received, which is sent by the terminal equipment, the control instruction is virtualized into the control instruction of the cloud input equipment corresponding to each according to the corresponding relation between the identification of the cloud input equipment and the identification of the cloud game object to be controlled, and the control instruction of the cloud input equipment is sent to the cloud game, so that the cloud game controls the cloud game object to be controlled based on the control instruction of the cloud input equipment, and online fight is realized.
In the embodiment of the invention, since the players of the plurality of game terminals are connected with the same cloud instance, when the cloud plays, the control instructions input by each player need to be virtualized into the control instructions of different cloud input devices (such as handles, touch screens and the like) so as to orderly arrange and operate and isolate the same cloud instance, thereby realizing online play of the cloud game.
According to the method for realizing online fight of the cloud game, provided by the embodiment of the invention, the first terminal equipment serving as a homeowner applies for a game instance, an online fight room is created, on the cloud game instance, the stream address of the cloud instance is distributed for the second terminal equipment requesting to join the room for online fight, meanwhile, multiple coding and pushing services can be started, each coding and pushing service is independent, so that game adaptation of cloud play by connecting the same game instance by multiple persons in different places is realized, and the game experience of users is ensured. The invention can be suitable for various scenes of online fight.
In the embodiment of the invention, the first cloud play request also carries a first configuration parameter, and the second cloud play request also carries a second configuration parameter. Further, before the pushing the audio/video data to the terminal device, the method further includes the following steps: determining target coding parameters from the first configuration parameters and the second configuration parameters;
correspondingly, in step S12, the pushing the audio and video data to the terminal device includes: and encoding video data in the audio and video data according to the target encoding parameters, and pushing the encoded video data to the at least two terminal devices.
In this embodiment, the first cloud play request sent by the first terminal device to the cloud server further carries a first configuration parameter of the first terminal device. The second cloud play request sent by the second terminal equipment to the cloud server also carries second configuration parameters of the second terminal equipment. The configuration parameters of the terminal equipment comprise information such as network conditions and/or equipment parameters of the terminal equipment. The network condition includes network segment (such as mobile/communication/telecommunication) and network quality, and the equipment parameters include resolution, code rate, coding mode and other information supported by the equipment. The target coding parameters used for coding the video data generated in the cloud game operation process can be determined by the configuration parameters of all terminal devices which join in a room to perform online combat, and after the target coding parameters are determined, the cloud server codes the video data generated in the cloud game operation process according to the target coding parameters and pushes the coded video data to each terminal device. For a specific parameter used in the encoding process, the parameter is determined to be a parameter value corresponding to a tenant or a parameter value corresponding to a tenant with the aim of ensuring that all players have good cloud play experiences such as definition, low delay, low katon rate and the like of a game picture, for example, if the display effect of a part of tenant terminals is poor due to the fact that a certain parameter uses the parameter value corresponding to the tenant, the parameter can be made to use the parameter value corresponding to the tenant; or may decide a specific value according to the priority, for example, if the priority of the parameter of the homeowner is higher than that of the tenant, the parameter may be made to use the parameter value corresponding to the homeowner.
In the embodiment of the invention, the situation that the user game picture is affected by different configurations of various terminal equipment, such as supported resolution, code rate, coding mode and the like, is considered to cause poor experience. In order to ensure that a plurality of players using different terminal devices in different regions can all have good game picture quality, the invention applies for game instances by a first terminal device of a homeowner, creates an online fight room, distributes a stream address of the cloud instance for a second terminal device requesting to join the room for online fight on the cloud game instance, can determine target coding parameters according to configuration parameters of the terminal devices of each player, dynamically adjusts game coding parameters such as a coding mode, resolution, code rate and the like of each way of plug flow, and ensures that each player can have good cloud play experience although cloud play terminal parameters and network environments are different.
It should be noted that, besides determining the target coding parameters from the first configuration parameters and the second configuration parameters, each terminal device may use the corresponding coding parameters, and on the cloud instance, multiple coding (each coding parameter is determined according to the corresponding network condition and terminal device parameters) and push service may be started at the same time according to the number of people currently requesting connection, the network condition of each person, and the terminal device parameters, and each coding and push are independent, so that the coding parameters of each push may be dynamically adjusted according to the network condition of each player.
In the embodiment of the invention, ports of stream addresses used by homeowners and tenants are different, and domain names of the stream addresses are configured according to the type of operators used. Specifically, in the embodiment of the invention, the creation of the multipath stream is realized by configuring different dynamic ports with the same stream address, address distinction is performed through the different dynamic ports, and when a second cloud play request for online fight in a game room sent by a second terminal device is received, an idle dynamic port is selected from a plurality of dynamic ports as a port of a stream address of a cloud instance corresponding to the second terminal, so that the creation of the multipath stream address is realized.
Further, since the cloud game is a homeowner application, belongs to a game instance applied by a nearby network node, has almost no delay, and is a remote node, the effects of game operation and picture transmission are not good for homeowners, in order to reduce the delay and the blocking of game pictures, when the first terminal device and the second terminal device belong to users of different network segments, the domain name of the stream address is configured according to the type of the operator used by the terminal device, namely, the domain name address corresponding to the network segment to which the first terminal device belongs can be configured in the stream address of the first terminal device, and the domain name address corresponding to the network segment to which the second terminal device belongs is configured in the stream address of the second terminal device, so that the audio and video data of each terminal device can be pushed through the network segment matched with the stream address.
In the prior art, cloud games are commonly one-way stream of an example, and the invention provides an implementation scheme of a game example corresponding to multiple-way streams. Specifically, the user applies for a successful game instance, and the cloud server starts the game to push the user stream address: audio, video, input/output stream addresses. For different network segments (mobile/connected/telecommunications) of the user, the domain name address corresponding to each network segment can be configured.
In the case that a user of a first terminal device as a homeowner applies for a game instance and a stream, a link address, i.e. a stream address, of an audio, video, input/output stream is obtained, in which case the creation of a multi-way stream is mainly achieved by configuring different dynamic ports and domain names with the same stream address, and distinguishing between the different dynamic ports, so that a very large number of guest stream addresses can be created. The domain names of the stream addresses corresponding to different network segments (mobile/connected/telecom) are different, although the game is applied by the homeowner, the network segments of the homeowner and the tenant may be different, and the homeowner and the tenant can select the stream address corresponding to the network segment matched with the homeowner and the tenant according to the configuration of the type of the operator used, so as to reduce the network delay.
In the embodiment of the invention, if the long connection between the first terminal equipment and the cloud instance is disconnected, and the cloud instance is not reconnected yet when the heartbeat keep-alive time arrives, the cloud instance is released. Specifically, in the online fight process of a homeowner (unique master control) and a tenant (at least one slave control), when the cloud server receives a request for exiting a game sent by a first terminal device, or when the cloud server monitors that long connection between the first terminal device and a cloud instance is disconnected, and when heartbeat keep-alive time arrives, the cloud instance is not reconnected yet, the cloud instance is released, and a reminding message for exiting the game of the first terminal device is sent to a second terminal device. In the game process, if the long connection between the first terminal equipment and the cloud instance is detected to be disconnected, and the first terminal equipment is reconnected to play the game through the long connection before the heartbeat keep-alive time is reached, the homeowner can still continue playing the game. In the process of the line dropping of the homeowner, the game is not released, and the guest game in the room is normal. When the cloud server receives a request for exiting the game sent by the second terminal device or monitors that the game duration of the tenant arrives, the streaming information in the current instance is disconnected, the binding relationship with the homeowner is released, and a reminding message for exiting the game of the current second terminal device is sent to the first terminal device.
For the purposes of simplicity of explanation, the methodologies are shown and described as a series of acts, it is to be understood and appreciated by one of ordinary skill in the art that the methodologies are not limited by the order of acts, as some acts may, in accordance with the methodologies, take place in other order or concurrently. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
In addition, the embodiment of the invention also provides a device for realizing the online fight of the cloud game, which comprises a functional module for realizing the method for realizing the online fight of the cloud game. Fig. 2 schematically illustrates a structural diagram of an apparatus for implementing online fight of a cloud game according to an embodiment of the present invention. Referring to fig. 2, the device for implementing online fight of a cloud game according to the embodiment of the present invention is applied to a cloud server, and specifically includes a virtualization control module 201 and a plug flow module 202, where:
the virtualization control module 201 is configured to receive a manipulation instruction sent by at least two terminal devices, virtualize the manipulation instruction into a manipulation instruction of a cloud input device corresponding to each terminal device, send the manipulation instruction of the cloud input device to a cloud game, so that the cloud game manipulates a cloud game object to be manipulated based on the manipulation instruction of the cloud input device, and implement online fight, where the manipulation instruction carries an identifier of the cloud game object to be manipulated, and the identifier of the cloud input device corresponds to the identifier of the cloud game object to be manipulated;
and the plug flow module 202 is configured to obtain audio and video data generated in the cloud game running process, and plug flow the audio and video data to the terminal device.
In the embodiment of the present invention, the apparatus further includes a game creation module, which is not shown in the drawing, and the game creation module is configured to receive, before the virtualization control module receives a manipulation instruction sent by at least two terminal devices, a first cloud play request for the cloud game sent by a first terminal device in the at least two terminal devices, and allocate a cloud instance to the first terminal device based on the first cloud play request, so as to create an online fight room, where the first cloud play request carries first character type information and an identifier of a first cloud game object to be manipulated, the first character type information indicates that a user is a homeowner, and the cloud instance is operated;
further, the game creation module is further configured to receive a second cloud play request sent by a second terminal device and joining the room to perform online fight, allocate a stream address of the cloud instance to the second terminal device based on the second cloud play request, so that the second terminal device obtains a path of cloud game audio/video stream based on the stream address, where the second cloud play request carries second role type information and an identifier of a second cloud game object to be controlled, and the second role type information indicates that a user is a tenant.
In the embodiment of the invention, the first cloud play request also carries a first configuration parameter, and the second cloud play request also carries a second configuration parameter;
correspondingly, the pushing module 202 is further configured to determine, before pushing the audio and video data to the terminal device, a target encoding parameter from the first configuration parameter and the second configuration parameter;
the pushing module 202 is configured to encode video data in the audio and video data according to the target encoding parameter, and push the encoded video data to the at least two terminal devices.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
For the device embodiment, the implementation process is consistent with the method for implementing online fight of the cloud game provided by the embodiment of the present invention, and the achieved effect is the same as the method for implementing online fight of the cloud game provided by the embodiment of the present application, and relevant parts only need to be referred to in the description of the method embodiment, and are not repeated herein.
In order to realize online fight of the cloud game, many problems need to be considered, such as differences of terminal devices of different players, differences of different network conditions, differences of interaction devices and the like, and through the embodiment, many problems such as dynamic multi-way plug flow, virtualization control of multiple input devices, multi-terminal information interaction control and the like can be solved, so that the same cloud instance can support simultaneous access of a plurality of different players, and smooth game experience can be ensured.
In addition, the embodiment of the invention also provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and the program is executed by a processor to realize the steps of the method for realizing online fight of the cloud game.
In this embodiment, the method for implementing online fight of a cloud game may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, randomAccess Memory), an electrical carrier signal, a telecommunication signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
In addition, the embodiment of the invention also provides electronic equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the method for realizing the online fight of the cloud game when executing the computer program. Such as S11-S12 shown in fig. 1. Alternatively, the processor, when executing the computer program, implements the functions of each module/unit in the embodiment of the apparatus for implementing online fight of a cloud game, for example, the virtualization control module 201 and the plug flow module 202 shown in fig. 2.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for realizing online fight of a cloud game, which is applied to a cloud server, the method is characterized by comprising the following steps:
receiving control instructions sent by at least two terminal devices, virtualizing the control instructions into control instructions of cloud input devices corresponding to the control instructions, and sending the control instructions of the cloud input devices to a cloud game so that the cloud game can control cloud game objects to be controlled based on the control instructions of the cloud input devices to realize online fight, wherein the control instructions carry the identification of the cloud game objects to be controlled, and the identification of the cloud input devices corresponds to the identification of the cloud game objects to be controlled;
and acquiring audio and video data generated in the cloud game operation process, and pushing the audio and video data to the terminal equipment.
2. The method according to claim 1, further comprising, prior to said receiving the manipulation instruction sent by the at least two terminal devices:
receiving a first cloud play request for the cloud game sent by a first terminal device in the at least two terminal devices, and distributing a cloud instance for the first terminal device based on the first cloud play request to create an online fight room, wherein the first cloud play request carries first character type information and an identifier of a first cloud game object to be controlled, the first character type information indicates that a user is a homeowner, and the cloud game is operated in the cloud instance;
receiving a second cloud play request sent by a second terminal device and joining the room to perform online fight, and distributing a stream address of the cloud instance to the second terminal device based on the second cloud play request so that the second terminal device obtains a path of cloud game audio/video stream based on the stream address, wherein the second cloud play request carries second role type information and identification of a second cloud game object to be controlled, and the second role type information indicates that a user is a tenant.
3. The method of claim 2, wherein the first cloud play request further carries a first configuration parameter, and the second cloud play request further carries a second configuration parameter;
before the pushing the audio and video data to the terminal equipment, the method further comprises the following steps:
determining target coding parameters from the first configuration parameters and the second configuration parameters;
the pushing the audio and video data to the terminal equipment comprises the following steps:
and encoding video data in the audio and video data according to the target encoding parameters, and pushing the encoded video data to the at least two terminal devices.
4. A method according to claim 2 or 3, wherein the cloud instance is released if the long connection between the first terminal device and the cloud instance is broken and the cloud instance is not reconnected yet when the heartbeat keep-alive time arrives.
5. The method of claim 2, wherein the ports of the stream addresses used by the homeowner and tenant are different and the domain name of the stream address is configured according to the type of carrier used.
6. An apparatus for implementing online combat of cloud games, applied to a cloud server, the apparatus comprising:
the cloud game comprises a virtualization control module, a cloud game processing module and a cloud game processing module, wherein the virtualization control module is used for receiving control instructions sent by at least two terminal devices, virtualizing the control instructions into control instructions of cloud input devices corresponding to the cloud input devices, and sending the control instructions of the cloud input devices to a cloud game so that the cloud game can control cloud game objects to be controlled based on the control instructions of the cloud input devices to realize online fight, wherein the control instructions carry identification of the cloud game objects to be controlled, and the identification of the cloud input devices corresponds to the identification of the cloud game objects to be controlled;
and the plug flow module is used for acquiring the audio and video data generated in the cloud game running process and plug-flowing the audio and video data to the terminal equipment.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the game creation module is used for receiving a first cloud play request for the cloud game sent by a first terminal device in at least two terminal devices before the virtualization control module receives a control instruction sent by the at least two terminal devices, distributing a cloud instance for the first terminal device based on the first cloud play request so as to create an online fight room, wherein the first cloud play request carries first character type information and an identifier of a first cloud game object to be controlled, the first character type information indicates that a user is a homeowner, and the cloud game is operated in the cloud instance;
the game creation module is further configured to receive a second cloud play request sent by a second terminal device and joining the room to perform online fight, allocate a stream address of the cloud instance to the second terminal device based on the second cloud play request, so that the second terminal device obtains a path of cloud game audio/video stream based on the stream address, where the second cloud play request carries second role type information and an identifier of a second cloud game object to be controlled, and the second role type information indicates that a user is a tenant.
8. The apparatus according to claim 6 or 7, wherein the first cloud play request further carries a first configuration parameter, and the second cloud play request further carries a second configuration parameter;
the pushing module is further configured to determine a target encoding parameter from the first configuration parameter and the second configuration parameter before pushing the audio and video data to the terminal device;
and the pushing module is used for encoding the video data in the audio and video data according to the target encoding parameters and pushing the encoded video data to the at least two terminal devices.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method of achieving online engagement of a cloud game as claimed in any of claims 1-5.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of implementing online combat of a cloud game as claimed in any of claims 1 to 5 when the computer program is executed.
CN202310577963.7A 2023-05-22 2023-05-22 Method and device for realizing online fight of cloud game, storage medium and electronic equipment Pending CN116328290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310577963.7A CN116328290A (en) 2023-05-22 2023-05-22 Method and device for realizing online fight of cloud game, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310577963.7A CN116328290A (en) 2023-05-22 2023-05-22 Method and device for realizing online fight of cloud game, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116328290A true CN116328290A (en) 2023-06-27

Family

ID=86891507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310577963.7A Pending CN116328290A (en) 2023-05-22 2023-05-22 Method and device for realizing online fight of cloud game, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116328290A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110103203A (en) * 2010-03-12 2011-09-20 엔에이치엔(주) System and method for online service of multi-player game producted by user using lobby-room structure
CN103023872A (en) * 2012-11-16 2013-04-03 杭州顺网科技股份有限公司 Cloud game service platform
EP2722084A1 (en) * 2012-10-18 2014-04-23 Bigpoint Inc. Online game systems, methods, and computer-readable medium
CN105095121A (en) * 2011-06-30 2015-11-25 北京奇虎科技有限公司 Obtaining method and system for virtual input equipment on driver layer
CN106302366A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 A kind of data transmission method, device and intelligent television system
US20170001122A1 (en) * 2015-06-30 2017-01-05 Amazon Technologies, Inc. Integrating games systems with a spectating system
CN106462916A (en) * 2014-05-22 2017-02-22 哄鸭有限公司 System and method for operating competition game
CN111818004A (en) * 2019-12-11 2020-10-23 厦门雅基软件有限公司 Cloud game live broadcasting method, cloud game server and computer readable storage medium
CN112870711A (en) * 2021-04-28 2021-06-01 腾讯科技(深圳)有限公司 Cloud game processing method, device, equipment and storage medium
WO2021114795A1 (en) * 2019-12-11 2021-06-17 厦门雅基软件有限公司 Cloud game live broadcast method, cloud game anchor end, viewer end and computer-readable storage medium
CN114090085A (en) * 2021-11-18 2022-02-25 腾讯科技(深圳)有限公司 Object control method and related device
CN114745559A (en) * 2021-01-08 2022-07-12 武汉斗鱼网络科技有限公司 Interaction control method and system for live broadcast room cloud game and related equipment
CN114849224A (en) * 2022-05-06 2022-08-05 咪咕互动娱乐有限公司 Information processing method, device, equipment and readable storage medium
US20230107414A1 (en) * 2021-06-21 2023-04-06 Tencent Technology (Shenzhen) Company Limited Method for controlling virtual object

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110103203A (en) * 2010-03-12 2011-09-20 엔에이치엔(주) System and method for online service of multi-player game producted by user using lobby-room structure
CN105095121A (en) * 2011-06-30 2015-11-25 北京奇虎科技有限公司 Obtaining method and system for virtual input equipment on driver layer
EP2722084A1 (en) * 2012-10-18 2014-04-23 Bigpoint Inc. Online game systems, methods, and computer-readable medium
CN103023872A (en) * 2012-11-16 2013-04-03 杭州顺网科技股份有限公司 Cloud game service platform
CN106462916A (en) * 2014-05-22 2017-02-22 哄鸭有限公司 System and method for operating competition game
CN106302366A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 A kind of data transmission method, device and intelligent television system
US20170001122A1 (en) * 2015-06-30 2017-01-05 Amazon Technologies, Inc. Integrating games systems with a spectating system
CN111818004A (en) * 2019-12-11 2020-10-23 厦门雅基软件有限公司 Cloud game live broadcasting method, cloud game server and computer readable storage medium
WO2021114795A1 (en) * 2019-12-11 2021-06-17 厦门雅基软件有限公司 Cloud game live broadcast method, cloud game anchor end, viewer end and computer-readable storage medium
CN114745559A (en) * 2021-01-08 2022-07-12 武汉斗鱼网络科技有限公司 Interaction control method and system for live broadcast room cloud game and related equipment
CN112870711A (en) * 2021-04-28 2021-06-01 腾讯科技(深圳)有限公司 Cloud game processing method, device, equipment and storage medium
US20230107414A1 (en) * 2021-06-21 2023-04-06 Tencent Technology (Shenzhen) Company Limited Method for controlling virtual object
CN114090085A (en) * 2021-11-18 2022-02-25 腾讯科技(深圳)有限公司 Object control method and related device
CN114849224A (en) * 2022-05-06 2022-08-05 咪咕互动娱乐有限公司 Information processing method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN107911437B (en) Screen sharing method and device, electronic equipment and storage medium
CN112235121B (en) Method, device, equipment and storage medium for realizing online conference
WO2022143182A1 (en) Video signal playing method, apparatus, and device for multi-user interaction
CN108881783B (en) Method and device for realizing multi-person conversation, computer equipment and storage medium
CN110881144B (en) Data processing method based on live broadcast platform and related equipment
CN108235042A (en) A kind of more people's live network broadcast methods, device, adding apparatus and system
CN104050013B (en) virtual desktop processing method, device and virtual desktop server
WO2021180174A1 (en) Song playing method, apparatus, and system and computer storage medium
CN111803923A (en) Game sharing method based on cloud mobile phone system, electronic equipment and storage medium
CN112383832B (en) Live broadcast room interaction method, electronic equipment and computer readable storage medium
CN104998412A (en) Single-player game realization method and apparatus
CN110740161A (en) system and method for adapting converged communication
US20230051868A1 (en) Livestreaming Interaction Method And Apparatus, Electronic Device, And Computer Readable Storage Medium
CN114546308A (en) Application interface screen projection method, device, equipment and storage medium
CN113542660A (en) Method, system and storage medium for realizing conference multi-picture high-definition display
CN115445194A (en) Rendering method, device and equipment of game and storage medium
CN103581197B (en) Cross-server realizes the method and system of team's data processing
US20220021715A1 (en) Live streaming method and apparatus, device and computer readable storage medium
CN111866440B (en) Method, device and equipment for pushing video data and storage medium
CN114598931A (en) Streaming method, system, device and medium for multi-open cloud game
CN106921634B (en) Multimedia stream multicast method and device
CN116328290A (en) Method and device for realizing online fight of cloud game, storage medium and electronic equipment
CN108635862B (en) Operation control method, device and storage medium
CN114090085B (en) Object control method and related device
CN109086123A (en) Moving method, device, terminal, server and the storage medium of utility cession

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230627