CN111773660A - A cloud game processing system, method and device - Google Patents
A cloud game processing system, method and device Download PDFInfo
- Publication number
- CN111773660A CN111773660A CN202010630410.XA CN202010630410A CN111773660A CN 111773660 A CN111773660 A CN 111773660A CN 202010630410 A CN202010630410 A CN 202010630410A CN 111773660 A CN111773660 A CN 111773660A
- Authority
- CN
- China
- Prior art keywords
- client
- cloud game
- video stream
- game
- cloud
- 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
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/31—Communication aspects specific to video games, e.g. between several handheld game devices at close range
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/79—Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
- A63F13/795—Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories for finding other players; for building a team; for providing a buddy list
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/50—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
- A63F2300/55—Details of game data or player data management
- A63F2300/5546—Details of game data or player data management using player registration data, e.g. identification, account, preferences, game history
- A63F2300/5566—Details of game data or player data management using player registration data, e.g. identification, account, preferences, game history by matching opponents or finding partners to build a team, e.g. by skill level, geographical area, background, play style
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- General Business, Economics & Management (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请提供一种云游戏处理系统、方法及装置,其中所述云游戏处理系统包括:客户端以及云游戏服务器;所述客户端,被配置为向所述云游戏服务器提交游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识;所述云游戏服务器,被配置为接收客户端提交的游戏画面分享请求,获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流,并将所述待输出视频流传输至所述客户端;所述客户端,还被配置为接收所述待输出视频流,并配置至少一个显示窗口以分别显示所述至少一个目标角色标识的待输出视频流。
The present application provides a cloud game processing system, method and device, wherein the cloud game processing system includes: a client and a cloud game server; the client is configured to submit a game screen sharing request to the cloud game server, The game screen sharing request carries a cloud game identifier and at least one target character identifier; the cloud game server is configured to receive the game screen sharing request submitted by the client, and obtain the cloud game corresponding to the cloud game identifier. The to-be-output video stream identified by at least one target role, and the to-be-output video stream is transmitted to the client; the client is further configured to receive the to-be-output video stream, and configure at least one display window to The to-be-output video streams identified by the at least one target character are respectively displayed.
Description
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种云游戏处理系统、方法及装置、计算设备和计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to a cloud game processing system, method and apparatus, computing device and computer-readable storage medium.
背景技术Background technique
云游戏是以云计算为基础的游戏方式,在云游戏的运行模式下,所有游戏都在对应的服务器中运行,由服务器将渲染完毕后的游戏画面压缩后通过网络传送给承载游戏的终端。终端不需要任何高端处理器和显卡,只需要基本的视频解压能力就可以获取到相应的游戏画面。Cloud gaming is a game method based on cloud computing. In the running mode of cloud gaming, all games are run on the corresponding server. The server compresses the rendered game screen and transmits it to the terminal that hosts the game through the network. The terminal does not need any high-end processor and graphics card, and only needs basic video decompression capability to obtain the corresponding game screen.
尽管云游戏对终端的性能要求有所降低,可以使得游戏画面更加流畅,但对于一些需要协作的游戏,像大规模的团战,则需要团队中的成员协作完成相关的任务,因此,团队间的信息互通共享就变的尤为重要,但目前团队成员通常会通过文字或者语音的方式来沟通交流,考虑到文字和语言沟通的局限性,如果通过更好的沟通方式,将游戏画面及时分享给团队中的成员,成为亟需解决的问题。Although the performance requirements of cloud games on the terminal are reduced, which can make the game screen smoother, for some games that require cooperation, such as large-scale team battles, members of the team need to cooperate to complete related tasks. The exchange and sharing of information becomes particularly important, but currently team members usually communicate through text or voice. Considering the limitations of text and language communication, if a better communication method is used, the game screen can be shared in time to The members of the team become the problem that needs to be solved urgently.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供了一种云游戏处理系统、方法及装置、计算设备和计算机可读存储介质,以解决现有技术中存在的技术缺陷。In view of this, embodiments of the present application provide a cloud game processing system, method and apparatus, computing device, and computer-readable storage medium, so as to solve the technical defects existing in the prior art.
根据本申请实施例的第一方面,提供了一种云游戏处理系统,包括:According to a first aspect of the embodiments of the present application, a cloud game processing system is provided, including:
客户端以及云游戏服务器;Client and cloud game server;
所述客户端,被配置为向所述云游戏服务器提交游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识;The client is configured to submit a game screen sharing request to the cloud game server, where the game screen sharing request carries a cloud game identifier and at least one target character identifier;
所述云游戏服务器,被配置为接收客户端提交的游戏画面分享请求,获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流,并将所述待输出视频流传输至所述客户端;The cloud game server is configured to receive the game screen sharing request submitted by the client, obtain the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier, and store the to-be-output video stream. streaming to said client;
所述客户端,还被配置为接收所述待输出视频流,并配置至少一个显示窗口以分别显示所述至少一个目标角色标识的待输出视频流。The client is further configured to receive the to-be-output video stream, and configure at least one display window to respectively display the to-be-output video stream identified by the at least one target character.
可选地,所述云游戏处理系统,还包括:目标客户端;Optionally, the cloud game processing system further includes: a target client;
所述云游戏服务器,还被配置为将所述游戏画面分享请求发送至所述至少一个目标角色标识关联的至少一个目标客户端;The cloud game server is further configured to send the game screen sharing request to at least one target client associated with the at least one target character identifier;
所述目标客户端,被配置为向所述云游戏服务器发送游戏画面的确认分享指令以响应所述游戏画面分享请求;The target client is configured to send a confirmation sharing instruction of the game screen to the cloud game server in response to the game screen sharing request;
所述云游戏服务器,还被配置为在接收到所述确认分享指令的情况下,获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流,并将对所述待输出视频流进行编码获得的编码数据传输至所述客户端。The cloud game server is further configured to obtain the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier when the confirmation sharing instruction is received, and send all the video streams to be output. The encoded data obtained by encoding the to-be-output video stream is transmitted to the client.
可选地,所述云游戏服务器,还被配置为:获取所述云游戏标识对应的云游戏中所述客户端关联的角色标识的待输出视频流,并将对所述待输出视频流进行编码获得的初始编码数据传输至所述客户端;Optionally, the cloud game server is further configured to: acquire the to-be-output video stream of the character identifier associated with the client in the cloud game corresponding to the cloud game identifier, and to perform a video stream on the to-be-output video stream. transmitting the initial encoded data obtained by encoding to the client;
所述客户端,还被配置为:接收所述初始编码数据以及所述编码数据,分别对所述初始编码数据以及所述编码数据进行解析,根据解析获得的初始解析结果以及目标解析结果生成第一显示窗口和第二显示窗口;其中,所述第二显示窗口与所述第一显示窗口叠加显示。The client is further configured to: receive the initial encoded data and the encoded data, parse the initial encoded data and the encoded data respectively, and generate the first parsing result according to the initial parsing result obtained by parsing and the target parsing result. A display window and a second display window; wherein, the second display window and the first display window are displayed superimposed.
可选地,所述云游戏服务器,还被配置为:获取所述云游戏标识对应的云游戏中所述目标客户端关联的目标角色标识的待输出视频流,并将对所述待输出视频流进行编码获得的目标编码数据传输至所述目标客户端;Optionally, the cloud game server is further configured to: acquire the to-be-output video stream of the target character identifier associated with the target client in the cloud game corresponding to the cloud game identifier, and send the to-be-output video stream to the cloud game identifier. The target encoded data obtained by encoding the stream is transmitted to the target client;
所述目标客户端,还被配置为:接收所述目标编码数据,并将所述目标编码数据发送至所述客户端,以响应所述游戏画面分享请求。The target client is further configured to: receive the target encoded data, and send the target encoded data to the client, so as to respond to the game screen sharing request.
可选地,所述云游戏服务器,还被配置为:获取所述云游戏标识对应的云游戏中所述客户端关联的角色标识的待输出视频流,并将对所述待输出视频流进行编码获得的初始编码数据传输至所述客户端;Optionally, the cloud game server is further configured to: acquire the to-be-output video stream of the character identifier associated with the client in the cloud game corresponding to the cloud game identifier, and to perform a video stream on the to-be-output video stream. transmitting the initial encoded data obtained by encoding to the client;
所述客户端,还被配置为:接收所述初始编码数据以及所述目标编码数据,分别对所述初始编码数据以及所述目标编码数据进行解析,根据解析获得的初始解析结果以及目标解析结果生成第一显示窗口和第二显示窗口;其中,所述第一显示窗口与所述第二显示窗口叠加显示,或所述第一显示窗口与所述第二显示窗口并列显示。The client is further configured to: receive the initial encoded data and the target encoded data, parse the initial encoded data and the target encoded data respectively, and obtain the initial parsing result and the target parsing result according to the parsing A first display window and a second display window are generated; wherein, the first display window and the second display window are superimposed and displayed, or the first display window and the second display window are displayed side by side.
可选地,所述客户端与所述至少一个目标客户端对应的游戏角色携带相同的组队标识。Optionally, the game characters corresponding to the client and the at least one target client carry the same team identification.
可选地,所述待输出视频流包含目标角色的画面数据和/或音频数据;Optionally, the video stream to be output includes picture data and/or audio data of the target character;
所述云游戏服务器,还被配置为对所述画面数据和/或音频数据进行编码,获得对应的编码数据,并将所述编码数据传输至所述客户端。The cloud game server is further configured to encode the picture data and/or audio data, obtain corresponding encoded data, and transmit the encoded data to the client.
可选地,所述云游戏服务器,进一步被配置为:将所述画面数据绘制在预设显存中,生成待编码画面,并对所述待编码画面进行编码,获得对应的画面编码数据;以及,利用音频编码函数对所述音频数据进行编码,获得对应的音频编码数据。Optionally, the cloud game server is further configured to: draw the picture data in a preset video memory, generate a picture to be encoded, and encode the picture to be encoded to obtain corresponding picture encoding data; and , and encode the audio data by using an audio encoding function to obtain corresponding audio encoded data.
可选地,所述客户端,还被配置为:接收并对所述画面编码数据以及所述音频编码数据进行解码,获得所述画面数据以及所述音频数据,并通过显示窗口播放所述画面数据和所述音频数据。Optionally, the client is further configured to: receive and decode the picture coded data and the audio coded data, obtain the picture data and the audio data, and play the picture through a display window data and the audio data.
根据本申请实施例的第二方面,提供了一种云游戏处理方法,包括:According to a second aspect of the embodiments of the present application, a cloud game processing method is provided, including:
接收客户端提交的游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识;receiving a game screen sharing request submitted by the client, where the game screen sharing request carries a cloud game identifier and at least one target character identifier;
获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流;Acquiring the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier;
将所述待输出视频流传输至所述客户端。The to-be-output video stream is transmitted to the client.
可选地,所述接收客户端提交的游戏画面分享请求步骤执行之后,所述获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流步骤执行之前,还包括:Optionally, after the step of receiving the game screen sharing request submitted by the client is performed, and before the step of acquiring the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier is performed, the method further includes: :
将所述游戏画面分享请求发送至所述至少一个目标角色标识关联的目标客户端;sending the game screen sharing request to the target client associated with the at least one target character identifier;
在接收到至少一个目标客户端返回的确认分享指令的情况下,执行所述获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流的步骤。In the case of receiving the confirmation sharing instruction returned by at least one target client, the step of acquiring the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier is performed.
可选地,所述客户端与所述至少一个目标客户端对应的游戏角色携带相同的组队标识。Optionally, the game characters corresponding to the client and the at least one target client carry the same team identification.
可选地,所述待输出视频流包含目标角色的画面数据和/或音频数据;Optionally, the video stream to be output includes picture data and/or audio data of the target character;
相应的,所述将所述待输出视频流传输至所述客户端,包括:Correspondingly, the transmitting the to-be-output video stream to the client includes:
对所述画面数据和/或音频数据进行编码,获得对应的编码数据,并将所述编码数据传输至所述客户端。The picture data and/or audio data are encoded to obtain corresponding encoded data, and the encoded data is transmitted to the client.
可选地,所述对所述画面数据和/或音频数据进行编码,获得对应的编码数据,包括:Optionally, the encoding of the picture data and/or audio data to obtain corresponding encoded data includes:
将所述画面数据绘制在预设显存中,生成待编码画面,并对所述待编码画面进行编码,获得对应的画面编码数据;以及,利用音频编码函数对所述音频数据进行编码,获得对应的音频编码数据。Drawing the picture data in a preset display memory, generating a picture to be encoded, and encoding the picture to be encoded to obtain corresponding picture encoding data; and, using an audio encoding function to encode the audio data to obtain the corresponding picture audio encoded data.
根据本申请实施例的第三方面,提供了一种云游戏处理方法,包括:According to a third aspect of the embodiments of the present application, a cloud game processing method is provided, including:
向云游戏服务器发送游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识;sending a game screen sharing request to the cloud game server, where the game screen sharing request carries a cloud game identifier and at least one target character identifier;
接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流;receiving the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier returned by the cloud game server;
基于所述待输出视频流配置至少一个显示窗口,所述至少一个显示窗口分别显示所述至少一个目标角色标识的待输出视频流。At least one display window is configured based on the to-be-output video stream, and the at least one display window respectively displays the to-be-output video stream identified by the at least one target character.
可选地,所述基于所述待输出视频流配置至少一个显示窗口步骤执行之前,还包括:Optionally, before the step of configuring at least one display window based on the to-be-output video stream is performed, the method further includes:
接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述客户端关联的角色标识的初始视频流;receiving the initial video stream of the character identifier associated with the client in the cloud game corresponding to the cloud game identifier returned by the cloud game server;
相应的,所述基于所述待输出视频流配置至少一个显示窗口,包括:Correspondingly, the configuring at least one display window based on the to-be-output video stream includes:
基于所述初始视频流以及所述待输出视频流配置第一显示窗口和第二显示窗口;其中,所述第二显示窗口与所述第一显示窗口叠加显示。A first display window and a second display window are configured based on the initial video stream and the to-be-output video stream; wherein, the second display window and the first display window are superimposed and displayed.
可选地,所述向云游戏服务器发送游戏画面分享请求步骤执行之后,所述基于所述待输出视频流配置至少一个显示窗口步骤执行之前,还包括:Optionally, after the step of sending a game screen sharing request to the cloud game server is performed, and before the step of configuring at least one display window based on the to-be-output video stream is performed, the method further includes:
接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述客户端关联的角色标识的初始视频流;receiving the initial video stream of the character identifier associated with the client in the cloud game corresponding to the cloud game identifier returned by the cloud game server;
接收至少一个目标客户端返回的所述云游戏标识对应的云游戏中所述至少一个目标客户端关联的至少一个目标角色标识的待输出视频流;receiving a video stream to be output with at least one target character identifier associated with the at least one target client in the cloud game corresponding to the cloud game identifier returned by at least one target client;
相应的,所述基于所述待输出视频流配置至少一个显示窗口,包括:Correspondingly, the configuring at least one display window based on the to-be-output video stream includes:
基于所述初始视频流以及所述待输出视频流配置第一显示窗口和第二显示窗口;其中,所述第一显示窗口与所述第二显示窗口叠加显示,或所述第一显示窗口与所述第二显示窗口并列显示。A first display window and a second display window are configured based on the initial video stream and the to-be-output video stream; wherein, the first display window and the second display window are superimposed and displayed, or the first display window and the The second display windows are displayed side by side.
根据本申请实施例的第四方面,提供了一种云游戏处理装置,包括:According to a fourth aspect of the embodiments of the present application, a cloud game processing apparatus is provided, including:
接收模块,被配置为接收客户端提交的游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识;a receiving module, configured to receive a game screen sharing request submitted by a client, where the game screen sharing request carries a cloud game identifier and at least one target character identifier;
获取模块,被配置为获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流;an acquisition module, configured to acquire the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier;
传输模块,被配置为将所述待输出视频流传输至所述客户端。The transmission module is configured to transmit the to-be-output video stream to the client.
根据本申请实施例的第五方面,提供了一种云游戏处理装置,包括:According to a fifth aspect of the embodiments of the present application, a cloud game processing apparatus is provided, including:
发送模块,被配置为向云游戏服务器发送游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识;a sending module, configured to send a game screen sharing request to the cloud game server, where the game screen sharing request carries a cloud game identifier and at least one target character identifier;
接收模块,被配置为接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流;a receiving module, configured to receive the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier returned by the cloud game server;
配置模块,被配置为基于所述待输出视频流配置至少一个显示窗口,所述至少一个显示窗口分别显示所述至少一个目标角色标识的待输出视频流。The configuration module is configured to configure at least one display window based on the to-be-output video stream, and the at least one display window respectively displays the to-be-output video stream identified by the at least one target character.
根据本申请实施例的第六方面,提供了一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机指令,所述处理器执行所述指令时实现所述云游戏处理方法的步骤。According to a sixth aspect of the embodiments of the present application, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, the processor implementing the instructions when the processor executes the instructions The steps of the cloud game processing method.
根据本申请实施例的第七方面,提供了一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现所述云游戏处理方法的步骤。According to a seventh aspect of the embodiments of the present application, a computer-readable storage medium is provided, which stores computer instructions, and when the instructions are executed by a processor, implements the steps of the cloud game processing method.
本申请实施例中,客户端通过向云游戏服务器提交游戏画面分享请求,并接收云游戏服务器返回的目标角色的待输出视频流的方式,实现客户端与至少一个目标客户端之间游戏画面的共享,以通过这种画面共享的方式,将游戏画面及时分享给用户,有利于提高信息传输或信息交互的时效性,从而为用户提供更好的游戏体验。In the embodiment of the present application, the client terminal submits a game screen sharing request to the cloud game server, and receives the to-be-output video stream of the target character returned by the cloud game server, so as to realize the sharing of the game screen between the client and at least one target client. Sharing, in order to share the game screen to the user in a timely manner through this screen sharing method, is conducive to improving the timeliness of information transmission or information interaction, thereby providing users with a better game experience.
附图说明Description of drawings
图1是本申请实施例提供的计算设备的结构框图;1 is a structural block diagram of a computing device provided by an embodiment of the present application;
图2是本申请实施例提供的一种应用于云游戏服务器的云游戏处理方法的流程图;2 is a flowchart of a cloud game processing method applied to a cloud game server provided by an embodiment of the present application;
图3是本申请实施例提供的一种应用于客户端的云游戏处理方法的流程图;3 is a flowchart of a cloud game processing method applied to a client provided by an embodiment of the present application;
图4是本申请实施例提供的云游戏处理方法的交互图;4 is an interaction diagram of a cloud game processing method provided by an embodiment of the present application;
图5是本申请实施例提供的一种云游戏处理系统的示意图;5 is a schematic diagram of a cloud game processing system provided by an embodiment of the present application;
图6是本申请实施例提供的一种云游戏处理过程的场景图;6 is a scene diagram of a cloud game processing process provided by an embodiment of the present application;
图7是本申请实施例提供的一种配置于云游戏服务器的云游戏处理装置的结构示意图;7 is a schematic structural diagram of a cloud game processing device configured on a cloud game server according to an embodiment of the present application;
图8是本申请实施例提供的一种配置于客户端的云游戏处理装置的结构示意图。FIG. 8 is a schematic structural diagram of a cloud game processing apparatus configured on a client according to an embodiment of the present application.
具体实施方式Detailed ways
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.
在本申请一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请一个或多个实施例。在本申请一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本申请一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in one or more embodiments of the present application is for the purpose of describing a particular embodiment only, and is not intended to limit the one or more embodiments of the present application. As used in one or more embodiments of this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used in one or more embodiments of this application refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, etc. may be used in one or more embodiments of the present application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first could be termed the second, and similarly the second could be termed the first, without departing from the scope of one or more embodiments of the present application. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."
首先,对本发明一个或多个实施例涉及的名词术语进行解释。First, terminology related to one or more embodiments of the present invention is explained.
云游戏:指以云计算为基础的游戏方式,在云游戏的运行模式下,所有游戏都在服务器端运行,并将渲染完毕后的游戏画面压缩后通过网络传送给用户。在客户端,用户的游戏设备不需要任何高端处理器和显卡,只需要基本的视频解压能力就可以了。Cloud game: refers to the game mode based on cloud computing. In the operation mode of cloud game, all games are run on the server side, and the rendered game screen is 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 needs basic video decompression capabilities.
显存:也被叫做帧缓存,它的作用是用来存储显卡芯片处理过或者即将提取的渲染数据。如同计算机的内存一样,显存是用来存储要处理的图形信息的部件。Video memory: Also known as the frame buffer, it is used to store rendering data that has been processed or about to be extracted by the graphics card chip. Like a computer's memory, video memory is the component used to store graphics information to be processed.
在本申请中,提供了一种云游戏处理系统、方法及装置、计算设备和计算机可读存储介质,在下面的实施例中逐一进行详细说明。In this application, a cloud game processing system, method and apparatus, computing device and computer-readable storage medium are provided, which are described in detail in the following embodiments.
图1示出了根据本申请一实施例的计算设备100的结构框图。该计算设备100的部件包括但不限于存储器110和处理器120。处理器120与存储器110通过总线130相连接,数据库150用于保存数据。FIG. 1 shows a structural block diagram of a computing device 100 according to an embodiment of the present application. Components of the computing device 100 include, but are not limited to, memory 110 and processor 120 . The processor 120 is connected with the memory 110 through the bus 130, and the database 150 is used for saving data.
计算设备100还包括接入设备140,接入设备140使得计算设备100能够经由一个或多个网络160通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备140可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。Computing device 100 also includes access device 140 that enables computing device 100 to communicate via one or more networks 160 . Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. Access device 140 may include one or more of any type of network interface (eg, network interface card (NIC)), wired or wireless, such as IEEE 802.11 wireless local area network (WLAN) wireless interface, World Interoperability for Microwave Access ( Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, and the like.
在本申请的一个实施例中,计算设备100的上述部件以及图1中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图1所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In one embodiment of the present application, the above-described components of the computing device 100 and other components not shown in FIG. 1 may also be connected to each other, eg, via a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 1 is only for the purpose of example, rather than limiting the scope of the present application. Those skilled in the art can add or replace other components as required.
计算设备100可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备100还可以是移动式或静止式的服务器。Computing device 100 may be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (eg, tablets, personal digital assistants, laptops, notebook computers, netbooks, etc.), mobile phones (eg, smartphones ), wearable computing devices (eg, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. Computing device 100 may also be a mobile or stationary server.
其中,处理器120可以执行图2所示云游戏处理方法中的步骤。图2示出了根据本申请一实施例的一种应用于云游戏服务器的云游戏处理方法的流程图,包括步骤202至步骤206。The processor 120 may execute the steps in the cloud game processing method shown in FIG. 2 . FIG. 2 shows a flowchart of a cloud game processing method applied to a cloud game server according to an embodiment of the present application, including
步骤202,接收客户端提交的游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识。Step 202: Receive a game screen sharing request submitted by the client, where the game screen sharing request carries a cloud game identifier and at least one target character identifier.
云游戏是指基于云计算技术的游戏方式,游戏在服务器上运行,客户端不需要下载、安装、也不需要考虑客户端配置,只要有网络,就能玩运算量非常大的游戏。客户端包括个人电脑、机顶盒、移动终端等。Cloud gaming refers to a game method based on cloud computing technology. The game runs on the server, and the client does not need to download, install, or consider the configuration of the client. As long as there is a network, you can play games that require a lot of computing. Clients include personal computers, set-top boxes, mobile terminals, and the like.
云游戏可以是一个独立的游戏,用户使用客户端输入用户名和密码登录云游戏,与云游戏的服务器进行通信,即可进行游戏操作;云游戏也可以是从属于一个游戏平台,用户通过客户端输入用户名和密码登录云游戏平台,在云游戏平台的众多游戏中选择一款游戏进行游戏。The cloud game can be an independent game. The user uses the client to enter the user name and password to log in to the cloud game, communicate with the cloud game server, and then the game operation can be performed; the cloud game can also be subordinate to a game platform, and the user can use the client to log in to the cloud game. Enter the user name and password to log in to the cloud gaming platform, and choose a game among the many games on the cloud gaming platform to play.
本说明书实施例提供的一种云游戏处理方法,应用于云游戏服务器,在用户通过客户端与云游戏服务器通信并进行游戏的情况下,其他用户可通过其客户端向云游戏服务器发送游戏画面分享请求,以观看某个用户的游戏画面,由于云服务器中可能包含多款游戏,并且每款游戏中包含不同的游戏角色,因此,用户在发送游戏画面分享请求的同时,可以发送云游戏标识以及至少一个目标角色标识,云游戏服务器可根据云游戏标识以及目标角色标识,向用户的客户端发送对应的视频流。A cloud game processing method provided by an embodiment of this specification is applied to a cloud game server. When a user communicates with the cloud game server through a client and plays a game, other users can send a game screen to the cloud game server through their client. Sharing request to watch a user's game screen. Since the cloud server may contain multiple games, and each game contains different game characters, the user can send the cloud game ID when sending the game screen sharing request. and at least one target character identifier, the cloud game server can send a corresponding video stream to the user's client according to the cloud game identifier and the target character identifier.
具体的,用户可在与其他用户进行组队游戏的情况下,向云游戏服务器发送针对其他用户(队友或非队友)的游戏画面的分享请求,或者,在用户未进行组队游戏的情况下,可向云游戏服务器发送针对其他正在进行游戏的用户的游戏画面分享请求,本说明书实施例在此不做任何限制。Specifically, the user can send a request for sharing the game screen of other users (teammates or non-teammates) to the cloud game server when playing a team game with other users, or, when the user is not playing a team game , the game screen sharing request for other users who are playing the game can be sent to the cloud game server, and the embodiment of this specification does not make any limitation here.
若所述用户与其他用户进行组队游戏,则所述客户端与所述至少一个目标客户端中的一个客户端作为组队终端向其他客户端发送组队邀请,在其他客户端确认组队的情况下,则组队成功,并且所述客户端与所述至少一个目标客户端对应的游戏角色携带相同的组队标识,组队游戏开始后,用户可向云游戏服务器发送针对游戏中其他游戏角色(队友或非队友的游戏角色)的游戏画面分享请求。If the user plays a team game with other users, one of the client and the at least one target client serves as a team terminal to send a team invitation to the other clients, and the other client confirms the team formation In this case, the team formation is successful, and the game character corresponding to the client and the at least one target client carries the same team ID. After the team game starts, the user can send a message to the cloud game server for the Game screen sharing requests for game characters (teammates or non-teammates).
若所述用户未进行游戏,则用户可通过游戏界面的好友列表或组队列表中其他用户的状态(在线、离线或游戏中等)确定其他用户是否在游戏中,若是,则用户可向云游戏服务器提交针对至少一个状态为游戏中的用户的游戏画面分享请求。If the user is not playing the game, the user can determine whether other users are in the game through the status (online, offline or game, etc.) of other users in the friend list or the team list of the game interface, and if so, the user can report to the cloud game The server submits a game screen sharing request for at least one user whose status is in-game.
可选地,接收客户端提交的游戏画面分享请求之后,并且在获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流之前,还可将游戏画面分享请求发送至目标客户端,以由目标客户端确认是否进行画面分享,具体可通过以下方式实现:Optionally, after receiving the game screen sharing request submitted by the client, and before acquiring the to-be-output video stream of the at least one target character ID in the cloud game corresponding to the cloud game ID, the game screen sharing request may also be sent. To the target client, the target client can confirm whether to share the screen, which can be achieved in the following ways:
将所述游戏画面分享请求发送至所述至少一个目标角色标识关联的目标客户端;sending the game screen sharing request to the target client associated with the at least one target character identifier;
在接收到至少一个目标客户端返回的确认分享指令的情况下,执行所述获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流的步骤。In the case of receiving the confirmation sharing instruction returned by at least one target client, the step of acquiring the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier is performed.
具体的,由于游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识,因此,可根据所述云游戏标识以及所述目标角色标识定位到与目标角色标识关联的目标客户端,然后将游戏画面分享请求下发至与目标角色标识关联的目标客户端,以由所述目标客户端确定是否向所述客户端分享游戏画面。Specifically, since the game screen sharing request carries the cloud game identifier and at least one target character identifier, the target client associated with the target character identifier can be located according to the cloud game identifier and the target character identifier, and then the game The screen sharing request is sent to the target client associated with the target character identifier, so that the target client determines whether to share the game screen with the client.
在本申请提供的实施例中,以某团战游戏G为例,用户A使用电脑作为客户端进行游戏,并且用户A与用户B1、B2、B3、B4组队进行游戏,游戏中用户A的角色标识为角色a,用户B1、B2、B3、B4的角色标识分别为角色b1、b2、b3、b4,则用户A可向云游戏服务器发送队友的游戏画面分享请求,若所述游戏画面分享请求中包含团战游戏G的标识,并且请求中的目标角色标识为角色b2,则由云游戏服务器将所述游戏画面分享请求发送至所述角色b2关联的目标客户端,以由控制角色b2的用户B2确定是否进行游戏画面分享;In the embodiment provided in this application, taking a team battle game G as an example, user A uses a computer as a client to play the game, and user A forms a team with users B1, B2, B3, and B4 to play the game. The character ID is character a, and the character IDs of users B1, B2, B3, and B4 are characters b1, b2, b3, and b4, respectively. User A can send a teammate's game screen sharing request to the cloud game server. If the game screen is shared The request contains the identification of the team battle game G, and the target character in the request is identified as character b2, then the cloud game server sends the game screen sharing request to the target client associated with the character b2, so that the control character b2 The user B2 of the user B2 determines whether to share the game screen;
若接收到角色b2关联的目标客户端返回的确认分享指令,则由云游戏服务器获取角色b2的待输出视频流,并将所述待输出视频流发送至所述客户端。If the confirmation sharing instruction returned by the target client associated with the character b2 is received, the cloud game server acquires the to-be-output video stream of the character b2, and sends the to-be-output video stream to the client.
在接收到游戏画面分享请求的情况下,将游戏画面分享请求发送至目标客户端,以由通过所述目标客户端控制目标角色的用户确定是否进行游戏画面的分享,在目标客户端返回的确认分享指令的情况下,进行游戏画面分享,有利于提升用户的服务体验,并且,通过游戏画面分享的方式,有利于保证用户及时获取其他用户的游戏信息,以提升用户的游戏体验。In the case of receiving the game screen sharing request, the game screen sharing request is sent to the target client, so that the user who controls the target character through the target client determines whether to share the game screen, and the confirmation returned by the target client In the case of sharing instructions, sharing the game screen is conducive to improving the user's service experience, and through the method of game screen sharing, it is conducive to ensuring that the user obtains the game information of other users in a timely manner, so as to improve the user's game experience.
步骤204,获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流。Step 204: Acquire the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier.
具体的,由于客户端提交的游戏画面分享请求中携带云游戏标识以及目标角色标识,因此,云游戏服务器接收到所述游戏画面分享请求后,可获取云游戏标识对应的云游戏中目标角色标识的待输出视频流,并将所述待输出视频流传输至所述客户端。Specifically, since the game screen sharing request submitted by the client carries the cloud game ID and the target character ID, after receiving the game screen sharing request, the cloud game server can obtain the target character ID in the cloud game corresponding to the cloud game ID the to-be-output video stream, and transmit the to-be-output video stream to the client.
具体实施时,如前所述,云游戏服务器接收客户端提交的游戏画面分享请求之后,并且在获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流之前,还可将游戏画面分享请求发送至目标客户端,以由目标客户端确认是否进行画面分享,因此,在接收到目标客户端返回确认分享指令的情况下,则获取云游戏标识对应的云游戏中目标角色标识的待输出视频流,并将所述待输出视频流传输至所述客户端。In specific implementation, as described above, after the cloud game server receives the game screen sharing request submitted by the client, and before acquiring the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier, The game screen sharing request can also be sent to the target client, so that the target client can confirm whether to perform screen sharing. Therefore, in the case of receiving the confirmation sharing instruction returned by the target client, obtain the cloud game ID corresponding to the cloud game ID. The to-be-output video stream identified by the target role, and the to-be-output video stream is transmitted to the client.
仍以某团战游戏G为例,用户A与用户B1、B2、B3、B4组队进行游戏,游戏中用户A的角色标识为角色a,用户B1、B2、B3、B4的角色标识分别为角色b1、b2、b3、b4,用户A向云游戏服务器发送的游戏画面分享请求中包含团战游戏G的标识以及目标角色标识为角色b2,则云游戏服务器将所述游戏画面分享请求发送至所述角色b2关联的目标客户端后,若接收到角色b2关联的目标客户端返回的确认分享指令,则由云游戏服务器获取角色b2的待输出视频流,并将所述待输出视频流发送至所述客户端。Still taking a team battle game G as an example, user A teams up with users B1, B2, B3, and B4 to play a game. In the game, the character ID of user A is character a, and the character IDs of users B1, B2, B3, and B4 are respectively For roles b1, b2, b3, and b4, the game screen sharing request sent by user A to the cloud game server contains the logo of the team battle game G and the target character is identified as role b2, then the cloud game server sends the game screen sharing request to After the target client associated with the character b2 receives the confirmation sharing instruction returned by the target client associated with the character b2, the cloud game server obtains the to-be-output video stream of the character b2, and sends the to-be-output video stream. to the client.
步骤206,将所述待输出视频流传输至所述客户端。Step 206: Transmit the to-be-output video stream to the client.
具体的,在获取待输出视频流后,可将待输出视频流传输至所述客户端。Specifically, after acquiring the to-be-output video stream, the to-be-output video stream may be transmitted to the client.
具体实施时,云游戏服务器可将待输出视频流进行编码,并将编码获得的编码数据传输至所述客户端,由所述客户端对所述编码数据进行解码,并根据解码结果配置对应的显示窗口,以通过显示窗口播放游戏画面。During specific implementation, the cloud game server can encode the video stream to be output, and transmit the encoded data obtained by encoding to the client, where the client decodes the encoded data, and configures the corresponding Display the window to play the game screen through the display window.
可选地,待输出视频流包含目标角色的画面数据和/或音频数据;将所述待输出视频流传输至所述客户端,即对所述画面数据和/或音频数据进行编码,获得对应的编码数据,并将所述编码数据传输至所述客户端。Optionally, the video stream to be output contains picture data and/or audio data of the target character; the video stream to be output is transmitted to the client, that is, the picture data and/or audio data are encoded to obtain the corresponding the encoded data, and transmit the encoded data to the client.
沿用上例,某团战游戏G中,若用户B2针对角色b2提交控制指令“释放技能M”,以控制角色b2释放技能,则云服务器基于所述控制指令,控制云游戏中的角色b2释放技能M,同时生成与释放技能M相关的数据,即技能M释放的画面效果以及声音效果等数据。Following the above example, in a team battle game G, if user B2 submits the control instruction "Release skill M" to character b2 to control character b2 to release the skill, the cloud server controls the release of character b2 in the cloud game based on the control instruction. Skill M, and at the same time generate data related to releasing skill M, that is, data such as screen effects and sound effects released by skill M.
进一步的,对所述画面数据和/或音频数据进行编码,获得对应的编码数据,具体可通过以下方式实现:Further, the picture data and/or audio data are encoded to obtain corresponding encoded data, which can be implemented in the following ways:
将所述画面数据绘制在预设显存中,生成待编码画面,并对所述待编码画面进行编码,获得对应的画面编码数据;以及,利用音频编码函数对所述音频数据进行编码,获得对应的音频编码数据。Drawing the picture data in a preset display memory, generating a picture to be encoded, and encoding the picture to be encoded to obtain corresponding picture encoding data; and, using an audio encoding function to encode the audio data to obtain the corresponding picture audio encoded data.
具体的,显存是用来存储要处理的图形信息的部件,在获取画面数据之后,将获取的所述云游戏的画面数据绘制到预先设置的显存中,获取等待编码的游戏画面。Specifically, the video memory is a component used to store the graphics information to be processed. After obtaining the picture data, the obtained picture data of the cloud game is drawn into the preset video memory, and the game picture waiting to be encoded is obtained.
实际应用中,可利用图像编码函数对所述待编码画面进行编码,获得对应的画面编码数据,即将所述待编码画面传入编码系统,利用显卡硬编码技术对所述待编码画面进行编码,获得对应的画面编码数据;其中,硬编码是将数据直接嵌入到程序或其他可执行对象的源代码中的软件开发实践;显卡硬编码技术即在显卡使用硬编码的技术;In practical applications, an image encoding function can be used to encode the to-be-encoded picture to obtain corresponding picture-encoded data, that is, the to-be-encoded picture is transmitted to the encoding system, and the to-be-encoded picture is encoded using a graphics card hard-coding technology, Obtain the corresponding picture coding data; among them, hard coding is the software development practice of directly embedding data into the source code of the program or other executable objects; the graphics card hard coding technology is the technology of using hard coding in the graphics card;
另外,对于音频数据,可利用音频编码函数对所述音频数据进行编码,获得对应的音频编码数据,即将所述音频数据传入编码系统,利用中央处理器对所述音频数据进行编码,获取对应的音频编码数据;In addition, for audio data, an audio encoding function can be used to encode the audio data to obtain the corresponding audio encoded data, that is, the audio data is passed into the encoding system, and the central processing unit is used to encode the audio data to obtain the corresponding audio data. the audio encoded data;
获取画面编码数据以及音频编码数据后,可将实时画面编码数据以及音频编码数据进行封装,将封装后的数据通过网络传输至所述客户端。After acquiring the picture encoding data and the audio encoding data, the real-time picture encoding data and the audio encoding data can be encapsulated, and the encapsulated data is transmitted to the client through the network.
本说明书实施例中,由云游戏服务器向客户端传输目标角色的待输出视频流以及客户端的角色标识的初始待输出视频流,客户端在接收到所述初始待输出视频流以及所述待输出视频流后,可在所述客户端的已创建全屏显示窗口构建画中画浮窗,在画中画浮窗构建完成后,将目标角色的待输出视频流同步给画中画浮窗,将初始待输出视频流同步至全屏显示窗口,从而在画中画浮窗中播放目标角色的游戏画面,在所述客户端的全屏显示窗口播放所述客户端的角色的游戏画面。In the embodiment of this specification, the cloud game server transmits the to-be-output video stream of the target character and the initial to-be-output video stream of the client's character identification to the client, and the client receives the initial to-be-output video stream and the to-be-output video stream to the client After the video is streamed, a picture-in-picture floating window can be constructed in the created full-screen display window of the client. The video stream to be output is synchronized to the full-screen display window, so that the game screen of the target character is played in the picture-in-picture floating window, and the game screen of the client's character is played in the full-screen display window of the client.
仍以某团战游戏G为例,用户A向云游戏服务器发送的游戏画面分享请求中包含团战游戏G的标识以及目标角色标识为角色b2,云游戏服务器获取角色b2的待输出视频流,并将所述待输出视频流发送至所述客户端,并且,云游戏服务器同时会将角色a的待输出视频流传输至客户端,客户端在全屏显示窗口播放所述角色a的游戏画面,在画中画浮窗中播放角色b2的游戏画面。Still taking a team battle game G as an example, the game screen sharing request sent by user A to the cloud game server contains the logo of the team battle game G and the target character logo as character b2, and the cloud game server obtains the to-be-output video stream of character b2, and send the to-be-output video stream to the client, and the cloud game server simultaneously transmits the to-be-output video stream of the character a to the client, and the client plays the game screen of the character a in the full-screen display window, Play the game screen of character b2 in the picture-in-picture floating window.
通过在画中画浮窗中播放目标角色的游戏画面,既不会对用户自身的游戏画面产生很大的影响,这样用户便可以在使用其他应用的同时,观看直播视频,从而不会出现因使用其他应用而导致错过精彩视频画面的情况,提高了用户体验。By playing the game screen of the target character in the picture-in-picture floating window, it will not have a great impact on the user's own game screen, so that the user can watch the live video while using other applications, so that there will be no problem. Improved user experience when using other applications to miss highlights of video footage.
除此之外,可由云游戏服务器向客户端传输客户端的角色标识的初始待输出视频流,并由目标服务器向客户端传输目标角色的待输出视频流;In addition, the cloud game server can transmit the initial to-be-output video stream identified by the client's character to the client, and the target server transmits the to-be-output video stream of the target character to the client;
客户端在接收到所述初始待输出视频流以及所述待输出视频流后,可在所述客户端的已创建全屏显示窗口构建画中画浮窗,在画中画浮窗构建完成后,将目标角色的待输出视频流同步给画中画浮窗,将初始待输出视频流同步至全屏显示窗口,从而在画中画浮窗中播放目标角色的游戏画面,在所述客户端的全屏显示窗口播放所述客户端的角色的游戏画面;或者,由于云游戏服务器和目标客户端通过不同的进程分别将初始待输出视频流以及所述待输出视频流传输至客户端,因此,客户端可通过两个并列的显示窗口(两个显示器,分屏显示)分别播放目标角色的游戏画面以及所述客户端的角色的游戏画面。After receiving the initial to-be-output video stream and the to-be-output video stream, the client can construct a picture-in-picture floating window in the created full-screen display window of the client, and after the picture-in-picture floating window is constructed, The to-be-output video stream of the target character is synchronized to the picture-in-picture floating window, and the initial to-be-output video stream is synchronized to the full-screen display window, so that the game screen of the target character is played in the picture-in-picture floating window, and the full-screen display window of the client Play the game screen of the character of the client; or, since the cloud game server and the target client transmit the initial to-be-output video stream and the to-be-output video stream to the client through different processes, the client can use two The two side-by-side display windows (two monitors, split-screen display) respectively play the game screen of the target character and the game screen of the character of the client.
实际应用中,用户可以根据自己的需求来选择任意一种窗口显示方式,在此不做任何限制。In practical applications, users can choose any window display mode according to their own needs, and there is no restriction here.
通过上述方式播放目标角色的游戏画面,既不会对用户自身的游戏画面产生很大的影响,这样用户便可以在使用其他应用的同时,观看直播视频,从而不会出现因使用其他应用而导致错过精彩视频画面的情况,提高了用户体验。Playing the game screen of the target character in the above way will not have a great impact on the user's own game screen, so that the user can watch the live video while using other applications, so that there will be no problems caused by using other applications. The case of missing the wonderful video screen improves the user experience.
本申请实施例中,客户端通过向云游戏服务器提交游戏画面分享请求,并接收云游戏服务器返回的目标角色的待输出视频流的方式,实现客户端与至少一个目标客户端之间游戏画面的共享,以通过这种画面共享的方式,将游戏画面及时分享给用户,有利于提高信息传输的时效性,从而为用户提供更好的游戏体验。In the embodiment of the present application, the client terminal submits a game screen sharing request to the cloud game server, and receives the to-be-output video stream of the target character returned by the cloud game server, so as to realize the sharing of the game screen between the client and at least one target client. Sharing, in order to share the game screen to the user in a timely manner through this screen sharing method, is beneficial to improve the timeliness of information transmission, thereby providing a better game experience for the user.
处理器120可以执行图3所示云游戏处理方法中的步骤。图3示出了根据本申请一实施例的一种应用于客户端的云游戏处理方法的流程图,包括步骤302至步骤306。The processor 120 may execute the steps in the cloud game processing method shown in FIG. 3 . FIG. 3 shows a flowchart of a cloud game processing method applied to a client according to an embodiment of the present application, including
步骤302,向云游戏服务器发送游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识。Step 302: Send a game screen sharing request to the cloud game server, where the game screen sharing request carries a cloud game identifier and at least one target character identifier.
本说明书实施例提供的一种云游戏处理方法,应用于客户端,在用户通过客户端与云游戏服务器通信并进行游戏的情况下,其他用户可通过其客户端向云游戏服务器发送游戏画面分享请求,以观看某个用户的游戏画面,由于云服务器中可能包含多款游戏,并且每款游戏中包含不同的游戏角色,因此,用户在发送游戏画面分享请求的同时,可以发送云游戏标识以及至少一个目标角色标识,云游戏服务器可根据云游戏标识以及目标角色标识,向用户的客户端发送对应的视频流。A cloud game processing method provided by an embodiment of this specification is applied to a client. When a user communicates with a cloud game server through the client and plays games, other users can send game screen sharing to the cloud game server through their client. request to view a user's game screen. Since the cloud server may contain multiple games, and each game contains different game characters, the user can send the cloud game ID and At least one target character identifier, and the cloud game server can send a corresponding video stream to the user's client according to the cloud game identifier and the target character identifier.
具体的,用户可在与其他用户进行组队游戏的情况下,向云游戏服务器发送针对其他队友的游戏画面的分享请求,或者,在用户未进行游戏的情况下,可向云游戏服务器发送针对其他正在进行游戏的用户的游戏画面分享请求,本说明书实施例在此不做任何限制。Specifically, the user can send a sharing request for the game screen of other teammates to the cloud game server when playing a team game with other users, or send a request to the cloud game server when the user is not playing the game. The game screen sharing requests of other users who are playing games are not limited in this embodiment of the present specification.
若所述用户与其他用户进行组队游戏,则所述客户端与所述至少一个目标客户端中的一个客户端作为组队终端向其他客户端发送组队邀请,在其他客户端确认组队的情况下,则组队成功,并且所述客户端与所述至少一个目标客户端对应的游戏角色携带相同的组队标识。If the user plays a team game with other users, one of the client and the at least one target client serves as a team terminal to send a team invitation to the other clients, and the other client confirms the team formation In the case of , the teaming is successful, and the game characters corresponding to the client and the at least one target client carry the same teaming identifier.
步骤304,接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流。Step 304: Receive the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier returned by the cloud game server.
具体的,由于游戏画面分享请求中携带云游戏标识以及目标角色标识,因此,云游戏服务器接收到所述游戏画面分享请求后,可获取云游戏标识对应的云游戏中目标角色标识的待输出视频流,并将所述待输出视频流传输至所述客户端。Specifically, since the game screen sharing request carries the cloud game ID and the target character ID, after receiving the game screen sharing request, the cloud game server can obtain the to-be-output video of the target character ID in the cloud game corresponding to the cloud game ID stream, and transmit the to-be-output video stream to the client.
步骤306,基于所述待输出视频流配置至少一个显示窗口,所述至少一个显示窗口分别显示所述至少一个目标角色标识的待输出视频流。Step 306: Configure at least one display window based on the to-be-output video stream, and the at least one display window respectively displays the to-be-output video stream identified by the at least one target character.
具体的,云游戏服务器可将待输出视频流进行编码,并将编码获得的编码数据传输至所述客户端,由所述客户端对所述编码数据进行解码,并根据解码结果配置对应的显示窗口,以通过显示窗口播放游戏画面。Specifically, the cloud game server can encode the video stream to be output, and transmit the encoded data obtained by encoding to the client, where the client decodes the encoded data, and configures the corresponding display according to the decoding result window to play the game screen through the display window.
进一步的,基于所述待输出视频流配置至少一个显示窗口之前,还可接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述客户端关联的角色标识的初始视频流;Further, before configuring at least one display window based on the to-be-output video stream, an initial video stream of the character identifier associated with the client in the cloud game corresponding to the cloud game identifier returned by the cloud game server may also be received;
相应的,基于所述待输出视频流配置至少一个显示窗口,即基于所述初始视频流以及所述待输出视频流配置第一显示窗口和第二显示窗口;其中,所述第二显示窗口与所述第一显示窗口叠加显示。Correspondingly, at least one display window is configured based on the video stream to be output, that is, a first display window and a second display window are configured based on the initial video stream and the video stream to be output; wherein, the second display window is the same as the The first display window is superimposed and displayed.
具体的,若由云游戏服务器向客户端传输目标角色的待输出视频流以及客户端的角色标识的初始待输出视频流,客户端在接收到所述初始待输出视频流以及所述待输出视频流后,可在所述客户端的已创建全屏显示窗口构建画中画浮窗,在画中画浮窗构建完成后,将目标角色的待输出视频流同步给画中画浮窗,将初始待输出视频流同步至全屏显示窗口,从而在画中画浮窗中播放目标角色的游戏画面,在所述客户端的全屏显示窗口播放所述客户端的角色的游戏画面。Specifically, if the cloud game server transmits the to-be-output video stream of the target character and the initial to-be-output video stream identified by the client's character to the client, the client receives the initial to-be-output video stream and the to-be-output video stream After that, a picture-in-picture floating window can be constructed in the created full-screen display window of the client. After the picture-in-picture floating window is constructed, the to-be-output video stream of the target character is synchronized to the picture-in-picture floating window, and the initial to-be-outputted video stream is synchronized to the picture-in-picture floating window. The video stream is synchronized to the full-screen display window, so that the game screen of the target character is played in the picture-in-picture floating window, and the game screen of the character of the client is played in the full-screen display window of the client.
通过上述方式播放目标角色的游戏画面,既不会对用户自身的游戏画面产生很大的影响,这样用户便可以在使用其他应用的同时,观看直播视频,从而不会出现因使用其他应用而导致错过精彩视频画面的情况,提高了用户体验。Playing the game screen of the target character in the above way will not have a great impact on the user's own game screen, so that the user can watch the live video while using other applications, so that there will be no problems caused by using other applications. The case of missing the wonderful video screen improves the user experience.
除此之外,可由云游戏服务器向客户端传输客户端的角色标识的初始待输出视频流,并由目标服务器向客户端传输目标角色的待输出视频流。In addition, the cloud game server can transmit the initial to-be-output video stream identified by the client's character to the client, and the target server can transmit the to-be-output video stream of the target character to the client.
具体实施时,向云游戏服务器发送游戏画面分享请求之后,基于所述待输出视频流配置至少一个显示窗口之前,接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述客户端关联的角色标识的初始视频流;以及接收至少一个目标客户端返回的所述云游戏标识对应的云游戏中所述至少一个目标客户端关联的至少一个目标角色标识的待输出视频流;In specific implementation, after sending a game screen sharing request to the cloud game server, and before configuring at least one display window based on the to-be-output video stream, the client in the cloud game corresponding to the cloud game identifier returned by the cloud game server is received. The initial video stream of the character identifier associated with the terminal; and the to-be-output video stream of the at least one target character identifier associated with the at least one target client in the cloud game corresponding to the cloud game identifier returned by the at least one target client;
相应的,基于所述待输出视频流配置至少一个显示窗口,即基于所述初始视频流以及所述待输出视频流配置第一显示窗口和第二显示窗口;其中,所述第一显示窗口与所述第二显示窗口叠加显示,或所述第一显示窗口与所述第二显示窗口并列显示。Correspondingly, at least one display window is configured based on the video stream to be output, that is, a first display window and a second display window are configured based on the initial video stream and the video stream to be output; wherein, the first display window and The second display window is superimposed and displayed, or the first display window and the second display window are displayed side by side.
具体的,客户端在接收到所述初始待输出视频流以及所述待输出视频流后,可在所述客户端的已创建全屏显示窗口构建画中画浮窗,在画中画浮窗构建完成后,将目标角色的待输出视频流同步给画中画浮窗,将初始待输出视频流同步至全屏显示窗口,从而在画中画浮窗中播放目标角色的游戏画面,在所述客户端的全屏显示窗口播放所述客户端的角色的游戏画面;或者,由于云游戏服务器和目标客户端通过不同的进程分别将初始待输出视频流以及所述待输出视频流传输至客户端,因此,客户端可通过两个并列的显示窗口(两个显示器,分屏显示)分别播放目标角色的游戏画面以及所述客户端的角色的游戏画面。Specifically, after receiving the initial to-be-output video stream and the to-be-output video stream, the client can construct a picture-in-picture floating window in the created full-screen display window of the client, and complete the construction of the picture-in-picture floating window. Then, synchronize the to-be-output video stream of the target character to the picture-in-picture floating window, and synchronize the initial to-be-output video stream to the full-screen display window, so that the game screen of the target character is played in the picture-in-picture floating window, and the client's The full-screen display window plays the game screen of the character of the client; or, since the cloud game server and the target client transmit the initial to-be-output video stream and the to-be-output video stream to the client through different processes, the client The game screen of the target character and the game screen of the character of the client can be played respectively through two parallel display windows (two monitors, split-screen display).
通过上述方式播放目标角色的游戏画面,既不会对用户自身的游戏画面产生很大的影响,这样用户便可以在使用其他应用的同时,观看直播视频,从而不会出现因使用其他应用而导致错过精彩视频画面的情况,提高了用户体验。Playing the game screen of the target character in the above way will not have a great impact on the user's own game screen, so that the user can watch the live video while using other applications, so that there will be no problems caused by using other applications. The case of missing the wonderful video screen improves the user experience.
本申请实施例中,客户端通过向云游戏服务器提交游戏画面分享请求,并接收云游戏服务器返回的目标角色的待输出视频流的方式,实现客户端与至少一个目标客户端之间游戏画面的共享,以通过这种画面共享的方式,将游戏画面及时分享给用户,有利于提高信息传输的时效性,从而为用户提供更好的游戏体验。In the embodiment of the present application, the client terminal submits a game screen sharing request to the cloud game server, and receives the to-be-output video stream of the target character returned by the cloud game server, so as to realize the sharing of the game screen between the client and at least one target client. Sharing, in order to share the game screen to the user in a timely manner through this screen sharing method, is conducive to improving the timeliness of information transmission, thereby providing a better game experience for the user.
图4示出了本申请一实施例的云游戏处理方法的交互图,该云游戏处理方法以对客户端、云游戏服务器以及目标客户端的交互过程进行描述,包括步骤402至步骤416。FIG. 4 shows an interaction diagram of a cloud game processing method according to an embodiment of the present application. The cloud game processing method describes the interaction process of a client, a cloud game server and a target client, including steps 402 to 416 .
步骤402,客户端向云游戏服务器提交游戏画面分享请求。Step 402, the client submits a game screen sharing request to the cloud game server.
具体的,游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识。Specifically, the game screen sharing request carries a cloud game identifier and at least one target character identifier.
步骤404,云游戏服务器将所述游戏画面分享请求发送至目标客户端。Step 404, the cloud game server sends the game screen sharing request to the target client.
具体的,云游戏服务器可将游戏画面分享请求发送至至少一个目标客户端。Specifically, the cloud game server may send a game screen sharing request to at least one target client.
步骤406,目标客户端向云游戏服务器发送确认分享指令。Step 406, the target client sends a confirmation sharing instruction to the cloud game server.
具体的,云游戏服务器向目标客户端发送游戏画面分享请求,以由目标客户端确定是否向所述客户端分享游戏画面,若确定分享,则向云游戏服务器发送确认分享指令。Specifically, the cloud game server sends a game screen sharing request to the target client, so that the target client determines whether to share the game screen to the client, and if it is determined to share, sends a confirmation sharing instruction to the cloud game server.
步骤408,云游戏服务器获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流,并对所述待输出视频流进行编码,获得编码数据。Step 408: The cloud game server acquires the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier, and encodes the to-be-output video stream to obtain encoded data.
步骤410,云游戏服务器获取所述云游戏标识对应的云游戏中所述客户端关联的角色标识的待输出视频流,并对所述待输出视频流进行编码,获得初始编码数据。Step 410: The cloud game server acquires the to-be-output video stream of the character identifier associated with the client in the cloud game corresponding to the cloud game identifier, and encodes the to-be-output video stream to obtain initial encoded data.
步骤412,将对所述编码数据以及所述初始编码数据传输至所述客户端。Step 412, transmitting the encoded data and the initial encoded data to the client.
步骤414,客户端分别对所述初始编码数据以及所述编码数据进行解析。Step 414, the client parses the initial encoded data and the encoded data respectively.
步骤416,客户端根据解析获得的初始解析结果以及目标解析结果配置第一显示窗口和第二显示窗口。Step 416, the client configures the first display window and the second display window according to the initial parsing result obtained by parsing and the target parsing result.
具体的,第二显示窗口与所述第一显示窗口叠加显示。Specifically, the second display window is displayed superimposed on the first display window.
本申请实施例中,通过这种画面共享的方式,将游戏画面及时分享给用户,有利于提高信息传输的时效性,从而为用户提供更好的游戏体验。In the embodiment of the present application, the game screen is shared to the user in a timely manner through this screen sharing method, which is beneficial to improve the timeliness of information transmission, thereby providing the user with a better game experience.
图5示出了本申请一实施例的一种云游戏处理系统的示意图,所述系统包括客户端502和云游戏服务器504,其中,所述客户端502和所述云游戏服务器504通信连接。FIG. 5 shows a schematic diagram of a cloud game processing system according to an embodiment of the present application. The system includes a client 502 and a cloud game server 504 , wherein the client 502 and the cloud game server 504 are connected in communication.
所述客户端502,被配置为向所述云游戏服务器504提交游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识;The client 502 is configured to submit a game screen sharing request to the cloud game server 504, where the game screen sharing request carries a cloud game identifier and at least one target character identifier;
所述云游戏服务器504,被配置为接收客户端502提交的游戏画面分享请求,获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流,并将所述待输出视频流传输至所述客户端502;The cloud game server 504 is configured to receive the game screen sharing request submitted by the client 502, acquire the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier, and store the to-be-to-be-played video stream. the output video stream is transmitted to the client 502;
所述客户端502,还被配置为接收所述待输出视频流,并配置至少一个显示窗口以分别显示所述至少一个目标角色标识的待输出视频流。The client 502 is further configured to receive the to-be-output video stream, and configure at least one display window to respectively display the to-be-output video stream identified by the at least one target character.
可选地,所述云游戏处理系统,还包括:目标客户端506;Optionally, the cloud game processing system further includes: a target client 506;
所述云游戏服务器504,还被配置为将所述游戏画面分享请求发送至所述至少一个目标角色标识关联的至少一个目标客户端506;The cloud game server 504 is further configured to send the game screen sharing request to at least one target client 506 associated with the at least one target character identifier;
所述目标客户端506,被配置为向所述云游戏服务器504发送游戏画面的确认分享指令以响应所述游戏画面分享请求;The target client 506 is configured to send a confirmation sharing instruction of the game screen to the cloud game server 504 in response to the game screen sharing request;
所述云游戏服务器504,还被配置为在接收到所述确认分享指令的情况下,获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流,并将对所述待输出视频流进行编码获得的编码数据传输至所述客户端502。The cloud game server 504 is further configured to obtain the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier when the confirmation sharing instruction is received, and to The encoded data obtained by encoding the to-be-output video stream is transmitted to the client 502 .
可选地,所述云游戏服务器504,还被配置为:获取所述云游戏标识对应的云游戏中所述客户端502关联的角色标识的待输出视频流,并将对所述待输出视频流进行编码获得的初始编码数据传输至所述客户端502;Optionally, the cloud game server 504 is further configured to: acquire the to-be-output video stream of the character identifier associated with the client 502 in the cloud game corresponding to the cloud game identifier, and to process the to-be-output video stream. transmitting the initial encoded data obtained by encoding the stream to the client 502;
所述客户端502,还被配置为:接收所述初始编码数据以及所述编码数据,分别对所述初始编码数据以及所述编码数据进行解析,根据解析获得的初始解析结果以及目标解析结果生成第一显示窗口和第二显示窗口;其中,所述第二显示窗口与所述第一显示窗口叠加显示。The client 502 is further configured to: receive the initial encoded data and the encoded data, parse the initial encoded data and the encoded data respectively, and generate an initial parsing result and a target parsing result obtained by parsing A first display window and a second display window; wherein, the second display window and the first display window are superimposed and displayed.
可选地,所述云游戏服务器504,还被配置为:获取所述云游戏标识对应的云游戏中所述目标客户端506关联的目标角色标识的待输出视频流,并将对所述待输出视频流进行编码获得的目标编码数据传输至所述目标客户端506;Optionally, the cloud game server 504 is further configured to: acquire the to-be-output video stream of the target character identifier associated with the target client 506 in the cloud game corresponding to the cloud game identifier, and to process the to-be-output video stream. The target encoded data obtained by encoding the output video stream is transmitted to the target client 506;
所述目标客户端506,还被配置为:接收所述目标编码数据,并将所述目标编码数据发送至所述客户端502,以响应所述游戏画面分享请求。The target client 506 is further configured to: receive the target encoded data, and send the target encoded data to the client 502, so as to respond to the game screen sharing request.
可选地,所述云游戏服务器504,还被配置为:获取所述云游戏标识对应的云游戏中所述客户端关联的角色标识的待输出视频流,并将对所述待输出视频流进行编码获得的初始编码数据传输至所述客户端502;Optionally, the cloud game server 504 is further configured to: obtain the to-be-output video stream of the character identifier associated with the client in the cloud game corresponding to the cloud game identifier, and to process the to-be-output video stream. transmitting the initial encoded data obtained by encoding to the client 502;
所述客户端502,还被配置为:接收所述初始编码数据以及所述目标编码数据,分别对所述初始编码数据以及所述目标编码数据进行解析,根据解析获得的初始解析结果以及目标解析结果生成第一显示窗口和第二显示窗口;其中,所述第一显示窗口与所述第二显示窗口叠加显示,或所述第一显示窗口与所述第二显示窗口并列显示。The client 502 is further configured to: receive the initial encoded data and the target encoded data, parse the initial encoded data and the target encoded data respectively, and obtain the initial parsing result and target parsing according to the parsing As a result, a first display window and a second display window are generated; wherein, the first display window and the second display window are superimposed and displayed, or the first display window and the second display window are displayed side by side.
可选地,所述客户端502与所述至少一个目标客户端506对应的游戏角色携带相同的组队标识。Optionally, the game characters corresponding to the client 502 and the at least one target client 506 carry the same team identification.
可选地,所述待输出视频流包含目标角色的画面数据和/或音频数据;Optionally, the video stream to be output includes picture data and/or audio data of the target character;
所述云游戏服务器504,还被配置为对所述画面数据和/或音频数据进行编码,获得对应的编码数据,并将所述编码数据传输至所述客户端502。The cloud game server 504 is further configured to encode the picture data and/or audio data, obtain corresponding encoded data, and transmit the encoded data to the client 502 .
可选地,所述云游戏服务器504,进一步被配置为:将所述画面数据绘制在预设显存中,生成待编码画面,并对所述待编码画面进行编码,获得对应的画面编码数据;以及,利用音频编码函数对所述音频数据进行编码,获得对应的音频编码数据。Optionally, the cloud game server 504 is further configured to: draw the picture data in a preset video memory, generate a picture to be encoded, and encode the picture to be encoded to obtain corresponding picture encoding data; And, the audio data is encoded by using an audio encoding function to obtain corresponding audio encoded data.
可选地,所述客户端502,还被配置为:接收并对所述画面编码数据以及所述音频编码数据进行解码,获得所述画面数据以及所述音频数据,并通过显示窗口播放所述画面数据和所述音频数据。Optionally, the client 502 is further configured to: receive and decode the picture coded data and the audio coded data, obtain the picture data and the audio data, and play the picture through a display window picture data and the audio data.
本申请实施例中,客户端通过向云游戏服务器提交游戏画面分享请求,并接收云游戏服务器返回的目标角色的待输出视频流的方式,实现客户端与至少一个目标客户端之间游戏画面的共享,以通过这种画面共享的方式,将游戏画面及时分享给用户,有利于提高信息传输的时效性,从而为用户提供更好的游戏体验。In the embodiment of the present application, the client terminal submits a game screen sharing request to the cloud game server, and receives the to-be-output video stream of the target character returned by the cloud game server, so as to realize the sharing of the game screen between the client and at least one target client. Sharing, in order to share the game screen to the user in a timely manner through this screen sharing method, is conducive to improving the timeliness of information transmission, thereby providing a better game experience for the user.
本申请一实施例的云游戏处理过程的场景示意图如图6所示,用户通过客户端向云游戏服务器提交游戏画面分享请求,云游戏服务器将所述游戏分享请求发送至至少一个目标客户端,在接收到至少一个目标客户端返回的确认分享指令的情况下,云游戏服务器获取目标角色的待输出视频流,并对所述目标角色的待输出视频流进行编码生成编码数据,以及获取客户端的游戏角色的待输出视频流,并对所述客户端的游戏角色的待输出视频流进行编码,生成初始编码数据,将所述编码数据以及初始编码数据发送至客户端,客户端对所述编码数据以及初始编码数据进行解码,并根据解码结果配置显示窗口,显示窗口的配置结果如图6所示,其中,窗口1用于播放客户端的游戏角色的游戏画面,窗口2用于播放目标角色的游戏画面,以通过显示窗口向用户播放游戏画面。A schematic diagram of a scenario of a cloud game processing process according to an embodiment of the present application is shown in FIG. 6 . A user submits a game screen sharing request to a cloud game server through a client, and the cloud game server sends the game sharing request to at least one target client. In the case of receiving the confirmation sharing instruction returned by at least one target client, the cloud game server obtains the to-be-output video stream of the target character, encodes the target character's to-be-output video stream to generate encoded data, and obtains the client's The to-be-output video stream of the game character, encodes the to-be-output video stream of the game character of the client, generates initial encoded data, sends the encoded data and the initial encoded data to the client, and the client interprets the encoded data And the initial encoded data is decoded, and the display window is configured according to the decoding result, the configuration result of the display window is shown in Figure 6, wherein, the
通过这种画面共享的方式,将游戏画面及时分享给用户,有利于提高信息传输的时效性,从而为用户提供更好的游戏体验。Through this screen sharing method, the game screen is shared to the user in time, which is beneficial to improve the timeliness of information transmission, thereby providing the user with a better game experience.
与上述方法实施例相对应,本申请还提供了一种云游戏处理装置实施例,图7示出了本申请一个实施例的一种配置于云游戏服务器的云游戏处理装置的结构示意图。如图7所示,该装置700包括:Corresponding to the above method embodiments, the present application also provides an embodiment of a cloud game processing apparatus. FIG. 7 shows a schematic structural diagram of a cloud game processing apparatus configured on a cloud game server according to an embodiment of the present application. As shown in FIG. 7, the apparatus 700 includes:
接收模块702,被配置为接收客户端提交的游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识;The receiving module 702 is configured to receive a game screen sharing request submitted by the client, where the game screen sharing request carries a cloud game identifier and at least one target character identifier;
获取模块704,被配置为获取所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流;The obtaining module 704 is configured to obtain the to-be-output video stream of the at least one target character identification in the cloud game corresponding to the cloud game identification;
传输模块706,被配置为将所述待输出视频流传输至所述客户端。The transmission module 706 is configured to transmit the to-be-output video stream to the client.
可选地,所述云游戏处理装置,还包括:Optionally, the cloud game processing device further includes:
发送模块,被配置为将所述游戏画面分享请求发送至所述至少一个目标角色标识关联的目标客户端;a sending module, configured to send the game screen sharing request to the target client associated with the at least one target character identifier;
在接收到至少一个目标客户端返回的确认分享指令的情况下,运行所述获取模块704。The obtaining module 704 is executed in the case of receiving the confirmation sharing instruction returned by at least one target client.
可选地,所述客户端与所述至少一个目标客户端对应的游戏角色携带相同的组队标识。Optionally, the game characters corresponding to the client and the at least one target client carry the same team identification.
可选地,所述待输出视频流包含目标角色的画面数据和/或音频数据;Optionally, the video stream to be output includes picture data and/or audio data of the target character;
相应的,所述传输模块706,进一步被配置为:Correspondingly, the transmission module 706 is further configured to:
对所述画面数据和/或音频数据进行编码,获得对应的编码数据,并将所述编码数据传输至所述客户端。The picture data and/or audio data are encoded to obtain corresponding encoded data, and the encoded data is transmitted to the client.
可选地,所述传输模块706,包括:Optionally, the transmission module 706 includes:
第一编码子模块,被配置为将所述画面数据绘制在预设显存中,生成待编码画面,并对所述待编码画面进行编码,获得对应的画面编码数据;a first encoding submodule, configured to draw the picture data in a preset display memory, generate a to-be-coded picture, and encode the to-be-coded picture to obtain corresponding picture encoded data;
第二编码子模块,被配置为利用音频编码函数对所述音频数据进行编码,获得对应的音频编码数据。The second encoding submodule is configured to encode the audio data by using an audio encoding function to obtain corresponding audio encoded data.
与上述方法实施例相对应,本申请还提供了另一种云游戏处理装置实施例,图8示出了本申请一个实施例的一种配置于客户端的云游戏处理装置的结构示意图。如图8所示,该装置800包括:Corresponding to the above method embodiments, the present application further provides another embodiment of a cloud game processing apparatus. FIG. 8 shows a schematic structural diagram of a cloud game processing apparatus configured on a client according to an embodiment of the present application. As shown in FIG. 8, the apparatus 800 includes:
发送模块802,被配置为向云游戏服务器发送游戏画面分享请求,所述游戏画面分享请求中携带云游戏标识以及至少一个目标角色标识;The sending module 802 is configured to send a game screen sharing request to the cloud game server, where the game screen sharing request carries a cloud game identifier and at least one target character identifier;
接收模块804,被配置为接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述至少一个目标角色标识的待输出视频流;A receiving module 804, configured to receive the to-be-output video stream of the at least one target character identifier in the cloud game corresponding to the cloud game identifier returned by the cloud game server;
配置模块806,被配置为基于所述待输出视频流配置至少一个显示窗口,所述至少一个显示窗口分别显示所述至少一个目标角色标识的待输出视频流。The configuration module 806 is configured to configure at least one display window based on the to-be-output video stream, and the at least one display window respectively displays the to-be-output video stream identified by the at least one target character.
可选地,所述云游戏处理装置,还包括:Optionally, the cloud game processing device further includes:
第一初始视频流接收模块,被配置为接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述客户端关联的角色标识的初始视频流;a first initial video stream receiving module, configured to receive the initial video stream of the character identifier associated with the client in the cloud game corresponding to the cloud game identifier returned by the cloud game server;
相应的,所述配置模块806,进一步被配置为:Correspondingly, the configuration module 806 is further configured to:
基于所述初始视频流以及所述待输出视频流配置第一显示窗口和第二显示窗口;其中,所述第二显示窗口与所述第一显示窗口叠加显示。A first display window and a second display window are configured based on the initial video stream and the to-be-output video stream; wherein, the second display window and the first display window are superimposed and displayed.
可选地,所述云游戏处理装置,还包括:Optionally, the cloud game processing device further includes:
第二初始视频流接收模块,被配置为接收所述云游戏服务器返回的所述云游戏标识对应的云游戏中所述客户端关联的角色标识的初始视频流;a second initial video stream receiving module, configured to receive the initial video stream of the character identifier associated with the client in the cloud game corresponding to the cloud game identifier returned by the cloud game server;
待输出视频流接收模块,被配置为接收至少一个目标客户端返回的所述云游戏标识对应的云游戏中所述至少一个目标客户端关联的至少一个目标角色标识的待输出视频流;a to-be-output video stream receiving module, configured to receive a to-be-output video stream of at least one target character identifier associated with the at least one target client in the cloud game corresponding to the cloud game identifier returned by at least one target client;
相应的,所述配置模块806,进一步被配置为:Correspondingly, the configuration module 806 is further configured to:
基于所述初始视频流以及所述待输出视频流配置第一显示窗口和第二显示窗口;其中,所述第一显示窗口与所述第二显示窗口叠加显示,或所述第一显示窗口与所述第二显示窗口并列显示。A first display window and a second display window are configured based on the initial video stream and the to-be-output video stream; wherein, the first display window and the second display window are superimposed and displayed, or the first display window and the The second display windows are displayed side by side.
本申请一实施例中还提供一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机指令,所述处理器执行所述指令时实现所述的云游戏处理方法的步骤。An embodiment of the present application further provides a computing device, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, and the processor implements the cloud game processing when the processor executes the instructions steps of the method.
本申请一实施例还提供一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时实现如前所述云游戏处理方法的步骤。An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions, and when the instructions are executed by a processor, implements the steps of the cloud game processing method as described above.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的云游戏处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述云游戏处理方法的技术方案的描述。The above is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above-mentioned cloud game processing method belong to the same concept, and the details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned cloud game processing method. .
上述对本申请特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program code, which may be in source code form, object code form, an executable file, some intermediate form, or the like. 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, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。It should be noted that, for the convenience of description, the foregoing method embodiments are described as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily all necessary for the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
以上公开的本申请优选实施例只是用于帮助阐述本申请。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本申请的内容,可作很多的修改和变化。本申请选取并具体描述这些实施例,是为了更好地解释本申请的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本申请。本申请仅受权利要求书及其全部范围和等效物的限制。The preferred embodiments of the present application disclosed above are only provided to help illustrate the present application. Alternative embodiments are not intended to exhaust all details, nor do they limit the invention to only the described embodiments. Obviously, many modifications and variations are possible in light of the content of this application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can well understand and utilize the present application. This application is to be limited only by the claims, along with their full scope and equivalents.
Claims (21)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010630410.XA CN111773660A (en) | 2020-07-03 | 2020-07-03 | A cloud game processing system, method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010630410.XA CN111773660A (en) | 2020-07-03 | 2020-07-03 | A cloud game processing system, method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111773660A true CN111773660A (en) | 2020-10-16 |
Family
ID=72758427
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010630410.XA Pending CN111773660A (en) | 2020-07-03 | 2020-07-03 | A cloud game processing system, method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111773660A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112468873A (en) * | 2020-11-16 | 2021-03-09 | 北京达佳互联信息技术有限公司 | Screen display method, device, system, electronic device, server, and medium |
| CN112817781A (en) * | 2021-02-08 | 2021-05-18 | 北京字节跳动网络技术有限公司 | Application program interaction method, device, equipment and medium |
| CN114130007A (en) * | 2021-12-01 | 2022-03-04 | 咪咕互动娱乐有限公司 | Control method, electronic device and readable storage medium for cloud game |
| CN114210071A (en) * | 2021-11-26 | 2022-03-22 | 腾讯科技(深圳)有限公司 | Game live broadcast display method and device, storage medium and electronic equipment |
| CN114377399A (en) * | 2020-10-20 | 2022-04-22 | 厦门雅基软件有限公司 | Method, device and computer-readable storage medium for generating cloud game mapping table |
| CN114554228A (en) * | 2022-02-14 | 2022-05-27 | 腾讯科技(深圳)有限公司 | Cloud application processing method, device, equipment and storage medium |
| CN114887326A (en) * | 2022-05-06 | 2022-08-12 | 咪咕互动娱乐有限公司 | Information processing method and device and readable storage medium |
| WO2022227938A1 (en) * | 2021-04-28 | 2022-11-03 | 腾讯科技(深圳)有限公司 | Cloud gaming processing method, apparatus and device, and storage medium |
| CN118105718A (en) * | 2022-11-30 | 2024-05-31 | 花瓣云科技有限公司 | Display method, terminal and system |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140274368A1 (en) * | 2013-03-12 | 2014-09-18 | Timothy Cotter | System and method for combining multiple game or application views into a single media stream |
| CN105933756A (en) * | 2016-06-27 | 2016-09-07 | 北京奇虎科技有限公司 | Method and device for carrying out live broadcast on video in picture in picture mode |
| CN106385619A (en) * | 2016-09-14 | 2017-02-08 | 乐视控股(北京)有限公司 | Replay method and device for live broadcast video stream |
| US20170072322A1 (en) * | 2015-09-15 | 2017-03-16 | Square Enix Holdings Co., Ltd. | Game system including third party control |
| KR101835776B1 (en) * | 2018-01-22 | 2018-03-07 | 주식회사 엔씨소프트 | Game service providing method |
| CN107847802A (en) * | 2015-08-10 | 2018-03-27 | 索尼互动娱乐股份有限公司 | Information processor and watching request sending method |
| CN109933386A (en) * | 2019-03-28 | 2019-06-25 | 努比亚技术有限公司 | The starting method, apparatus and computer readable storage medium of picture-in-picture mode |
| CN110548282A (en) * | 2018-05-31 | 2019-12-10 | 索尼互动娱乐有限责任公司 | Forking and passing control of shared control in video games |
| CN110548284A (en) * | 2019-08-13 | 2019-12-10 | 广州点云科技有限公司 | split screen interaction method and device based on cloud game |
| CN110624248A (en) * | 2019-09-18 | 2019-12-31 | 网易(杭州)网络有限公司 | Game control method, device, electronic equipment and storage medium |
| CN110841278A (en) * | 2019-11-14 | 2020-02-28 | 珠海金山网络游戏科技有限公司 | Cloud game implementation method and device |
-
2020
- 2020-07-03 CN CN202010630410.XA patent/CN111773660A/en active Pending
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140274368A1 (en) * | 2013-03-12 | 2014-09-18 | Timothy Cotter | System and method for combining multiple game or application views into a single media stream |
| CN107847802A (en) * | 2015-08-10 | 2018-03-27 | 索尼互动娱乐股份有限公司 | Information processor and watching request sending method |
| US20170072322A1 (en) * | 2015-09-15 | 2017-03-16 | Square Enix Holdings Co., Ltd. | Game system including third party control |
| CN105933756A (en) * | 2016-06-27 | 2016-09-07 | 北京奇虎科技有限公司 | Method and device for carrying out live broadcast on video in picture in picture mode |
| CN106385619A (en) * | 2016-09-14 | 2017-02-08 | 乐视控股(北京)有限公司 | Replay method and device for live broadcast video stream |
| KR101835776B1 (en) * | 2018-01-22 | 2018-03-07 | 주식회사 엔씨소프트 | Game service providing method |
| CN110548282A (en) * | 2018-05-31 | 2019-12-10 | 索尼互动娱乐有限责任公司 | Forking and passing control of shared control in video games |
| CN109933386A (en) * | 2019-03-28 | 2019-06-25 | 努比亚技术有限公司 | The starting method, apparatus and computer readable storage medium of picture-in-picture mode |
| CN110548284A (en) * | 2019-08-13 | 2019-12-10 | 广州点云科技有限公司 | split screen interaction method and device based on cloud game |
| CN110624248A (en) * | 2019-09-18 | 2019-12-31 | 网易(杭州)网络有限公司 | Game control method, device, electronic equipment and storage medium |
| CN110841278A (en) * | 2019-11-14 | 2020-02-28 | 珠海金山网络游戏科技有限公司 | Cloud game implementation method and device |
Non-Patent Citations (1)
| Title |
|---|
| 李泽年等: "计算机科学丛书 多媒体技术教程 原书第2版", 机械工业出版社, pages: 454 * |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114377399A (en) * | 2020-10-20 | 2022-04-22 | 厦门雅基软件有限公司 | Method, device and computer-readable storage medium for generating cloud game mapping table |
| CN112468873A (en) * | 2020-11-16 | 2021-03-09 | 北京达佳互联信息技术有限公司 | Screen display method, device, system, electronic device, server, and medium |
| CN112817781A (en) * | 2021-02-08 | 2021-05-18 | 北京字节跳动网络技术有限公司 | Application program interaction method, device, equipment and medium |
| CN112817781B (en) * | 2021-02-08 | 2024-05-28 | 北京字节跳动网络技术有限公司 | Application program interaction method, device, equipment and medium |
| WO2022227938A1 (en) * | 2021-04-28 | 2022-11-03 | 腾讯科技(深圳)有限公司 | Cloud gaming processing method, apparatus and device, and storage medium |
| US12330067B2 (en) | 2021-04-28 | 2025-06-17 | Tencent Technology (Shenzhen) Company Limited | Cloud gaming processing method, apparatus, and device, and storage medium |
| CN114210071A (en) * | 2021-11-26 | 2022-03-22 | 腾讯科技(深圳)有限公司 | Game live broadcast display method and device, storage medium and electronic equipment |
| CN114130007A (en) * | 2021-12-01 | 2022-03-04 | 咪咕互动娱乐有限公司 | Control method, electronic device and readable storage medium for cloud game |
| CN114554228A (en) * | 2022-02-14 | 2022-05-27 | 腾讯科技(深圳)有限公司 | Cloud application processing method, device, equipment and storage medium |
| CN114887326A (en) * | 2022-05-06 | 2022-08-12 | 咪咕互动娱乐有限公司 | Information processing method and device and readable storage medium |
| CN118105718A (en) * | 2022-11-30 | 2024-05-31 | 花瓣云科技有限公司 | Display method, terminal and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111773660A (en) | A cloud game processing system, method and device | |
| CN109562296B (en) | Cloud gaming device handover | |
| CN110841278A (en) | Cloud game implementation method and device | |
| CN102098553B (en) | Video transmission method and system as well as video server | |
| JP7500574B2 (en) | Method, apparatus, device and computer program for executing a stand-alone program | |
| WO2015117513A1 (en) | Video conference control method and system | |
| CN113209632A (en) | Cloud game processing method, device, equipment and storage medium | |
| CN113489805B (en) | Butt joint method, device, equipment and storage medium of cloud desktop system | |
| CN107370714A (en) | The high efficiency communication method that facing cloud renders | |
| CN112261421B (en) | Virtual reality display method and device, electronic equipment and storage medium | |
| WO2022257699A1 (en) | Image picture display method and apparatus, device, storage medium and program product | |
| US12155835B2 (en) | Video processing method, related apparatus, storage medium, and program product | |
| CN114268626B (en) | Window processing system, method and device | |
| WO2015188575A1 (en) | Video data providing method, video playback method, device, and system | |
| CN111773691A (en) | Cloud game service system, cloud client and data processing method | |
| WO2022111421A1 (en) | Screen projection method and apparatus for application interface, device, and storage medium | |
| CN111773661B (en) | System, method and device for team formation game based on live broadcast interface | |
| CN114554277B (en) | Multimedia processing method, device, server and computer readable storage medium | |
| CN112055227B (en) | Cloud game interaction method, system, device, storage medium and electronic equipment | |
| CN111782299A (en) | Game access method and device | |
| CN116405709A (en) | A cloud rendering method and related equipment | |
| US20250023936A1 (en) | Method and apparatus for processing media stream, computer device, and storage medium | |
| US20210112109A1 (en) | Av1 codec for real-time video communication | |
| WO2015117383A1 (en) | Method for call, terminal and computer storage medium | |
| CN114157903B (en) | Redirection method, device, apparatus, storage medium and program product |
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 |
Application publication date: 20201016 |
|
| RJ01 | Rejection of invention patent application after publication |