Search

CN-122027674-A - Desktop sharing method, equipment, medium and product

CN122027674ACN 122027674 ACN122027674 ACN 122027674ACN-122027674-A

Abstract

The application discloses a desktop sharing method, equipment, medium and product, wherein the method comprises the steps of recording a screen through a desktop operating system after receiving a desktop sharing instruction triggered by the target application to obtain screen data of the desktop operating system, and writing the screen data into a shared memory; and acquiring screen data in a shared memory through the preset operating system, and feeding back the screen data to the target application so that the target application shares the screen data to a remote user. The desktop operation system writes the screen data acquired by the screen recording into the shared memory by means of the cooperative operation of the preset operation system and the desktop operation system, and the preset operation system reads the screen data in the shared memory to realize desktop sharing with a remote user. Thus, the device with the desktop sharing function can smoothly execute the sharing function, and the problem that the target application cannot continue to run because the OpenHarmony desktop operating system cannot share the desktop is avoided. Meanwhile, the application reasonably manages the cache area in the shared memory by controlling the synthesis period of the screen recording, ensures the efficient acquisition and accurate transmission of screen data, and further improves the stability and reliability of desktop sharing.

Inventors

  • ZHANG QIYI

Assignees

  • 深圳开鸿数字产业发展有限公司

Dates

Publication Date
20260512
Application Date
20251212

Claims (10)

  1. 1. The desktop sharing method is characterized by being applied to a desktop operating system, wherein the desktop operating system is compatible with a preset operating system, and at least one target application is operated on the preset operating system, and the method comprises the following steps: After receiving a desktop sharing instruction triggered by the target application, recording a screen through a desktop operating system to obtain screen data of the desktop operating system, and writing the screen data into a shared memory; And acquiring screen data in a shared memory through the preset operating system, and feeding back the screen data to the target application so that the target application shares the screen data to a remote user.
  2. 2. The desktop sharing method according to claim 1, wherein the desktop operating system is OpenHarmony desktop operating system, the preset operating system is a Linux system, and the Linux system is compatible in a Linux container mode and runs in the OpenHarmony desktop operating system.
  3. 3. The desktop sharing method according to claim 1, wherein after receiving the desktop sharing instruction triggered by the target application, recording, by a desktop operating system, a screen to obtain screen data of the desktop operating system specifically includes: after receiving a desktop sharing instruction triggered by the target application, transmitting the desktop sharing instruction to the desktop operating system through the preset operating system; controlling the desktop operating system to start a screen recording, and acquiring a synthesis period of the desktop operating system; and recording the screen of the desktop operating system according to the synthesis period to acquire screen data of the desktop operating system.
  4. 4. The desktop sharing method according to claim 1, wherein writing the screen data into the shared memory specifically includes: Reading the area state of each cache area in the shared memory; and selecting a target cache area corresponding to the screen data based on the area state, and writing the screen data into the target cache area.
  5. 5. The desktop sharing method according to claim 1, wherein the obtaining, by the preset operating system, screen data in the shared memory specifically includes: acquiring the area state of each cache area in the shared memory through the preset operating system; And selecting a cache area to be read from the shared memory based on the area state, and reading screen data in the cache area to be read.
  6. 6. The desktop sharing method according to claim 1, wherein the feeding back the screen data to the target application so that the target application shares the screen data to a remote user specifically includes: receiving a call request of the target application to the preset operating system; And feeding back the screen data to the target application based on the call request, packaging the screen data by the target application, and transmitting the packaged screen data to a remote user so that the remote user can see the desktop of the desktop operating system.
  7. 7. The desktop sharing method of claim 1, further comprising: monitoring the duration time when the area states of all the cache areas in the shared memory are in the preset state; And controlling the desktop operating system to close the screen recording according to the duration.
  8. 8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the desktop sharing method of any of claims 1-7.
  9. 9. A storage medium, wherein the storage medium is a computer readable storage medium, and the storage medium is thereon A computer program is stored which, when executed by a processor, implements the steps of the desktop sharing method of any of claims 1 to 7.
  10. 10. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the steps of the desktop sharing method as claimed in any one of claims 1 to 7.

Description

Desktop sharing method, equipment, medium and product Technical Field The present application relates to the field of computer technologies, and in particular, to a desktop sharing method, device, medium, and product. Background With rapid development of information technology and wide popularization of intelligent terminal equipment, an operating system is used as core software of the equipment, and compatibility and expansibility of the operating system become focuses of attention of users. OpenHarmony is used as an open source project hatched and operated by an open atom open source foundation (OpenAtom Foundation), aims to promote development of a full scene, full connection and full intelligence era, and provides a unified operating system framework and platform for intelligent terminal equipment. The project supports various equipment types, including mobile phones, tablets, intelligent home, wearable equipment and the like, and aims to realize the prospect of everything interconnection. In the current operating system environment, the ecological comparison applied on OpenHarmony operating systems is weak, and compatible running can be carried out on OpenHarmony operating systems on other system applications (such as android systems, linux systems and the like). OpenHarmony the operating system has the condition of compatible running for other system applications (such as android system, linux system, etc.). However, when the existing OpenHarmony desktop operating system is compatible with the Linux application with the desktop sharing function, the Linux application cannot work continuously because the user cannot share the desktop under the cooperative office scene of using the shared desktop, so that inconvenience is brought to the user. There is thus a need for improvements and improvements in the art. Disclosure of Invention The application aims to solve the technical problem of providing a desktop sharing method, equipment, medium and product aiming at the defects of the prior art. In order to solve the technical problem, a first aspect of the present application provides a desktop sharing method, which is applied to a desktop operating system, wherein the desktop operating system is compatible with a preset operating system, and at least one target application is run on the preset operating system, and the method comprises: After receiving a desktop sharing instruction triggered by the target application, recording a screen through a desktop operating system to obtain screen data of the desktop operating system, and writing the screen data into a shared memory; And acquiring screen data in a shared memory through the preset operating system, and feeding back the screen data to the target application so that the target application shares the screen data to a remote user. According to the desktop sharing method, the desktop operating system is OpenHarmony desktop operating system, the preset operating system is a Linux system, and the Linux system is compatible to operate in the OpenHarmony desktop operating system in a Linux container mode. In the desktop sharing method, after receiving the desktop sharing instruction triggered by the target application, recording a screen through a desktop operating system to obtain screen data of the desktop operating system specifically includes: after receiving a desktop sharing instruction triggered by the target application, transmitting the desktop sharing instruction to the desktop operating system through the preset operating system; controlling the desktop operating system to start a screen recording, and acquiring a synthesis period of the desktop operating system; and recording the screen of the desktop operating system according to the synthesis period to acquire screen data of the desktop operating system. The desktop sharing method comprises the steps of, among other things, the writing the screen data into the shared memory specifically includes: Reading the area state of each cache area in the shared memory; and selecting a target cache area corresponding to the screen data based on the area state, and writing the screen data into the target cache area. The desktop sharing method, wherein the obtaining, by the preset operating system, the screen data in the shared memory specifically includes: acquiring the area state of each cache area in the shared memory through the preset operating system; And selecting a cache area to be read from the shared memory based on the area state, and reading screen data in the cache area to be read. The desktop sharing method, wherein the feeding back the screen data to the target application so that the target application shares the screen data to a remote user specifically includes: receiving a call request of the target application to the preset operating system; And feeding back the screen data to the target application based on the call request, packaging the screen data by the target application, and transmi