Redirect Method, Device, Electronic Device and Storage Medium of Cloud Desktop Browser
By calling the browser engine in the cloud terminal and redirecting the browser operation request of the cloud desktop system, the problem of large CPU resources occupied by the server and low user experience in the existing cloud desktop technology is solved, and more efficient page loading and better user experience is achieved.
Patent Information
- Application Number
- CN202211064124.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2042-08-31
AI Technical Summary
In the existing cloud desktop technology, the server decoding and transmitting videos lead to a large CPU resource occupancy, high bandwidth and low user experience.
By calling the browser engine in the cloud terminal, redirecting the browser operation requests of the cloud desktop system, the local browser loads page information and reducing the server CPU resource usage.
It effectively reduces the burden on the server, improves the smoothness of page information loading, and improves the user experience.
Smart Images

Figure CN115442431B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of cloud desktops. Specifically, it relates to a redirection method, device, electronic device, and storage medium for a cloud desktop browser. Background Art
[0002] In recent years, cloud desktops have been increasingly used in China due to their advantages such as data security and efficient maintenance. The cloud desktop pushes the desktop of the server to the client through an access protocol, and video is an important part of the desktop content. Currently, the general way to process video on the cloud desktop is to first decode it on the server, compress and transmit it to the client, and then decompress it on the client for playback. However, this method requires a large amount of CPU resources on the server, resulting in insufficient CPU resources on the server, thus imposing a huge burden on the server; and the video transmitted from the server to the client requires a high bandwidth, making the network a bottleneck, resulting in a reduced user experience. For example, the video playback effect may experience frame drops or stuttering, or when browsing a large number of pictures on a web page, the desktop response may be slow. Summary of the Invention
[0003] The purpose of the embodiments of this application is to provide a redirection method, device, electronic device, and storage medium for a cloud desktop browser to improve the problems in the prior art that the method of transmitting video to the client through the server for playback causes high CPU consumption on the server and a low user experience.
[0004] In a first aspect, the embodiments of this application provide a redirection method for a cloud desktop browser, which is applied to a cloud terminal. The method includes:
[0005] Receiving an operation request redirected by the cloud desktop system of the server, where the operation request is an operation request of the user on the browser of the cloud desktop system on the cloud terminal;
[0006] In response to the operation request, by invoking the browser engine set in the cloud terminal, loading the page information corresponding to the operation request in the local browser of the cloud terminal.
[0007] In the above implementation process, in this method, when the user performs relevant operations on the browser of the cloud desktop system on the cloud terminal, the cloud desktop system can redirect the operation request of the browser to the cloud terminal, so that the cloud terminal can, by invoking the browser engine it sets, load the page information corresponding to the operation request in the local browser. In this way, the occupancy of the server's CPU resources can be reduced, the burden on the server can be effectively reduced, and the loading of the page information in the local browser of the cloud terminal can also improve the smoothness of the page information loading, avoid the problem of slow page loading caused by network transmission, and improve the user experience.
[0008] Optionally, the operation request redirected by the cloud desktop system of the receiving server includes:
[0009] Obtain the redirection policy of the cloud desktop system from the desktop cloud management center of the server, where the redirection policy includes whether to allow the browser of the cloud desktop system to be redirected;
[0010] When the redirection policy is to allow the browser of the cloud desktop system to be redirected, receive the operation request redirected by the cloud desktop system of the server.
[0011] In the above implementation process, a corresponding redirection policy is set for each cloud desktop system, so that each cloud desktop system can flexibly select whether to perform a redirection operation according to its set redirection policy.
[0012] Optionally, the redirection policy further includes the number of browser windows allowed to be displayed. Loading the page information corresponding to the operation request in the local browser of the cloud terminal includes:
[0013] Receive the number of browser windows redirected by the cloud desktop system;
[0014] Load the page information of the operation request corresponding to each browser window in the local browser of the cloud terminal according to the number of redirected browser windows.
[0015] In the above implementation process, the redirection policy also includes the number of browser windows allowed to be redirected, so that the operation requests of the corresponding number of browser windows can be selected for redirection, not necessarily all browser windows. This can, on the one hand, reduce the burden on the server and also reduce the burden on the cloud terminal.
[0016] Optionally, loading the page information of the operation request corresponding to each browser window in the local browser of the cloud terminal according to the number of redirected browser windows includes:
[0017] Receive the positions and sizes of the corresponding number of browser windows redirected by the cloud desktop system;
[0018] Load the page information of the operation request corresponding to each browser window in the local browser of the cloud terminal according to the positions and sizes of each browser window.
[0019] In the above implementation process, redirection is performed according to the positions and sizes of each browser window, so that the picture seen by the user in the local browser of the cloud terminal is the same as that seen in the browser of the cloud desktop system, and the user experience is better.
[0020] Optionally, when the cloud desktop system determines that the redirection policy allows the browser of the cloud desktop system to be redirected, the cloud desktop system updates the state of its browser from the silent state to the to-be-called state. When the cloud desktop system detects that the user inputs an operation request for the browser of the cloud desktop system on the cloud terminal, it updates the state of its browser from the to-be-called state to the working state.
[0021] In the above implementation process, when the browser of the cloud desktop system needs to be redirected, it changes from the silent state to the to-be-called state. In this way, when the user operates the browser, the browser can quickly respond and complete the redirection function.
[0022] Optionally, the browser engine is a browser engine based on QtWebengine. Through this browser engine, the local browser of the cloud terminal can be enabled, and functions such as video playback and web page browsing can be realized.
[0023] Optionally, the operation request includes at least one of a video playback request, a web page browsing request, and a file browsing request. The method of this application can complete the redirection of operations such as video playback, web page browsing, and file browsing.
[0024] In a second aspect, an embodiment of the present application provides a redirection device for a cloud desktop browser, which runs on a cloud terminal. The device includes:
[0025] A request receiving module, configured to receive an operation request for cloud desktop system redirection from a server, where the operation request is an operation request of a user on the browser of the cloud desktop system on the cloud terminal;
[0026] A request response module, configured to, in response to the operation request, load page information corresponding to the operation request in the local browser of the cloud terminal by invoking a browser engine set in the cloud terminal.
[0027] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect above are run.
[0028] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the first aspect above are run.
[0029] Other features and advantages of the present application will be described in the subsequent specification, and in part will be obvious from the specification, or can be understood by implementing the embodiments of the present application. The objectives and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written specification, claims, and drawings. Description of the Drawings
[0030] To more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other relevant drawings can also be obtained based on these drawings.
[0031] Figure 1 It is a flowchart of a redirection method for a cloud desktop browser provided by an embodiment of the present application;
[0032] Figure 2 It is a schematic diagram of the process of redirection of a cloud desktop system provided by an embodiment of the present application;
[0033] Figure 3 It is a schematic diagram of the state switching process of a browser of a cloud desktop system provided by an embodiment of the present application;
[0034] Figure 4 It is a block diagram of the structure of a redirection device for a cloud desktop browser provided by an embodiment of the present application;
[0035] Figure 5 It is a schematic diagram of the structure of an electronic device for implementing the redirection method of a cloud desktop browser provided by an embodiment of the present application. Detailed Embodiments
[0036] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application.
[0037] It should be noted that the terms "system" and "network" in the embodiments of the present invention can be used interchangeably. "Multiple" means two or more. In view of this, in the embodiments of the present invention, "multiple" can also be understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " generally represents an "or" relationship between the associated objects before and after without special instructions.
[0038] An embodiment of the present application provides a redirection method for a cloud desktop browser. In this method, when a user performs relevant operations on the browser of the cloud desktop system on a cloud terminal, the cloud desktop system can redirect the operation request of the browser to the cloud terminal, so that the cloud terminal can load the page information corresponding to the operation request in the local browser by calling the browser engine set therein. In this way, the occupancy of the server CPU resources can be reduced, the burden on the server can be effectively reduced, and the loading of page information in the local browser of the cloud terminal can also improve the smoothness of page information loading, avoid the problem of slow page loading caused by network transmission, and improve the user experience.
[0039] Please refer to Figure 1 , Figure 1 which is a flowchart of a redirection method for a cloud desktop browser provided by an embodiment of the present application. The method includes the following steps:
[0040] Step S110: Receive the operation request redirected by the cloud desktop system of the server.
[0041] Among them, the operation request is the operation request of the user on the browser of the cloud desktop system on the cloud terminal. For example, when the user wants to use the relevant functions of the cloud desktop, the user can log in to the cloud desktop on the cloud terminal. The cloud desktop is managed by the corresponding cloud desktop system, and the cloud desktop system is deployed on the server. The user can perform relevant operations on the cloud desktop on the cloud terminal, such as opening a browser to play a video, accessing a web page, browsing a file, etc. These can all be realized through the cloud desktop system on the server. Without redirection, when the user opens a browser on the cloud desktop of the cloud terminal to play a video, the cloud desktop system can obtain the video on the server and send the video to the cloud terminal for playback. At this time, the resources consumed are those of the server, and operations such as video playback and web page browsing consume a large amount of CPU resources of the server. Therefore, in order to avoid this problem, in the present application, the operation request of the browser of the cloud desktop system is redirected to the cloud terminal.
[0042] After the user logs in to the cloud desktop system on the cloud terminal, the user can directly access the relevant resources of the cloud desktop system on the cloud terminal. For example, when the user opens a browser on the cloud terminal, the browser accessed at this time is the browser of the cloud desktop system. If the user wants to use the browser to play a video, the cloud desktop system can obtain the operation request of the user using the browser to play a video. At this time, the cloud desktop system intercepts the operation request, that is, does not respond, but redirects the operation request to the cloud terminal, and the cloud terminal can receive the operation request redirected by the cloud desktop system.
[0043] In some embodiments, the operation request may include at least one of a video playback request, a web browsing request, and a file browsing request. Thus, the present application can redirect video playback, web browsing, file browsing, etc., to minimize the resource consumption of the server.
[0044] Step S120: In response to the operation request, by invoking the browser engine set in the cloud terminal, load the page information corresponding to the operation request in the local browser of the cloud terminal.
[0045] After receiving the operation request redirected by the cloud desktop system, the cloud terminal responds to the operation request. The cloud terminal can invoke the built-in browser engine to load the page information corresponding to the operation request in the local browser of the cloud terminal through the browser engine.
[0046] Here, by building a browser engine into the cloud terminal, the cloud terminal can use its own local browser to implement functions such as video playback, web browsing, or file browsing. At this time, the CPU resources consumed by the cloud terminal for video playback, web browsing, or file browsing through the local browser are the cloud terminal's own CPU resources, rather than the server's CPU resources. Thus, not only can the CPU, network, and other resources used by the browser of the cloud desktop system be unloaded from the server and directly use the resources of the cloud terminal, but also the problem of unsmooth page information loading caused by network congestion during the process of transmitting videos, web pages, or files from the server to the cloud terminal can be avoided, thereby enhancing the user experience.
[0047] In some embodiments, the browser engine built into the cloud terminal in the embodiments of the present application may be a browser engine based on QtWebengine. This browser engine can receive the operation requests from the user for the browser and can perform browser internet access through this browser engine, including accessing information websites, video websites, etc. Of course, in actual applications, other browser engines can also be used as long as the browser engine can drive the local browser of the cloud terminal to load the page information corresponding to the operation request.
[0048] In the above implementation process, when the user performs relevant operations on the browser of the cloud desktop system on the cloud terminal, the cloud desktop system can redirect the operation requests of the browser to the cloud terminal, enabling the cloud terminal to load the page information corresponding to the operation request in the local browser by invoking the browser engine it has set. This can reduce the occupancy of the server's CPU resources, effectively reduce the burden on the server, and also improve the smoothness of page information loading in the local browser of the cloud terminal, avoiding the problem of slow page loading caused by network transmission and enhancing the user experience.
[0049] Moreover, the redirection method of the present application does not need to be implemented by setting a browser plug-in in the browser of the cloud desktop system, which reduces the design cost and the complexity of user use, and can also avoid the problem that some browsers do not support the built-in browser plug-in. In this way, it can be compatible with the redirection of various browsers.
[0050] Based on the above embodiments, when a user logs in to the cloud desktop system on the cloud terminal, the cloud terminal can first obtain the redirection policy of the cloud desktop system from the desktop cloud management center of the server. The redirection policy includes whether to run the browser redirection of the cloud desktop system. When the redirection policy allows the browser redirection of the cloud desktop system, after the cloud desktop system detects an operation request from the user for the browser, it can redirect the operation request. In this way, the cloud terminal can receive the operation request redirected by the cloud desktop system.
[0051] For example, before the user logs in to the cloud desktop system, the cloud terminal can obtain the desktop cloud list information from the desktop cloud management center through the cloud desktop terminal access software set on the cloud terminal. The desktop cloud list information includes the remote connection access addresses of each cloud desktop system. These addresses serve as the channels for the cloud terminal to remotely access the cloud desktop system. The user can select one of the addresses according to their own needs to establish a TCP connection with the cloud desktop system to log in to the cloud desktop system corresponding to the address. After the connection is established, the cloud terminal can remotely access the cloud desktop system, enabling the user to use the related functions of the cloud desktop system just like using a local computer.
[0052] After the cloud terminal can first obtain the corresponding address from the desktop cloud management center to log in to the cloud desktop system, it can then obtain the corresponding redirection policy from the desktop cloud management center. Since the desktop cloud management center can store the corresponding relationship between different user account information and redirection policies, if the user logs in to the cloud desktop system, the desktop cloud management center can find the redirection policy corresponding to its cloud desktop system according to the account information of the user logging in to the cloud desktop system, and then send the obtained redirection policy to the cloud terminal. Thus, the cloud terminal can obtain the redirection policy of the cloud desktop system it is connected to.
[0053] Since the user logs in to the cloud desktop system on the cloud terminal, after the cloud terminal obtains the redirection policy of the cloud desktop system, the cloud desktop system can know whether it allows browser redirection, and then can determine whether to redirect the operation request of the browser subsequently.
[0054] For example, if its redirection policy does not allow browser redirection, when a user performs relevant operations on the browser of the cloud desktop system on the cloud terminal, the cloud desktop system can obtain the resources of the server and return them to the cloud terminal for display. In this case, the resources consumed are those of the server. If its redirection policy allows browser redirection, when a user performs relevant operations on the browser of the cloud desktop system on the cloud terminal, the cloud desktop system can intercept the operation request, that is, redirect it to the cloud terminal. That is to say, the server will not respond to this operation request, but the cloud terminal will call the browser engine, enabling the local browser of the cloud terminal to respond to this operation request, unloading the load generated by the browser from the server to the terminal. In this way, the resources consumed are the local CPU resources of the cloud terminal, rather than the resources of the server, thus effectively reducing the load on the server.
[0055] In the above implementation process, a corresponding redirection policy is set for each cloud desktop system, so that each cloud desktop system can flexibly choose whether to perform a redirection operation according to the set redirection policy.
[0056] On the basis of the above embodiments, the redirection policy can also include the number of browser windows allowed to be displayed. When the cloud terminal displays page information, it can receive the number of browser windows redirected by the cloud desktop system and load the page information of the operation requests corresponding to each browser window in the local browser of the cloud terminal according to the number of redirected browser windows.
[0057] For example, in the operation request of the user for the browser of the cloud desktop system, there is a video to open 4 browser windows, and the number of browser windows allowed to be displayed in the redirection policy is 3. At this time, when the cloud desktop system performs redirection, it can only redirect 3 of the browser windows. After redirection, the video of 3 windows can be opened in the local browser of the cloud terminal. For the remaining 1 browser window, no redirection is performed. The remaining 1 browser window can be responded to by the browser of the cloud desktop system and returned to the cloud terminal for display, while the 3 redirected browser windows are responded to and displayed by the cloud terminal itself. It is equivalent to only 1 browser window using the server resources, and the remaining 3 browser windows using the local resources of the cloud terminal. This can effectively reduce the load on the server and the cloud terminal to a certain extent. Of course, for the remaining 1 browser window, the server can also not respond, and the cloud terminal local also does not respond, which is equivalent to discarding the page information of this browser window. For the user, he can only see the page information of 3 browser windows, and the page information of the remaining 1 browser window cannot be seen by the user.
[0058] Alternatively, the cloud desktop system can also redirect all browser windows, and the cloud terminal can select the corresponding number of browser windows for rendering according to the number of browser windows allowed to be displayed in the redirection policy. For example, if the user operates on 4 browser windows and the number of browser windows allowed to be displayed is 3, the cloud terminal can select the first 3 browser windows operated by the user for rendering and display.
[0059] Understandably, in actual applications, the number of browser windows allowed to be displayed in the redirection policy can be flexibly set according to actual needs to best meet the user's browsing requirements.
[0060] In the above implementation process, the redirection policy also includes the number of browser windows allowed to be redirected, so that the operation requests of the corresponding number of browser windows can be selected for redirection, not necessarily all browser windows. This can, on the one hand, reduce the burden on the server and also reduce the burden on the cloud terminal.
[0061] Based on the above embodiments, when the user opens the browser of the cloud desktop system on the cloud terminal and enters relevant operation requests, there is a browser redirection driver program set in the cloud desktop system. The browser redirection driver program will automatically capture the operation requests input by the user, and at the same time capture the number of browser windows, as well as the display position and size of the browser interface. Then, if redirection is required, the browser redirection driver program blocks the establishment of the connection (i.e., blocks the response to the operation request) and the rendering of the window interface, and sends the operation request and the position and size of each browser window to the window driver program of the cloud desktop terminal access software in the cloud terminal. The window driver then receives the redirected operation request, as well as the position and size of each of the corresponding number of browser windows redirected by the cloud desktop system, and displays each browser window according to the operation request and the position and size of each browser window, and displays the page information of the corresponding operation request in each browser window.
[0062] A desktop display module and a window driver are set on the cloud terminal. When rendering the browser window, the desktop display module on the cloud terminal will call the built-in browser engine according to the information provided by the window driver, and perform drawing and area rendering of the corresponding size on the display interface. And when the user moves the browser window in the cloud desktop system, the above process will be repeated, that is, the browser redirection driver program of the cloud desktop system will capture the position and size of the browser window in real time and redirect them to the cloud terminal, so that the position and size of the browser window displayed on the cloud terminal will also change accordingly, and re-rendering will be performed, thus further completing all functions of browser redirection.
[0063] The process of the above cloud desktop system redirecting the operation requests of the browser can be asFigure 2 As shown, first, (1) the cloud terminal can obtain the address for connecting to the cloud desktop system and the redirection policy of the cloud desktop system from the desktop cloud management center through the cloud desktop terminal access software. (2) Then the desktop display module on the cloud terminal establishes a TCP connection with the cloud desktop system according to the address. After connecting to the cloud desktop system, the browser of the cloud desktop system can be opened on the cloud terminal to perform related operations, such as video playback, web browsing, etc. (3) The browser redirection driver of the cloud desktop system can capture the operation request input by the user, including the position and size of the browser window. (4) Then the operation request, the position and size of the browser window and other information are sent to the window driver of the cloud terminal. (5) The window driver calls the browser engine built into the cloud terminal to respond to the operation request in the local browser, and renders the interface in the local browser according to the position and size of the browser window.
[0064] In the above implementation process, redirection is performed according to the position and size of each browser window, so that the picture seen by the user in the local browser of the cloud terminal is consistent with the picture seen in the browser of the cloud desktop system, and the user experience is better.
[0065] Based on the above embodiment, the browser in the cloud desktop system will only receive operation requests input by the user, but will not perform any processing or response. If the redirection policy of the cloud desktop system does not allow browser redirection, the browser of the cloud desktop system is in a silent state and cannot be awakened. However, if the cloud desktop system determines that the redirection policy is to allow the browser of the cloud desktop system to redirect, the cloud desktop system updates the state of its browser from a silent state to a pending state. When the cloud desktop system detects that the user inputs an operation request for the browser of the cloud desktop system at the cloud terminal, it updates the state of its browser from a pending state to a working state.
[0066] The browser status switching in the cloud desktop system can be as follows Figure 3As shown, for example, initially, when the user has not logged in to the cloud desktop system, the browser of the cloud desktop system is in a silent state. After the user logs in to the cloud desktop system, when the cloud desktop system detects that its redirection policy allows browser redirection, it changes the state of the browser from the silent state to the pending call state. Of course, if the redirection policy does not allow browser redirection, the state of the browser remains the silent state and is not updated. When the user opens the browser of the cloud desktop system on the cloud terminal and enters a corresponding operation request, the browser enters the working state, and at this time, operations such as redirection are performed according to the operation request input by the user. When the user closes the browser, the browser automatically enters the pending call state, waiting for the user to open the browser again and enter an operation request to directly enter the working state, so that the fast response of the browser can be realized, which is better for the user experience. After the user exits the cloud desktop system, the state of the browser can enter the silent state.
[0067] Therefore, the method of the present application can, in the cloud desktop environment, through the way of browser redirection, redirect all operations of the browser of the cloud desktop system, including video playback, graphic websites, PDF file browsing, etc. This method can not only reduce the load on the server during video playback, but also ensure that the resources used for all operations of the browser (such as browsing picture websites) are all occupied by the resources of the cloud terminal.
[0068] By virtualizing the browser in the cloud desktop system, when the user opens the browser of the cloud desktop system on the cloud terminal, all operations of the browser are disabled through the browser redirection driver, and the cloud terminal is informed to evoke the browser embedded on the cloud terminal based on the Qtwebengine browser engine, and cover the corresponding display desktop area, without the need to install a browser plug-in in the cloud desktop system for redirection. By virtualizing the browser in the cloud desktop system, the operation requests for the browser are redirected to the cloud terminal. In fact, it is to disable the browser function in the cloud desktop system. Through the solution of the present application, the local browser is opened on the cloud terminal for relevant operations, so as to avoid consuming the resources of the server and reduce the load on the server.
[0069] Please refer to Figure 4 , Figure 4 FIG. 200 is a structural block diagram of a redirection device 200 for a cloud desktop browser provided by an embodiment of the present application. The device 200 may be a module, a program segment, or code on an electronic device (such as the above-mentioned cloud terminal). It should be understood that the device 200 corresponds to the above Figure 1 method embodiment and can execute Figure 1 each step involved in the method embodiment. The specific functions of the device 200 can be seen in the above description. To avoid repetition, the detailed description is appropriately omitted here.
[0070] Optionally, the device 200 includes:
[0071] A request receiving module 210, configured to receive an operation request redirected by the cloud desktop system of the server, where the operation request is an operation request of a user on a browser of the cloud desktop system on a cloud terminal;
[0072] A request response module 220, configured to, in response to the operation request, load page information corresponding to the operation request in a local browser of the cloud terminal by invoking a browser engine set in the cloud terminal.
[0073] Optionally, the request receiving module 210 is configured to obtain a redirection policy of the cloud desktop system from a desktop cloud management center of the server, where the redirection policy includes whether to allow redirection of the browser of the cloud desktop system; when the redirection policy allows redirection of the browser of the cloud desktop system, receive the operation request redirected by the cloud desktop system of the server.
[0074] Optionally, the redirection policy further includes the number of browser windows allowed to be displayed, and the request response module 220 is configured to receive the number of browser windows redirected by the cloud desktop system; load page information of operation requests corresponding to each browser window in the local browser of the cloud terminal according to the number of redirected browser windows.
[0075] Optionally, the request response module 220 is configured to receive the positions and sizes of the corresponding number of browser windows redirected by the cloud desktop system; load page information of operation requests corresponding to each browser window in the local browser of the cloud terminal according to the positions and sizes of each browser window.
[0076] Optionally, when the cloud desktop system determines that the redirection policy allows redirection of the browser of the cloud desktop system, the cloud desktop system updates the state of its browser from a silent state to a to-be-called state, and when the cloud desktop system detects that a user inputs an operation request on the browser of the cloud desktop system on the cloud terminal, updates the state of its browser from the to-be-called state to a working state.
[0077] Optionally, the browser engine is a browser engine based on QtWebengine.
[0078] Optionally, the operation request includes at least one of a video playback request, a web page browsing request, and a file browsing request.
[0079] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the foregoing method embodiment, and will not be described herein again.
[0080] Please refer to Figure 5 , Figure 5 , which is a schematic structural diagram of an electronic device for a redirection method of a cloud desktop browser provided by an embodiment of the present application. The electronic device may include: at least one processor 310, such as a CPU, at least one communication interface 320, at least one memory 330, and at least one communication bus 340. Among them, the communication bus 340 is used to realize the direct connection and communication of these components. Among them, the communication interface 320 of the device in the embodiment of the present application is used to perform signaling or data communication with other node devices. The memory 330 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. Optionally, the memory 330 may also be at least one storage device located far from the aforementioned processor. The memory 330 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 310, the electronic device executes the above Figure 1 shown method process.
[0081] It can be understood that Figure 5 the structure shown is only schematic, and the electronic device may further include more or fewer components than those shown in Figure 5 , or have a different configuration from that shown in Figure 5 . Figure 5 Each component shown in
[0082] can be implemented by hardware, software, or a combination thereof. Figure 1 An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it executes the method process executed by the electronic device in the method embodiment shown in
[0083] An embodiment of the present disclosure discloses a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments. For example, it includes:
[0084] Receiving an operation request for cloud desktop system redirection from a server, where the operation request is an operation request of a user on a browser of the cloud desktop system on a cloud terminal;
[0085] In response to the operation request, by invoking a browser engine set in the cloud terminal, loading page information corresponding to the operation request in a local browser of the cloud terminal.
[0086] In summary, the embodiments of the present application provide a redirection method, device, electronic device, and storage medium for a cloud desktop browser. In this method, when a user performs relevant operations on the browser of the cloud desktop system at the cloud terminal, the cloud desktop system can redirect the operation request of the browser to the cloud terminal, enabling the cloud terminal to load the page information corresponding to the operation request in the local browser by invoking the browser engine set therein. This can reduce the occupancy of the server CPU resources, effectively reduce the burden on the server, and loading the page information in the local browser of the cloud terminal can also improve the smoothness of page information loading, avoid the problem of slow page loading caused by network transmission, and improve the user experience.
[0087] In the embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical, or other form.
[0088] In addition, the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0089] Furthermore, in each embodiment of the present application, the various functional modules can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0090] In this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0091] The above are only the embodiments of the present application and are not used to limit the protection scope of the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A redirection method for a cloud desktop browser, characterized in that, applied to a cloud terminal, the method includes: Receiving an operation request for redirection of a cloud desktop system from a server, where the operation request is an operation request of a user on the browser of the cloud desktop system on the cloud terminal; In response to the operation request, by invoking a browser engine set in the cloud terminal, loading page information corresponding to the operation request in the local browser of the cloud terminal; Wherein, the receiving the operation request for redirection of the cloud desktop system from the server includes: Obtaining a redirection policy of the cloud desktop system from the desktop cloud management center of the server; Wherein, the redirection policy includes the number of browser windows allowed to be displayed, and the loading the page information corresponding to the operation request in the local browser of the cloud terminal includes: Receiving the number of browser windows redirected by the cloud desktop system; If the number of redirected browser windows is greater than the number of browser windows allowed to be displayed, selecting target browser windows corresponding to the number of browser windows allowed to be displayed therefrom; Loading page information of the operation request corresponding to the target browser window in the local browser of the cloud terminal; Displaying page information of the operation request corresponding to the browser window corresponding to the remaining number of browser windows, where the page information is returned to the cloud terminal after being responded by the browser of the cloud desktop system, and the remaining number of browser windows is the difference between the number of redirected browser windows and the number of browser windows allowed to be displayed.
2. The method according to claim 1, characterized in that, The redirection policy further includes whether to allow redirection of the browser of the cloud desktop system, and the receiving the operation request for redirection of the cloud desktop system from the server includes: When the redirection policy allows redirection of the browser of the cloud desktop system, receiving the operation request for redirection of the cloud desktop system from the server.
3. The method according to claim 2, characterized in that, When the cloud desktop system determines that the redirection policy allows redirection of the browser of the cloud desktop system, the cloud desktop system updates the state of its browser from the silent state to the state to be called, and when the cloud desktop system detects that the user inputs an operation request on the browser of the cloud desktop system on the cloud terminal, the cloud desktop system updates the state of its browser from the state to be called to the working state.
4. The method according to claim 1, characterized in that, The loading the page information of the operation request corresponding to the target browser window in the local browser of the cloud terminal includes: Receiving the positions and sizes of the respective browser windows corresponding to the redirected number of browser windows of the cloud desktop system; Loading page information of the operation request corresponding to each browser window in the local browser of the cloud terminal according to the positions and sizes of the respective browser windows.
5. The method according to claim 1, characterized in that, The browser engine is a browser engine based on QtWebengine.
6. The method according to any one of claims 1-5, characterized in that, The operation request includes at least one of a video playback request, a web browsing request, and a file browsing request.
7. A redirection device for a cloud desktop browser, characterized in that, it runs on a cloud terminal, and the device includes: a request receiving module, configured to receive an operation request redirected by a cloud desktop system of a server, where the operation request is an operation request of a user on a browser of the cloud desktop system on the cloud terminal; a request response module, configured to, in response to the operation request, load page information corresponding to the operation request in a local browser of the cloud terminal by invoking a browser engine set in the cloud terminal; wherein, the request receiving module is specifically configured to obtain a redirection policy of the cloud desktop system from a desktop cloud management center of the server; wherein, the redirection policy includes the number of browser windows allowed to be displayed, and the request response module is specifically configured to receive the number of browser windows redirected by the cloud desktop system; if the number of redirected browser windows is greater than the number of browser windows allowed to be displayed, select target browser windows corresponding to the number of browser windows allowed to be displayed therefrom; load page information of an operation request corresponding to the target browser windows in the local browser of the cloud terminal; display page information of an operation request corresponding to a browser window corresponding to the remaining number of browser windows, where the page information is returned to the cloud terminal after being responded to by the browser of the cloud desktop system, and the remaining number of browser windows is the difference between the number of redirected browser windows and the number of browser windows allowed to be displayed.
8. An electronic device, characterized in that, it includes a processor and a memory, and the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method according to any one of claims 1-6 is run.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1-6 is run.
Citation Information
Patent Citations
Web browsing method based on cloud terminal
CN103067500A
Method and system for realizing HTML5 video playing in cloud desktop, and medium
CN111526428A