Camera screen projection method and system, readable storage medium and computer program product
By using an application-level projection method based on a camera module, the problems of high transmission latency, poor stability, and high power consumption in existing projection technologies are solved, achieving projection effects with low latency, high stability, and low power consumption, suitable for data connections between slave and master devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-08
- Publication Date
- 2026-04-07
AI Technical Summary
Existing screen mirroring technologies suffer from high transmission latency, poor stability, and high power consumption of master and slave devices, especially when completely copying the entire screen content.
The camera module is used for application-level screen projection. By establishing a data connection between the slave device and the master device, the preview stream of the camera module is obtained and encoded and packaged. The master device adjusts the encoding parameters according to network indicator feedback to counteract network fluctuations, and performs caching and priority marking of data transmission on the slave device.
It achieves low latency, high stability, and low power consumption in screen projection, ensuring smooth display of the preview stream and reliable data transmission, while reducing device power consumption.
Smart Images

Figure CN121815068A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of screen projection technology, and more specifically, to a camera screen projection method, system, readable storage medium, and computer program product. Background Technology
[0002] With the widespread adoption of smart devices and wireless networks, screen mirroring technology has been widely used in various application scenarios, especially in fields such as meetings, home entertainment, education, and gaming. This technology aims to project content from one device's screen onto the main screen, using multi-screen collaboration to improve work efficiency and user experience.
[0003] Current screen mirroring technologies mainly focus on "screen mirroring" mode, which completely copies the entire screen content of the secondary device to the primary device's display. This method has significant limitations, including high transmission latency, poor transmission stability, and high power consumption between the primary and secondary devices. Summary of the Invention
[0004] In view of the above problems, this application is made to provide a camera projection method, system, readable storage medium, and computer program product to achieve a camera application-level projection solution and avoid the defects existing when completely copying the entire screen content. The specific solution is as follows:
[0005] Firstly, a camera projection method is provided, applied to a slave device, wherein the slave device is equipped with a camera module, and a data connection is established between the slave device and a master device. The method includes:
[0006] Obtain the preview stream captured by the camera module;
[0007] The preview stream is encoded and packaged into a preview stream data packet, and the preview stream data packet is sent to the master device so that the master device can decode it and render the preview stream onto the screen;
[0008] Upon receiving a feedback report from the master device, the encoding parameters of the preview stream are adjusted to counteract network fluctuations based on the network metrics contained in the feedback report. These network metrics are calculated by the master device based on the received preview stream data packets.
[0009] In one possible design, in another implementation of the first aspect of the embodiments of this application, the feedback report further includes rendering latency, the rendering latency representing the delay between different preview stream images rendered by the main device screen, and the method further includes:
[0010] The sending strategy of the preview stream data packets is adjusted according to the rendering latency, wherein the higher the rendering latency, the lower the sending rate of the preview stream data packets.
[0011] In one possible design, another implementation of the first aspect of the embodiments of this application further includes:
[0012] The system acquires image data captured by the camera module, or video stream captured in recording mode, and mixes the audio stream acquired in recording mode with the video stream to obtain recording data.
[0013] The image data or the video data is cached, and the cached image data or the video data is sent to the main device so that the main device can save the image data or the video data.
[0014] In one possible design, another implementation of the first aspect of the embodiments of this application further includes:
[0015] When screen mirroring is initiated or after the camera module's settings interface changes, the camera module's settings interface display stream is obtained, encoded, packaged, and sent to the main device for the main device to render and display the camera settings interface.
[0016] In one possible design, another implementation of the first aspect of the embodiments of this application further includes:
[0017] The device is controlled to keep its screen in a sleep state during camera projection.
[0018] In one possible design, another implementation of the first aspect of the embodiments of this application further includes:
[0019] When it is detected that locally cached image data or video data needs to be sent to the master device, or when it is detected that the master device needs to send control commands to the slave device, the bitrate of the preview stream is reduced, and the bitrate of the preview stream is restored after the cached data or control commands have been transmitted.
[0020] Secondly, a camera projection method is provided, applied to a master device, wherein a data connection is established between the master device and a slave device, and the slave device is equipped with a camera module. The method includes:
[0021] The device receives a preview stream data packet sent by the slave device, which is obtained by encoding and packaging the preview stream captured by the camera module.
[0022] The preview stream data packets are decoded, and the decoded preview stream data is rendered onto the screen;
[0023] Network metrics are calculated based on the received preview stream data packets, and the network metrics are sent to the slave device in the form of a feedback report. The network metrics are used to guide the slave device to adjust the encoding parameters of the preview stream to combat network fluctuations.
[0024] In one possible design, another implementation of the second aspect of the embodiments of this application further includes:
[0025] The rendering latency is obtained by calculating the delay of rendering different preview stream images on the main device screen;
[0026] The rendering latency is added to the feedback report and sent to the slave device. The rendering latency is used to guide the slave device to adjust the sending strategy of the preview stream data packets, wherein the higher the rendering latency, the lower the sending rate of the preview stream data packets.
[0027] In one possible design, another implementation of the second aspect of the embodiments of this application further includes:
[0028] Receive the settings interface display stream data packet sent by the device;
[0029] The settings interface display stream data packet is decoded, and the decoded settings interface display stream is rendered onto the screen to display the camera settings interface.
[0030] In one possible design, another implementation of the second aspect of the embodiments of this application further includes:
[0031] A camera control command is sent to the slave device, the camera control command being used to control the operating state of the camera module.
[0032] Thirdly, a camera projection system is provided, including a slave device and a master device, wherein the slave device is equipped with a camera module and the slave device establishes a data connection with the master device;
[0033] The slave device is used to implement the camera projection method described in any of the first aspects of this application, and the master device is used to implement the camera projection method described in any of the second aspects of this application.
[0034] Fourthly, a readable storage medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, it implements the camera projection method described in any of the preceding first aspects of this application, or implements the camera projection method described in any of the preceding second aspects of this application.
[0035] Fifthly, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the camera projection method described in any of the first aspects of this application, or implements the camera projection method described in any of the second aspects of this application.
[0036] By employing the above technical solutions, this application provides an application-level screen mirroring solution, specifically for the camera module of a slave device. This solution enables the mirroring of the preview stream captured by the camera module onto the screen of the master device, avoiding the complete copying of the slave device's entire screen. Simultaneously, during the preview stream data transmission process, this application provides a feedback mechanism. The master device can calculate network metrics based on the received preview stream data packets, measure the network status, and send these metrics to the slave device in the form of a feedback report. This guides the slave device to dynamically adjust the encoding parameters of the preview stream based on the network metrics, thereby combating network fluctuations and improving the stability of the preview stream transmission. Attached Figure Description
[0037] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0038] Figure 1 A schematic diagram illustrating a synchronous transmission scheme for camera projection data from a slave device to a master device, provided in an embodiment of this application;
[0039] Figure 2 A schematic diagram illustrating another synchronous transmission scheme for camera projection data from slave device to master device provided in this application embodiment;
[0040] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0041] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0042] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0043] This application provides an application-level (camera application) screen mirroring solution that overcomes the limitations of screen replication technology in existing screen mirroring modes. It also addresses issues such as poor data transmission stability in existing solutions.
[0044] The camera projection solution in this application involves a system consisting of a slave device and a master device. The slave device is equipped with a camera module (consisting of an image sensor and an image signal processor, ISP), which can provide preview, photo taking, and video recording functions. A data connection is established between the slave device and the master device, enabling the transmission of data captured by the slave device's camera module to the master device, where the preview stream data is rendered to achieve the projection function.
[0045] The slave device and the master device can be separate or integrated into a single terminal device. In some optional application examples, the slave device can be a secondary screen device, and the master device can be a primary screen device. The master device and the slave device together constitute an electronic device with both primary and secondary screens, such as a dual-screen translator or a dual-screen mobile phone.
[0046] Data connections between the slave device and the master device can be established via wired (e.g., USB connection) or wireless (TCP / IP) methods. This application supports both wired (stable, low latency) and wireless (convenient, remote) connections. The system can switch connection modes according to device support and network environment, providing an optimal solution between "stability" and "convenience".
[0047] In some optional implementations, refer to Figure 1 As shown, the slave device and master device of this application can adopt a CS architecture (Client and Server). The slave device can act as the server and the master device can act as the client. A data channel is established between the server and the client to project the camera of the slave device to the master device.
[0048] Combination Figure 1 As shown, for the slave device, the following steps can be performed during the camera projection process:
[0049] A1. Obtain the preview stream captured by the camera module.
[0050] A2. Encode the preview stream and package it into a preview stream data packet. Send the preview stream data packet to the master device so that the master device can decode it and render the preview stream onto the screen.
[0051] Among them, when encoding the preview stream, the device can use hardware and software co-processing video encoding, which can accelerate the encoding process with hardware, reduce CPU load, increase processing speed, and reduce transmission latency.
[0052] Combination Figure 2As shown, when encoding and packaging the preview stream, the slave device can use the RTP protocol to package and transmit preview stream data packets. Each data packet can carry a sequence number and a media timestamp, providing the master device with a basis for out-of-order reordering and packet loss detection.
[0053] A3. Upon receiving a feedback report from the master device, the encoding parameters of the preview stream are adjusted to counteract network fluctuations based on the network metrics contained in the feedback report. The network metrics are calculated by the master device based on the received preview stream data packets.
[0054] Combination Figure 2 As shown, after receiving the preview stream data packet, the master device can parse the sequence number and media timestamp in the data packet, thereby calculating network parameters such as latency, jitter, and packet loss rate, and sending the network parameters to the slave device in the form of an RTCP feedback report.
[0055] After receiving the feedback report from the master device, the slave device can dynamically adjust the encoding parameters of the preview stream, such as bitrate and resolution, based on the network indicators contained therein. This helps to combat network fluctuations, improve transmission stability, and ensure smooth display of the preview stream.
[0056] Generally, when network metrics indicate poor network conditions, the bitrate and resolution of the preview stream can be lowered to counteract network fluctuations.
[0057] In some possible implementations, combined Figure 2 As shown, the feedback report sent by the master device can also include rendering latency, which represents the delay between different preview stream frames rendered on the master device screen. Rendering latency can be calculated by the master device based on the rendering time of different preview stream frames. For example, the average of the rendering time differences of multiple sets of adjacent frames can be calculated as the rendering latency.
[0058] After receiving the feedback report, the slave device can dynamically adjust the preview stream data packet sending strategy based on the rendering latency in the report. Specifically, the higher the rendering latency, the lower the preview stream data packet sending rate can be, thus ensuring that the master device can smoothly display the preview screen and preventing packet loss due to excessive accumulation of preview stream data packets.
[0059] Further integration Figure 1 , Figure 2 As shown, in addition to sending preview stream data packets to the master device, the slave device can also project image data and video recording data to the master device. Specifically:
[0060] The device can acquire image data captured by the camera module or video stream captured in recording mode, and mix the audio stream acquired in recording mode with the video stream to obtain video data.
[0061] Image or video data is cached locally and then sent to the master device for storage.
[0062] In this embodiment, in order to ensure the stable transmission of image data and video recording data, a strategy of caching on the slave device and sending to the master device is adopted.
[0063] Furthermore, the mixing and processing of video and audio data is completed on the slave device, avoiding the data asynchrony issues that can easily occur when the two types of data are sent separately to the master device for mixing and processing. Moreover, the master device does not need to perform image processing or other tasks; it only needs to receive data packets from the slave device and then perform screen rendering. Therefore, the master device can have a higher packet reception and decoding rate, reducing real-time display latency.
[0064] Combination Figure 1 As shown, when screen mirroring is initiated or after changes to the camera module's settings interface, the slave device can obtain the camera module's settings interface display stream (defined as a Setting stream), encode and package the stream, and send it to the master device for rendering and displaying the camera settings interface. This achieves synchronization of the camera settings interface between the master and slave devices. In this way, users can issue camera control commands through the camera settings interface on the master device. After receiving the control commands, the slave device can control the camera module's operating status, such as adjusting camera parameters, controlling the camera module to take photos, record videos, etc.
[0065] Of course, the slave device can also adjust the working state of the camera module under user control. That is, in this embodiment, the camera module on the slave device can not only be operated by the user on the slave device, but also respond to control commands issued by the master device to control the working state of the camera module.
[0066] In some possible implementations, the slave device's screen can be in a sleep state while projecting the camera image, effectively reducing the slave device's power consumption. In this case, the user can control the slave device's camera module's operating status by issuing control commands from the master device.
[0067] The data transmitted between the slave device and the master device includes three types: control commands, image / video buffer data, and real-time preview streams. In some embodiments of this application, different types of data can be prioritized and assigned different network service qualities, as shown in Table 1 below:
[0068] Table 1
[0069]
[0070] This application can assign the highest priority to control commands, the next highest priority to image / video buffer data, and the lowest priority to real-time preview stream, ensuring reliable reception of control commands and image / video buffer data.
[0071] For control commands and image / video buffer data, TCP protocol can be used to ensure reliable transmission. For real-time preview streams, UDP+RTP / RTCP protocol can be used to ensure real-time transmission.
[0072] In some possible implementations, when the slave device detects that it needs to send locally cached image data or video recording data to the master device, or when it detects that the master device needs to send control commands to the slave device, it can reduce the bit rate of the real-time preview stream, allocate the transmission bandwidth to the cached data and control commands first, and restore the bit rate of the preview stream after the cached data or control commands have been transmitted, so as to ensure the reliable reception of control commands and cached data.
[0073] Furthermore, this embodiment describes the camera projection process from the perspective of the main device. The main device can perform the following steps during the camera projection process:
[0074] B1. Receive the preview stream data packet sent by the slave device. The preview stream data packet is obtained by the slave device encoding and packaging the preview stream captured by the camera module.
[0075] B2. Decode the preview stream data packets and render the decoded preview stream data onto the screen.
[0076] B3. Calculate network metrics based on the received preview stream data packets and send the network metrics to the slave device in the form of a feedback report. The network metrics are used to guide the slave device to adjust the encoding parameters of the preview stream to combat network fluctuations.
[0077] Combination Figure 2 As shown, after receiving the preview stream data packet (which can be in RTP packet form), the master device can parse the sequence number and media timestamp in the data packet, thereby calculating network parameters such as latency, jitter, and packet loss rate, and sending the network parameters to the slave device in the form of an RTCP feedback report.
[0078] After receiving the feedback report from the master device, the slave device can dynamically adjust the encoding parameters of the preview stream, such as bitrate and resolution, based on the network indicators contained therein. This helps to combat network fluctuations, improve transmission stability, and ensure smooth display of the preview stream.
[0079] Generally, when network metrics indicate poor network conditions, the bitrate and resolution of the preview stream can be lowered to counteract network fluctuations.
[0080] Combination Figure 2As shown, in some possible implementations, the host device can be configured with a dynamic adaptive jitter buffer to cache the received preview stream data packets. The size of the dynamic adaptive buffer can be automatically adjusted according to network parameters. When network parameters indicate good network conditions, the buffer size can be reduced to decrease screen rendering latency; when network parameters indicate poor network conditions, the buffer size can be increased to eliminate stuttering by caching data packets. Adaptive caching can strike a good balance between latency and smoothness, improving transmission stability.
[0081] In some possible implementations, combined Figure 2 As shown, the main device can calculate the latency of rendering different preview streams on the screen to obtain the rendering latency.
[0082] For example, the average of the rendering time differences between multiple sets of adjacent frames can be calculated as the rendering latency.
[0083] Furthermore, the rendering latency is added to the feedback report and sent to the slave device. The rendering latency is used to guide the slave device to adjust the sending strategy of the preview stream data packets. The higher the rendering latency, the lower the sending rate of the preview stream data packets, ensuring that the master device does not accumulate too many preview stream data packets and cause packet loss. At the same time, it can also make the preview streams displayed by the master device and the slave device as synchronized as possible.
[0084] In some embodiments of this application, the master device can also receive a settings display stream data packet (Setting stream) sent by the slave device. The settings display stream data packet is decoded, and the decoded settings display stream is rendered onto the screen to display the camera settings interface, thereby achieving synchronization of the camera settings interface on the master and slave devices.
[0085] Alternatively, users can issue camera control commands through the camera settings interface on the master device. After receiving the control commands, the slave device can control the working status of the camera module, such as adjusting camera parameters, controlling the camera module to take photos, record videos, and perform other functions.
[0086] In some embodiments, as described above, the transmission priority of control commands can be higher than that of cached data and the live preview stream. Therefore, when the master device needs to send control commands to the slave device, it can first send a prompt message to the slave device to prompt it to reduce the bitrate of the transmitted live preview stream, and then start the transmission process of the control commands. After the transmission of the control commands is completed, the master device can prompt the slave device to restore the bitrate of the live preview stream. This ensures stable transmission of control commands.
[0087] This application also provides an electronic device in its embodiments. (See reference...) Figure 3The diagram illustrates a suitable structural schematic for implementing the electronic device in the embodiments of this application. The electronic device in the embodiments of this application may have a main screen and a secondary screen, with the main screen serving as the master device and the secondary screen as the slave device. The electronic device may include, but is not limited to, terminals such as mobile phones, translators, wearable devices, etc. Figure 3 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0088] like Figure 3 As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 1, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 2 or a program loaded from a storage device 8 into a random access memory (RAM) 3, to implement the camera projection method of the foregoing embodiments of this application. When the electronic device is powered on, the RAM 3 also stores various programs and data required for the operation of the electronic device. The processing unit 1, ROM 2, and RAM 3 are interconnected via a bus 4. An input / output (I / O) interface 5 is also connected to the bus 4.
[0089] Typically, the following devices can be connected to I / O interface 5: input devices 6 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 7 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 8 including, for example, memory cards, hard drives, etc.; and communication devices 9. Communication device 9 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 3 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0090] This application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device enables the electronic device to implement any of the camera projection methods provided in this application for a master device or a slave device.
[0091] This application also provides a computer-readable storage medium carrying one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the camera projection methods provided in this application for a master device or a slave device.
[0092] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0093] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0094] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0095] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
[0096] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.
Claims
1. A camera projection method, characterized in that, Applied to a slave device, the slave device being equipped with a camera module, the method for establishing a data connection between the slave device and the master device includes: Obtain the preview stream captured by the camera module; The preview stream is encoded and packaged into a preview stream data packet, and the preview stream data packet is sent to the master device so that the master device can decode it and render the preview stream onto the screen; Upon receiving a feedback report from the master device, the encoding parameters of the preview stream are adjusted to counteract network fluctuations based on the network metrics contained in the feedback report. These network metrics are calculated by the master device based on the received preview stream data packets.
2. The method according to claim 1, characterized in that, The feedback report also includes rendering latency, which represents the delay between different preview streams rendered on the main device screen. The method further includes: The sending strategy of the preview stream data packets is adjusted according to the rendering latency, wherein the higher the rendering latency, the lower the sending rate of the preview stream data packets.
3. The method according to claim 1, characterized in that, Also includes: The system acquires image data captured by the camera module, or video stream captured in recording mode, and mixes the audio stream acquired in recording mode with the video stream to obtain recording data. The image data or the video data is cached, and the cached image data or the video data is sent to the main device so that the main device can save the image data or the video data.
4. The method according to claim 1, characterized in that, Also includes: When screen mirroring is initiated or after the camera module's settings interface changes, the camera module's settings interface display stream is obtained, encoded, packaged, and sent to the main device for the main device to render and display the camera settings interface.
5. The method according to claim 1, characterized in that, Also includes: The device is controlled to keep its screen in a sleep state during camera projection.
6. The method according to any one of claims 1-5, characterized in that, Also includes: When it is detected that locally cached image data or video data needs to be sent to the master device, or when it is detected that the master device needs to send control commands to the slave device, the bitrate of the preview stream is reduced, and the bitrate of the preview stream is restored after the cached data or control commands have been transmitted.
7. A method for projecting a camera onto a screen, characterized in that, Applied to a master device, the master device establishes a data connection with a slave device, the slave device being equipped with a camera module, the method comprising: The device receives a preview stream data packet sent by the slave device, which is obtained by encoding and packaging the preview stream captured by the camera module. The preview stream data packets are decoded, and the decoded preview stream data is rendered onto the screen; Network metrics are calculated based on the received preview stream data packets, and the network metrics are sent to the slave device in the form of a feedback report. The network metrics are used to guide the slave device to adjust the encoding parameters of the preview stream to combat network fluctuations.
8. The method according to claim 7, characterized in that, Also includes: The rendering latency is obtained by calculating the delay of rendering different preview stream images on the main device screen; The rendering latency is added to the feedback report and sent to the slave device. The rendering latency is used to guide the slave device to adjust the sending strategy of the preview stream data packets, wherein the higher the rendering latency, the lower the sending rate of the preview stream data packets.
9. The method according to claim 7, characterized in that, Also includes: Receive the settings interface display stream data packet sent by the device; The settings interface display stream data packet is decoded, and the decoded settings interface display stream is rendered onto the screen to display the camera settings interface.
10. The method according to claim 7, characterized in that, Also includes: A camera control command is sent to the slave device, the camera control command being used to control the operating state of the camera module.
11. A camera projection system, characterized in that, It includes a slave device and a master device, wherein the slave device is equipped with a camera module and the slave device establishes a data connection with the master device; The slave device is used to execute the camera projection method according to any one of claims 1-6, and the master device is used to execute the camera projection method according to any one of claims 7-10.
12. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the camera projection method as described in any one of claims 1-6, or implements the steps of the camera projection method as described in any one of claims 7-10.
13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the camera projection method as described in any one of claims 1-6, or implements the steps of the camera projection method as described in any one of claims 7-10.