Cloud application processing method and system

By obtaining layout and resource information on the client side, external texture technology is used for local rendering of multimedia in cloud applications, which solves the high bandwidth and computing problems when rendering multimedia content in cloud applications and improves user experience.

CN114827186BActive Publication Date: 2024-10-08ALIBABA (CHINA) CO LTD
View PDF -1 Cites 0 Cited by

Patent Information

Application Number
CN202210182546.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2024-10-08
Estimated Expiration
2042-02-25

AI Technical Summary

Technical Problem

Existing cloud applications require a large amount of calculation and high bandwidth usage when presenting multimedia content. Existing solutions are difficult to implement or have limited scope of application, and there is a lack of universal and easy-to-implement solutions.

Method used

The layout information and resource information of multimedia components are obtained through the terminal side and transmitted transparently to the operating system. The external texture technology is used to directly render the native view, realizing local rendering and presentation of multimedia information in cloud applications, reducing calculation and delay, and avoiding direct transmission from the cloud. High bandwidth usage caused by rendering images.

Benefits of technology

It realizes low-computation and low-latency local rendering and presentation of multimedia information in cloud applications, reduces the bandwidth usage of cloud applications, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114827186B_ABST
    Figure CN114827186B_ABST
Patent Text Reader

Abstract

The present invention discloses a cloud application processing method and system. The method includes: obtaining application screen information and layout information and resource information of a first component from the cloud; obtaining resource data obtained by the operating system based on the resource information; rendering the first component for presenting the resource data based on the layout information; and synthesizing and displaying the application screen information and the first component including the rendered resources. Therefore, the present invention obtains the layout information and resource information required for displaying multimedia components from the end side, transparently transmits the resource information to the operating system, and directly presents the native view of the operating system based on external texture technology. It can realize local rendering and presentation of multimedia information in cloud applications at extremely low computing and delay costs, and solve the problem of high bandwidth occupancy caused by directly sending rendered images from the cloud.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of cloud computing, and in particular to a cloud application processing method and system. Background Art

[0002] Cloud applications run applications on the server through virtualization, and transmit the data stream encoded by the application screen to the local computer for decoding and rendering through network transmission. This cloud application solution has good versatility, but in multimedia scenarios such as WebView, audio and video, and pictures, the application screen encoding calculation is large and the bandwidth usage is too high.

[0003] In order to solve the problem of multimedia content presentation in cloud applications, solutions such as distributed rendering based on graphics engines, redirection based on Media Player, and URL link jump based on cloud application access have been proposed. However, the above solutions have many problems such as difficulty in implementation or limited scope of application.

[0004] Therefore, a more general and easy-to-implement cloud application multimedia content presentation solution is needed. Summary of the invention

[0005] One of the technical problems to be solved by the present disclosure is to provide a cloud application processing solution, which can achieve local rendering and presentation of multimedia information in cloud applications at extremely low computing and latency costs by obtaining layout information and resource information required for displaying multimedia components from the terminal side, transparently transmitting the resource information to the operating system and directly presenting the native view of the operating system based on external texture technology, while solving the problem of high bandwidth occupancy caused by directly sending rendered images from the cloud.

[0006] According to the first aspect of the present disclosure, a cloud application processing method is provided, including: obtaining application screen information and layout information and resource information of a first component from the cloud; obtaining resource data obtained by an operating system based on the resource information; rendering the first component for presenting the resource data based on the layout information; and synthesizing and displaying the application screen information and the first component including the rendered resources.

[0007] Optionally, obtaining resource data obtained by the operating system based on the resource information includes: enabling the operating system to put texture data obtained based on the resource information into a shared memory; and obtaining the texture data from the shared memory.

[0008] Optionally, the method further includes: rendering the first component for presenting the resource data based on the layout information includes: presenting a view created by the operating system based on the resource information in a first view accommodating the first component, the view being used to display the resource data.

[0009] Optionally, the method further includes: obtaining an update of the layout information or the state information of the first component; and rendering the first component based on the updated layout information or the state information.

[0010] Optionally, the method further includes: based on the acquired layout information of the upper layer display that overlaps with the first component and is located above the first component, making the overlapping portion of the first component transparent.

[0011] Optionally, the application engine is an application engine isolated from an operating system, and the acquired resource data is a video stream or image data. Optionally, the resource data is a video stream rendered via a video decoder.

[0012] According to a second aspect of the present disclosure, a cloud application processing system is provided, including a cloud and a client, wherein the cloud is used to: run a cloud application and obtain an application screen; determine that the application screen includes a first component obtained and presented by the client; and send the application screen, and layout information and resource information of the first component to the client, and the client is used to execute the method described in the first aspect.

[0013] According to a third aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the method described in the first aspect above.

[0014] According to a fourth aspect of the present disclosure, a non-transitory machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method described in the first aspect above.

[0015] Therefore, the present invention involves the implementation of a cloud native architecture, introduces local computing power through end-cloud collaboration, and can access more resources such as pictures, audio and video, WebView and other elements as external textures into the application, and use local computing power for decoding, rendering and synthesis. This can avoid transmitting a large number of rendering instructions, while reducing the bandwidth of cloud applications and better improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.

[0017] Figure 1 An example of a cloud application view presented on a client is shown.

[0018] Figure 2 A schematic diagram of the composition of a cloud application system is shown.

[0019] Figure 3 A cloud application processing method according to an embodiment of the present invention is shown.

[0020] Figure 4A -C shows an example of displaying an application screen using the cloud application processing method of the present invention.

[0021] Figure 5 A simple schematic diagram of a Flutter rendering framework is shown.

[0022] Figure 6 A specific implementation of the cloud application processing method of the present invention is shown.

[0023] Figure 7 The diagram shows how the end side transmits data via an external texture.

[0024] Figure 8 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned cloud application processing method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0025] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0026] As the name implies, "cloud application" is an application that is mainly implemented on the cloud side under the control of the end-side user, a software that is mainly accessed through the Internet, and a way of application interaction between the end and the cloud. This means that at least part of the application functions are run and implemented by the server (rather than the user's local client).

[0027] Figure 1 An example of a cloud application view presented on the client side is shown. In one implementation, a user can install a cloud application client (corresponding to a software application installed on the physical device) on an existing client device (e.g., a physical device such as a smart phone, tablet computer, or desktop computer) and click on an icon of the cloud application client to enter the cloud application view. Figure 1 In another implementation, a cloud application client may be embedded in a dedicated thin client, and the cloud application interface may be accessed by starting the client. Figure 1Hereinafter, "client device" refers to the physical device on the end side, and "client" refers to the cloud application client installed on the physical device on the end side, that is, the end-side software application of the cloud application.

[0028] As shown in the figure, interface 1 may include multiple applications, such as Figure 1 1 to 8 are shown in FIG. Each application is presented in the form of a display component 10 of the same format, and in each display component 10, an application name (e.g., corresponding to applications 1 to 8 in the figure), an application logo (icon), and a button 101 for opening the application by clicking. In addition, the interface 1 may also include an exit button 20 for exiting from the cloud application interface.

[0029] Since the main computing work can be done in the cloud, cloud applications can integrate applications in multiple environments such as Android, Linux, and Windows based on the cross-platform characteristics of the application engine, and can be quickly started and used through cloud container technology. For example, cross-platform application engines such as Flutter can be installed on both the cloud and the client to achieve Figure 1 The application platform shown includes applications in multiple operating systems at the same time. Through the cloud application function, users can simultaneously open Android game applications (for example, corresponding to application 1 in the figure), or graphics processing applications under Windows (for example, corresponding to application 2 in the figure), or video editing applications under iOS (for example, corresponding to application 3 in the figure), and short video applications for Android (for example, corresponding to application 4 in the figure), etc. Behind each application, the configuration and operating environment of different operating environments are completely encapsulated, and the application data between different platforms are independent of each other. Through the flexible expansion characteristics of cloud computing, users can maximize the use of cloud resources.

[0030] It should be understood that Figure 1 Only one example of a cloud application platform is shown. In other embodiments, each application can be displayed, entered or exited in different ways, and the application interface may include more or fewer applications.

[0031] The overall implementation of cloud applications requires both the cloud and the client. Figure 2 The schematic diagram of the composition of the cloud application system is shown. As shown in the figure, the cloud (server) 100 is connected to the client 200 via a network. The client 200 can have various forms, such as a smart phone or a tablet shown in 200_1, a notebook computer shown in 200_2, a desktop computer shown in 200_3, and the processing unit shown in 200_4 only includes the implementation of a thin client.

[0032] In an implementation of a cloud application, the cloud side 100 (server side) is responsible for the application's logical processing, rendering, synthesis, and screen transmission, and the end side 200 (client side) is responsible for the application's decoding, rendering, and user input processing. The cloud application runs the application on the server in a virtualized manner, and transmits the data stream encoded by the application screen to the local for decoding and rendering through network transmission. This cloud application solution has good versatility, but in multimedia scenarios such as WebView, audio and video, and pictures, for example, when you need to open a short video application 4, if you decode it in the cloud and directly transmit the playback image to the client, it will result in a large amount of calculation for the application screen encoding and excessive bandwidth usage.

[0033] In order to solve the problem of multimedia content presentation in cloud applications, the following solutions have been proposed:

[0034] Distributed rendering based on graphics engines is difficult and complex to implement, and has high requirements for transmission protocols and synchronization;

[0035] Windows-specific Media Player redirection is a solution implemented at the system API level. It is only applicable to Windows and can only solve the playback redirection of video files, but cannot solve the scenarios within the application; and

[0036] URL redirection based on cloud application access is a web redirection based on filtering rules and is only applicable to web scenarios.

[0037] As can be seen from the above, the existing solutions still have many problems such as difficulty in implementation or limited scope of application. Therefore, a more universal and easy-to-implement cloud application multimedia content presentation solution is needed.

[0038] To this end, the present invention proposes a cloud application processing solution, which obtains the layout information and resource information required for displaying multimedia components from the terminal side, transparently transmits the resource information to the operating system, and directly presents the native view of the operating system based on external texture technology. It can achieve local rendering and presentation of multimedia information in cloud applications with extremely low computing and delay costs, and at the same time solve the problem of high bandwidth occupancy caused by directly sending rendered images from the cloud.

[0039] Figure 3 A cloud application processing method according to an embodiment of the present invention is shown. The method can be executed by a client, and in particular, can be executed by a cloud application client (e.g., a cloud application APP) installed on a client device. For example, the method can be executed by Figure 1 The cloud application of the interface shown is on the user device (e.g., Figure 2The client installed on any client device 200 shown in the figure can be executed, specifically, can be executed by the application engine included in the client, and is used to achieve rendering and display of high-bandwidth consuming applications such as short video applications 4 with higher efficiency and lower cost.

[0040] In step S310, application screen information and layout information and resource information of the first component are obtained from the cloud, and in step S320, resource data obtained by the operating system based on the resource information is obtained.

[0041] Here, it should be clear that only when the content presented in a UI component needs to be obtained by the operating system installed on the client device (that is, the "native" operating system of the device), the present invention will be executed. Figure 3 The cloud application processing method shown in FIG. 1 is a method for processing cloud applications. To this end, the "first component" refers to the UI component that needs to obtain the resource data displayed in it from the underlying operating system on the terminal side. In other cases, a simpler and more efficient method can be used to present the application screen. For example, when a user opens the cloud application platform, the cloud can directly generate the following Figure 1 Specifically, the cloud can determine whether the cloud application processing method of the present invention is needed by the type of application clicked by the user, and when it is determined to be yes, the layout information and resource information of the first component are sent down instead of direct rendering by the cloud.

[0042] Figure 4A -C shows an example of using the cloud application processing method of the present invention to display an application screen. Figure 4A As shown, when a user clicks on, for example, a short video application 4, an application interface 30 is generated. When the user clicks on the video play button in the application interface 30, it is necessary to provide the user with a video stream to play in the application interface 30. At this time, since the video stream is directly acquired, decoded and transmitted in the cloud for direct display by the client, a large amount of bandwidth will be occupied, so the cloud application processing solution described in the present invention must be executed.

[0043] To this end, in different implementations, the cloud can choose to send the application screen information and the layout information and resource information of the first component to the client when receiving a user's request to open the application 4 or click a video viewing request. In other words, in one example, since the video stream has not yet been played when the application 4 is opened, the cloud can still generate and send the complete application image, and send the layout information and resource information of the first component when the video stream is actually started. In another example, the cloud can also respond to receiving an opening instruction of the short video application 4 and directly send the first component (even if the video stream is not started at this time).

[0044] exist Figure 4A and Figure 4B In the example, the cloud application interface 1 located on the back side can correspond to the application screen information, and the first component corresponds to the application interface 30. The layout information is used to specify the presentation position and relative proportion of the first component in the interface 1, that is, it is used to specify how the first component 30 is laid out in the interface 1. The resource information can refer to the content to be presented in the first component 30. In the example where application 4 is a short video playback application, the content to be presented is online content, and the resource information can be information indicating the online content, such as URL information. When application 4 is, for example, a live broadcast application, the content to be presented in the component interface 30 is, for example, the content of the local camera. At this time, the cloud can instruct the client to obtain the resources of the local camera.

[0045] In the present invention, it is not the cloud application client installed on the client device that obtains the resource content, but the underlying operating system. The application engine contained in the cloud application client can load the rendering of the first component on the end side after obtaining the resource data. To this end, in step S330, the first component for presenting resource data is rendered based on the layout information. Rendering is the process by which software uses models to generate images. Here, the resource data obtained can be an external texture (described in detail below) and is rendered into an image by the application engine. Subsequently, in step S340, the previously obtained application screen information and the first component including the rendered resources are synthesized and displayed.

[0046] In one embodiment, the video player of the native operating system (for example, the video player provided by the native Windows system) can obtain the video player. Figure 4A The address of the short video to be played is shown and the video stream content is obtained for decoding and display. After the application engine obtains the video stream content (resource data) from the operating system, it can render and generate Figure 4B The video stream image (eg, the motion video image shown in the figure) contained in the interface 30 is synthesized with the screen of the application interface 1, thereby obtaining Figure 4B The interface shown.

[0047] Therefore, the cloud application processing method of the present invention greatly reduces the bandwidth occupancy problem caused by the transmission of all image content from the cloud by processing and rendering specific resources on the terminal side, and improves the efficient presentation of specific resources by directly acquiring resource content through the native operating system.

[0048] Specifically, the present invention rewrites the existing application engine based on cloud native strategy. Cloud native application refers to an application development method that is oriented to system API programming and implemented for cloud application architecture, which can optimize the user experience of cloud desktop and cloud application scenarios. Specifically, cloud native application has upgraded the architecture for cloud applications and customized the characteristics of applications deployed on the cloud, thereby providing a better user experience.

[0049] The present invention designs a cloud native application architecture, which can transmit the layout information of a part of the UI components of the cloud application to the terminal side through the network and render it on the terminal side. For this part of the UI components, since only the layout information and resource information are transmitted, the network bandwidth can be greatly reduced.

[0050] In a specific embodiment, since the application engine is isolated from the native operating system, and the resource data obtained is a video stream or image data with high memory usage, the application screen synthesis method of the present invention can be implemented by transferring the external texture of the cloud side to the local component of the terminal side and synthesizing it. To this end, step 320 of obtaining the resource data obtained by the operating system based on the resource information may include: allowing the operating system to put the texture data obtained based on the resource information into a shared memory; and obtaining the texture data from the shared memory. Here, texture can be understood as a picture from a macro perspective, and from a micro perspective, texture is a structured storage form for shaders to read and write, similar to a multidimensional array. Specifically, after obtaining the resource information, the application engine on the terminal side can pass it to the native operating system. The operating system can obtain texture data based on the resource information, for example, based on the URL to obtain the stream data, decoded by the video decoder, and put the content rendered by the video decoder into the shared memory (that is, the "external texture" is passed in). The application engine can directly obtain the first component rendered by obtaining the data in the shared memory, and then obtain the first component rendered by synthesizing it with the application screen sent by the cloud. Figure 4B The display image presented to the user is shown.

[0051] In a specific implementation, the cloud can create a first view (such as the platformView described below), and the above view can be used to present the view created by the operating system based on the resource information. Compared with the view created by the cloud application client, the view created by the "native" operating system of the device can be called a native view, or simply "nativeView". The above operation avoids the transfer of image resource information from the GPU to the CPU and then to the GPU in conventional operations, thereby enabling efficient presentation of texture data in the first component. To this end, step S330 may include: presenting the view created by the operating system based on the resource information in the first view accommodating the first component, and the view is used to display the resource data.

[0052] When the layout information or status information of the first component is updated, the first component can be re-rendered and subsequently synthesized and displayed. To this end, the cloud application processing method of the present invention also includes: obtaining an update of the layout information or status information of the first component; and rendering the first component based on the updated layout information or status information.

[0053] Figure 4C An example of updating and rendering the first component after the layout information changes is shown. Figure 4B As shown, when the user clicks the "full screen" button in the upper right corner of the interface 30, the interface 30 needs to be displayed in full screen. The full screen display corresponds to the layout information of the first component changing. For this reason, the application engine redraws the first component according to the new layout information and makes it cover the entire screen (it should be understood that due to Figure 4B The video image shown is a vertical image, so Figure 4C In the full screen view of the , there is no display on both sides, that is, it appears black).

[0054] In addition, when there is an overlapping display, for example, Figure 4B In the state shown, when the user clicks to open another application and is located on the interface 30 of the application 4 that is playing the video, the covered part of the interface 30 can be directly made transparent. To this end, the cloud application processing method of the present invention can also include: based on the layout information of the upper layer display that overlaps with the first component and is located above the first component, making the overlapping part of the first component transparent.

[0055] Compared with local applications that run entirely on the client side, cloud applications naturally have the advantage of being elastic and scalable. Cloud resources can be dynamically expanded as the application consumes resources to meet user needs. Compared with a complete cloud application solution, this solution introduces local computing power, so more resources such as images, audio and video, WebView and other elements can be connected to the application as external textures, and local computing power can be used for decoding, rendering and synthesis. This can avoid transmitting a large number of rendering instructions, while reducing the bandwidth of cloud applications and better improving the user experience.

[0056] The above cloud application processing solution of the present invention can be optimized through a higher-level description abstraction, that is, end-cloud collaboration at the framework layer. For ease of understanding, the present invention will be described below in conjunction with the Flutter framework, but it should be understood that the framework optimization solution of end-cloud collaboration of the present invention is also applicable to other cross-platform frameworks and newly developed frameworks in the future.

[0057] Flutter is a cross-platform UI toolkit that allows the same code to be reused on various operating systems, such as iOS and Android, while allowing applications to interact directly with underlying platform services. This design allows developers to deliver high-performance applications with native experience on different platforms, sharing and reusing code as much as possible while accommodating differences between different platforms.

[0058] During development, Flutter apps run in a VM (program virtual machine), allowing hot reload of related updates while preserving state and without recompiling. For releases, Flutter apps are compiled directly into machine code (such as the ARM instruction set) or JavaScript for the Web platform. Flutter is designed as an extensible layered system. It can be seen as a series of independent components, with upper-level components each relying on lower-level components. Components cannot unauthorize access to lower-level content, and each part of the framework layer is optional and replaceable. From top to bottom, it includes the framework layer (Flamework), the engine (Engine), and the platform embedding layer (Embedder).

[0059] Flutter applications are packaged the same way as other native applications for the underlying operating system. On each platform, a specific embedding layer is included to provide a program entry point, through which the program can coordinate with the underlying operating system, access services such as surface rendering, accessibility, and input, and manage the event loop queue. The embedding layer is written in a language suitable for the current platform, such as Java and C++ for Android, Objective-C and Objective-C++ for iOS and macOS, and C++ for Windows and Linux. Flutter code can be integrated into existing applications as a module through the embedding layer, or it can be used as the main body of the application. Flutter itself includes embedding layers for various common platforms, and there are also some other embedding layers.

[0060] The core of Flutter is the Flutter engine, which is mainly written in C++ and provides the primitives required for Flutter applications. When a new frame of content needs to be drawn, the engine will be responsible for rasterizing the scene that needs to be synthesized. It provides the underlying implementation of the Flutter core API, including graphics (through Skia), text layout, file and network IO, accessibility support, plug-in architecture, and the Dart runtime environment and compilation environment tool chain.

[0061] The engine wraps the underlying C++ code into Dart code and exposes it to the upper Flutter framework layer through dart:ui. The library exposes the underlying primitives, including classes for driving input, graphics, and text rendering subsystems.

[0062] The framework layer includes the widget layer, which is a combined abstraction. Every rendering object in the rendering layer has a corresponding class in the widget layer. In addition, the widget layer allows users to freely combine various classes they need to reuse. The responsive programming model is introduced in this layer. Widgets build the cornerstone of the Flutter user interface.

[0063] Flutter is similar to other responsive frameworks. It explicitly separates the basic state and the user interface to solve the desynchronization problem that is easily caused by the separation of the operations of creating and updating UI elements. Users can create a description of the UI through a React-style API, and let the framework be responsible for creating and updating the user interface through configuration.

[0064] In Flutter, widgets (similar to components in React) are immutable classes used to configure object trees. These widgets manage separate layout object trees and then participate in managing composite layout object trees. The core of Flutter is an efficient mechanism for traversing tree changes, converting object trees into lower-level object trees and propagating changes between trees.

[0065] build() is a method that converts the state into UI. The widget declares the construction of the UI by overriding this method:

[0066] UI=f(state)

[0067] The build() method is called whenever the framework needs it (possibly once per rendered frame), and it executes quickly and without additional overhead.

[0068] When rendering, Flutter uses a special rendering framework to achieve isolation from the native operating system. Figure 5 A simple schematic diagram of a Flutter rendering framework is shown.

[0069] As shown in the figure, Dart code is precompiled and run by the virtual machine through dart:ui. LayerTree is a tree data structure output by dartRuntime. Each leaf node in the tree represents an interface element (Button, Image, etc.).

[0070] Skia is a cross-platform rendering framework. From the perspective of the current mainstream mobile phone operating systems, Skia uses OpenGL for drawing at the bottom layer. Shell refers specifically to the platform feature (Platform), which includes implementations related to specific operating system platforms, including EAGLContext management, on-screen operations, and external texture implementations.

[0071] As can be seen from the figure, after the Runtime completes the layout and outputs a LayerTree, each leaf node of the LayerTree will be traversed in the pipeline. Each leaf node will eventually call the Skia engine to complete the interface element system. After the traversal is completed, the corresponding cache can be called to complete the on-screen operation, such as glPresentRenderBuffer or glSwapBuffer in different operating systems.

[0072] Based on this basic principle, Flutter implements UI isolation on the native operating system and the Flutter engine. When writing UI code, you no longer need to worry about platform implementation, thus achieving cross-platform.

[0073] While Flutter is isolated from the native operating system, it also makes it difficult for Flutter to obtain some high-memory images (camera frames, video frames, album pictures, etc.) on the operating system side. Traditional frameworks can directly obtain this data by bridging native APIs, but Flutter determines from the basic principle that it cannot directly obtain this data, and the message transmission mechanism defined by Flutter for the transmission of image and other data will inevitably cause huge memory and CPU consumption.

[0074] To this end, an external texture mechanism can be introduced (here, texture can be understood as an object representing image data in the GPU) to enable the application engine to efficiently obtain high-memory images on the operating system side.

[0075] like Figure 5 As shown, each leaf node of LayerTree represents a control of dart code layout, such as the gray TextureLayer node. This node corresponds to the Texture control in Flutter (not the texture in the GPU). When a Texture control is created in Flutter, it represents the data displayed on this control, which needs to be provided natively. The present invention uses the external texture principle to achieve efficient acquisition of high-memory images on the native operating system side.

[0076] Figure 6A specific implementation of the cloud application processing method of the present invention is shown. As shown in the figure, the cloud (for example, Figure 2 The cloud 100 shown in the figure runs the cloud application and obtains the application screen. The cloud can transmit the content that needs to be obtained and rendered locally as an external texture to the terminal side (for example, Figure 2 The client 200 shown in FIG. 200 receives the application screen information, decodes it and renders it locally. The layout information and resource information are rendered on the client side by the application engine on the client side. The final synthesized application screen (for example, Figure 4B or 4C) provided to users.

[0077] The following will also take the Flutter architecture as an example to describe the preferred process of the cloud application processing solution of the present invention.

[0078] First, the user tries to open the application on the client side, for example Figure 4A As shown, by clicking the open application button of application 4. After receiving the above operation, the cloud side starts to start the cloud application.

[0079] The cloud side loads the resources required by the application, including pictures, application code app.so, etc., and starts streaming the application screen (i.e., Figure 6 application flow in ).

[0080] Furthermore, the cloud side can create a first view for local rendering. In the Flutter architecture, a PlatformView can be created to connect to the extended Widget for local rendering. Here, PlatformView can be understood as the general term for the two widgets AndroidView and UIKitView, allowing native views (for example, native views of different operating systems) to be embedded in the Flutter widget system, completing the control of the native view by Dart code.

[0081] Specifically, the cloud side can create a PlatformView when a user opens a short video application 4 or clicks a video, and associate the view with the resource. If the corresponding resource is a local resource, the PlatformView is associated with the local resource (for example, when the camera needs to be opened, the PlatformView is associated with the local camera); if it is a network resource, such as an online picture or video, the PlatformView is associated with the URL.

[0082] Then, the cloud side can store the above correspondence and layout information (i.e., Figure 6 The Widget layout information shown in the figure is updated to the terminal side.

[0083] After receiving resource information (eg, local resources or resource URLs) and layout information, the application engine on the terminal side starts local rendering and simultaneously synthesizes the image with the cloud application image.

[0084] Specifically, on the client side, before the native operating system calls RegisterExternalTexture, it needs to create an object that implements the FlutterTexture protocol, and this object is ultimately assigned to the external texture (external_texture_). The external texture is a bridge between Flutter and the operating system. During rendering, the image data to be displayed can be continuously obtained through the external texture.

[0085] Figure 7 The figure shows how the end side transmits data via an external texture. As shown in the figure, through the external texture method, Flutter and the native operating system use PixelBuffer (pixel buffer) for data transmission. The data source on the Native side (camera, player, etc.) writes data to PixelBuffer through its PixelBuffer output, and Flutter obtains the data in PixelBuffer through TextureLayer and converts it into OpenGLES texture, which is then handed over to Skia for drawing. At this point, Flutter can easily draw the data that the native operating system wants to draw. In addition to dynamic image data such as camera players, the display of pictures also provides another possibility besides Image controls.

[0086] In a preferred embodiment, the two threads in the application engine responsible for loading resources (pictures to textures) and rendering can each use their own EAGLContext, and share texture data with each other through ShareGroup (shareContext for android). For the module using OpenGL on the Native side, a Context corresponding to its own thread will also be created under its own thread. In order to allow the texture data created under this Context to be delivered to the Flutter side and handed over to Skia for drawing, when Flutter creates two internal Contexts, its ShareGroup can be exposed and saved on the operating system side. When the operating system creates its own Context, it uses this ShareGroup to create it. This enables texture sharing between Native and Flutter.

[0087] When the layout information and status information of the cloud application are updated (which can be determined by calling setState(), the above updates can be based on user operations, such as Figure 4B Click the maximize button as shown, or it can be an update from the cloud), then you can get the layout information of the widget in build() and pass it to the client at the same time. The client can render according to the updated layout information. When the resource information is a video stream, the client can render it locally through the video decoder of the native operating system. In addition, when there is occlusion, since the cloud application engine on the service side already has complete element layout information, the corresponding display effect can be achieved by simply making the PlatformView transparent.

[0088] The present invention can also be implemented as a cloud application processing system, including a cloud and a client, wherein the cloud is used to: run a cloud application and obtain an application screen; determine that the application screen includes a first component obtained and presented by the client; and send the application screen and layout information and resource information of the first component to the client, and the client is used to execute the cloud application processing method as described above. The above system can have, for example Figure 2 When the client needs to obtain online resources by itself, the client also needs to have the ability to connect to the external Internet.

[0089] Figure 8 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned cloud application processing method according to an embodiment of the present invention is shown.

[0090] See also Figure 8 , the computing device 800 includes a memory 810 and a processor 820 .

[0091] The processor 820 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 820 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 820 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0092] The memory 810 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 820 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 810 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 810 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0093] The memory 810 stores executable codes, and when the executable codes are processed by the processor 820 , the processor 820 can execute the cloud application processing method mentioned above.

[0094] The cloud application processing method according to the present invention has been described in detail above with reference to the accompanying drawings. The present invention involves the implementation of a set of cloud native architectures, and introduces local computing power through end-cloud collaboration. More resources such as pictures, audio and video, WebView and other elements can be connected to the application as external textures, and local computing power can be used for decoding, rendering and synthesis. This can avoid the transmission of a large number of rendering instructions, while reducing the bandwidth of cloud applications and better improving the user experience.

[0095] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.

[0096] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.

[0097] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.

[0098] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0099] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A processing method of a cloud application client on a client device, wherein the processing method is executed by an application engine included in the cloud application client, and the application engine is an application engine isolated from an operating system; include: Acquire application screen information and layout information and resource information of the first component from the cloud; The operating system puts the texture data obtained based on the resource information into a shared memory; obtains the texture data from the shared memory; the texture data is stored in a structured storage form for reading and writing by a shader; wherein the resource data corresponding to the texture data is a video stream; presenting a view created by the operating system based on the resource information in a first view accommodating a first component, the view being used to display the texture data; and The application screen information and the first component including the rendered resources are synthesized and displayed.

2. The method according to claim 1, further comprising: include: Obtaining an update of the layout information or state information of the first component; as well as The first component is rendered based on the updated layout information or state information.

3. The method according to claim 1, further comprising: include: Based on the acquired layout information of the upper layer display which overlaps with the first component and is located above the first component, the overlapping part of the first component is made transparent.

4. The method according to claim 1, in, The resource data is a video stream rendered via a video decoder.

5. A cloud application processing system, comprising a cloud and a cloud application client, wherein The cloud is used for: Run the cloud application and obtain the application screen; determining that the application screen includes a first component acquired and presented by the cloud application client; and Sending the application screen, and the layout information and resource information of the first component to the cloud application client, and The cloud application client is used to execute the method as described in any one of claims 1-4.

6. A computing device, include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 4.

7. A non-transitory machine-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 4.