Screen sharing method and related apparatuses

By collecting and dynamically adjusting the encoding bitrate, combining multi-dimensional parameter information, and adopting differentiated encoding strategies and priority queue management, the stuttering problem caused by network fluctuations in screen sharing was solved, achieving screen stability and improved user experience.

CN123164264APending Publication Date: 2026-11-24XIAN TIANLONG COMM TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611022379.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-09
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing screen sharing technologies, fixed bitrate transmission methods cannot cope with stuttering caused by network fluctuations, and adaptive projection methods only adjust based on network bandwidth, resulting in significant differences in subjective image quality between high dynamic and static images at the same bitrate, making it difficult to guarantee user experience.

Method used

By collecting parameter information from shared sending and receiving terminals, the encoding bitrate is dynamically adjusted. Multi-dimensional perception of network status, content characteristics, and device capabilities is adopted, combined with dynamic calculation of the encoding bitrate, and differentiated encoding strategies and priority queue management are used to achieve stable image transmission.

Benefits of technology

It effectively avoids lag caused by network fluctuations, adapts to screen sharing needs in multiple scenarios, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164264A_ABST
    Figure CN123164264A_ABST
Patent Text Reader

Abstract

This application discloses a screen sharing method and related apparatus. The screen sharing method includes: a sharing sending terminal collecting parameter information; wherein the parameter information includes at least the sharing content of the sharing sending terminal, the device parameter information of the sharing receiving terminal, and the network status parameters between the sharing sending terminal and the sharing receiving terminal; determining the encoding bitrate of the sharing content based on the parameter information; encoding the sharing content based on the encoding bitrate, and sending the encoded sharing content to the sharing receiving terminal, so that the sharing receiving terminal can decode the sharing content based on the encoding bitrate and then share it. Through the above method, this application can achieve stable screen sharing and avoid stuttering caused by network fluctuations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of screen sharing technology, and in particular to a screen sharing method and related apparatus. Background Technology

[0002] Currently, screen sharing typically uses a fixed bitrate transmission method, where the sending end encodes the screen content at a preset fixed bitrate and transmits it to the receiving end. Some adaptive screen sharing methods build upon this by introducing a dynamic adjustment mechanism based on network bandwidth, adjusting the encoding bitrate accordingly based on detected changes in network bandwidth.

[0003] However, fixed bitrate casting cannot cope with network fluctuations. When network bandwidth decreases, stuttering or a sharp drop in image quality may occur, and it cannot adapt to the encoding requirements of different content types. Furthermore, adaptive casting methods adjust based solely on network bandwidth, resulting in significant differences in subjective image quality between high-dynamic and static images at the same bitrate, making it difficult to effectively guarantee user experience. Summary of the Invention

[0004] This application provides a screen sharing method and related apparatus, which can stabilize the screen of shared content, avoid lag caused by network fluctuations, and optimize the user experience in multiple scenarios.

[0005] To address the aforementioned technical problems, this application provides a screen sharing method and related apparatus, comprising: a sharing sending terminal collecting parameter information; wherein the parameter information includes at least the sharing content of the sharing sending terminal, the device parameter information of the sharing receiving terminal, and the network status parameters between the sharing sending terminal and the sharing receiving terminal; determining the encoding bitrate of the sharing content based on the parameter information; encoding the sharing content based on the encoding bitrate, and sending the encoded sharing content to the sharing receiving terminal, so that the sharing receiving terminal can decode the sharing content based on the encoding bitrate and then share it.

[0006] The steps of encoding the shared content based on the encoding rate and sending the encoded shared content to the sharing receiving terminal so that the sharing receiving terminal can decode the shared content based on the encoding rate and then share it include: obtaining the content type of the shared content in the parameter information; and encoding the shared content based on the content type and the encoding rate.

[0007] The steps for encoding shared content based on content type and encoding bitrate include: responding to a real-time interactive content type, using a low-latency encoding format, and shortening the inter-frame interval of keyframes to a preset range by using motion prediction compensation and dynamically adjusting the image group structure to match the encoding bitrate; responding to a video content type, using layered encoding transmission, dynamically switching the transmission of the base layer, enhancement layer, and high dynamic range layer according to network state parameters, and adjusting the layered encoding parameters to match the encoding bitrate; responding to a text content type, performing lossless encoding on text regions based on the encoding bitrate, and using compression encoding on non-text regions.

[0008] The steps of encoding the shared content based on the encoding code rate and sending the encoded shared content to the shared receiving terminal so that the shared receiving terminal can decode the shared content based on the encoding code rate and then share it, further include: allocating the encoded shared content to the appropriate frequency band through multi-link operation, adjusting the transmission priority of key frames and non-key frames using priority queue management, sending the shared content to the shared receiving terminal, and the shared receiving terminal decoding the encoded shared content.

[0009] The process involves allocating the encoded shared content to an appropriate frequency band through multi-link operation, adjusting the transmission priority of key frames and non-key frames using priority queue management, sending the shared content to the shared receiving terminal, and the shared receiving terminal decoding the encoded shared content. This includes: employing a combined forward error correction and selective retransmission mechanism; recovering lost shared content through forward error correction when the packet loss rate is lower than or equal to a preset threshold; and selectively retransmitting key data packets of the shared content when the packet loss rate is higher than the preset threshold.

[0010] The step of determining the encoding bitrate of shared content based on parameter information includes: assessing the current network transmission capacity based on network status parameters; wherein the network status parameters include at least one of network bandwidth, latency, and packet loss rate; assessing the bitrate requirement of shared content based on content characteristics; wherein the content characteristics include at least one of content complexity and content type; assessing the upper limit of the bitrate of the shared receiving terminal based on device parameter information; wherein the shared receiving terminal parameters include at least one of the shared receiving terminal's resolution, high dynamic range support capability, and graphics processor performance; and determining the encoding bitrate based on the assessed current network transmission capacity, bitrate requirement, and upper limit of bitrate.

[0011] The screen sharing method includes: a sharing receiving terminal receiving encoded shared content sent by a sharing sending terminal; decoding the shared content based on the encoding bitrate; and displaying the shared content. The encoding bitrate is determined by the sharing sending terminal based on parameter information. The parameter information includes at least the shared content of the sharing sending terminal, the device parameter information of the sharing receiving terminal, and the network status parameters between the sharing sending terminal and the sharing receiving terminal.

[0012] The steps for displaying shared content include: in response to the shared content containing labeled data, overlaying the labeled trajectory of the labeled data onto the shared content for rendering, and performing smoothing interpolation processing on the labeled trajectory.

[0013] To address the aforementioned technical problems, this application provides an electronic device comprising: a memory and a processor coupled to each other, wherein the processor is configured to execute program instructions stored in the memory to implement the screen sharing method as described above.

[0014] To address the aforementioned technical problems, this application provides a computer-readable storage medium storing program data that can be executed to implement the screen sharing method described above.

[0015] The beneficial effects of this application are as follows: This application provides a screen sharing method, which collects parameter information through a sharing sending terminal; wherein, the parameter information includes at least the shared content of the sharing sending terminal, the device parameter information of the sharing receiving terminal, and the network status parameters between the sharing sending terminal and the sharing receiving terminal; the encoding bitrate of the shared content is determined based on the parameter information; the shared content is encoded based on the encoding bitrate, and the encoded shared content is sent to the sharing receiving terminal, so that the sharing receiving terminal decodes the shared content based on the encoding bitrate and then shares it, thereby stabilizing the screen of the shared content, reducing stuttering caused by network fluctuations, and adapting to screen sharing needs in multiple scenarios. Attached Figure Description

[0016] Figure 1 This is a signal flow diagram of one embodiment of the shared transmitting terminal and shared receiving terminal of this application; Figure 2 This is a flowchart illustrating one implementation of the screen sharing method provided in this application; Figure 3 This is a flowchart illustrating another embodiment of the screen sharing method provided in this application; Figure 4 This is a flowchart illustrating another implementation of the screen sharing method provided in this application; Figure 5 This is a schematic diagram of one embodiment of the electronic device provided in this application; Figure 6This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application. Detailed Implementation

[0017] 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.

[0018] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.

[0019] Furthermore, if the embodiments of this application involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.

[0020] Please see Figure 1 , Figure 1 This is a signal flow diagram of one embodiment of the shared transmitting terminal and shared receiving terminal of this application. The shared transmitting terminal refers to a device that transmits screen sharing, including but not limited to smartphones, smartwatches, smart bracelets, tablets, computers, other smart wearable devices, cameras, drones, projectors, and other smart devices. The shared receiving terminal refers to a device that receives and displays the screen-shared content, including but not limited to smartphones, tablets, computers, smart TVs, smart displays, other wearable devices, and other smart devices. The shared receiving terminal sends its own device parameter information to the shared transmitting terminal. The shared transmitting terminal collects the shared content and obtains network status parameters between itself and the shared receiving terminal, as well as the device parameter information sent by the shared receiving terminal. Based on the collected parameter information, the shared transmitting terminal dynamically generates an encoding bitrate adapted to the current network and the capabilities of the shared receiving terminal, encodes the shared content according to this bitrate, and then sends the encoded data to the shared receiving terminal. Upon receiving the data, the shared receiving terminal decodes it and displays the decoded shared content.

[0021] Please see Figure 2 , Figure 2 This is a flowchart illustrating one implementation method of the screen sharing method provided in this application, with the implementing entity being a sharing and sending terminal.

[0022] S21: The shared transmitting terminal collects parameter information; wherein, the parameter information includes at least the shared content of the shared transmitting terminal, the device parameter information of the shared receiving terminal, and the network status parameters between the shared transmitting terminal and the shared receiving terminal.

[0023] The shared sending terminal collects parameter information, which includes at least the shared content, network status parameters between the shared sending terminal and the shared receiving terminal, and device parameter information sent by the shared receiving terminal. It can also collect user interaction behavior data fed back by the shared receiving terminal, real-time service quality indicators of the transmission link, and historical statistical information during the shared session, providing multi-dimensional data support for bitrate adaptive decision-making.

[0024] Specifically, the shared sending terminal can call the corresponding acquisition module to collect the shared content based on the content being shared. For example, screen sharing can capture the screen image through the operating system interface, capturing by application window, the entire desktop, or a specified area, and setting the acquisition frame rate and resolution; for video sharing, the acquisition module can capture at a constant frame rate and prioritize high image quality; for audio file or real-time audio sharing, audio data is captured from the system audio output or microphone; for text sharing such as documents, spreadsheets, code editors, or static pages, an adaptive frame rate strategy is used to reduce the acquisition frame rate when the content is static to reduce resource consumption, and temporarily increase the acquisition frame rate when the content scrolls or turns pages to ensure smooth operation; for interactive sharing, the acquisition module prioritizes low latency, uses a high refresh rate to reduce the acquisition buffer depth, ensures that the operation response is synchronized with the screen, and dynamically adjusts the acquisition parameters to adapt to drastic changes in the screen. Multiple acquisition modules can also be called simultaneously to achieve parallel acquisition and synthesis of multi-source content, for example, simultaneously acquiring video and audio streams, and merging the audio and video after synchronous acquisition into shared content. During the acquisition process, the shared sending terminal can also perform feature analysis on the shared content to extract key parameters such as content complexity and / or content type. Content complexity includes the richness of image texture, intensity of motion, and frequency of color changes, which are quantitatively evaluated by analyzing indicators such as differences between adjacent frames, image entropy, and edge density. Content type is identified and evaluated based on the attributes of the acquisition source. For example, video content focuses on continuity and image quality, interactive content focuses on low latency and response speed, and text content focuses on clarity and detail retention.

[0025] Furthermore, the shared receiving terminal sends its own device parameter information to the shared sending terminal, which then collects and analyzes the received device parameter information. This device parameter information includes at least one or more of the following: the shared receiving terminal's resolution, high dynamic range support capability, and graphics processor performance. Specifically, resolution refers to the number of pixels on the screen of the shared receiving terminal in the horizontal and vertical directions, such as 1920×1080 or 3840×2160. The higher the resolution, the higher the image quality requirements for the shared content, and the shared sending terminal needs to provide matching or adapted clarity. High dynamic range support capability refers to whether the shared receiving terminal supports HDR (High Dynamic Range) technology. HDR can present a wider range of brightness and richer color details. If the shared receiving terminal supports HDR, the shared sending terminal can transmit HDR content to improve the visual experience. If it does not support it, it needs to be converted to standard dynamic range content to avoid abnormal image display. Graphics processor performance refers to the computing power of the shared receiving terminal's GPU (Graphics Processing Unit), including decoding capability level, video memory capacity, rendering performance, etc. Devices with stronger performance can smoothly decode high bitrate, high resolution, or high frame rate shared content. Devices with weaker performance need the shared sending terminal to appropriately reduce the encoding complexity to avoid stuttering or frame drops due to decoding timeouts. In addition, the shared receiving terminal can continuously transmit updated parameter information back to the shared sending terminal through periodic reporting or event triggering based on real-time changes in device status, such as screen resolution switching, power loss, temperature rise, or decoding load fluctuations, ensuring that the shared sending terminal always has a grasp of the latest capabilities and status of the shared receiving terminal.

[0026] Simultaneously, the shared sending terminal continuously acquires network status parameters between itself and the shared receiving terminal. These network status parameters include at least one or more of network bandwidth, latency, and packet loss rate. Specifically, network bandwidth refers to the maximum amount of data that a network link can transmit per unit time. Higher bandwidth allows for the transmission of shared content at higher bitrates; insufficient bandwidth necessitates a reduction in bitrate to avoid congestion. Latency refers to the time it takes for data to travel from the shared sending terminal to the shared receiving terminal, including the sum of transmission latency, propagation latency, processing latency, and queuing latency. For example, in low-latency scenarios such as remote sharing operations, latency control must be within a set value, such as 100ms, to ensure real-time operation. Packet loss rate refers to the proportion of data packets lost during data transmission relative to the total number of transmitted data packets. A high packet loss rate can cause screen flickering, stuttering, or audio-visual desynchronization on the shared receiving terminal, requiring solutions such as forward error correction, packet retransmission, or dynamic bitrate adjustment. By collecting these network status parameters, the shared sending terminal can dynamically perceive changes in the quality of the transmission link, providing crucial information for adaptive bitrate adjustment.

[0027] Furthermore, the shared sending terminal and the shared receiving terminal continuously collect and exchange information during the sharing session, and can adopt a dynamic update strategy based on actual scenario requirements. For example, in scenarios with frequent network fluctuations, such as when the user is mobile or the wireless network signal is unstable, the shared sending terminal can collect network bandwidth, latency, and packet loss rate every 100 milliseconds to detect link changes in real time and adjust the encoding rate in a timely manner to cope with network jitter. In scenarios with slower device status changes, such as when the shared receiving terminal's power consumption or temperature changes, the shared receiving terminal can report device parameter information every 5 seconds. For text-based sharing, such as sharing document pages, the shared receiving terminal can perform triggered collection based on user actions, collecting parameter information only when the user scrolls the page, zooms the view, or quickly flips through pages. In scenarios with significant changes in content features, such as when the user switches from a static document to a dynamic video sharing session, the shared sending terminal can detect sudden changes in screen complexity in real time, immediately triggering re-collection and analysis of content features and quickly adjusting the collection parameters.

[0028] S22: Determine the encoding bitrate of the shared content based on parameter information.

[0029] The shared transmitting terminal integrates the collected parameter information and uses a preset algorithm or model to determine the encoding bitrate. Specifically, the shared transmitting terminal performs fusion analysis on the shared content, network status parameters, and shared receiving terminal device parameters in the parameter information. Based on real-time network status parameters such as current network bandwidth and packet loss rate, it generates an evaluation value of the current link's network transmission capacity. Then, based on the content complexity, it generates an evaluation value of content features to obtain the bitrate requirement. For example, content complexity is quantitatively evaluated by analyzing indicators such as the richness of image texture, the intensity of motion, and the frequency of color changes. Based on the shared receiving terminal parameters, it determines the device and generates a device capability evaluation value to obtain the upper limit of the bitrate that the shared receiving terminal can process. Finally, it integrates the network transmission capacity, the upper limit of the bitrate, and the bitrate requirement to generate the corresponding encoding bitrate, ensuring that while fully utilizing the network transmission capacity and meeting the content's image quality requirements, it does not exceed the upper limit of the shared receiving terminal's decoding and display capabilities. In addition, mathematical models can be used to predict network conditions and content characteristics to determine the bitrate. For example, time series analysis models can be used to fit historical bandwidth data to predict bandwidth changes in the next few seconds and adjust the bitrate in advance. Alternatively, machine learning algorithms can be used to train a bitrate prediction model with network state parameters, device parameters, and content characteristics of the shared content as input features, enabling the model to directly output the optimal bitrate value based on the current state. Alternatively, shared content can be stratified according to importance or visual attention, and differentiated bitrates can be allocated to different strata. For example, in screen sharing, areas of user attention such as the mouse cursor and operation buttons can be assigned a higher bitrate as an important layer, while background or static areas can be assigned a lower bitrate as a secondary layer. In video calls, the face area can be prioritized as the core layer to ensure a high bitrate, while the bitrate of background areas can be appropriately reduced. Alternatively, the sharing terminal can pre-generate multiple encoded versions with different bitrates for the same shared content and dynamically switch between them based on real-time parameter information. For example, it can pre-set three bitrate versions: high, medium, and low. When network bandwidth is sufficient, it can switch to the high bitrate version, and when network quality deteriorates, it can switch to the medium or low bitrate version.

[0030] S23: Encode the shared content based on the encoding rate, and send the encoded shared content to the sharing receiving terminal, so that the sharing receiving terminal can decode the shared content based on the encoding rate and then share it.

[0031] The sharing terminal encodes the acquired shared content according to a determined encoding rate, packages and encapsulates the encoded shared content, and sends it to the sharing receiving terminal. Upon receiving the data packet, the sharing receiving terminal calls the corresponding decoder to decode it according to the encoding format and displays the shared content. Specifically, the encoder of the sharing terminal dynamically configures the encoding specifications based on the encoding bitrate parameter, such as video encoding formats like H.264, H.265 (High Efficiency Video Coding), or AV1 (AoMedia Video Coding). 1. Open Media Alliance Video 1) Bitrate control mode adopts constant bitrate or variable bitrate, and the encoding preset configuration is fast encoding or high-quality encoding, etc. After encoding, the encoded bitstream is packaged and encapsulated. Key metadata such as frame sequence number, timestamp, bitrate information, and encoding parameters can be embedded in each data packet to facilitate decoding synchronization and quality assessment by the shared receiving terminal. The packaged data packet is sent to the shared receiving terminal through a real-time transmission protocol. During the transmission process, the transmission rate can be dynamically adjusted based on network status feedback to avoid network congestion caused by sudden transmission. At the same time, the shared sending terminal can also retain the most recently sent key frame data packets for retransmission in case of packet loss by the shared receiving terminal, reducing screen stuttering caused by packet loss. After receiving the data packet, the shared receiving terminal can reassemble and sort the data packet to avoid out-of-order packets introduced by network transmission. Out-of-order packets are reordered according to the frame sequence number and timestamp in the data packet. After the data packet is sorted, the shared receiving terminal calls the corresponding decoder according to the encoding format to decode, renders the decoded shared content, and finally displays the shared content on the screen.

[0032] Through the above steps, this embodiment perceives network status, content characteristics, and device capabilities from multiple dimensions, and combines dynamic calculation of the encoding bitrate to achieve screen stability through adaptive screen display. Furthermore, it adopts a differentiated encoding strategy based on content type to meet the differentiated needs of different scenarios, avoid stuttering caused by network fluctuations, and improve user experience.

[0033] Please see Figure 3 , Figure 3 This is a flowchart illustrating another implementation of the screen sharing method provided in this application, where the implementing entity is a sharing and sending terminal.

[0034] S31: The shared transmitting terminal collects parameter information; wherein, the parameter information includes at least the shared content of the shared transmitting terminal, the device parameter information of the shared receiving terminal, and the network status parameters between the shared transmitting terminal and the shared receiving terminal.

[0035] This step is the same as step S21 mentioned above. Please refer to the relevant description of step S21 for details, which will not be repeated here.

[0036] S32: Evaluate the current network transmission capacity based on network status parameters; evaluate the bit rate requirement of the shared content based on the content characteristics of the shared content; evaluate the upper limit of the bit rate of the shared receiving terminal based on device parameter information; determine the encoding bit rate based on the evaluated current network transmission capacity, bit rate requirement, and upper limit of the bit rate.

[0037] The shared transmission terminal quantitatively evaluates network status parameters, content characteristics of the shared content, and device parameter information to comprehensively determine the encoding rate. Specifically, the shared transmission terminal comprehensively evaluates the current network transmission capacity based on the collected network status parameters. These network status parameters include at least one of network bandwidth, latency, and packet loss rate. Taking a scoring method as an example of quantitative evaluation, network transmission capacity can be quantified into specific score values. Network bandwidth can be used as the core indicator, with corresponding scores assigned based on the bandwidth range; higher bandwidth results in a higher score. For latency, corresponding scores are assigned based on the round-trip delay range; lower latency results in a higher score. For packet loss rate, corresponding scores are assigned based on the packet loss rate range; lower packet loss rate results in a higher score. The total network transmission capacity score is obtained by multiplying each basic score by its corresponding weight and then summing them. In actual evaluation, the weights of the three indicators—bandwidth, latency, and packet loss rate—are not fixed and can be dynamically allocated according to the application type of the shared content. For example, in interactive scenarios, users have extremely high requirements for real-time operation response, and latency and packet loss rate have the greatest impact on the experience. Therefore, the weight of latency and packet loss rate can be increased, while the weight of bandwidth can be decreased, prioritizing low latency and low packet loss rate. In video scenarios, users have high requirements for image quality continuity and stability, and bandwidth and packet loss rate have a significant impact on the experience. Therefore, the weight of bandwidth and packet loss rate can be increased, while the weight of latency can be decreased. In text-based scenarios, users have certain requirements for image clarity and operation responsiveness, but their sensitivity to latency and bandwidth is relatively low. Therefore, the weight of bandwidth and latency can be increased, while the weight of packet loss rate can be decreased.

[0038] The shared content collected by the shared sending terminal is analyzed, and its content features are extracted and quantitatively evaluated to obtain the bitrate requirement of the shared content. Content feature extraction includes at least one of content complexity and content type. Taking a scoring method as an example of quantitative evaluation, the content complexity and content type of the shared content are extracted. Content complexity can be used as the core evaluation dimension. The bitrate requirement is quantitatively evaluated by analyzing indicators such as the richness of image texture, the intensity of motion, and the frequency of color changes. The evaluation value is then corrected by the content type. For example, the richness of image texture is evaluated by parameters such as image entropy and edge density; the richer the image texture, the higher the complexity. The intensity of motion is evaluated by parameters such as the difference between adjacent frames, changes in optical flow field, and motion vector distribution; the faster the motion, the higher the complexity. The frequency of color changes is evaluated by parameters such as color histogram distribution and color space conversion frequency; the more frequent the color changes, the higher the complexity. The image texture, the intensity of motion, and the frequency of color changes are weighted and fused to obtain the content complexity evaluation value. Content type serves as an auxiliary correction factor, with weights adjusted based on the varying requirements for image quality and smoothness across different sharing scenarios. For example, interactive content, due to its higher demands for real-time performance and smoothness, receives increased weighting for motion intensity; video content receives increased weighting for image texture richness. A higher content complexity assessment value indicates greater content complexity and a higher bitrate requirement. The assessment value is mapped to a preset bitrate requirement range to obtain the shared content's bitrate requirement. For instance, a piecewise linear mapping method is used, dividing the assessment value from minimum to maximum into a set number of continuous bitrate intervals, each interval corresponding to a bitrate requirement range.

[0039] The shared transmitting terminal quantifies the capabilities of the shared receiving terminal based on the device parameter information sent by the shared receiving terminal, thus determining the upper limit of the bitrate for the shared receiving terminal. The device parameter information includes at least one of the following: the shared receiving terminal's resolution, high dynamic range support capability, and graphics processor performance. Taking a scoring method as an example of quantitative evaluation, the shared transmitting terminal quantifies each parameter sent by the shared receiving terminal, assigning a corresponding base score to each parameter based on its performance level. For example, resolution can be categorized based on pixel size, from high to low: 4K resolution (3840×2160 and above), 2K resolution (2560×1440), Full HD resolution (1920×1080), HD resolution (1280×720), and Standard Definition resolution (720×480 and below). Each level has a progressively decreasing base score, with higher resolutions receiving higher scores. High dynamic range (HDR) support can be categorized based on supported HDR standards, from high to low: Dolby Vision or HDR10+ support, standard HDR10 support, standard dynamic range support only, no HDR support, or no HDR capability. Each level has a progressively decreasing base score, with stronger HDR support resulting in higher scores. Graphics processor (GPU) performance can be comprehensively evaluated based on GPU decoding capabilities, memory capacity, and rendering performance, from high to low: high-performance GPU, mid-to-high-performance GPU, mid-performance GPU, mid-to-low-performance GPU, and low-performance GPU. Each level has a progressively decreasing base score, with stronger GPU performance receiving higher scores. The device capability assessment value is obtained by multiplying the basic score values ​​of each parameter by their corresponding weights and summing the results. This assessment value is then mapped to a preset bitrate upper limit range to determine the upper bitrate limit that the shared receiving terminal can withstand. This mapping process divides the assessment value from minimum to maximum into a set number of consecutive bitrate upper limit ranges, with each range corresponding to a bitrate upper limit range. In the actual assessment process, the weights of the three indicators—resolution, high dynamic range support capability, and graphics processor performance—are dynamically allocated according to the content type of the sharing scenario to adapt to the different device capability requirements of different scenarios. For example, in interactive scenarios where users have high requirements for real-time operation response and smooth image quality, a higher weight can be assigned to graphics processor performance; in video and text-based scenarios where users have high requirements for image detail and color performance or text clarity, a higher weight can be assigned to resolution.

[0040] Finally, the network transmission capacity, bitrate requirement, and bitrate cap are comprehensively calculated to determine the encoding bitrate. For example, the bitrate decision can be modeled as a multi-objective optimization problem, with the optimization objectives of maximizing image quality, minimizing latency, and ensuring smoothness. Various constraints are set, and the optimal bitrate value is solved. For instance, under the premise of meeting the device bitrate cap and network transmission capacity, the bitrate that minimizes image distortion is selected. Alternatively, dynamic weight allocation can be used, dynamically adjusting the weights of the three evaluation values ​​according to the characteristics of the current scenario to obtain a comprehensive evaluation value. This comprehensive evaluation value is then mapped to a preset encoding range to obtain the final encoding bitrate. For example, in a weak network environment with frequent network fluctuations, the weight of network transmission capacity is increased, making the bitrate decision more focused on adapting to network changes; in scenarios with limited device performance, the weight of the device bitrate cap is increased to prioritize ensuring smooth decoding on the shared receiving terminal; and in scenarios with high content image quality requirements, the weight of content bitrate requirement is increased to prioritize meeting image quality requirements.

[0041] S33: Obtain the content type of the shared content from the parameter information; encode the shared content based on the content type and the encoding bitrate.

[0042] The sharing terminal obtains the content type of the shared content from the parameter information and triggers the corresponding encoding strategy for encoding based on the identified content type. The content types include at least interactive, video, and text types. Specifically, when the content type is interactive, a low-latency encoding format is used, such as H.265 or AV1 encoding format with its low-latency encoding mode enabled. Simultaneously, the image group structure is dynamically adjusted, for example, shortening the keyframe interval to a preset range, such as 5-10 frames. A motion prediction compensation algorithm is used to analyze the motion vectors between adjacent frames, calculate the predicted frame using the reference frame and the motion vectors, and encode only the prediction residual data, thereby effectively reducing inter-frame prediction errors and lowering encoding latency. When the content type is video, the encoder can adopt a layered encoding structure, dividing the video stream into three layers: a base layer, an enhancement layer, and a high dynamic range layer. The base layer is encoded with a first resolution and a first bitrate; for example, the first resolution might be 1080P (Full HD resolution, 1920×1080 pixels). The first bitrate is determined based on the total bitrate and weight allocation; for example, with an encoding bitrate of 20Mbps, a base layer weight of 35% corresponds to 7Mbps. The enhancement layer is encoded with a second resolution and a second bitrate; for example, the second resolution might be 4K (Ultra HD resolution, 3840×2160 pixels). The second bitrate is determined based on the total bitrate and weight allocation; for example, with an encoding bitrate of 20Mbps, an enhancement layer weight of 45% corresponds to 9Mbps. The dynamic range layer is configured with high dynamic range metadata to expand the brightness and color gamut of the image, and its activation is selected based on whether the shared receiving terminal supports the corresponding HDR format. When network status parameters change, the system dynamically switches the transmission strategies of each layer according to the network transmission capacity and the capabilities of the receiving device. For example, when network bandwidth is sufficient, the base layer, enhancement layer, and high dynamic range layer are all activated simultaneously to achieve high-quality transmission; when network bandwidth is moderate, only the base layer and high dynamic range layer are activated to maintain HDR effects while reducing the bitrate; when network bandwidth is limited, only the base layer is transmitted to ensure smooth playback without stuttering. Simultaneously, the bitrate weight of each layer is allocated according to the complexity of the shared content. For example, if the shared content is highly complex, the base layer needs a higher bitrate weight to ensure the clarity and smoothness of the core image, while the enhancement layer also needs a higher bitrate weight to retain detail and motion compensation. The high dynamic range layer is assigned a corresponding weight based on whether the sharing receiving terminal supports HDR; if it does, an appropriate weight is assigned, and if not, the HDR layer weight can be reduced or canceled. Furthermore, a cache preloading mechanism can be introduced. Before starting playback, the sharing receiving terminal pre-caches the shared content data for a certain duration in its local buffer, forming a playback buffer pool. For example, when there are brief fluctuations in network transmission or a decrease in bandwidth, the sharing receiving terminal can prioritize reading data from the buffer to continue playback, avoiding stuttering due to data supply interruptions.When the content type is text-based, the screen content can be analyzed using a text recognition module. Optical Character Recognition (OCR) technology is used to identify text areas, dividing the screen into text and non-text regions. Lossless or near-lossless encoding is applied to text areas, such as using PNG (Portable Network Graphics) format, preserving the clarity of text edges and details and avoiding blurring or distortion caused by compression. High-compression encoding, such as JPEG (Joint Photographic Experts Group) format, is used for non-text areas. Simultaneously, vector graphics recognition and optimization technology is combined to adjust the encoding parameters of the identified vector graphics, improving the projection quality of the graphic content.

[0043] S34: The encoded shared content is allocated to the appropriate frequency band through multi-link operation, and the transmission priority of key frames and non-key frames is adjusted by priority queue management. The shared content is then sent to the shared receiving terminal, which decodes the encoded shared content.

[0044] The shared transmission terminal first allocates the encoded shared content to suitable frequency bands for transmission through multi-link operation. This multi-link operation can be based on Wi-Fi 6 or Wi-Fi 6E technology, allowing simultaneous use of multiple frequency bands such as 2.4GHz, 5GHz, and 6GHz. The shared transmission terminal acquires network status parameters in real time and dynamically allocates data streams to the optimal frequency band based on the data type of the shared content. For example, key frames are allocated to the 5GHz or 6GHz band with the lowest latency, while non-key frames or enhancement layer data are allocated to frequency bands with sufficient bandwidth. When congestion occurs in a certain frequency band, it automatically switches to other available frequency bands to avoid transmission interruption due to single-link failure. Simultaneously, the shared transmission terminal uses priority queue management to adjust the transmission priority of key frames and non-key frames, setting up multi-level priority queues. For example, keyframes and audio data are placed in the highest priority queue, non-keyframes and annotation data in the medium priority queue, and enhancement layer data in the low priority queue. When network bandwidth is insufficient or congestion occurs, data in the high priority queue is sent first, while low priority data is delayed or discarded. This ensures that keyframes reach the receiver with minimal delay, avoiding the breaking of the decoding dependency chain due to keyframe loss. In addition, the shared transmitting terminal combines forward error correction and selective retransmission mechanisms. When the packet loss rate is lower than or equal to a preset threshold, lost data is directly recovered through forward error correction. When the packet loss rate is higher than the preset threshold, only lost key data packets are retransmitted, ensuring data integrity while controlling retransmission delay.

[0045] After receiving the encoded shared content, the shared receiving terminal first decapsulates the data stream, separating the video stream, audio stream, and annotation data stream. Based on the received encoding bitrate information, the shared receiving terminal identifies the encoding format of the current data stream and calls the corresponding decoder for decoding processing. After decoding, the shared receiving terminal timestamps the decoded video frames with the annotation data stream to ensure the timing accuracy of audio-visual synchronization and annotation overlay, and then uses the graphics processor to process and display the decoded shared content.

[0046] Through the above steps, this embodiment dynamically calculates the appropriate encoding bitrate and adjusts the transmission strategy in real time based on network status, content characteristics, and device capabilities. This ensures that the screen remains stable and smooth under different network conditions and application scenarios, effectively avoiding stuttering caused by network fluctuations and improving the stability of screen sharing and user experience.

[0047] Please see Figure 4 , Figure 4 This is a flowchart illustrating another implementation of the screen sharing method provided in this application, with the implementing entity being a sharing receiving terminal.

[0048] S41: The shared receiving terminal receives the encoded shared content sent by the shared sending terminal.

[0049] The receiving terminal sends device capability parameters to the sending terminal. The sending terminal collects the shared content, device capability parameters, and network status parameters between itself and the receiving terminal, generating parameter information. Subsequently, the sending terminal generates the corresponding encoding bitrate based on the parameter information, encodes the shared content, and sends the encoded content to the receiving terminal. The receiving terminal receives the encoded shared content from the sending terminal via the wireless network, acquiring the encoding bitrate information in real time, including at least one of the following: the encoding bitrate of the shared content, the actual transmission bitrate, and / or the bitrate parameters of each layer of encoding.

[0050] S42: Decode the shared content based on the encoding bitrate of the shared content.

[0051] Based on the encoding bitrate, the shared receiving terminal decodes the received data stream and dynamically adjusts the decoding strategy according to the bitrate parameters. The encoding bitrate is determined by the shared sending terminal based on parameter information. During decoding, the shared receiving terminal identifies the encoding format and hierarchical structure of the current data stream based on the encoding bitrate information and selects the corresponding decoding strategy. For example, when the encoding bitrate is high, it indicates that the shared sending terminal has adopted a higher image quality setting, and the shared receiving terminal accordingly activates a high-quality decoding mode; when the encoding bitrate is low, it indicates that network bandwidth is limited or the content complexity is low, and the shared receiving terminal activates a high-efficiency decoding mode to simplify some post-processing operations in the decoding process; for layered encoded data streams, the shared receiving terminal determines the actual layer combination received based on the bitrate parameters of each layer. If the base layer and enhancement layer are received and the enhancement layer bitrate is high, then complete synthesis decoding is performed to output a high-resolution image; if only the base layer is received or the enhancement layer bitrate is low, then only the base layer image is decoded to avoid decoding delays caused by waiting for unreceived enhancement layer data.

[0052] S43: Display shared content.

[0053] After decoding, the shared receiving terminal can adopt differentiated decoding and display optimization strategies based on different content types. Specifically, for interactive content, after decoding, the shared receiving terminal first uses the graphics processor to directly render the decoded video frames. Simultaneously, it employs variable refresh rate synchronization technology to dynamically adjust the screen refresh rate according to the video source's frame rate. For example, when the video frame rate is 60fps, the screen refresh rate automatically matches to 60Hz; when the frame rate drops to 30fps, it synchronously adjusts to 30Hz or maintains an integer multiple thereof. Furthermore, it compensates for input latency based on transmission delay, acquiring the end-to-end latency from the shared sending terminal to the shared receiving terminal's display in real time, and dynamically adjusting the rendering output timing to reduce the perceived latency between user operation and screen response. For video content, the shared receiving terminal dynamically adjusts its decoding strategy based on the complexity of the shared content. For example, for highly complex content such as high-dynamic scenes and scenes with rich details, a higher-precision decoding algorithm is used; for low-complexity content such as static scenes and simple backgrounds, a simplified decoding process is adopted to reduce power consumption. Simultaneously, the shared receiving terminal utilizes the graphics processor for hardware-accelerated decoding. Furthermore, under low load or when the network is stable, the system automatically enters a sleep optimization state, reducing the decoder's operating frequency, shutting down unnecessary modules, reducing battery consumption and device heat generation, and extending the mobile device's battery life. For text content, the shared receiving terminal receives shared content containing annotation data. It can overlay laser pointer trajectories, text annotations, and other annotation data onto the screen for rendering, and perform smooth interpolation processing on the trajectories to optimize the display effect.

[0054] Through the above steps, this embodiment dynamically adjusts the encoding bitrate by integrating and analyzing network status parameters, content characteristics, and device capability parameters, so that the shared content can be displayed smoothly when the network fluctuates, avoiding screen lag, thereby achieving adaptive screen sharing in multiple scenarios.

[0055] Based on the same concept, this application also proposes an electronic device capable of executing the screen sharing method of any of the above embodiments. Please refer to [link to relevant documentation]. Figure 5 , Figure 5 This is a schematic diagram of an embodiment of the electronic device provided in this application. The electronic device includes a processor 51 and a memory 52.

[0056] The processor 51 is used to execute the program instructions stored in the memory 52 to implement the steps of any of the screen sharing methods described above. In a specific implementation scenario, the electronic device may include, but is not limited to, a microcomputer or a server. In addition, the electronic device may also include mobile devices such as laptops and tablets, which are not limited here.

[0057] Specifically, processor 51 controls itself and memory 52 to implement the steps of any of the above embodiments. Processor 51 may also be referred to as a CPU (Central Processing Unit). Processor 51 may be an integrated circuit chip with signal processing capabilities. Processor 51 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor. Furthermore, processor 51 may be implemented using integrated circuit chips.

[0058] Based on the same concept, this application also proposes a computer-readable storage medium, please refer to... Figure 6 , Figure 6This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application. The computer-readable storage medium 60 stores at least one program data 61, which is used to implement any of the methods described above. In one embodiment, the computer-readable storage medium 60 includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0059] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0060] The units described as separate components may or may not be physically separate. 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 units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0061] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0062] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium.

[0063] The above are merely embodiments of this application and do not limit the scope of this patent application. Any equivalent structural or procedural changes made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of this application.

Claims

1. A screen sharing method, characterized in that, The screen sharing method includes: The shared sending terminal collects parameter information; wherein, the parameter information includes at least the shared content of the shared sending terminal, the device parameter information of the shared receiving terminal, and the network status parameters between the shared sending terminal and the shared receiving terminal; The encoding bitrate of the shared content is determined based on the parameter information; The shared content is encoded based on the encoding rate, and the encoded shared content is sent to the sharing receiving terminal so that the sharing receiving terminal can decode the shared content based on the encoding rate and then share it.

2. The screen sharing method according to claim 1, characterized in that, The step of encoding the shared content based on the encoding bitrate and sending the encoded shared content to the sharing receiving terminal, so that the sharing receiving terminal can decode the shared content based on the encoding bitrate and then share it, includes: Obtain the content type of the shared content from the parameter information; The shared content is encoded based on the content type and the encoding bitrate.

3. The screen sharing method according to claim 2, characterized in that, The step of encoding the shared content based on the content type and the encoding bitrate includes: In response to the fact that the content type is a real-time interactive type, a low-latency encoding format is adopted. Through motion prediction compensation and dynamic adjustment of the image group structure, the inter-frame interval of key frames is shortened to a preset range to match the encoding bitrate. In response to the content type being video, layered encoding transmission is adopted, and the transmission of the base layer, enhancement layer and high dynamic range layer is dynamically switched according to network status parameters, and the layered encoding parameters are adjusted to match the encoding bitrate; In response to the content type being text, lossless encoding is performed on the text region based on the encoding bitrate, while compression encoding is used on the non-text region.

4. The screen sharing method according to claim 1, characterized in that, The step of encoding the shared content based on the encoding code rate and sending the encoded shared content to the sharing receiving terminal, so that the sharing receiving terminal decodes the shared content based on the encoding code rate and then shares it, further includes: The encoded shared content is allocated to the appropriate frequency band through multi-link operation, and the transmission priority of key frames and non-key frames is adjusted using priority queue management. The shared content is then sent to the shared receiving terminal, which decodes the encoded shared content.

5. The screen sharing method according to claim 4, characterized in that, The steps of allocating the encoded shared content to an appropriate frequency band through multi-link operation, adjusting the transmission priority of key frames and non-key frames using priority queue management, and sending the shared content to the shared receiving terminal, and the shared receiving terminal decoding the encoded shared content, include: A mechanism combining forward error correction and selective retransmission is adopted. When the packet loss rate is lower than or equal to a preset threshold, the lost shared content is recovered through forward error correction. When the packet loss rate is higher than the preset threshold, the key data packets of the shared content are selectively retransmitted.

6. The screen sharing method according to claim 1, characterized in that, The step of determining the encoding bitrate of the shared content based on the parameter information includes: The current network transmission capacity is evaluated based on the network status parameters; wherein, the network status parameters include at least one of network bandwidth, latency, and packet loss rate; The bitrate requirement of the shared content is assessed based on its content characteristics; wherein the content characteristics include at least one of content complexity and content type. The upper limit of the bit rate of the shared receiving terminal is evaluated based on the device parameter information; wherein, the shared receiving terminal parameters include at least one of the following: resolution, high dynamic range support capability, and graphics processor performance of the shared receiving terminal; The encoding bitrate is determined based on the current network transmission capacity, the bitrate requirement, and the bitrate limit obtained from the assessment.

7. A screen sharing method, characterized in that, The screen sharing method includes: The shared receiving terminal receives the encoded shared content sent by the shared sending terminal; The shared content is decoded based on its encoding bitrate; Display the shared content; The encoding rate is determined by the shared transmitting terminal based on parameter information; the parameter information includes at least the shared content of the shared transmitting terminal, the device parameter information of the shared receiving terminal, and the network status parameters between the shared transmitting terminal and the shared receiving terminal.

8. The screen sharing method according to claim 7, characterized in that, The step of displaying the shared content includes: In response to the shared content containing labeled data, the labeled trajectory of the labeled data is superimposed onto the shared content for rendering, and the labeled trajectory is smoothed by interpolation.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor coupled to each other, the processor being configured to execute program instructions stored in the memory to implement the screen sharing method as described in any one of claims 1 to 6 or any one of claims 7 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program data that can be executed to implement the screen sharing method as described in any one of claims 1 to 6 or any one of claims 7 to 8.