Data processing method and apparatus, device, and medium
By integrating data collection components in the cloud application client, direct data transmission with terminal devices is achieved, which solves the problems of high cloud application costs and low server resource utilization, improves performance and reduces costs.
Patent Information
- Application Number
- PCT/CN2023/097301
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-08-17
- Filing Date
- 2023-05-31
- Publication Date
- 2024-09-12
AI Technical Summary
In cloud application scenarios, existing technologies require simulating display devices, audio devices, and input devices for each virtualized environment, resulting in high usage costs and low server resource utilization for cloud applications.
By integrating data collection components for each cloud application client on the server side, direct data transmission with terminal devices is achieved, avoiding device interaction in a virtualized environment, and allowing multiple cloud application clients to run concurrently on the same server. Isolate data transfers from each other.
It improves server utilization, reduces cloud application usage costs, reduces data transmission paths, improves performance and response speed, and saves server resources.
Smart Images

Figure CN2023097301_12092024_PF_FP_ABST
Abstract
Description
Data processing method, device, equipment and medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 17, 2022, with application number 2022109844611 and application name “Data processing method, device, equipment and medium”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of cloud application technology, and in particular to data processing technology in cloud applications. Background Art
[0003] Cloud applications are cloud computing-based applications. In this mode, all applications run on the server, compressing the rendered content and transmitting it to the user over the network. In current cloud application scenarios, cloud applications typically run in a server-side virtualized environment. The server-rendered content is transmitted to the display buffer (framebuffer) corresponding to the display device in the virtualized environment. A specific program then reads the content in the framebuffer and transmits it to the user. The user's operational data for the cloud application can be transmitted to the input device in the virtualized environment. The server then retrieves the corresponding operational data from the input device and injects it into the cloud application.
[0004] Typically, a virtualized environment can deploy one display device and one input device. When multiple users use cloud applications simultaneously, multiple virtualized environments need to be run on the server side to ensure that the data of the cloud applications used by each user is isolated from each other. This model in which a virtualized environment only supports the operation of one cloud application client will result in excessively high costs for using cloud applications.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a data processing method, apparatus, device, and medium, which can improve the utilization rate of servers and thereby reduce the cost of using cloud applications.
[0007] In one aspect, an embodiment of the present application provides a data processing method, which is executed by a server, wherein multiple cloud application clients are deployed in the server, and data transmission processes of the multiple cloud application clients are isolated from each other, and the multiple cloud application clients include a first cloud application client; the method includes:
[0008] Starting the first cloud application client deployed in the server;
[0009] The application data stream of the first cloud application is transmitted between the first cloud application client and the first terminal through the data collection component in the first cloud application client.
[0010] In one aspect, an embodiment of the present application provides a data processing device, which runs in a server. A plurality of cloud application clients are deployed in the server. The data transmission processes of the plurality of cloud application clients are isolated from each other. The plurality of cloud application clients include a first cloud application client. The device includes:
[0011] A first startup module, used to start a first cloud application client deployed in the server;
[0012] The first transmission module is used to transmit the application data stream of the first cloud application between the first cloud application client and the first terminal through the data collection component in the first cloud application client.
[0013] In one aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method provided in the above aspect of the embodiment of the present application.
[0014] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded and executed by a processor, so that a computer device with a processor executes the method provided in the above aspect of the embodiment of the present application.
[0015] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method provided in the above aspect.
[0016] In an embodiment of the present application, multiple cloud application clients can be created on the server side, and the data transmission processes of the multiple cloud application clients are isolated from each other. The multiple cloud application clients include a first cloud application client. In specific implementation, the first cloud application client deployed on the server can be started, and the application data stream of the first cloud application can be transmitted between the first cloud application client and the first terminal through the data acquisition component in the first cloud application client. The first terminal is used to output the cloud application content corresponding to the first cloud application client. Through the data acquisition component integrated in the first cloud application client, the first cloud application client running on the server can be directly transmitted to the first terminal. Correspondingly, by integrating the data acquisition component in each cloud application client, the mutual isolation between the application data streams of each cloud application client can be achieved, that is, the data interaction between multiple cloud application clients in the same server and their corresponding terminal devices is independent and does not affect each other. In this way, when running multiple cloud application clients on the server side, there is no need to configure multiple virtualization environments to achieve data isolation, which can improve the utilization rate of the server and reduce the cost of using cloud applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] FIG1 is an architecture diagram of a cloud application processing system provided in an embodiment of the present application;
[0018] FIG2 is a schematic diagram of a data interaction scenario of a cloud game provided by an embodiment of the present application;
[0019] FIG3 is a flow chart of a data processing method provided in an embodiment of the present application;
[0020] FIG4 is a schematic diagram of data interaction of a cloud application provided in an embodiment of the present application;
[0021] FIG5 is a flow chart of another data processing method provided in an embodiment of the present application;
[0022] FIG6 is a schematic diagram of a rendering capture component integrated within a cloud application client to capture image data according to an embodiment of the present application;
[0023] FIG7 is a schematic diagram of image data compression processing in a cloud application client provided by an embodiment of the present application;
[0024] FIG8 is a schematic diagram of a data compression structure of a cloud application client in a server according to an embodiment of the present application;
[0025] 9 is a schematic diagram of an operation processing component integrated within a cloud application client receiving object operation data according to an embodiment of the present application;
[0026] FIG10 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;
[0027] FIG11 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0029] The embodiments of the present application relate to cloud computing and cloud applications. Among them, cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". The resources in the "cloud" are infinitely scalable in the eyes of users, and can be obtained at any time, used on demand, expanded at any time, and paid for by use. The basic capability provider of cloud computing will establish a cloud computing resource pool (referred to as a cloud platform, generally referred to as IaaS (Infrastructure as a Service platform), and deploy various types of virtual resources in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
[0030] Cloud applications, a subset of cloud computing, are the embodiment of cloud computing technology at the application layer. They transform traditional local software installation and computing into ready-to-use services. These applications connect to and control remote server clusters via the internet or a local area network to complete business logic or computational tasks. The advantage of cloud applications is that their applications (such as cloud application clients) run on the server side. The server side performs the cloud application's computational tasks, such as data rendering, and then transmits the results to the user client on the terminal device for display. The user client can collect user operation information (also known as cloud application object operation data or cloud application input event data) and transmit this operation information to the cloud application client on the server side, enabling the server to control the cloud application. The cloud application clients involved in the embodiments of this application are all cloud application instances running on the server side, and the user client can refer to a client that supports installation in a terminal device and can provide users with corresponding cloud application experience services. Simply put, the user client can be used to output the cloud application display page of the corresponding cloud application client, and can also be called a cloud application user client, which will not be explained later; cloud applications may include cloud games, cloud education, cloud security, cloud conferencing, cloud calls, and cloud social networking, etc. Cloud games, as a typical cloud application, have received more and more attention in recent years.
[0031] Cloud gaming, also known as gaming on demand, is an online gaming technology based on cloud computing. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In cloud gaming scenarios, the game itself isn't hosted on the user's gaming terminal. Instead, only the user client runs on the terminal. The actual game application (such as the cloud gaming client) runs on the server. The server renders the cloud game's page display data into audio and video streams and transmits these rendered streams to the user client on the gaming terminal. The user client then outputs and displays the received audio and video streams. The gaming terminal doesn't need powerful graphics and data processing capabilities; it only needs basic streaming media playback capabilities and the ability to receive user input event data and send it to the cloud gaming client. When users experience cloud gaming, they essentially manipulate the cloud game's audio and video streams, generating input event data (also known as object operation data or user operation commands) through touchscreen, keyboard, mouse, joystick, and other tools. This data is then transmitted over the network to the cloud gaming client on the server to operate the cloud game.
[0032] Among them, the game terminal involved in this application may refer to the terminal device used by the player when experiencing cloud games, that is, the terminal device on which the user client corresponding to the cloud game client is installed. The player here may refer to the user who is experiencing cloud games or requesting to experience cloud games; the audio and video code stream may include the audio stream and video stream generated by the cloud game client. The audio stream may include the audio data generated by the cloud game client during operation, and the video stream may include the image data rendered by the cloud game during operation. For example, the video stream can be considered as a video composed of a series of game screens rendered in the cloud game client (that is, the rendered image data), then the image data at this time can also be considered as the video frames in the video stream.
[0033] During the operation of a cloud application (for example, a cloud game), a communication connection is established between a cloud application client on the server side and a terminal device (for example, a game terminal) (specifically, it can be a communication connection between the cloud application client and a user client in the terminal device). After the communication connection is successfully established between the cloud application client and the terminal device, the cloud application data stream in the cloud application can be transmitted between the cloud application client and the terminal device. For example, the cloud application data stream may include a video stream (including a series of image data generated by the cloud application client during operation) and an audio stream (including audio data generated by the cloud application client during operation. For ease of understanding, the audio data and the aforementioned image data here can be collectively referred to as audio and video data). In this case, the cloud application client can transmit the video stream and the audio stream to the terminal device. For another example, the cloud application data stream may include object operation data for the cloud application obtained by the terminal device. In this case, the terminal device can transmit the object operation data to the cloud application client running on the server side.
[0034] The following is an explanation of the basic concepts involved in the embodiments of this application:
[0035] Virtual Machine: A type of operating system virtualization where the operating system runs in a hardware environment associated or simulated by software (e.g., QEMU (a virtual operating system emulator)), with separate kernel and user modes.
[0036] Container: A type of operating system virtualization in which multiple operating systems share the same kernel in kernel state and remain independent in user state through a kernel state isolation mechanism.
[0037] Cloud application instance: On the server side, a set of software that includes complete cloud application functions can be called a cloud application instance; for example, a set of software that includes complete cloud gaming functions can be called a cloud gaming instance.
[0038] PC (personal computer) cloud gaming: The guest operating system is typically Windows or Linux, and cloud gaming applications run on these systems. The guest operating system can refer to the operating system running inside a virtual machine or container. A virtual machine or container can run on a general-purpose operating system, in which case the general-purpose operating system is referred to as the host operating system.
[0039] Rendering buffer: The cloud application client running on the server side calls the rendering interface provided by the GPU (Graphics Processing Unit) driver to perform rendering operations. The area where the rendered image data is stored can be called the rendering buffer. The rendering buffer area can refer to the GPU video memory allocated by the server to the cloud application client. It is a component used to store the image data rendered by the cloud application client, and its function is similar to that of a computer's memory.
[0040] Please refer to Figure 1, which is an architectural diagram of a cloud application processing system provided in an embodiment of the present application. As shown in Figure 1, the cloud application processing system may include terminal device 10a, terminal device 10c, and server 10b. The number of terminal devices and servers in the cloud application processing system shown in Figure 1 is for illustration only. In actual application scenarios, the specific number of terminal devices and servers in the cloud application processing system can be determined based on actual needs. For example, the number of terminal devices and servers can be one or more, and this application does not limit the number of terminal devices and servers.
[0041] Among them, the server 10b can run the application program of the cloud application (i.e., the cloud application client). The server 10b can be an independent server, or it can be a server cluster or distributed system composed of multiple servers, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms and other basic cloud computing services. This application does not limit the type of server 10b.
[0042] Both the terminal device 10a and the terminal device 10c include a user client associated with the cloud application client in the server 10b. The terminal device 10a and the terminal device 10c may include: smart phones (such as Android phones, iOS phones, etc.), desktop computers, tablet computers, portable personal computers, mobile Internet devices (Mobile Internet Devices, MIDs) and wearable devices (such as smart watches, smart bracelets, etc.), vehicle-mounted devices and other electronic devices. The embodiment of the present application does not limit the type of terminal devices in the cloud application processing system.
[0043] As shown in Figure 1, server 10b can run one or more cloud application clients (a cloud application client here can be considered a cloud application instance). One cloud application client corresponds to one user, that is, one cloud application client can correspond to one terminal device. The one or more cloud application clients running on server 10b can be the same cloud application or different cloud applications. For example, if user A and user B experience cloud application 1 at the same time, a cloud application 1 instance can be created for user A and user B respectively on server 10b. If user A and user B experience different cloud applications at the same time (for example, user A experiences cloud application 1 and user B experiences cloud application 2), a cloud application 1 instance can be created for user A and a cloud application 2 instance can be created for user B on server 10b.
[0044] Among them, terminal device 10a and terminal device 10c can both be electronic devices used by users. Here, users can refer to objects that are experiencing cloud applications or requesting to experience cloud applications. One terminal device can integrate one or more user clients, each of which can establish a communication connection with the corresponding cloud application client in server 10b. The user client and its corresponding cloud application client can exchange data through this communication connection. For example, the user client in terminal device 10a can receive audio and video data (for example, including image data and audio data corresponding to the cloud application client) sent by the cloud application client based on this communication connection, and output the received audio and video data; accordingly, terminal device 10a can also send the acquired object operation data to the corresponding cloud application client, so that the cloud application client on the server side can execute corresponding business logic based on the object operation data.
[0045] It is understandable that in a cloud application scenario, cloud application clients all run on the server side. In order to reduce the cost of cloud applications, the method adopted is usually to increase the number of cloud application instances running on a single server. A cloud application instance can be considered as a cloud application client, and a cloud application client corresponds to one user. In the embodiment of the present application, the cloud application processing system shown in Figure 1 can be applied to a single-server cloud application concurrent running scenario (which can be understood as a single server running multiple cloud application instances at the same time). The multiple cloud application clients on the server side (for example, server 10b) can run in a virtual machine, container, or other type of virtualization environment provided by the server, or can run in a non-virtualization environment provided by the server (such as running directly on the real operating system on the server side). This application does not limit this. Among them, the multiple cloud application clients running on server 10b can share the physical GPU hardware corresponding to the server 10b; each cloud application client running on server 10b can directly transmit data between the user client in its corresponding terminal device through its internally integrated specific functional component (for ease of understanding, the specific functional component here can be called a data acquisition component).
[0046] In the embodiment of the present application, the data transmission process of the cloud application client includes data transmission from the cloud application client to the user client, and data transmission from the user client to the cloud application client. The user client here refers to the client corresponding to the cloud application running on the terminal device. Among them, the data transmission from the cloud application client to the user client is used to transmit the data generated by the cloud application client (such as image data, audio data, etc.) to the user client, that is, the server transmits the data to the terminal device. The data transmission from the user client to the cloud application client is used to transmit the data collected by the user client (such as user input data, etc.) to the cloud application client, that is, the terminal device transmits the data to the server.
[0047] For example, if multiple cloud application clients on a server side (for example, server 10b) are all running in the same virtual machine provided by the server, then each cloud application client running in the virtual machine is integrated with an independent data acquisition component. The data acquisition component integrated in any cloud application client can capture the audio and video data generated by the cloud application client and transmit it directly to the user client in the corresponding terminal device, that is, the transmission process of the audio and video data generated by the cloud application client does not require interactive operations with the display device, audio device, etc. corresponding to the virtual machine; and the object operation data generated by the user client in the terminal device (which can be called input event data, such as the operation instructions entered by the user in the user client of the terminal device, etc.) can also be directly transmitted from the user client to the data acquisition component integrated in the corresponding cloud application client. When other components in the cloud application client (components in the cloud application client other than the data acquisition component) need to call the object operation data, they can call it directly from the data acquisition component, that is, the transmission of the object operation data does not require interactive operations with the input device corresponding to the virtual machine; this can reduce the interactive operations in the data transmission process between the cloud application client and the user client in the terminal device, thereby improving performance and response speed.
[0048] It should be noted that the cloud application client running on the server side usually has exclusive requirements for display devices, audio devices, and input devices. In the existing concurrent running scenarios of cloud applications, it is necessary to simulate a display device, an audio device, and an input device for each virtual machine on the server side (the server side itself usually does not have a display device, an audio device, and an input device), that is, one virtual machine corresponds to one display device, one audio device, and one input device. For example, the image data rendered by the cloud application client C1 in the existing technical solution (which can be considered as a cloud application client running in any virtual machine on the server side) will eventually be transmitted to the display buffer (framebuffer) corresponding to the display device D1 (the display device corresponding to the virtual machine running the cloud application client C1). In this way, the independent capture program in the virtual machine reads the content in the display buffer corresponding to the cloud application client C1 to ensure that the content captured by the independent capture program is the image data corresponding to the cloud application client C1, rather than the image data corresponding to other cloud application clients (cloud application clients other than the cloud application client C1 on the server side); that is, one virtual machine corresponds to one simulated display device, and the virtual machine contains an independent capture program. The independent capture program reads the content in the display buffer corresponding to the display device of the current virtual machine to ensure that the image data of the cloud application client running in the current virtual machine is captured. That is, in the existing technical solution, a display device must be simulated for the virtual machine, and one virtual machine can only run one cloud application client in order to achieve isolation between the image data corresponding to different cloud application clients. The display buffer can be used to drive its corresponding display device, mimicking the functionality of a graphics card, allowing direct access to video memory by reading and writing to the display buffer. Similarly, similar to the aforementioned display device functionality, existing solutions require simulating an audio device for each virtual machine to isolate audio data corresponding to different cloud application clients, and simulating an input device for each virtual machine to isolate object operation data corresponding to different cloud application clients.
[0049] In the technical solution provided by the embodiments of the present application, multiple cloud application clients running on the server can perform rendering operations by their respective processes. The rendered image data will be stored in a rendering buffer. Through an independent data acquisition component integrated within each cloud application client, the rendered image data can be directly read from the rendering buffer corresponding to the current cloud application client. The data acquisition component can also directly capture the audio data corresponding to the image data generated by the current cloud application client and transmit the captured image data and audio data directly to the terminal device for output. In other words, the image data and audio data in the embodiments of the present application are independently generated by the processes of each cloud application client, and the image data and audio data corresponding to the cloud application client are also captured by the data acquisition component integrated within the cloud application client. In other words, the image data and audio data generation and capture processes are both completed within the cloud application client. Therefore, the image data and audio data captured by the data acquisition component are necessarily the audio and video data corresponding to the current cloud application client, and there will be no data confusion. Similarly, the object operation data generated by the terminal device can also be directly transmitted to the data acquisition component integrated within the cloud application client. The object operation data in the data acquisition component can be called by other components in the cloud application client. The embodiment of the present application can achieve mutual isolation between data of different cloud application clients through the data acquisition component integrated inside the cloud application client, so as to avoid the cloud application client's exclusive demand for display devices, input devices, audio devices, etc., and further reduce the interactive operations in the data transmission process, reduce the data transmission path, and improve performance and response speed; in addition, since the data transmission between each cloud application client and its corresponding terminal device can be completed by the data acquisition component integrated inside the cloud application client, therefore, through the technical solution provided by the embodiment of the present application, multiple cloud application clients can be run concurrently in a virtual machine provided by the server side, or directly in the non-virtualized environment of the server side, thereby avoiding the CPU (Central Processing Unit) computing power loss caused by starting multiple virtual machines on the server side, improving the utilization rate of the server, and reducing the cost of cloud applications.
[0050] For ease of understanding, the following describes the data interaction process between the server 10b and the terminal device 10a and the terminal device 10c in the processing system of the cloud application, taking the cloud application as an example, which is a cloud game. Please refer to Figure 2, which is a schematic diagram of a data interaction scenario of a cloud game provided in an embodiment of the present application. The server 10b shown in Figure 2 can run two or more cloud application clients, and the terminal device 10a can be an electronic device used by user A. The terminal device 10a can integrate one or more user clients associated with different types of cloud games. The user client here can be understood as a client installed on the terminal device and capable of providing the user with corresponding cloud game experience services. For example, the user client 21 in the terminal device 10a is a client associated with cloud game 1, then the icon of the user client 21 in the terminal device 10a can be the icon of cloud game 1, and the user client 21 can provide the user with cloud game 1 experience service, that is, the user can experience cloud game 1 through the user client 21 in the terminal device 10a.
[0051] When user A wants to experience cloud game 1, he can perform a trigger operation on the user client 21 in the terminal device 10a. At this time, the terminal device 10a can respond to the startup operation for the user client 21 in the networked state, obtain the startup instruction generated in the user client 21, and then send the startup instruction to the server 10b. At this time, a cloud game 1 instance can be created or allocated for user A in the server 10b (that is, a cloud game client 22 corresponding to cloud game 1 is created or allocated for user A), and the cloud game client 22 corresponding to user A is run in the server 10b; at the same time, the user client 21 in the terminal device 10a is also successfully started, that is, the user client 21 in the terminal device 10a and the cloud game client 22 in the server 10b maintain the same running state. It should be understood that if a cloud game 1 instance has been pre-deployed in server 10b, then after receiving the startup instruction from user client 21, server 10b can directly allocate a cloud game 1 instance to user A from server 10b and start the cloud game 1 instance. This can improve the startup time of cloud game 1 and reduce the waiting time for user client 21 to display the cloud game 1 page; if a cloud game 1 instance has not been pre-deployed in server 10b, then after receiving the startup instruction from user client 21, server 10b needs to create a cloud game 1 instance for user A in server 10b and start the newly created cloud game 1 instance.
[0052] Similarly, the terminal device 10c shown in FIG2 may be an electronic device used by user B. The terminal device 10c may also integrate one or more user clients associated with different types of cloud games. For example, the user client 23 in the terminal device 10c is a client associated with cloud game 2, then the icon of the user client 23 in the terminal device 10c can be the icon of cloud game 2. When user B wants to experience cloud game 2, he can perform a trigger operation on the user client 23 in the terminal device 10c. At this time, the terminal device 10c can respond to the startup operation for the user client 23 in the networked state, obtain the startup instruction generated in the user client 23, and then send the startup instruction to the server 10b. At this time, a cloud game 2 instance can be created or allocated for user B in the server 10b (that is, a cloud game client 24 corresponding to cloud game 2 is created or allocated for user B), and the cloud game client 24 corresponding to user B is run in the server 10b; at the same time, the user client 23 in the terminal device 10c is also successfully started, that is, the user client 23 in the terminal device 10c and the cloud game client 24 in the server 10b maintain the same running state. In other words, multiple cloud gaming clients can be run in server 10b, such as the cloud gaming client 22 corresponding to user A and the cloud gaming client 24 corresponding to user B.
[0053] As shown in Figure 2, when the cloud game client 22 is running in the server 10b, it can execute the game logic in the cloud game 1, and call the rendering interface provided by the GPU driver through the process where the cloud game client 22 is located to perform rendering operations. The result of the rendering can be the game screen 20a shown in Figure 2. The data acquisition component integrated in the cloud game client 22 can capture the rendered game screen 20a and send the game screen 20a directly to the user client 21 in the terminal device 10a; after receiving the game screen 20a, the user terminal 21 in the terminal device 10a can display it.
[0054] It should be noted that the cloud game client 22 can actually be considered as a set of software on the server side that includes complete cloud game functions. It is static in itself. The cloud game client 22 needs to establish its corresponding process before it can run in the server 10b. The process itself is dynamic. In other words, when it is necessary to start the cloud game client 22 in the server 10b, the process corresponding to the cloud game client 22 can be established in the server 10b, and the process where the cloud game client 22 is located can be started; that is, the essence of running the cloud game client 22 in the server 10b is to run the process where the cloud game client 22 is located in the server 10b. The process can be considered as the basic execution entity of the cloud game client 22 in the server 10b. The operating system running in the server 10b can include a GPU driver, which can provide a rendering interface for the cloud game client running in the server 10b. For example, the process where the cloud game client 22 is located needs to call the rendering interface provided by the GPU driver to perform rendering operations to obtain the rendering result of the cloud game client 22 (such as the game screen 20a).
[0055] The game screen 20a may include game controls 20c, and user A can operate the cloud game 1 by triggering the game controls 20c. For example, the game controls 20c can be used to control the virtual objects 20d in the cloud game 1 to achieve functions such as movement, shooting, and invisibility. When user A triggers the game controls 20c, the user client 21 can obtain the operation data (object operation data) of user A and transmit the operation data of user A directly to the data acquisition component integrated within the cloud game client 22 running on the server 10b. The cloud game client 22 can directly call the operation data of user A from the data acquisition component integrated within it and perform rendering operations based on it to generate a new game screen. Each frame of the game screen rendered by the cloud game client 22 can be transmitted by the cloud game client 22 in real time to the user client 21 in the terminal device 10a for display. Each operation data obtained by the user client 21 can be injected into the cloud game client 22 running on the server 10b, thereby realizing data interaction between the cloud game client 22 in the server 10b and the user client 21 in the terminal device 10a.
[0056] As shown in Figure 2, when the cloud game client 24 is running in the server 10b, it can execute the game logic in the cloud game 2, and call the rendering interface provided by the GPU driver (the GPU driver is the driver in the operating system running on the server 10b) through the process where the cloud game client 24 is located to perform rendering operations. The rendering result can be the game screen 20b as shown in Figure 2. The data acquisition component integrated in the cloud game client 24 can capture the rendered game screen 20b, and send the game screen 20b directly to the user client 23 in the terminal device 10c, and display the game screen 20b in the user client 23; after receiving the game screen 20b, the user terminal 23 in the terminal device 10c can display it.
[0057] If the game screen 20b includes a game control 20e, user B can operate the cloud game 2 by triggering the game control 20c. When user A performs a trigger operation on the game control 20e, the user client 23 can obtain the operation data of user B and transmit the operation data of user B directly to the data acquisition component integrated within the cloud game client 24 running in the server 10b. The cloud game client 24 can directly call the operation data of user B from its internally integrated data acquisition component and perform rendering operations accordingly to generate a new game screen. Similarly, each frame of the game screen rendered by the cloud game client 24 can be transmitted by the cloud game client 24 to the user client 23 in the terminal device 10c in real time for display; and each operation data obtained by the user client 23 can be injected into the cloud game client 24 running in the server 10b, so as to perform data interaction between the cloud game client 24 in the server 10b and the user client 23 in the terminal device 10a.
[0058] In the embodiment of the present application, the cloud game client 22 (the cloud game client that generates the game screen 20a) and the cloud game client 24 (the cloud game client that generates the game screen 20b) running concurrently in the server 10b can both perform rendering operations through their respective processes, and the rendered results (for example, the game screen 20a and the game screen 20b) are independent of each other and do not affect each other, and the results of each rendering can be transmitted to the corresponding user client for display by the data acquisition component integrated within each cloud game client. In other words, the cloud game client 22 and the terminal device 10a used by user A can directly exchange data through the data acquisition component integrated within the cloud game client 22, and the cloud game client 24 and the terminal device 10c used by user B can directly exchange data through the data acquisition component integrated within the cloud game client 24, and their data interaction processes are isolated from each other. It can be seen that in the technical solution provided in the embodiment of the present application, the mutual isolation of data between different cloud game clients can be achieved through the data acquisition components integrated in each cloud game client. Therefore, multiple cloud game clients running on the server side do not need to be isolated by configuring multiple virtual machines for data isolation, which can avoid the CPU computing power loss caused by starting multiple virtual machines on the server side, and can also improve the utilization rate of the server and reduce the cost of using cloud games.
[0059] Please refer to Figure 3, which is a flow chart of a data processing method provided in an embodiment of the present application. It can be understood that the data processing method is executed by a server (for example, server 10b in the processing system of the cloud application shown in Figure 1). The data processing method may include the following steps S101 to S102:
[0060] Step S101: start the first cloud application client deployed in the server.
[0061] In an embodiment of the present application, multiple cloud application clients can be created in the server (the cloud application client here can be understood as a cloud application instance, for example, the cloud game client 22 and the cloud game client 24 in the embodiment corresponding to Figure 2), and the data transmission processes of the multiple cloud application clients in the server are isolated from each other. It should be understood that a cloud application client refers to a cloud application instance running on the server side, which is used to execute and implement the relevant operation logic of the cloud application. The data transmission processes of multiple cloud application clients are isolated from each other, which means that the data transmission processes of multiple cloud application clients do not affect each other, and one cloud application client cannot obtain data from other cloud application clients.
[0062] Among them, the operating environment provided by the server for multiple cloud applications can be a virtualized environment or a non-virtualized environment; the virtualized environment can include virtual machines, containers, and other types of operating system virtualization, which are not limited in this application. At this time, multiple cloud application clients in the server all run in the simulated operating system of the virtualized environment; the non-virtualized environment can refer to the real operating system in the server, and at this time, multiple cloud application clients in the server all run in the real operating system provided by the server.
[0063] For ease of understanding, the embodiment of the present application is described in detail using any one of multiple cloud application clients (which may be referred to as the first cloud application client in the embodiment of the present application) as an example, which means that the first cloud application client is any cloud application client running on the server, and the first cloud application client may be considered as the first cloud application instance created in the server; the first cloud application client is a client corresponding to the first cloud application running on the server side, that is, the first cloud application client corresponds to the first cloud application, and is used to execute application processing tasks of the first cloud application on the server. In the embodiment of the present application, the terminal device that interacts with the first cloud application client for data is referred to as the first terminal. The first terminal can be used to receive and output audio and video data generated by the first cloud application client on the server side; for example, the first terminal can be used to output cloud application content corresponding to the first cloud application client, and the cloud application content may include audio and video data of the first cloud application client received by the first terminal; wherein, the first terminal can be any terminal device in the processing system of the cloud application shown in Figure 1 above, and this application does not limit this; audio and video data may include at least one data type of image data and audio data, such as audio and video data may refer to audio data corresponding to the first cloud application client, or the audio and video data may refer to image data rendered in the first cloud application client, or the audio and video data may include image data and audio data generated in the first cloud application client, and this application does not limit this; the image data here may refer to the result of rendering completed in the first cloud application client (for example, the game screen rendered in the cloud game client).
[0064] Specifically, the first terminal is installed with a user client associated with the first cloud application. The user client here can be considered as a client installed on the terminal device and capable of providing the user with the first cloud application experience service. When a user using the first terminal wants to experience the first cloud application, the user can trigger the user client associated with the first cloud application in the first terminal to launch the user client; for example, the user can click on the user client installed in the first terminal to enter the login page of the user client, and then enter the account information on the login page to log in to the first cloud application.
[0065] When the first terminal detects a user trigger operation on the user client, it can generate a first startup instruction for the first cloud application, and then send the first startup instruction to the server; wherein, the first startup instruction may include application identification information and object information. The application identification information is used to indicate the cloud application instance that the server needs to create or allocate, such as the application identification information in the first startup instruction is used to instruct the server to create or allocate the first cloud application instance (first cloud application client); the application identification information can be a cloud application ID (identity) or other information that can uniquely identify the first cloud application, which is not limited in this application. The object information can be used to indicate the data interaction object corresponding to the cloud application instance created or allocated by the server based on the first startup instruction, such as the object information in the first startup instruction is used to indicate that the data interaction object corresponding to the cloud application instance created or allocated by the server is the first terminal device, more specifically, the data interaction object is the user client in the first terminal device; the object information may include the device identification information of the first terminal and the user identification of the first terminal (for example, account information, etc.), which is not limited in this application.
[0066] After the server receives the first startup instruction sent by the first terminal, it can create or allocate a first cloud application client for the first terminal in the server based on the application identification information in the first startup instruction, that is, deploy the first cloud application client in the server; based on the object information in the first startup instruction, it can start the first cloud application client, which can essentially be considered as starting the process of establishing the first cloud application client in the server. It is understandable that after the first cloud application client is started on the server side, the user client in the first terminal will also successfully start the first cloud application, and the progress status of the first cloud application in the user client is always consistent with the progress status of the first cloud application client in the server; wherein, real-time data transmission is required between the user client in the first terminal and the first cloud application client running on the server, such as each frame of image data rendered in the first cloud application client can be transmitted from the first cloud application client to the user client in the first terminal, and each object operation data input by the user in the user client of the first terminal can be transmitted to the first cloud application client in the server, and the first cloud application client and the user client in the first terminal can directly exchange data, thereby reducing the data transmission path during the data interaction between the two and reducing the response time during the data interaction. This can ensure that the progress status between the first cloud application client and the user client is always consistent, thereby improving the fluency of the audio and video data output by the user client and the operation sensitivity in the user client, which is conducive to improving the user retention rate of the cloud application.
[0067] Step S102: transmitting the application data stream of the first cloud application between the first cloud application client and the first terminal through the data collection component in the first cloud application client.
[0068] Specifically, since a server can run multiple cloud application clients, that is, in addition to the first cloud application client, the server can also run one or more cloud application clients. Therefore, when the first cloud application client interacts with the first terminal (specifically, the user client associated with the first cloud application in the first terminal), it is necessary to ensure that its data interaction process is isolated from the data interaction processes of other cloud application clients. Therefore, in an embodiment of the present application, a data acquisition component is integrated into each cloud application client. The data acquisition component refers to an execution component integrated in the cloud application client for interacting with the corresponding terminal device. That is, the data acquisition component is used to enable the cloud application client in the server to directly interact with its corresponding terminal device. This data interaction method can avoid the cloud application client's exclusive demand for display devices, audio devices, and input devices. In other words, whether the multiple cloud application clients are running concurrently in the real operating system provided by the server or in the same virtualized environment (e.g., a virtual machine) provided by the server, it can still ensure that the data interaction process between each cloud application client and its corresponding terminal device is independent, which can improve the utilization rate of the server when each cloud application client is operating normally.
[0069] Among them, during the data interaction process between the first cloud application client and the first terminal, the application data stream of the first cloud application can be transmitted between the first cloud application client and the first terminal through the data acquisition component integrated in the first cloud application client. The application data stream here refers to the data exchanged between the first cloud application client and the first terminal during the operation of the first cloud application. For example, the data acquisition component integrated in the first cloud application client can capture the audio and video data generated by the first cloud application client, and transmit the captured audio and video data to the user client in the first terminal. After obtaining the object operation data input by the user through the user client, the user client can transmit the object operation data to the data acquisition component integrated in the first cloud application client. Subsequently, other components in the first cloud application client (components in the first cloud application client except the data acquisition component) can call the object operation data from the data acquisition component. Here, the audio and video data and object operation data both belong to the application data stream in the first cloud application.
[0070] Among them, the application data stream in the first cloud application may include audio and video streams and operation data streams (also called input data streams); the operation data stream may be composed of object operation data (also called input event data) generated by the first terminal based on the trigger operation in the cloud application display page; the audio and video stream may include at least one of a video stream and an audio stream, the video stream may be composed of a series of image data rendered and generated by the first cloud application client, and the audio stream may be composed of audio data generated by the first cloud application client. The audio data here and the aforementioned image data may be called audio and video data; in other words, the audio and video stream may be composed of audio and video data.
[0071] The first terminal is used to output cloud application content corresponding to the first cloud application. The cloud application content is display content generated based on the above-mentioned application data stream. The cloud application content can be, for example, a video image generated based on the video stream in the application data stream, or can be audio generated based on the audio stream in the application data stream.
[0072] The data acquisition component may include a rendering capture component and an operation processing component, or the data acquisition component may be a comprehensive component that integrates the functions of the rendering capture component and the functions of the operation processing component, which is not limited in this application; optionally, the rendering capture component may include an image capture component and an audio capture component, or the rendering capture component may be a comprehensive component that integrates the functions of the image capture component and the functions of the audio capture component, which is not limited in this application. When the rendering capture component includes an image capture component and an audio capture component, the image capture component can be used to capture the image data rendered in the first cloud application client, and the audio capture component can be used to capture the audio data generated by the first cloud application client, and the captured audio data and image data can be transmitted together to the first terminal. When the rendering capture component is a comprehensive component that integrates the functions of the image capture component and the functions of the audio capture component, the rendering capture component can be used to capture the audio and video data (such as audio data and video data) generated by the first cloud application client, and transmit the captured audio and video data to the first terminal. The operation processing component can be used to receive object operation data captured by the user client of the first terminal, and inject the received object operation data into the first cloud application client.
[0073] Optionally, the application data stream may include audio and video data generated by the first cloud application client. The server can call the rendering interface provided by the GPU driver in the operating system running on the server through the process to which the first cloud application client belongs, and based on the rendering interface, render the page display data in the first cloud application client (which can be considered as data that needs to be displayed to the user, such as virtual objects in cloud games, game function controls, game scene data, etc.) to obtain image data corresponding to the first cloud application client, and the image data can be stored in the rendering buffer corresponding to the first cloud application client. Each cloud application client running in the server can correspond to one or more rendering buffers, which can be used to temporarily store image data rendered by its corresponding cloud application client.
[0074] Optionally, during the operation of the server, the first cloud application client can also generate audio data corresponding to the rendered image data, and the audio data can be stored in the audio buffer corresponding to the first cloud application client. The server can allocate an independent audio buffer for each cloud application client that generates audio data. The audio buffer can be used to temporarily store the audio data generated by its corresponding cloud application client. The audio buffer can be considered as the system memory in the operating system running on the server. If the first cloud application client generates image data and audio data, the image data and audio data can be used as the audio and video data corresponding to the first cloud application client; if the first cloud application client does not generate audio data corresponding to the image data, the rendered image data can be used as the audio and video data of the first cloud application client.
[0075] In one or more embodiments, the rendering processing corresponding to the first cloud application client can essentially be understood as follows: the process where the first cloud application client is located in the server performs rendering operations by calling the rendering interface provided by the GPU driver, and the rendering results can be frame-by-frame rendering images in the first cloud application client. These rendering images can be used as image data corresponding to the first cloud application client, and the rendered image data can be stored in the rendering buffer corresponding to the first cloud application client. It can be understood that each time the process where the first cloud application client is located renders a frame of rendering image, it can store it in the rendering buffer, and the data acquisition component (for example, the rendering capture component) can capture the rendering image from the rendering buffer and transmit the rendering image as the audio and video data of the first cloud application client to the first terminal for display.
[0076] Optionally, if the first cloud application client generates audio data corresponding to the image data during operation, the audio data can be stored in the audio buffer corresponding to the first cloud application client. The data acquisition component integrated within the first cloud application client can capture the audio data from the audio buffer and transmit the acquired image data and audio data together as the audio and video data corresponding to the first cloud application client to the first terminal. In other words, the audio and video data of the first cloud application client can be transmitted between the first cloud application client and the first terminal through the data acquisition component. Accordingly, after receiving the audio and video data, the first terminal can display the corresponding image based on the image data therein and play the corresponding audio based on the audio data therein.
[0077] Optionally, the application data stream may include object operation data generated by the first terminal. The display page of the first cloud application client (also referred to as the cloud application display page) can be displayed in the first terminal. The cloud application display page can be used to output the audio and video data received by the first terminal. The user can perform a trigger operation based on the audio and video data output by the cloud application display page, such as performing a trigger operation based on the audio and video data displayed in the cloud application display page (for example, contact operations such as click, slide, long press, or non-contact operations such as voice and gesture, which are not limited in this application). At this time, the first terminal can respond to the trigger operation for the audio and video data and generate object operation data for the first cloud application. The first terminal can directly transmit the object operation data to the data acquisition component (for example, the operation processing component) in the first cloud application client, and the data acquisition component injects the object operation data into the first cloud application client to execute the business logic corresponding to the object operation data. In other words, the object operation data can be transmitted between the first terminal and the first cloud application client through the data acquisition component.
[0078] Optionally, assuming that the multiple cloud application clients running in the server also include a second cloud application client, the second cloud application client can be considered as a second cloud application instance created in the server. In the embodiment of the present application, the terminal device that exchanges data with the second cloud application client is referred to as a second terminal. The second terminal can be used to receive audio and video data generated by the second cloud application client on the server side, and output the received audio and video data in the second terminal, such as the second terminal can output the cloud application display page corresponding to the second cloud application client; the second terminal can also be any terminal device in the cloud application processing system shown in Figure 1 above, and this application does not limit this.
[0079] The second terminal is installed with a user client associated with the second cloud application. The user client here can be considered as a client installed on the terminal device and capable of providing the user with the second cloud application experience service. When the user using the second terminal wants to experience the second cloud application, the user can perform a trigger operation on the user client associated with the second cloud application in the second terminal. At this time, after detecting the user's trigger operation on the user client, the second terminal can generate a second startup instruction for the second cloud application, and then send the second startup instruction (which may include application identification information corresponding to the second cloud application, device identification information of the second terminal, account information of the user using the second terminal, etc.) to the server.
[0080] After receiving the second startup instruction sent by the second terminal, the server can create or allocate a second cloud application client for the second terminal on the server based on the second startup instruction, and launch the second cloud application client created or allocated by the server for the second terminal. For example, after creating or allocating the second cloud application client, a corresponding process can be established for the second cloud application client and the process containing the second cloud application client can be launched. It is understood that after the second cloud application client is launched on the server, the user client on the second terminal will also successfully launch the second cloud application, and the progress status of the second cloud application in the user client will always be consistent with the progress status of the second cloud application client on the server.
[0081] The second cloud application client running in the server can also have a data acquisition component integrated inside it. Through the data acquisition component integrated inside the second cloud application client, the application data stream in the second cloud application can be transmitted between the second cloud application client and the second terminal; the data interaction process between the second cloud application client and the second terminal is similar to the data interaction process between the aforementioned first cloud application client and the first terminal, and will not be repeated here. It should be understood that in addition to creating the first cloud application client and the second cloud application client, the server can also continue to create other cloud application clients. This application does not limit the number and type of cloud application clients running in the same server. The aforementioned first cloud application and second cloud application can be the same cloud application or different cloud applications, and this application does not limit this.
[0082] Please refer to Figure 4, which is a schematic diagram of data interaction for a cloud application provided in an embodiment of the present application. This embodiment of the present application is described using an example in which a server concurrently runs two cloud application clients (a first cloud application client and a second cloud application client). In Figure 4, the first cloud application client and the first terminal are objects for data interaction, and the second cloud application client and the second terminal are objects for data interaction.
[0083] The first cloud application client and the second cloud application client running on the server can perform rendering operations by calling the rendering interface provided by the GPU driver through their respective processes. The GPU driver is a driver in the operating system running on the server. When the first cloud application client is running on the server, the process of the first cloud application client can directly call the rendering interface provided by the GPU driver to perform rendering operations, and the rendered image data can be stored in the rendering buffer allocated by the server for the first cloud application client. When the second cloud application client is running on the server, the process of the second cloud application client can also directly call the rendering interface provided by the GPU driver to perform rendering operations, and the rendered image data can be stored in the rendering buffer allocated by the server for the second cloud application client. That is, the rendering operations of each cloud application client running on the server are completed in their respective processes, and the rendering operations of different cloud application clients are independent of each other and do not affect each other. It should be noted that when the rendering interfaces called by the processes of different cloud application clients are the same rendering interfaces provided by the GPU driver, the scheduling of the rendering interfaces by the processes of different cloud application clients can be controlled by the operating system running on the server, thereby achieving the purpose of multiple cloud application clients using GPU resources separately. In other words, based on the fact that the processes of multiple cloud application clients each call the rendering interface to perform rendering operations, the needs of multiple cloud application clients in the server to share GPU hardware devices can be met without creating other additional devices (for example, simulated display devices, simulated audio devices, and simulated input devices, etc.), which can save server resources to the greatest extent.
[0084] Similarly, the first cloud application client and the second cloud application client running in the server can generate audio data corresponding to the image data rendered by each of them through their respective processes. The generated audio data can be stored in the audio buffers corresponding to their respective cloud application clients. For example, the audio data generated by the process where the first cloud application client is located is stored in the audio buffer corresponding to the first cloud application client, and the audio data generated by the process where the second cloud application client is located is stored in the audio buffer corresponding to the second cloud application client. This can avoid the exclusive demand of each cloud application client for audio equipment and improve the utilization rate of the server.
[0085] Among them, since the first cloud application client and the second cloud application client running in the server each have integrated data acquisition components, the isolation of data flows between multiple cloud application clients can be ensured by the data acquisition components integrated in each cloud application client. The image data stored in the rendering buffer corresponding to the first cloud application client can form a video stream, which is captured by the data acquisition component integrated within the first cloud application client and directly transmitted to the first terminal, that is, the data acquisition component integrated within the first cloud application client captures the image data in the rendering buffer and transmits it directly to the first terminal. The audio data stored in the audio buffer corresponding to the first cloud application client can form an audio stream, which is captured by the data acquisition component integrated within the first cloud application client and directly transmitted to the first terminal, that is, the data acquisition component integrated within the first cloud application client captures the audio data in the audio buffer and directly transmits it to the first terminal; the data acquisition component integrated within the first cloud application client can capture image data and audio data in parallel, and transmit the image data and audio data together to the first terminal. For the input event data stream (such as object operation data) generated by the first terminal based on the trigger operation in the display page corresponding to the first cloud application client, the first terminal captures it and directly transmits it to the first cloud application client for subsequent processing. For example, the input event data stream can be directly transmitted to the data acquisition component integrated inside the first cloud application client; that is, based on the data acquisition component in the first cloud application client, the data interaction between the first cloud application client and the first terminal can avoid the exclusive requirements of display devices, audio devices and input devices, reduce data transmission paths, and improve performance and response speed.
[0086] The data exchange process between the second cloud application client running on the server and the second terminal is identical to the data exchange process between the first cloud application client and the first terminal, and will not be further described here. You can create as many cloud application clients as you need on the server. Each cloud application client can interact with its corresponding terminal device independently, without interfering with the other.
[0087] In an embodiment of the present application, by using a data acquisition component integrated within a cloud application client, application data streams are directly transmitted between the cloud application client and its corresponding terminal device, thereby avoiding the cloud application client's exclusive demand for display devices, audio devices, and input devices, and thus enabling multiple cloud application clients to run concurrently in one server, thereby improving server utilization, saving server resources, and reducing the cost of using cloud applications.
[0088] Please refer to Figure 5, which is a flow chart of another data processing method provided by an embodiment of the present application. It can be understood that the data processing method is executed by a server (for example, server 10b in the processing system of the cloud application shown in Figure 1). The data processing method may include the following steps S201 to S205:
[0089] Step S201: Start the first cloud application client deployed in the server.
[0090] The specific implementation process of step S201 can refer to step S101 in the embodiment corresponding to FIG3 , and will not be described again here.
[0091] Step S202: Obtain image data from a rendering buffer corresponding to the first cloud application client through a rendering capture component in the first cloud application client; the rendering buffer is used to store images rendered in the first cloud application client.
[0092] This embodiment of the application describes the data interaction process between the first cloud application client and its corresponding first terminal, taking the example of a data acquisition component integrated within a first cloud application client, including a rendering and capture component and an operation processing component. Specifically, for the first cloud application client running on the server, the audio and video data generated by the client itself can all be captured by the rendering and capture component integrated within the first cloud application client. This embodiment of the application describes the transmission process of audio and video data between the first cloud application client and the first terminal, taking the example of audio and video data including image data and audio data.
[0093] Specifically, when the process where the first cloud application client is located performs a rendering operation by calling the rendering interface provided by the GPU driver, and temporarily stores the rendered image data in the rendering buffer corresponding to the first cloud application client, accordingly, the rendering capture component integrated within the first cloud application client can capture the rendered image data from the rendering buffer. For example, the rendering capture component integrated within the first cloud application client can perform real-time monitoring of the data storage status of the rendering buffer. Once it is detected that new image data is stored in the rendering buffer, the rendering capture component integrated within the first cloud application client can capture the newly stored image data in the rendering buffer; if the rendering capture component can monitor the storage status of the rendering buffer through a certain function (for example, the function can be an existing general function, or a custom timer or other method, which is not limited in this application), when the storage status of the rendering buffer is detected to have changed through the function, it is determined that the data stored in the rendering buffer has changed. At this time, the rendering capture component can capture the image data that caused the change from the rendering buffer.
[0094] It is understandable that the number of rendering buffers corresponding to the first cloud application client can be one or more, and this application does not limit the number of rendering buffers corresponding to each cloud application client running on the server. When the process of the first cloud application client can store the rendered image data in one or more rendering buffers corresponding to the first cloud application client according to pre-set rules (which can be pre-set according to actual needs and are not limited by this application), these one or more rendering buffers can be used cyclically.
[0095] For example, when the number of rendering buffers corresponding to the first cloud application client is one (the rendering buffer can be recorded as T1), the image data D1 rendered by the process where the first cloud application client is located can be stored in the rendering buffer T1. At this time, the rendering capture component integrated inside the first cloud application client can capture the image data D1 in the rendering buffer T1 and transmit the image data D1 to the first terminal; the process where the first cloud application client is located continues to perform the rendering operation to obtain image data D2, and the image data D2 can also be stored in the rendering buffer T1. At this time, the image data D2 can overwrite the previously stored image data D1, that is, the rendering buffer T1 always stores the latest image data rendered in the first cloud application client.
[0096] Optionally, when the number of rendering buffers corresponding to the first cloud application client is multiple (such as rendering buffer T1, rendering buffer T2, and rendering buffer T3), the image data D1 rendered by the process where the first cloud application client is located can be stored in the rendering buffer T1. At this time, the rendering capture component integrated inside the first cloud application client can capture the image data D1 in the rendering buffer T1 and transmit the image data D1 to the first terminal; the process where the first cloud application client is located continues to perform the rendering operation to obtain image data D2, and the image data D2 can be stored in the rendering buffer T2. The rendering capture component can also capture the image data D1 in the rendering buffer T2. Data D2 is obtained and transmitted to the first terminal; similarly, the image data D3 obtained by subsequent rendering can be stored in the rendering buffer T3, and the image data D4 obtained by continuing the rendering can be stored in the rendering buffer T1. The image data D4 at this time can overwrite the image data D1 stored previously, and so on. The image data rendered in the first cloud application client can be stored in the aforementioned three rendering buffers in sequence; in this way, each rendered image data in the first cloud application client can be temporarily stored in the rendering buffer for a period of time (such as the interval time for storing image data in the three rendering buffers in sequence), which can prevent the rendering capture component from missing image data.
[0097] Please refer to Figure 6, which is a schematic diagram of a rendering capture component integrated inside a cloud application client provided by an embodiment of the present application to capture image data. As shown in Figure 6, the number of cloud application clients running concurrently in the server is N (N can be an integer greater than 1), such as cloud application client 1, cloud application client 2,..., cloud application client N. Each cloud application client running in the server can be allocated a corresponding rendering buffer, such as cloud application client 1 can correspond to rendering buffer 1, cloud application client N can correspond to rendering buffer N, etc.; the rendering buffer corresponding to each cloud application client can store the image data obtained by the rendering operation performed by calling the rendering interface provided by the GPU driver by the process where each cloud application client is located. Each cloud application client is respectively integrated with its own rendering buffer capture module (which can be considered as the image capture component contained in the rendering capture component), and the captured image data is respectively transmitted to the user client in the corresponding terminal device for display. For example, the rendering buffer capture module integrated in the cloud application client 1 can transmit the image data D5 generated in the cloud application client 1 to the terminal device corresponding to the first cloud application client 1 for display after capturing the image data D5 generated in the cloud application client 1; the rendering buffer capture module integrated in the cloud application client N can transmit the image data D6 to the terminal device corresponding to the first cloud application client N for display, etc.
[0098] Optionally, the process of the rendering capture component integrated inside the first cloud application client capturing image data from the rendering buffer may include: obtaining data attribute information of the rendering buffer corresponding to the first cloud application client, and based on the data attribute information, creating a texture resource object (texture) in the rendering capture component of the first cloud application client, and then encapsulating the image data in the rendering buffer corresponding to the first cloud application client into the texture resource object. By encapsulating the image data in the rendering buffer into the texture resource object, the texture resource object can be subsequently set as a shared texture resource, so that the remaining components in the first cloud application client (for example, the data compression component) can access the image data in the rendering buffer and compress it, thereby realizing data sharing between different components in the first cloud application client. Among them, the data attribute information may include information such as image width, image height and pixel format in the first cloud application client; for example, the rendering capture component integrated in the first cloud application client can obtain the data attribute information of the rendering buffer through the data exchange interface, and create a texture resource object (texture) based on the data attribute information, and then encapsulate the image data in the rendering buffer into the texture resource object (texture), so as to ensure that the texture resource object corresponds to the image data in the rendering buffer one by one, thereby maintaining the authenticity of the image data.
[0099] Step S203: Obtain audio data corresponding to the image data from an audio buffer corresponding to the first cloud application client through a rendering and capturing component in the first cloud application client; the audio buffer is used to store audio generated in the first cloud application client.
[0100] Specifically, when the first cloud application client is started in the server, the server can allocate a corresponding audio buffer for the first cloud application client, and the process where the first cloud application client is located can generate audio data corresponding to the rendered image data, and store it in the audio buffer corresponding to the first cloud application client. The rendering capture component integrated within the first cloud application client (or the audio capture component contained in the rendering capture component) can capture the audio data in the audio buffer; wherein, the process of the rendering capture component capturing audio data from the audio buffer is similar to the aforementioned process of capturing image data from the rendering buffer, such as creating an audio resource object in the rendering capture component, and encapsulating the audio data in the audio buffer into the audio resource object, etc., which will not be elaborated here.
[0101] Step S204: The image data and the audio data are transmitted to the data compression component in the first cloud application client. The image data and the audio data are compressed by the data compression component to obtain audio and video data corresponding to the first cloud application client.
[0102] Specifically, after capturing the image data and audio data, the rendering capture component integrated within the first cloud application client can transmit the captured image data and audio data to the data compression component integrated within the first cloud application client. The image data and audio data can be compressed by the data compression component respectively to obtain compressed image data and compressed audio data. The compressed image data and compressed audio data can be called audio and video data corresponding to the first cloud application client.
[0103] Among them, when the rendering capture component integrated inside the first cloud application client obtains image data (the image data here can be considered as the video frames in the video stream generated by the first cloud application client), the obtained image data can be compressed by the data compression module integrated inside the first cloud application client to obtain compressed image data, such as the obtained image data can be compressed into H264 format (a video compression format), or the obtained video data can be compressed into other video compression formats, which is not limited in this application; by compressing the image data obtained by the rendering capture component, the amount of transmitted data can be reduced, thereby reducing bandwidth pressure.
[0104] When the rendering capture component integrated within the first cloud application client obtains audio data, the obtained audio data can also be compressed through the data compression module integrated within the first cloud application client to obtain compressed audio data. For example, the obtained audio data can be compressed into Opus format (an audio compression format), or the obtained audio data can be compressed into other frequency compression formats. This application does not limit this. By compressing the audio data obtained by the rendering capture component, the amount of transmitted data can also be reduced, thereby reducing bandwidth pressure.
[0105] It should be understood that the operating system running in the server can be considered as the operating environment of multiple cloud application clients on the server side. The operating system running in the server can be a Windows system, a Linux system, or other types of operating systems. This application does not limit this. That is to say, the multiple cloud application clients involved in the embodiments of this application can operate normally in different types of operating systems and are not limited to a specific type of operating system. Among them, the types of operating systems running in the server are different, and the functions used by the rendering capture component integrated in the first cloud application client to transfer image data and audio data to the data compression component may be different. That is, for different types of operating systems, the rendering capture component can use different functions to transfer image data and audio data to the data compression component. For ease of understanding, the following takes the operating system running in the server as an example of a Windows system to describe the process of the rendering capture component transferring image data to the data compression component (the process of the rendering capture component transferring audio data to the data compression component is similar to the process of the rendering capture component transferring image data to the data compression component. This embodiment of the application only takes image data as an example for explanation).
[0106] In one or more embodiments, inside the first cloud application client, after the rendering capture component captures the image data from the rendering buffer, the image data can be encapsulated in the texture resource object texture created in the rendering capture component. The rendering capture component can also create a fence object (fence), which can be used to monitor the data status in the texture resource object texture, or the fence object fence can be understood as a reminder mechanism for reminding the data compression component that the audio and video data corresponding to the texture resource object texture has completed the rendering operation.
[0107] Among them, the implementation process of transmitting image data from the rendering capture component to the data compression component may include: the texture resource object texture can be set to a shared texture resource texture, such as by calling the CreateSharedHandle (a handle for creating shared resources in the Windows system) method to set the texture resource object texture to a shared texture resource texture, that is, the image data corresponding to the texture resource object texture is set to a shared resource, so that the data compression component can access the image data corresponding to the shared texture resource texture, thereby realizing resource sharing between different components in the first cloud application client, which is conducive to reducing the data processing time of image data on the server side; of course, resource sharing between different programs can also be realized through shared texture resources, such as resource sharing between the rendering capture component inside the first cloud application client and an external independent program. Similarly, a fence object fence can also be set as a shared fence fence. For example, the fence object fence can be set as a shared fence fence by calling the CreateSharedHandle method, so that the data compression component can access the shared fence fence and obtain the rendering completion status of the image data corresponding to the shared texture resource texture. This allows the data compression component to promptly obtain the rendered image data and transmit the compressed image data to the first terminal in a timely manner, thereby shortening the time it takes to transmit the image data from the first cloud application client to the first terminal and further ensuring that the progress status in the first terminal is consistent with the progress status of the first cloud application client. The shared texture resource texture and the shared fence fence can then be imported into the data compression component of the first cloud application client. For example, the shared texture resource texture can be accessed through the OpenSharedResource method (a method for accessing shared resources in Windows systems), and the shared fence fence can be accessed through the OpenSharedFence method (a method for accessing shared fences in Windows systems).
[0108] When the shared fence detects that the data in the shared texture resource is in a completed state, it can send a reminder signal to the data compression component. Based on the reminder signal, the data compression component obtains the image data corresponding to the shared texture resource and compresses the image data to obtain compressed image data. In other words, every time a frame is rendered in the shared texture resource, the shared fence will remind the data compression component to compress the rendered frame to obtain the compressed frame.
[0109] Please refer to Figure 7, which is a schematic diagram of the compression processing of image data in a cloud application client provided by an embodiment of the present application. For ease of understanding, the following takes PC Cloud Game (PC Cloud Game means that the cloud game client runs in the Windows system, that is, the operating system running in the server is the Windows system) as an example to describe the processing process of image data in the rendering capture component and data compression component integrated in the cloud application client; as shown in Figure 7, the rendering buffer capture module (rendering capture component) inside the cloud game client (for example, the first cloud application client) running in the server can create a texture resource object texture, and then can encapsulate the rendering buffer content into the texture resource object texture, that is, encapsulate the image data in the rendering buffer into the texture resource object texture.
[0110] Furthermore, by calling the CreateSharedHandle method, the texture resource object texture can be set as a shared texture resource, the fence object fence can be set as a shared fence, and the shared texture resource texture and shared fence fence can be exported in the rendering buffer capture module inside the cloud game client. For the audio and video compression module (i.e., the data compression component) inside the cloud game client, the shared texture resource texture and shared fence fence can be imported, such as accessing the shared texture resource texture through the OpenSharedResource method and accessing the shared fence fence through the OpenSharedFence method; the audio and video compression module needs to wait for the shared fence fence to send a reminder signal. If the reminder signal sent by the shared fence fence is received, it means that the image data corresponding to the shared texture resource texture (such as the rendering screen) has completed the rendering operation, and then the image corresponding to the shared texture resource texture can be compressed and encoded, that is, the rendered image is compressed and encoded by the data compression component to obtain compressed image data.
[0111] Step S205 : transmitting the audio and video data to the first terminal, so that the first terminal decompresses the audio and video data to obtain decompressed audio and video data, and outputs the decompressed audio and video data.
[0112] Specifically, after obtaining audio and video data through the data compression component, the audio and video data can be transmitted to the first terminal, specifically to the user client in the first terminal. After receiving the audio and video data, the user client in the first terminal can decompress the audio and video data to obtain decompressed audio and video data, i.e., the audio and video data before compression, and output the audio and video data to the user client. By integrating the data compression component within the first cloud application client, the image data and audio data generated by the first cloud application client can be compressed and encoded. This can reduce the interaction between the first cloud application client and external programs, thereby reducing the transmission path of audio and video data and improving performance and response speed.
[0113] Optionally, if the first cloud application client does not have an integrated data compression component, a data compression application in the operating system running on the server can be used to compress the image data and audio data obtained by the rendering capture component integrated within the first cloud application client. For example, the image data and audio data obtained by the rendering capture component can be transmitted to the data compression application, and the image data and audio data are compressed by the data compression application to obtain compressed image data and compressed audio data. The compressed image data and compressed audio data can be referred to as the audio and video data corresponding to the first cloud application client; the data compression application and the first cloud application client are independent programs in the server. The audio and video data obtained by the data compression application can also be transmitted to the first terminal, so that the first terminal can decompress the received audio and video data to obtain decompressed audio and video data, and then output the decompressed audio and video data in the first terminal; wherein the process of transmitting the image data and audio data generated by the first cloud application client from the rendering capture component to the data compression application is similar to the process of transmitting the image data and audio data from the rendering capture component to the data compression component, and will not be repeated here. By utilizing a data compression application external to the first cloud application client to compress and encode the image data and audio data in the first cloud application client, that is, reusing the data compression application in the existing cloud application solution, the development workload of the cloud application client can be reduced.
[0114] Please refer to Figure 8, which is a schematic diagram of the data compression structure of a cloud application client in a server provided by an embodiment of the present application. The following describes the data compression structure in the server by taking the cloud game client as an example. As shown in Figure 8, a cloud game client 1 (such as the first cloud application client) is running in the server, and the device that interacts with the cloud game client 1 for data is a terminal device 1 (such as the first terminal); during the operation, the cloud game client 1 can execute the corresponding game logic (such as the above-mentioned business logic), and the process where the cloud game client 1 is located can call the rendering interface to perform the rendering operation, and the rendered image data can be stored in the rendering buffer, and the audio data corresponding to the above-mentioned image data generated by the process where the cloud game client 1 is located can be stored in the audio buffer; the rendering capture module (rendering capture component) integrated in the cloud game client 1 can capture image data from the rendering buffer and capture audio data from the audio buffer.
[0115] If the cloud gaming client 1 has an integrated audio and video compression module (data compression component), the audio data and image data obtained by the rendering and capture module can be transmitted to the audio and video compression module (data compression component) for compression processing, and the compressed audio data and video data are transmitted to the terminal device 1 (such as the first terminal) as the audio and video data corresponding to the first cloud application client. Optionally, if the cloud gaming client 1 does not have an integrated audio and video compression module, the audio data and image data obtained by the rendering and capture module can be transmitted to the audio and video compression application (i.e., the data compression application) in the operating system running on the server for compression processing, and the compressed audio data and video data are transmitted to the terminal device 1 as the audio and video data corresponding to the first cloud application client.
[0116] In one or more embodiments, the data acquisition component integrated within the first cloud application client may include an operation processing component (also referred to as an input event processing module). In this case, the application data stream transmitted between the first cloud application client and the first terminal may include object operation data generated by the first terminal. The object operation data may include instructions generated by the first terminal based on a trigger operation in a cloud application display page corresponding to the first cloud application client. When the first terminal outputs the received audio and video data, these audio and video data may be displayed in the user client of the first terminal. For example, the user client in the first terminal may display the cloud application display page corresponding to the first cloud application client and play the sound effects corresponding to the first cloud application client. The cloud application display page may be used to output the audio and video data received by the first terminal.
[0117] The audio and video data output by the cloud application display page may include different types of functional controls. When a user triggers a functional control on the cloud application display page, the first terminal may generate the user's operation data (i.e., object operation data), and then directly transmit the object operation data to the operation processing component in the first cloud application client. At this time, the first cloud application client running on the server may receive the object operation data transmitted by the first terminal through its internal operation processing component, and execute the corresponding business logic in the first cloud application client by calling the object operation data in the operation processing component. In other words, the object operation data in the operation processing component integrated within the first cloud application client can be called by other components in the first cloud application client for subsequent processing and implementation of related business logic.
[0118] Please refer to Figure 9, which is a schematic diagram of an operation processing component integrated within a cloud application client provided in an embodiment of the present application to receive object operation data. The following still takes the cloud game client as an example to describe the operation processing component integrated within the cloud application client. As shown in Figure 9, a cloud game client 1 (such as a first cloud application client) is running in the server, and the device that interacts with the cloud game client 1 for data is a terminal device 1 (such as a first terminal). When the terminal device 1 obtains the input event data (i.e., object operation data) in the game display page (such as the cloud application display page) corresponding to the cloud game client 1, the obtained input event data can be transmitted to the input event processing module (i.e., the operation processing component) integrated within the cloud game client 1. The input event data in the input event processing module can be called by the remaining modules within the cloud game client 1. In the embodiment of the present application, the input event data generated by the terminal device 1 can be directly transmitted to the cloud game client 1, reducing the transmission path of the input event data and improving the performance and response speed of the cloud game client 1.
[0119] In an embodiment of the present application, multiple cloud application clients can be run concurrently in a server. The first cloud application client among the multiple cloud application clients can directly transmit the audio and video data generated by the first cloud application client to the corresponding first terminal through the rendering capture component integrated therein, and the object operation data generated by the first terminal can be directly transmitted to the operation processing component integrated within the first cloud application client, that is, each cloud application client can directly interact with its corresponding terminal device, thereby avoiding the cloud application client's exclusive demand for display devices, audio devices, and input devices, reducing the data transmission path between the cloud application client and the corresponding terminal device, and thus improving performance and response speed; running multiple cloud application clients concurrently in the same server can save server resources, improve server utilization, and thus reduce the cost of using cloud applications; since the data streams corresponding to the cloud application clients do not need to interact with simulated display devices, audio devices, and input devices, etc., the intermediate conversion of data in the display devices, audio devices, and input devices in the operating system running on the server can be reduced, which is conducive to realizing the multi-touch requirements of the cloud application user client in the terminal device.
[0120] It is understandable that in the specific implementation of this application, relevant information of users in various cloud applications (for example, user account information, information of terminal devices used by users, etc.) may be involved. When the above embodiments of this application are applied to specific products or technologies, the user's permission or consent must be obtained, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0121] Please refer to Figure 10, which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device runs on a server, and multiple cloud application clients are deployed on the server. The data transmission processes of the multiple cloud application clients are isolated from each other. The multiple cloud application clients include a first cloud application client. As shown in Figure 10, the data processing device 1 can include a first startup module 11 and a first transmission module 12;
[0122] A first starting module 11 is used to start a first cloud application client deployed in the server;
[0123] The first transmission module 12 is configured to transmit the application data stream of the first cloud application between the first cloud application client and the first terminal through the data collection component in the first cloud application client.
[0124] The specific functional implementation of the first starting module 11 and the first transmission module 12 can refer to steps S101 to S102 in the embodiment corresponding to FIG3 , and will not be described in detail here.
[0125] In one or more embodiments, the data acquisition component includes a rendering capture component, and the application data stream includes audio and video data;
[0126] The first transmission module 12 includes: an image data acquisition unit 121, an audio data acquisition unit 122, and an audio and video data transmission unit 123;
[0127] The image data acquisition unit 121 is used to acquire image data from a rendering buffer corresponding to the first cloud application client through a rendering capture component in the first cloud application client; the rendering buffer is used to store images rendered in the first cloud application client;
[0128] The audio data acquisition unit 122 is configured to acquire audio data corresponding to the image data from an audio buffer corresponding to the first cloud application client through a rendering and capturing component in the first cloud application client; the audio buffer is configured to store audio generated in the first cloud application client;
[0129] The audio and video data transmission unit 123 is used to determine the audio and video data corresponding to the first cloud application client based on the image data and the audio data, and transmit the audio and video data to the first terminal so that the first terminal outputs the audio and video data.
[0130] Optionally, the image data acquiring unit 121 may be specifically configured to:
[0131] Obtaining data attribute information of a rendering buffer corresponding to the first cloud application client, and creating a texture resource object in a rendering capture component of the first cloud application client according to the data attribute information;
[0132] Encapsulate the image data in the rendering buffer corresponding to the first cloud application client into a texture resource object.
[0133] Among them, the specific functional implementation of the image data acquisition unit 121, the audio data acquisition unit 122, and the audio and video data transmission unit 123 can be found in steps S202 to S205 of the embodiment corresponding to Figure 5, and will not be repeated here.
[0134] In one or more embodiments, the data processing device 1 may further include: a rendering interface calling module 13, a rendering processing module 14;
[0135] A rendering interface calling module 13 is configured to call a rendering interface provided by a graphics processor driver in the server through a process to which the first cloud application client belongs;
[0136] The rendering processing module 14 is used to render the page display data in the first cloud application client based on the rendering interface, obtain image data corresponding to the first cloud application client, and store the image data in a rendering buffer corresponding to the first cloud application client.
[0137] Optionally, the multiple cloud application clients may further include a second cloud application client; the data processing device 1 may further include: a second starting module 15, a second transmission module 16;
[0138] The second starting module 15 is configured to start the second cloud application client in the server based on the second starting instruction when receiving the second starting instruction sent by the second terminal;
[0139] The second transmission module 16 is configured to transmit the application data stream of the second cloud application between the second cloud application client and the second terminal through the data collection component in the second cloud application client.
[0140] The specific functional implementation of the rendering interface calling module 13, the rendering processing module 14, the second starting module 15, and the second transmission module 16 can be found in step S102 of the embodiment corresponding to FIG3, and will not be repeated here.
[0141] In one or more embodiments, the audio and video data transmission unit 123 may include: a first compression subunit 1231 , a compression data transmission subunit 1232 ;
[0142] The first compression subunit 1231 is configured to transmit the image data and the audio data to a data compression component in the first cloud application client, and compress the image data and the audio data through the data compression component to obtain audio and video data corresponding to the first cloud application client;
[0143] The compressed data transmission subunit 1232 is configured to transmit the audio and video data to the first terminal, so that the first terminal decompresses the audio and video data to obtain decompressed audio and video data and outputs the decompressed audio and video data.
[0144] Alternatively, the audio and video data transmission unit 123 may include: a second compression subunit 1233 , a compression data transmission subunit 1232 ;
[0145] The second compression subunit 1233 is configured to transmit the image data and the audio data to a data compression application, and compress the image data and the audio data by the data compression application to obtain audio and video data corresponding to the first cloud application client; the data compression application and the first cloud application client are independent of each other in the server;
[0146] The compressed data transmission subunit 1232 is configured to transmit the audio and video data to the first terminal, so that the first terminal decompresses the audio and video data to obtain decompressed audio and video data and outputs the decompressed audio and video data.
[0147] The image data is located in the texture resource object created in the rendering and grabbing component; the rendering and grabbing component also includes a fence object, which is used to detect the data status in the texture resource object;
[0148] The first compression subunit 1231 is specifically configured to:
[0149] Setting the texture resource object in the render capture component as a shared texture resource, setting the fence object in the render capture component as a shared fence, and importing the shared texture resource and the shared fence into the data compression component in the first cloud application client;
[0150] When the shared barrier detects that the data status in the shared texture resource is in the completed state, a reminder signal is sent to the data compression component;
[0151] In the data compression component, image data corresponding to the shared texture resource is obtained based on the reminder signal, and audio data in the rendering capture component is obtained, and the image data and audio data are compressed to obtain audio and video data corresponding to the first cloud application client.
[0152] Among them, the specific functional implementation of the first compression subunit 1231, the compressed data transmission subunit 1232, and the second compression subunit 1233 can be found in steps S204 to S205 in the embodiment corresponding to Figure 5, and will not be repeated here.
[0153] In one or more embodiments, the data collection component includes an operation processing component, the application data stream includes object operation data, and the object operation data includes instructions generated by the first terminal based on a triggering operation in a cloud application display page corresponding to the first cloud application client;
[0154] The first transmission module 12 may include: an operation data receiving unit 124, an operation data calling unit 125;
[0155] The operation data receiving unit 124 is configured to receive the object operation data transmitted by the first terminal through the operation processing component in the first cloud application client;
[0156] The operation data calling unit 125 is configured to execute the business logic in the first cloud application client by calling the object operation data in the operation processing component.
[0157] The specific functional implementation of the operation data receiving unit 124 and the operation data calling unit 125 can refer to the relevant description in step S205 of the embodiment corresponding to FIG5 , which will not be repeated here.
[0158] In one or more embodiments, the first starting module 11 may include: an instruction receiving unit 111 , a cloud application starting unit 112 ;
[0159] The instruction receiving unit 111 is configured to receive a first startup instruction sent by a first terminal, and deploy a first cloud application client in the server based on the application identification information in the first startup instruction;
[0160] The cloud application starting unit 112 is configured to start the first cloud application client in the server based on the object information in the first starting instruction.
[0161] Among them, the specific functional implementation of the instruction receiving unit 111 and the cloud application starting unit 112 can be found in step S102 of the embodiment corresponding to Figure 3, and will not be repeated here.
[0162] In an embodiment of the present application, multiple cloud application clients can be run concurrently in one server. For example, the first cloud application client among the multiple cloud application clients can directly transmit the audio and video data generated by the first cloud application client to the corresponding first terminal through its internally integrated rendering and capture component, and the object operation data generated by the first terminal can be directly transmitted to the operation processing component integrated in the first cloud application client, that is, each cloud application client can directly interact with its corresponding terminal device, which can avoid the cloud application client's exclusive demand for display devices, audio devices, and input devices, and reduce the data transmission path between the cloud application client and the corresponding terminal device, thereby improving performance and response speed; running multiple cloud application clients concurrently in the same server can save server resources, improve server utilization, and thereby reduce the cost of using cloud applications; since the data streams corresponding to the cloud application clients do not need to interact with simulated display devices, audio devices, and input devices, etc., the intermediate conversion of data in the display devices, audio devices, and input devices in the operating system running on the server can be reduced, which is conducive to realizing the multi-touch requirements in the cloud application user client in the terminal device.
[0163] Please refer to Figure 11, which is a structural diagram of a computer device provided in an embodiment of the present application. As shown in Figure 11, the computer device 1000 can be a server, and the computer device 1000 can include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 can also include: at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection communication between these components. Optionally, the network interface 1004 can include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. Optionally, the memory 1005 can also be at least one storage device located away from the aforementioned processor 1001. As shown in Figure 11, the memory 1005 as a computer-readable storage medium can include an operating system, a network communication module, a user interface module and a device management application.
[0164] In the computer device 1000 shown in FIG11 , the network interface 1004 can provide a network communication function; and the processor 1001 can be used to call the device control application stored in the memory 1005 to implement the data processing method provided in the embodiment of the present application.
[0165] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the data processing method described in either of the embodiments corresponding to FIG. 3 and FIG. 5 , or can execute the data processing device 1 described in the embodiment corresponding to FIG. 10 , and thus will not be described in detail here. Furthermore, the beneficial effects of employing the same method will not be described in detail here either.
[0166] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the description of the data processing method in any of the corresponding embodiments of Figures 3 and 5 above. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computing device for execution, or executed on multiple computing devices located at one location, or executed on multiple computing devices distributed at multiple locations and interconnected by a communication network. Multiple computing devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.
[0167] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or computer program, which may include computer instructions, and the computer instructions may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor can execute the computer instructions so that the computer device performs the description of the data processing method in the embodiment corresponding to any one of Figures 3 and 5 above, and therefore, will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0168] It should be noted that for the aforementioned various method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0169] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0170] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0171] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0172] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, the method being executed by a server, wherein a plurality of cloud application clients are deployed in the server, the data transmission processes of the plurality of cloud application clients are isolated from each other, and the plurality of cloud application clients include a first cloud application client; the method comprising: Starting the first cloud application client deployed in the server; The application data stream of the first cloud application is transmitted between the first cloud application client and the first terminal through the data collection component in the first cloud application client.
2. The method according to claim 1, wherein the data acquisition component comprises a rendering and grabbing component, and the application data stream comprises audio and video data; The transmitting the application data stream of the first cloud application between the first cloud application client and the first terminal through the data collection component in the first cloud application client includes: Obtaining image data from a rendering buffer corresponding to the first cloud application client through the rendering capture component in the first cloud application client; the rendering buffer is used to store the image rendered in the first cloud application client; Acquire, through the rendering capture component in the first cloud application client, audio data corresponding to the image data from an audio buffer corresponding to the first cloud application client; the audio buffer is used to store audio generated in the first cloud application client; The audio and video data corresponding to the first cloud application client is determined based on the image data and the audio data, and the audio and video data is transmitted to the first terminal so that the first terminal outputs the audio and video data.
3. The method according to claim 1 or 2, further comprising: Calling, through the process to which the first cloud application client belongs, a rendering interface provided by a graphics processor driver in the server; The page display data in the first cloud application client is rendered based on the rendering interface to obtain image data corresponding to the first cloud application client, and the image data is stored in a rendering buffer corresponding to the first cloud application client.
4. The method according to claim 2 or 3, wherein obtaining image data from a rendering buffer corresponding to the first cloud application client through the rendering capture component in the first cloud application client comprises: Acquire data attribute information of a rendering buffer corresponding to the first cloud application client, and create a texture resource object in the rendering capture component of the first cloud application client according to the data attribute information; Encapsulate the image data in the rendering buffer corresponding to the first cloud application client into the texture resource object.
5. The method according to any one of claims 2 to 4, wherein determining the audio and video data corresponding to the first cloud application client based on the image data and the audio data, and transmitting the audio and video data to the first terminal comprises: Transmitting the image data and the audio data to a data compression component in the first cloud application client, and compressing the image data and the audio data by the data compression component to obtain audio and video data corresponding to the first cloud application client; The audio and video data are transmitted to the first terminal, so that the first terminal decompresses the audio and video data to obtain decompressed audio and video data, and outputs the decompressed audio and video data.
6. The method according to claim 5, wherein the image data is located in a texture resource object created in the rendering grabber component; the rendering grabber component further comprises a fence object, and the fence object is used to detect the data status in the texture resource object; The transmitting the image data and the audio data to the data compression component in the first cloud application client, and compressing the image data and the audio data by the data compression component to obtain the audio and video data corresponding to the first cloud application client, includes: Setting the texture resource object in the rendering capture component as a shared texture resource, setting the fence object in the rendering capture component as a shared fence, and importing the shared texture resource and the shared fence into the data compression component in the first cloud application client; When the shared barrier detects that the data state in the shared texture resource is in a completed state, sending a reminder signal to the data compression component; In the data compression component, image data corresponding to the shared texture resource is obtained based on the reminder signal, and the audio data in the rendering capture component is obtained, and the image data and the audio data are compressed to obtain audio and video data corresponding to the first cloud application client.
7. The method according to any one of claims 2 to 4, wherein determining the audio and video data corresponding to the first cloud application client based on the image data and the audio data, and transmitting the audio and video data to the first terminal comprises: The image data and the audio data are transmitted to a data compression application, and the image data and the audio data are compressed by the data compression application to obtain audio and video data corresponding to the first cloud application client; the data compression application and the first cloud application client are independent of each other in the server; The audio and video data are transmitted to the first terminal, so that the first terminal decompresses the audio and video data to obtain decompressed audio and video data, and outputs the decompressed audio and video data.
8. The method according to any one of claims 1 to 7, wherein the data acquisition component includes an operation processing component, the application data stream includes object operation data, and the object operation data includes instructions generated by the first terminal based on a trigger operation in a cloud application display page corresponding to the first cloud application client; The transmitting the application data stream of the cloud application between the first cloud application client and the first terminal through the data collection component in the first cloud application client includes: Receiving, through the operation processing component in the first cloud application client, the object operation data transmitted by the first terminal; The business logic in the first cloud application client is executed by calling the object operation data in the operation processing component.
9. The method according to any one of claims 1 to 8, wherein the first cloud application client deployed in the startup server comprises: receiving a first startup instruction sent by the first terminal, and deploying the first cloud application client in the server based on application identification information in the first startup instruction; Based on the object information in the first startup instruction, the first cloud application client is started in the server.
10. The method according to any one of claims 1 to 9, wherein the plurality of cloud application clients further comprises a second cloud application client; The method further comprises: When receiving a second startup instruction sent by the second terminal, starting a second cloud application client in the server based on the second startup instruction; The application data stream of the second cloud application is transmitted between the second cloud application client and the second terminal through the data collection component in the second cloud application client.
11. A data processing device, the device running in a server, the server having multiple cloud application clients deployed therein, the data transmission processes of the multiple cloud application clients being isolated from each other, the multiple cloud application clients including a first cloud application client; The device comprises: A first startup module, used to start a first cloud application client deployed in the server; The first transmission module is used to transmit the application data stream of the first cloud application between the first cloud application client and the first terminal through the data collection component in the first cloud application client.
12. A computer device comprising a memory and a processor; The memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 10.
14. A computer program product, comprising computer instructions, wherein when the computer instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.
