Disclosure of Invention
The application provides a cloud desktop processing method and system, which can ensure good real-time interactivity and save transmission bandwidth.
The embodiment of the invention provides a cloud desktop processing method, which is applied to a cloud desktop server and comprises the following steps:
determining text information and cloud desktop resources for describing the cloud desktop image based on the extensible markup language according to the cloud desktop information;
and transmitting the determined text information to the cloud desktop client, so that the cloud desktop client renders and displays the cloud desktop according to the text information and the pulled cloud desktop resources.
In one illustrative example, further comprising:
determining a triggering condition for triggering cloud desktop processing according to cloud desktop management information uploaded by a cloud desktop client; and executing the step of determining the text information for describing the cloud desktop image and the cloud desktop resources when the triggering condition is met.
In an illustrative example, the determining the text information and the cloud desktop resources for describing the cloud desktop image includes:
converting the current cloud desktop image into text information based on the extensible markup language according to a preset conversion rule; acquiring cloud desktop resources required in a current cloud desktop image and storing the cloud desktop resources in an acquisition address specified in the text information;
or comparing the current cloud desktop image with the previous frame of cloud desktop image to obtain a cloud desktop residual image, and converting the cloud desktop residual image into text information based on the extensible markup language; if needed, acquiring cloud desktop resources required in the cloud desktop residual error image and storing the cloud desktop resources in an acquisition address specified in the text information;
the conversion rule is a conversion rule of cloud desktop information and text information based on extensible markup language.
In an exemplary instance, the transmitting the determined text information to the cloud desktop client includes:
and under the condition that the cloud desktop client is connected with the cloud desktop server, pushing the determined text information to the cloud desktop client in real time through a network.
In an illustrative example, the transmitting the determined text information to the cloud desktop client comprises: and transmitting the determined text information to a plurality of cloud desktop clients to realize multi-screen sharing of the cloud desktop.
The embodiment of the present application further provides a cloud desktop processing method, applied to a cloud desktop client, including:
analyzing the obtained text information based on the extensible markup language and pulling cloud desktop resources;
and rendering and displaying the cloud desktop according to the analysis result and the pulled cloud desktop resources.
In one illustrative example, further comprising: and uploading cloud desktop management information to a cloud desktop server.
In an exemplary embodiment, the parsing the obtained text information includes:
converting the obtained text information based on the extensible markup language into a current cloud desktop image according to a preset conversion rule; pulling cloud desktop resources required in the current cloud desktop image from the analyzed address;
or converting the obtained text information based on the extensible markup language into a cloud desktop residual image according to a preset conversion rule; pulling cloud desktop resources required in the cloud desktop residual error image from the analyzed address;
the conversion rule is a conversion rule of cloud desktop information and text information based on extensible markup language.
In an exemplary instance, the rendering and displaying the cloud desktop according to the parsing result and the pulled cloud desktop resource includes:
rendering the current cloud desktop according to the current cloud desktop image obtained through conversion, the cloud desktop resources required in the pulled current cloud desktop image and the cloud desktop image being displayed;
or,
and rendering the current cloud desktop according to the cloud desktop residual image obtained by conversion, the cloud desktop resources required in the pulled cloud desktop residual image and the cloud desktop image being displayed.
An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, where the computer-executable instructions are used in any one of the cloud desktop processing methods applied to the cloud desktop server; or, the computer-executable instructions are used for executing any one of the cloud desktop processing methods applied to the cloud desktop client.
An embodiment of the present application further provides an apparatus for implementing cloud desktop processing, including a memory and a processor, where the memory stores the following instructions executable by the processor: a step for executing the cloud desktop processing method applied to any one of the cloud desktop servers; or, the method is used for executing the steps of the cloud desktop processing method applied to any one of the cloud desktop clients.
An embodiment of the present application further provides a cloud desktop processing method, including:
the cloud desktop server determines text information and cloud desktop resources used for describing the cloud desktop images based on the extensible markup language according to the cloud desktop information, and transmits the determined text information to the cloud desktop client;
the cloud desktop client analyzes the obtained text information based on the extensible markup language, pulls the cloud desktop resources, and renders and displays the cloud desktop according to the analysis result and the pulled cloud desktop resources.
An embodiment of the present application further provides a cloud desktop processing system, including: the system comprises a cloud desktop server and more than one cloud desktop client; wherein,
the cloud desktop server is used for determining text information and cloud desktop resources for describing the cloud desktop images based on the extensible markup language according to the cloud desktop information; transmitting the determined text information to a cloud desktop client;
the cloud desktop client is used for analyzing the obtained text information based on the extensible markup language and pulling cloud desktop resources; and rendering and displaying the cloud desktop according to the analysis result and the pulled cloud desktop resources.
According to the cloud desktop processing method and system provided by the embodiment of the application, the picture of the cloud desktop is converted into the text markup language in real time based on the cloud desktop processing information defined by the XML, then the text information is transmitted to the cloud desktop client, and the cloud desktop is rendered by the cloud desktop client according to the text information. Therefore, the transmission of the cloud desktop is completely plain text, and the transmission bandwidth is saved. Moreover, the cloud desktop client renders the cloud desktop in real time in a rendering resource pulling mode, so that good real-time interactivity is guaranteed. Particularly, under the scene that the cloud desktop picture changes infrequently, the traffic bandwidth is greatly saved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Detailed Description
To make the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
In one exemplary configuration of the present application, a computing device includes one or more processors (CPUs), input/output interfaces, a network interface, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a schematic flowchart of a cloud desktop processing method in an embodiment of the present application, which is applied to a cloud desktop server, and as shown in fig. 1, the cloud desktop processing method may include:
step 100: according to the cloud desktop information, text information and cloud desktop resources used for describing the cloud desktop image are determined based on the extensible markup language.
In one illustrative example, further comprising:
conversion rules of cloud desktop information and text information based on extensible Markup Language (XML) are set in advance.
The XML-based text information in the embodiment of the present application may be regarded as a Cloud Desktop Markup Language (CDML) for Cloud Desktop processing based on XML definition.
In one embodiment, the text information is represented in XML, and is used for describing the cloud desktop image, i.e. various information describing the page layout of the cloud desktop. The following contents representing the cloud desktop information may be included in the text information, but are not limited to: various styles such as the size, shape, color, background and the like of each region in the cloud desktop image; various transformations such as movement, change, expansion and contraction of different areas in the cloud desktop image; the application positions of pictures and videos in the cloud desktop image; text in the cloud desktop image; and acquiring addresses of pictures and videos in the cloud desktop picture.
In an exemplary instance, the CDML may be further extended to be compatible with hypertext Markup Language (HTML) so that a cloud desktop client can open and render a web page, that is, all browsers may be clients of the cloud desktop.
In an illustrative example, determining the text information and cloud desktop resources for describing the cloud desktop image may include:
converting the current cloud desktop image into text information based on the extensible markup language according to a preset conversion rule; and acquiring cloud desktop resources such as pictures and videos required in the current cloud desktop image and storing the acquired addresses specified in the text information.
In an illustrative example, determining the text information and cloud desktop resources for describing the cloud desktop image may include:
comparing the current cloud desktop image with the previous frame of cloud desktop image to obtain a cloud desktop residual image, and converting the cloud desktop residual image into text information based on extensible markup language; and if necessary, acquiring cloud desktop resources such as pictures and video products required in the cloud desktop residual image and storing the acquired addresses specified in the text information.
Step 101: and transmitting the determined text information to the cloud desktop client, so that the cloud desktop client renders and displays the cloud desktop according to the text information and the pulled cloud desktop resources.
In an exemplary instance, the determined text information is pushed to the cloud desktop client in real time through a network in a state where the cloud desktop client is connected with the cloud desktop server.
According to the cloud desktop processing method, the CDML used for cloud desktop processing is defined based on the XML, so that the transmission of the cloud desktop is a completely plain text, and the transmission bandwidth is saved. Moreover, the cloud desktop client renders the cloud desktop in real time in a rendering resource pulling mode, so that good real-time interactivity is guaranteed. Particularly, under the scene that the cloud desktop picture changes infrequently, the traffic bandwidth is greatly saved.
In an illustrative example, transmitting the determined textual information to a cloud desktop client may include transmitting the determined textual information to a plurality of cloud desktop clients to enable cloud desktop multi-screen sharing.
For example, when a certain user needs to transmit the desktop to multiple clients, because the cloud desktop processing information based on the XML definition is provided in the embodiment of the present application, the cloud desktop processing method of the present application very conveniently supports a scenario in which multiple clients share the cloud desktop. Specifically, the server only needs to transmit text information based on CDML to the multiple clients, and the clients execute the method shown in fig. 2 to realize cloud desktop multi-screen sharing, that is, the clients that obtain the same cloud desktop shared by the server can render the cloud desktop pictures at the same time.
In an exemplary example, the cloud desktop processing method in the embodiment of the present application may further include:
determining a triggering condition for triggering cloud desktop processing according to cloud desktop management information uploaded by a cloud desktop client; the triggering condition is satisfied and step 100 is executed.
For example, assuming that the desktop refresh frequency of the cloud desktop client is displayed in the cloud desktop management information uploaded by the cloud desktop client, the cloud desktop server determines that the frequency for triggering execution ofstep 100 does not need to be higher than the desktop refresh frequency of the cloud desktop client, that is, the triggering condition for triggering cloud desktop processing may be triggered according to a certain frequency lower than the desktop refresh frequency of the cloud desktop client, so that cloud desktop transmission may be performed according to the actual demand of the cloud desktop client, thereby avoiding invalid transmission, and simultaneously efficiently utilizing transmission bandwidth and avoiding waste of resources.
The present application further provides a computer-readable storage medium storing computer-executable instructions for performing the cloud desktop processing method of any one of fig. 1.
The application further provides a device for realizing cloud desktop processing, which comprises a memory and a processor, wherein the memory stores the following instructions which can be executed by the processor: for performing the steps of the cloud desktop processing method of any of fig. 1.
Fig. 2 is a schematic flowchart of another cloud desktop processing method in this embodiment, which is applied to a cloud desktop client, and as shown in fig. 2, the method may include:
step 200: and analyzing the obtained text information based on the extensible markup language and pulling the cloud desktop resources.
In one illustrative example, further comprising:
and presetting a conversion rule of the cloud desktop information and the XML-based text information.
In an exemplary embodiment, parsing the obtained text information may include:
converting the obtained text information based on the extensible markup language into a current cloud desktop image according to a preset conversion rule; and pulling cloud desktop resources such as pictures, videos and the like required in the current cloud desktop image from the analyzed address.
In an exemplary embodiment, parsing the obtained text information may include:
converting the obtained text information based on the extensible markup language into a cloud desktop residual image according to a preset conversion rule; and pulling cloud desktop resources such as pictures, video products and the like required in the cloud desktop residual image from the analyzed address.
Step 201: and rendering and displaying the cloud desktop according to the analysis result and the pulled cloud desktop resources.
In one illustrative example, the step may include:
and rendering the current cloud desktop according to the current cloud desktop image obtained by conversion and cloud desktop resources such as pictures, video products and the like required in the pulled current cloud desktop image.
In one illustrative example, the step may include:
and rendering the current cloud desktop according to the cloud desktop residual image obtained by conversion, cloud desktop resources such as pictures and videos required in the pulled cloud desktop residual image and the cloud desktop image being displayed.
According to the cloud desktop processing method, the CDML used for cloud desktop processing is defined based on the XML, so that the transmission of the cloud desktop is a completely plain text, and the transmission bandwidth is saved. Moreover, the cloud desktop client renders the cloud desktop in real time in a rendering resource pulling mode, so that good real-time interactivity is guaranteed. Particularly, under the scene that the cloud desktop picture changes infrequently, the traffic bandwidth is greatly saved.
The present application further provides a computer-readable storage medium storing computer-executable instructions for performing the cloud desktop processing method of any one of fig. 2.
The application further provides a device for realizing cloud desktop processing, which comprises a memory and a processor, wherein the memory stores the following instructions which can be executed by the processor: for performing the steps of the cloud desktop processing method of any of fig. 2.
In an exemplary example, the cloud desktop processing method in the embodiment of the present application may further include:
and uploading cloud desktop management information, such as cloud desktop refreshing frequency and the like, to the cloud desktop server.
An embodiment of the present application further provides a cloud desktop processing method, including:
the cloud desktop server determines text information and cloud desktop resources used for describing the cloud desktop images based on the extensible markup language according to the cloud desktop information, and transmits the determined text information to the cloud desktop client;
the cloud desktop client analyzes the obtained text information based on the extensible markup language, pulls the cloud desktop resources, and renders and displays the cloud desktop according to the analysis result and the pulled cloud desktop resources.
Fig. 3 is a schematic diagram illustrating a composition architecture of a cloud desktop processing system according to an embodiment of the present application, as shown in fig. 3, including a cloud desktop server and more than one cloud desktop clients; wherein,
the cloud desktop server is used for determining text information and cloud desktop resources for describing the cloud desktop images based on the extensible markup language according to the cloud desktop information; transmitting the determined text information to a cloud desktop client;
the cloud desktop client is used for analyzing the obtained text information based on the extensible markup language and pulling cloud desktop resources; and rendering and displaying the cloud desktop according to the analysis result and the pulled cloud desktop resources.
Through the cloud desktop processing system provided by the application, the information is processed on the basis of the cloud desktop defined by the XML, so that the transmission of the cloud desktop is a completely plain text, and the transmission bandwidth is saved. Moreover, the cloud desktop client renders the cloud desktop in real time in a rendering resource pulling mode, so that good real-time interactivity is guaranteed. Particularly, under the scene that the cloud desktop picture changes infrequently, the traffic bandwidth is greatly saved.
In an illustrative example, as shown in fig. 3, a cloud desktop server includes: the device comprises a conversion module and a transmission module; wherein,
the conversion module is used for determining text information and cloud desktop resources for describing the cloud desktop image based on the extensible markup language according to the cloud desktop information;
and the transmission module is used for transmitting the determined text information to the cloud desktop client.
In an exemplary embodiment, the cloud desktop server further includes a preprocessing module, configured to:
determining a triggering condition for triggering cloud desktop processing according to cloud desktop management information uploaded by a cloud desktop client; the satisfaction of the trigger condition informs the conversion module to start execution.
In an exemplary embodiment, the conversion module presets a conversion rule between the cloud desktop information and the XML-based text information, and may be configured to:
converting the current cloud desktop image into text information based on the extensible markup language according to a preset conversion rule; and acquiring cloud desktop resources such as pictures and videos required in the current cloud desktop image and storing the acquired addresses specified in the text information.
In an exemplary embodiment, the conversion module presets a conversion rule between the cloud desktop information and the XML-based text information, and may be configured to:
comparing the current cloud desktop image with the previous frame of cloud desktop image to obtain a cloud desktop residual image, and converting the cloud desktop residual image into text information based on extensible markup language; and if necessary, acquiring cloud desktop resources such as pictures and video products required in the cloud desktop residual image and storing the acquired addresses specified in the text information.
Through the cloud desktop server side provided by the application, the information is processed on the basis of the cloud desktop defined by the XML, so that the transmission of the cloud desktop is completely plain text, and the transmission bandwidth is saved. Moreover, the cloud desktop client renders the cloud desktop in real time in a rendering resource pulling mode, so that good real-time interactivity is guaranteed. Particularly, under the scene that the cloud desktop picture changes infrequently, the traffic bandwidth is greatly saved.
In one illustrative example, as shown in FIG. 3, a cloud desktop client includes: the analysis module and the generation module; wherein,
the analysis module is used for analyzing the obtained text information based on the extensible markup language and pulling the cloud desktop resources;
and the generating module is used for rendering and displaying the cloud desktop according to the analysis result and the pulled cloud desktop resources.
In an illustrative example, the cloud desktop client further comprises an upload module to:
and uploading cloud desktop management information, such as cloud desktop refreshing frequency and the like, to the cloud desktop server.
In an exemplary embodiment, the parsing module is preset with conversion rules of cloud desktop information and XML-based text information, and may be configured to:
converting the obtained text information based on the extensible markup language into a current cloud desktop image according to a preset conversion rule; and pulling cloud desktop resources such as pictures, videos and the like required in the current cloud desktop image from the analyzed address.
In one illustrative example, the generation module can be configured to:
rendering the current cloud desktop according to the current cloud desktop image obtained through conversion and cloud desktop resources such as pictures, videos and the like required in the pulled current cloud desktop image.
In an exemplary embodiment, the parsing module is preset with conversion rules of cloud desktop information and XML-based text information, and may be configured to:
converting the obtained text information based on the extensible markup language into a cloud desktop residual image according to a preset conversion rule; and pulling cloud desktop resources such as pictures, video products and the like required in the cloud desktop residual image from the analyzed address.
In one illustrative example, the generation module can be configured to:
and rendering the current cloud desktop according to the current cloud desktop image obtained by conversion, cloud desktop resources such as pictures and video products required in the pulled cloud desktop residual image and the cloud desktop image being displayed.
Through the cloud desktop client side provided by the application, the information is processed on the basis of the cloud desktop defined by the XML, so that the transmission of the cloud desktop is completely plain text, and the transmission bandwidth is saved. Moreover, the cloud desktop client renders the cloud desktop in real time in a rendering resource pulling mode, so that good real-time interactivity is guaranteed. Particularly, under the scene that the cloud desktop picture changes infrequently, the traffic bandwidth is greatly saved.
Although the embodiments disclosed in the present application are described above, the descriptions are only for the convenience of understanding the present application, and are not intended to limit the present application. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims.