A cloud game control method and device, electronic equipment and storage medium
By detecting user touch operations on the cloud gaming server and setting the detection duration, the problem of wasted bandwidth when users are away for short or long periods of time is solved, achieving accurate idle state detection and resource conservation.
Patent Information
- Application Number
- CN202111314189.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-08
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2041-11-08
AI Technical Summary
During cloud gaming, the server continues to push data even when the user is away for a short or long time, resulting in wasted bandwidth and data.
By detecting user touch operations on the cloud gaming server and setting a detection period, if no user operation is detected within the specified period, the cloud gaming session ends to avoid data push.
Accurately detect user idle status, reduce data waste, improve resource utilization efficiency, and ensure user experience.
Smart Images

Figure CN114082174B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of computers, in particular to cloud computing technology, and more particularly to a cloud game control method and device, electronic equipment, storage medium and computer program product. BACKGROUND
[0002] Cloud gaming is a game mode based on cloud computing. In the running mode of cloud gaming, all games run on the server side, and the rendered game pictures are compressed and transmitted to the user through the network. On the client side, the user's game device does not require any high-end processor and graphics card, but only basic video decompression capability. SUMMARY
[0003] The present disclosure provides a cloud game control method and device, electronic equipment, storage medium and computer program product.
[0004] According to an aspect of the present disclosure, a cloud game control method is provided, comprising:
[0005] During the running of the cloud game, it is determined whether there is a touch operation on the cloud game within a detection time length of the user on the cloud game;
[0006] If not, it is determined that the user is in an idle state, and the cloud game is ended.
[0007] According to an aspect of the present disclosure, a cloud game control device is provided, comprising:
[0008] The detection module is configured to determine whether there is a touch operation on the cloud game within a detection time length of the user on the cloud game during the running of the cloud game;
[0009] The control module is configured to determine that the user is in an idle state if there is no touch operation, and end the cloud game.
[0010] According to another aspect of the present disclosure, an electronic equipment is provided, comprising:
[0011] At least one processor; and
[0012] A memory in communication connection with the at least one processor; wherein
[0013] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the cloud game control method of any embodiment of the present disclosure.
[0014] According to another aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, and the computer instructions are used to make a computer execute the cloud game control method of any embodiment of the present disclosure.
[0015] According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the control method of cloud gaming according to any of the embodiments of the present disclosure.
[0016] According to the technology of the present disclosure, the user idle state is accurately and timely detected, and the cloud game is ended to avoid causing a large amount of traffic data waste.
[0017] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0018] The accompanying drawings are used to better understand the present scheme and do not limit the present disclosure. Among them:
[0019] Figure 1 is a flowchart of a control method of cloud gaming according to an embodiment of the present disclosure;
[0020] Figure 2 is a flowchart of another control method of cloud gaming according to an embodiment of the present disclosure;
[0021] Figure 3 is a flowchart of another control method of cloud gaming according to an embodiment of the present disclosure;
[0022] Figure 4 is a structural schematic diagram of a control device of cloud gaming according to an embodiment of the present disclosure;
[0023] Figure 5 is a block diagram of an electronic device for implementing the control method of cloud gaming according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to assist in understanding, and should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Also, in order to be clear and concise, descriptions of well-known functions and structures are omitted in the following description.
[0025] In the embodiments of the present disclosure, in order to facilitate understanding of the cloud game control method of the present disclosure, the architecture of the cloud phone system in the present disclosure is first briefly described. The cloud phone system at least includes a client, a control service and a cloud phone. The client refers to an application program app used by a user, and the user can operate his / her cloud phone on the app. The control service is deployed on a server and is a bridge connecting the client and the cloud phone, responsible for data authentication and forwarding, and the video data of the cloud phone will be pushed to the client and must be processed by the control service. The cloud phone is a device deployed in a computer room.
[0026] When the user tries the cloud game through the cloud phone, the cloud phone generally judges whether the user ends the trial by detecting whether the network connection between the client of the user and the server is disconnected. For example, the server will actively end the trial only when the user actively closes the client. However, sometimes the user will leave for a short or long time during the trial of the cloud game, but the server still considers that the user is trying the cloud game, and the server will continue to push the data of the cloud phone to the client, causing a large waste of traffic data. Based on this, a cloud game control method that does not rely on the user level to judge whether the current is in the trial state is proposed. For details, see the following embodiments.
[0027] Figure 1 For a flowchart of a cloud game control method of the embodiments of the present disclosure, the present embodiment can be applied to detecting whether the user is idle by the control service of the server, and controlling the cloud game according to the detection result. The method can be executed by a cloud game control device, which is realized in the form of software and / or hardware and integrated on an electronic device.
[0028] Specifically, referring to Figure 1 , the cloud game control method is as follows:
[0029] S101, in the running process of the cloud game, it is determined whether there is a touch operation of the user on the cloud game within a detection time length of the cloud game.
[0030] S102, if not, it is determined that the user is in an idle state, and the cloud game is ended.
[0031] S103, if yes, it is determined that the user is in a trial state, and the cloud game is continued to run.
[0032] In the embodiments of the present disclosure, the detection duration of the cloud game is optionally the longest time that the user is allowed to continuously control the cloud game. In an optional implementation, the process of determining the detection duration of the cloud game is as follows: in response to a user request for a trial of the cloud game, the detection duration of the cloud game is extracted from the configuration file of the cloud phone control service, wherein the configuration file of the cloud phone is exemplary for reporting user information. It should be noted that, compared to configuring the detection duration on the client side, setting the detection duration in the configuration file of the control service, the staff (for example, the operator of the cloud phone) only needs to modify the configuration file of the control service to achieve the purpose of dynamically modifying the detection duration of the cloud game, without the need to operate the client of the user, simplifying the setting work of the detection duration.
[0033] In the embodiments of the present disclosure, the idle state of the user is a state of user behavior, and the situation is complex, and the use of the cloud phone by the user needs to be analyzed and collected to determine the idle state of the user. In the embodiments, the idle state is optionally a state in which the user stops playing the cloud game, and the trial state is optionally a state in which the user normally plays the cloud game. When determining the idle state of the user, the detection duration of the cloud game is obtained, so that it is only necessary to determine whether the user has a touch operation within the detection duration, so as to determine whether the user is in an idle state, for example, if no touch operation of the user on the cloud game is detected for more than a preset duration, it is considered that the user is in an idle state. At this time, in order to avoid the server continuing to push the data of the cloud phone to the client, causing a large amount of waste of traffic data, the control service can directly disconnect the cloud game. If it is determined that the user is in a trial state, the cloud game continues to run to ensure the trial experience of the user.
[0034] It should be noted that the idle state of the user can also be determined by using the idle screen locking mechanism of the client phone, that is, during the running of the cloud game, if the client detects that the client phone is locked, the locking information is returned to the control service, and the control service determines that the user is in an idle state according to the locking information, at this time, the trial of the cloud game can be ended to avoid waste of traffic.
[0035] In the embodiments of the present disclosure, the control service of the server is used to detect whether the user has an operation on the cloud game, so as to not rely on the user level to determine whether the cloud game is currently played, so that after detecting that the user has no touch operation, the trial of the cloud game is accurately and effectively ended, and unnecessary data traffic is reduced.
[0036] Further, in order to ensure the accuracy of the detection duration of the cloud game, the game scene in which the user is located needs to be considered, and the detection duration is adjusted according to the scene in which the user is located. In an optional implementation, the game scene in which the user is located is determined. For example, if it is detected that the user starts a call application and answers an incoming call, it is determined that the user is in a call scene. Since the network environment will become poor when the user enters an elevator or a closed place, if it is detected that the network environment in which the user is located is suddenly changed, it is determined that the user is in a network abnormality game scene. In the case of a preset scene, the detection duration of the cloud game is adjusted to determine whether the user is in an idle state within the adjusted detection duration. The preset scene includes a network abnormality scene and / or a call scene. For example, the preset detection duration is 30 seconds. If it is determined according to the network state that the user is in a network congestion game scene or that the user is in a call scene at the 15th second, the detection duration is extended, for example, by 5 minutes, to avoid ending the cloud game by mistake. In this way, the detection duration is adjusted according to the game scene in which the user is located, the detection duration is configured according to the actual situation, and the purpose of determining whether the user is idle in different scenes is achieved.
[0037] Figure 2 is a flowchart of another cloud game control method according to an embodiment of the present disclosure. Based on the above-mentioned embodiments, the process of determining whether the user has a touch operation on the cloud game within the detection duration of the cloud game is refined, as shown in Figure 2 , the cloud game control method is as follows:
[0038] S201, during the running of the cloud game, it is determined whether a click event sent by the client is received within the detection duration.
[0039] S202, if yes, it is determined that the user has a touch operation on the cloud game.
[0040] S203, if no, it is determined that the user does not have a touch operation on the cloud game, the user is in an idle state, and the cloud game is ended.
[0041] In the embodiment of the present disclosure, the whole process of responding to a click event from the client to the cloud phone once is first described. The control service receives the click event of the client on the cloud phone, and the content of the click event is transmitted in the form of coordinates. After the client collects the click coordinates of the user on the real machine (the user's physical device installed with the client), the coordinates are converted into the coordinates on the cloud phone. Optionally, the conversion is performed according to the relationship between the resolutions of the real machine and the cloud phone, for example, by means of equal ratio scaling. It should be noted that if the resolutions of the real machine and the cloud phone are previously set to be the same, the coordinate conversion is not required. After the coordinate conversion is completed, the coordinates are transmitted to the control service, and then the control service receives the click coordinates and transmits them to the cloud phone. After the cloud phone receives the click event, the response to this click is realized.
[0042] In the embodiments of the present disclosure, the sending of the client click event is taken as the criterion for determining whether the user is idle, if it is determined that no click event sent by the client is received within the detection duration, it is determined that there is no touch operation of the user on the cloud game, that is, the user is in an idle state, at this time, in order to avoid wasting traffic, the cloud game can be directly ended; if it is determined that the click event sent by the client is received within the detection duration, it is determined that there is a touch operation of the user on the cloud game, the user is in a trial state, that is, the user is playing the cloud game, at this time, the cloud game needs to be run to ensure the trial experience of the user.
[0043] In the embodiments of the present disclosure, by judging whether the click event is received within the preset duration, it can be accurately determined whether the user performs the trial operation of the cloud game within the detection duration, that is, it can be accurately determined whether the user is in an idle state; and then after the user is in an idle state, the cloud game is directly ended, which realizes actively disconnecting the cloud game from the server level without relying on the user level to determine, thereby avoiding issuing video data when the user is in an idle state and reducing the loss of video data traffic.
[0044] Figure 3 It is a flowchart of another cloud game control method according to the embodiments of the present disclosure, the present embodiment further refines the process of determining whether the user has a touch operation on the cloud game within the detection duration of the cloud game, referring to Figure 3 , the cloud game control method is specifically as follows:
[0045] S301, setting a timer according to the detection duration, and controlling the timer to restart counting.
[0046] S302, determining whether a click event sent by the client is received before the counting ends.
[0047] S303, if yes, it is determined that the user has a touch operation on the cloud game.
[0048] S304, if no, it is determined that the user has no touch operation on the cloud game, and it is determined that the user is in an idle state, and the cloud game is ended.
[0049] In the embodiments of the present disclosure, a timer can be set in the control service, which can be set when the user requests to try the cloud game, or can be set when the user starts to try the cloud game, and the specific limitation is not made herein. Then, the detection duration of the cloud game is taken as the timing time of the timer. After the user starts to try the cloud game, the timer starts timing. Before the timing ends, if the click event sent by the client is not received, it is determined that the user does not have touch operation on the cloud game, that is, the user is in an idle state, and the cloud game is ended to save traffic. Before the timing ends, if the click event sent by the client is received, it is determined that the user is trying the cloud game, and the timer is reset at this time, that is, the timer starts to re-time, and then it is judged whether the click event sent by the client is received before the timing ends. By such a cycle, the detection of the idle state of the user can be realized continuously, and the cloud game can be ended when the user is idle to avoid traffic waste.
[0050] In the embodiments of the present disclosure, the timer is set in the control service, and the detection duration is taken as the timing time of the timer. As long as the click event is received before the timing ends, it is determined that the user is in an idle state, and the cloud game is ended to avoid traffic waste.
[0051] Figure 4 FIG. 1 is a structural schematic diagram of a control device of a cloud game according to the embodiments of the present disclosure. The embodiments can be applied to the detection of whether the user is idle by the control service of the server, and the control of the cloud game according to the detection result. As shown in the figure, the device specifically includes: Figure 4
[0052] The detection module 401 is configured to determine whether the user has touch operation on the cloud game within the detection duration of the cloud game in the running process of the cloud game.
[0053] The control module 402 is configured to determine that the user is in an idle state and end the cloud game if there is no touch operation.
[0054] On the basis of the above-mentioned embodiments, the detection module can optionally include:
[0055] The timing unit is configured to set the timer according to the detection duration, and control the timer to start timing again.
[0056] The first detection unit is configured to determine whether the user has touch operation on the cloud game before the timing ends.
[0057] On the basis of the above-mentioned embodiments, the detection module can optionally include:
[0058] The click event detection unit is configured to determine whether the click event sent by the client is received within the detection duration.
[0059] The determining unit is configured to determine that the user has the touch operation on the cloud game if yes, and determine that the user does not have the touch operation on the cloud game if no.
[0060] On the basis of the above-mentioned embodiments, optionally, the apparatus further comprises:
[0061] The extraction module is configured to extract the detection duration of the cloud game from the configuration file of the cloud mobile phone control service in response to a trial request of the user on the cloud game.
[0062] On the basis of the above-mentioned embodiments, optionally, the apparatus further comprises:
[0063] The scene determining module is configured to determine a game scene in which the user is located.
[0064] The adjustment module is configured to adjust the detection duration of the cloud game in a case where the game scene is a preset scene; the preset scene includes a network anomaly scene and / or a call scene.
[0065] The cloud game control apparatus provided by the embodiments of the present disclosure can execute the cloud game control method provided by any of the embodiments of the present disclosure, and has the corresponding function modules and beneficial effects of the execution method. The contents not described in detail in the present embodiment can be referred to the description in any of the method embodiments of the present disclosure.
[0066] In the technical solutions of the present disclosure, the acquisition, storage and application of user personal information comply with relevant laws and regulations and do not violate public order and good customs.
[0067] According to the embodiments of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium and a computer program product.
[0068] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the present disclosure described and / or claimed in this document.
[0069] As Figure 5As shown, the device 500 includes a computing unit 501 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0070] A plurality of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a magnetic disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0071] The computing unit 501 can be various general and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 performs various methods and processes described above, such as the control method of cloud gaming. For example, in some embodiments, the control method of cloud gaming can be implemented as a computer software program that is tangibly embodied in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the control method of cloud gaming described above can be performed. Alternatively, in other embodiments, the computing unit 501 can be configured to perform the control method of cloud gaming by any other appropriate means (e.g., by means of firmware).
[0072] The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a load programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0073] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or the block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, or entirely on a remote machine or server.
[0074] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0075] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0076] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0077] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0078] It should be understood that various forms of flow shown above can be used, with steps reordered, added, or removed. For example, the steps recited in the present disclosure can be performed in parallel, in series, or in a different order, without limitation herein, so long as the desired results of the technology disclosed in the present disclosure are achieved.
[0079] The specific embodiments described above are not intended to limit the scope of the present disclosure. Those skilled in the art will understand that various modifications, combinations, sub-combinations, and alternatives can be made to the specific embodiments without departing from the spirit and principles of the present disclosure. Any further modifications, equivalent substitutions, improvements, and the like, either alone or in some combination or sub-combination, are intended to be included within the scope of the present disclosure.
Claims
1. A method for controlling cloud gaming, the method comprising: During cloud gaming operations, determine the user's game scenario; When the game scenario is a preset scenario, adjust the detection duration of cloud gaming; The preset scenarios include network anomaly scenarios and / or call scenarios; Determine whether the user made any touch operations on the cloud game during the detection period; If not, the user is determined to be in an idle state, and the cloud game ends; If a lock screen message is received from the client's mobile phone, it is determined that the user is in an idle state, and the cloud game ends.
2. The method according to claim 1, wherein, Determining whether the user has made any touch operations on the cloud game during the detection period includes: Based on the detection duration, set a timer and control the timer to restart. Determine whether the user made any touch operations on the cloud game before the timer ended.
3. The method according to claim 1, wherein, Determining whether the user has made any touch operations on the cloud game during the detection period includes: Determine whether a click event sent by the client is received within the detection period; If yes, then it is determined that the user has performed touch operations on the cloud game; otherwise, it is determined that the user has not performed touch operations on the cloud game.
4. The method according to claim 1, further comprising: In response to a user's request to try out a cloud game, the detection duration of the cloud game is extracted from the configuration file of the cloud phone control service.
5. A cloud gaming control device, comprising: The scene determination module is used to determine the game scene in which the user is located; An adjustment module is used to adjust the detection duration of the cloud game when the game scenario is a preset scenario; the preset scenario includes network anomaly scenarios and / or call scenarios; The detection module is used to determine whether the user has made any touch operations on the cloud game during the detection period of the cloud game. The control module is used to determine that the user is idle if the cloud game does not exist, and then terminate the cloud game. The screen lock shutdown module is used to determine that the user is in an idle state and end the cloud game if it receives screen lock information from the client's mobile phone.
6. The apparatus according to claim 5, wherein, The detection module includes: A timing unit is used to set a timer according to the detection duration and control the timer to restart the timing process; The first detection unit is used to determine whether the user has made any touch operations on the cloud game before the timer ends.
7. The apparatus according to claim 5, wherein, The detection module includes: The click event detection unit is used to determine whether a click event sent by the client is received within the detection period; The determining unit is used to determine if the user has touched the cloud game if so, and otherwise to determine if the user has not touched the cloud game.
8. The apparatus according to claim 5, further comprising: The extraction module is used to extract the detection duration of cloud games from the configuration file of the cloud phone control service in response to user requests to try out cloud games.
9. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-4.
11. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-4.
Citation Information
Patent Citations
Method, device and system for running cloud game
CN108815842A