Screen projection display method and electronic device
Through negotiation between the source device and the destination device, the projection parameters are dynamically adjusted, which solves the problem of insufficient transmission speed and decoding capability of the destination device when multiple source devices are casting, and achieves smoothness and clarity in different scenarios. Optimized to improve user experience.
Patent Information
- Application Number
- CN202311160023.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-05
- Filing Date
- 2020-07-03
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-07-03
AI Technical Summary
When multiple source devices project to the same destination device at the same time, the transmission bandwidth is reduced and the transmission speed is slowed down, causing the destination device to suffer from lagging and delays. This is especially true when the destination device has insufficient computing power and decoding becomes difficult.
The source device negotiates with the destination device to dynamically adjust projection parameters, such as resolution, transmission bit rate, and encoding compression rate, and optimizes the display fluency and clarity during projection based on the number of source devices to ensure good quality in different scenarios. User experience.
By adjusting the screen projection parameters, the display smoothness and clarity of multiple source devices are optimized, avoiding lags and delays on the destination device, and improving the user experience.
Smart Images

Figure CN117376615B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a screen projection display method and an electronic device. Background Art
[0002] At present, the screen projection function has been widely used in users' daily lives. For example, users can install screen projection software in their mobile phones to project the display interface of their mobile phones (i.e., source devices) to other target devices that support the screen projection function (e.g., smart TVs) for display, making it convenient for users to view the display content of the same device on different devices.
[0003] In some scenarios, users can project the display contents of multiple source devices to the same destination device for display. For example, user A can project game interface 1 displayed on mobile phone 1 to a smart TV for display, and user B can project game interface 2 displayed on mobile phone 2 to a smart TV for display.
[0004] Then, when the number of source devices is large, each source device will send the display data that needs to be projected to the destination device at the same time. At this time, the available transmission bandwidth of each source device will be reduced, resulting in a decrease in transmission speed and an increase in transmission time, which may cause the destination device to experience problems such as freezes and delays when displaying. In addition, when the destination device receives the display data sent by each source device at the same time, it needs to decode the display data sent by each source device. When the computing power of the destination device is insufficient, the destination device cannot decode the display data in time, which may also cause the destination device to experience problems such as freezes and delays when displaying. Summary of the invention
[0005] The present application provides a screen projection display method and an electronic device, which can dynamically adjust the parameters of the display data projected to the destination device according to the number of source devices, thereby improving the display smoothness and user experience during screen projection.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, the present application provides a screen projection display method, including: a source device sends a screen projection instruction to a destination device, the screen projection instruction is used to instruct to project the display interface of the source device to the destination device for display; then, the source device can receive a first broadcast sent by the destination device, the first broadcast including the number N of source devices that need to be projected for display in the destination device (N is an integer greater than 0); then, the source device can negotiate with the destination device based on the number N of source devices for use in screen projection, the first screen projection parameters may include one or more of the screen projection resolution, transmission bit rate or encoding compression rate; in this way, the source device can send first display data to the destination device according to the first screen projection parameters.
[0008] That is to say, when casting the screen, the source device and the destination device can dynamically negotiate the casting parameters when casting the screen to the destination device according to the current number of source devices N. In this way, when the number of source devices is large, the display smoothness during casting can be prioritized by adjusting the casting parameters; when the number of source devices is small, the display clarity during casting can be prioritized by adjusting the casting parameters, so that users can get a better user experience in different casting scenarios.
[0009] Among them, the first screen projection parameters negotiated by each source device and the destination device can be the same or different.
[0010] In one possible implementation, the source device may store the correspondence between different numbers of source devices and different screen projection parameters; at this time, the source device negotiates the first screen projection parameter with the destination device based on the number of source devices N, including: the source device can determine the first screen projection parameter corresponding to the number of source devices N based on the above correspondence; then, the source device can send the determined first screen projection parameter to the destination device for storage.
[0011] Alternatively, the source device can automatically calculate the first projection parameter used when projecting the screen according to the current number of source devices N. For example, when the number of source devices N is 1, the source device can set the transmission bit rate in the first projection parameter to the bit rate of the current total bandwidth (for example, 10M); when the number of source devices N is 2, the source device can set the transmission bit rate in the first projection parameter to half of the bit rate of the current total bandwidth, that is, 5M.
[0012] In a possible implementation, before the source device negotiates the first screen projection parameter with the destination device based on the number of source devices N, it also includes: the source device receives the codec protocol type supported by the destination device sent by the destination device; the source device determines the codec protocol type used for screen projection based on the decoding protocol type supported by the destination device.
[0013] In a possible implementation, after the source device sends the first display data to the destination device according to the first screen projection parameters, it also includes: the source device receives a second broadcast sent by the destination device, the second broadcast includes the number M of source devices that need to be projected for display in the destination device (M is a positive integer not equal to N); then, the source device can negotiate second screen projection parameters with the destination device based on the current number of source devices M, the second screen projection parameters are different from the above-mentioned first screen projection parameters; the source device sends the second display data to the destination device according to the second screen projection parameters.
[0014] That is to say, when the number of source devices changes during screen projection, the source device and the destination device can renegotiate to obtain a second screen projection parameter and use the second screen projection parameter for screen projection display.
[0015] In a second aspect, the present application provides a screen projection display method, including: a source device sends a screen projection instruction to a destination device, the screen projection instruction is used to instruct to project the display interface of the source device to the destination device for display; then, the source device can receive a first broadcast sent by the destination device, the first broadcast including a reference threshold of a first screen projection parameter when the number of source devices is N, the first screen projection parameter may include one or more of a screen projection resolution, a transmission bit rate, or a coding compression rate, the reference threshold is used to indicate the maximum value of the first screen projection parameter supported by the destination device; the source device determines the first screen projection parameter according to the reference threshold of the first screen projection parameter; the source device sends first display data to the destination device according to the first screen projection parameter.
[0016] That is to say, when the source device and the destination device can negotiate the screen projection parameters, the destination device can determine the maximum value of the screen projection parameters supported by the destination device (i.e., the reference threshold) based on the number of source devices N. Furthermore, each source device can determine the appropriate screen projection parameters within the reference threshold based on its own screen projection capabilities, and perform screen projection with the destination device according to the determined screen projection parameters.
[0017] In one possible implementation, the source device determines the first screen projection parameter based on a reference threshold of the first screen projection parameter, including: if the source device supports the reference threshold of the first screen projection parameter, the source device determines the reference threshold of the first screen projection parameter as the first screen projection parameter; if the source device does not support the reference threshold of the first screen projection parameter, the source device determines the maximum screen projection parameter supported by the source device as the first screen projection parameter.
[0018] In a possible implementation, after the source device sends the first display data to the destination device according to the first screen projection parameter, it also includes: the source device receives a second broadcast sent by the destination device, the second broadcast includes a reference threshold of the second screen projection parameter when the number of source devices is M, and M is a positive integer not equal to N; the source device determines the second screen projection parameter according to the reference threshold of the second screen projection parameter, and the second screen projection parameter is different from the first screen projection parameter; the source device sends the second display data to the destination device according to the second screen projection parameter.
[0019] That is to say, when the number of source devices changes during screen projection, the source device and the destination device can renegotiate the screen projection parameters and use the renegotiated screen projection parameters for screen projection display.
[0020] In a third aspect, the present application provides a screen projection display method, including: the destination device determines that the number of source devices that need to be projected and displayed in the destination device is N (N is an integer greater than 0); the destination device negotiates with the N source devices according to the number of source devices N about the first screen projection parameters used when projecting the screen, and the first screen projection parameters may include one or more of the projection resolution, transmission bit rate, or encoding compression rate; the destination device receives the display data sent by the N source devices respectively according to the first screen projection parameters, and simultaneously displays the display data sent by the N source devices in the screen projection interface.
[0021] When the number of source devices is different, the destination device can negotiate with the source device for the projection parameters used during this projection. When the number of source devices is large, the projection parameters can be adjusted to prioritize the display smoothness during projection; when the number of source devices is small, the projection parameters can be adjusted to prioritize the display clarity during projection, so that users can get a better experience in different projection scenarios.
[0022] In one possible implementation, the destination device negotiates with N source devices respectively on first screen projection parameters to be used during screen projection based on the number of source devices N, including: the destination device sends a first broadcast to the N source devices, the first broadcast includes the number of source devices N, so that each source device determines the corresponding first screen projection parameters based on the number of source devices N; the destination device receives and saves the first screen projection parameters respectively sent by the N source devices.
[0023] In one possible implementation, the destination device negotiates with N source devices respectively on the first screen projection parameters used when projecting the screen according to the number of source devices N, including: the destination device determines, according to the number of source devices N, a reference threshold of the first screen projection parameter used by each source device when projecting the screen, and the reference threshold is used to indicate the maximum value of the first screen projection parameter supported by the destination device; the destination device sends a first broadcast to the N source devices, and the first broadcast includes the reference threshold of the first screen projection parameter; the destination device receives and saves the first screen projection parameters sent respectively by the N source devices.
[0024] In a possible implementation, after the destination device simultaneously displays the display data sent by the N source devices in the projection interface, it also includes: the destination device determines that the number of source devices that need to be projected and displayed in the destination device is M, where M is a positive integer not equal to N; the destination device negotiates with the M source devices according to the number of source devices M about the second projection parameters used in projection, and the second projection parameters are different from the first projection parameters; the destination device receives the display data sent by the M source devices according to the second projection parameters, and simultaneously displays the display data sent by the M source devices in the projection interface. In other words, whenever the number of source devices changes, the destination device can renegotiate with each current source device about the projection parameters used in this projection.
[0025] In one possible implementation, the destination device determines that the number of source devices that need to be projected and displayed in the destination device is N, including: the destination device determines the number of source devices N based on the number of projection instructions sent by the source device; or, the destination device determines the number of source devices N based on the number of established communication connections.
[0026] Exemplarily, the above-mentioned first screen projection parameters may include a first screen projection resolution, and the second screen projection parameters include a second screen projection resolution; if M is greater than N, the first screen projection resolution is greater than the second screen projection resolution; if M is less than N, the first screen projection resolution is less than the second screen projection resolution.
[0027] That is to say, when there are many source devices for screen projection, the screen projection resolution can be reduced to improve the display smoothness of the target device during screen projection. Correspondingly, when there are fewer source devices for screen projection, the screen projection resolution can be increased to improve the display clarity of the target device during screen projection.
[0028] Exemplarily, the first screen projection parameters include a first encoding compression rate, and the second screen projection parameters include a second encoding compression rate; if M is greater than N, the first encoding compression rate is less than the second encoding compression rate; if M is less than N, the first encoding compression rate is greater than the second encoding compression rate.
[0029] That is to say, when there are many source devices for screen projection, the encoding compression rate can be increased to improve the display smoothness of the target device during screen projection. Correspondingly, when there are fewer source devices for screen projection, the encoding compression rate can be reduced to improve the display clarity of the target device during screen projection.
[0030] Exemplarily, the first screen projection parameters include a first transmission bit rate, and the second screen projection parameters include a second transmission bit rate; if M is greater than N, the first transmission bit rate is greater than the second transmission bit rate; if M is less than N, the first transmission bit rate is less than the second transmission bit rate.
[0031] That is to say, when there are many source devices for screen projection, the transmission bit rate can be reduced to improve the display smoothness of the target device during screen projection. Correspondingly, when there are fewer source devices for screen projection, the transmission bit rate can be increased to improve the display clarity of the target device during screen projection.
[0032] In a fourth aspect, the present application provides an electronic device, which is a source device for screen projection, and the source device includes: a display screen, one or more processors, one or more memories, and one or more computer programs; wherein the processor is coupled to the display screen and the memory, and the one or more computer programs are stored in the memory. When the source device is running, the processor executes the one or more computer programs stored in the memory, so that the source device executes the screen projection display method described in any one of the first and second aspects and possible implementation methods therein.
[0033] In a fifth aspect, the present application provides an electronic device, which is a destination device for screen projection, and the destination device includes: a display screen, one or more processors, one or more memories, and one or more computer programs; wherein the processor is coupled to the display screen and the memory, and the one or more computer programs are stored in the memory, and when the destination device is running, the processor executes the one or more computer programs stored in the memory, so that the destination device executes the screen projection display method described in any one of the third aspect and possible implementation methods therein.
[0034] In a sixth aspect, the present application provides a computer storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a screen projection display method as described in any one of the first to third aspects and possible implementation methods thereof.
[0035] In a seventh aspect, the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes a screen projection display method as described in any one of the first to third aspects and possible implementation methods thereof.
[0036] It can be understood that the electronic device described in the fourth and fifth aspects, the computer storage medium described in the sixth aspect, and the computer program product described in the seventh aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A scene architecture of a projection display system provided in an embodiment of the present application Figure 1 ;
[0038] Figure 2 A scene architecture of a projection display system provided in an embodiment of the present application Figure 2 ;
[0039] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 1 ;
[0040] Figure 4 An interactive diagram of a screen projection display method provided in an embodiment of the present application Figure 1 ;
[0041] Figure 5 An application scenario diagram of a screen projection display method provided in an embodiment of the present application Figure 1 ;
[0042] Figure 6An application scenario diagram of a screen projection display method provided in an embodiment of the present application Figure 2 ;
[0043] Figure 7 An application scenario diagram of a screen projection display method provided in an embodiment of the present application Figure 3 ;
[0044] Figure 8 An application scenario diagram of a screen projection display method provided in an embodiment of the present application Figure 4 ;
[0045] Fig. 9 An application scenario diagram of a screen projection display method provided in an embodiment of the present application Figure 5 ;
[0046] Fig.10 An interactive diagram of a screen projection display method provided in an embodiment of the present application Figure 2 ;
[0047] Fig.11 An application scenario diagram of a screen projection display method provided in an embodiment of the present application Figure 6 ;
[0048] Fig.12 An application scenario diagram of a screen projection display method provided in an embodiment of the present application Figure 7 ;
[0049] Fig.13 An application scenario diagram of a screen projection display method provided in an embodiment of the present application Figure 8 ;
[0050] Fig.14 An application scenario diagram of a screen projection display method provided in an embodiment of the present application Figure 9 ;
[0051] Fig.15 An interactive diagram of a screen projection display method provided in an embodiment of the present application Figure 3 ;
[0052] Fig.16 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0053] The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
[0054] A screen projection display method provided in an embodiment of the present application can be applied to Figure 1In a device group 200 shown, the electronic devices 100 in the device group 200 can communicate with each other via a local area network (LAN) or a wide area network (WAN).
[0055] For example, a user's mobile phone, tablet computer, desktop computer, smart watch and laptop computer can be regarded as device group 200. When the user uses the same account to log in to the mobile phone, tablet computer, desktop computer, smart watch and laptop computer, the mobile phone, tablet computer, desktop computer and laptop computer can communicate with each other through the wide area network.
[0056] For another example, a user's mobile phone, tablet computer, desktop computer, smart watch and laptop computer can be connected to the same router. At this time, the mobile phone, tablet computer, desktop computer, smart watch and laptop computer can form a local area network, and each device in the local area network can communicate with each other through the router.
[0057] For another example, the electronic devices 100 may also form a peer-to-peer network (also referred to as a P2P network) through wireless communication (e.g., Bluetooth, Wi-Fi, or ZigBee network, etc.). For example, a user may add a mobile phone, a tablet computer, a smart speaker, and a laptop computer to a Wi-Fi network named "1234". Each electronic device 100 in the Wi-Fi network forms a P2P network, and all devices in the P2P network are members of the device group 200.
[0058] Of course, the electronic devices 100 in the device group 200 can also be interconnected through a cellular network, or the electronic devices 100 can also be interconnected through a switching device (for example, a USB data cable or a Dock device), so as to realize the communication function between the electronic devices 100 in the device group 200. The embodiment of the present invention does not impose any restrictions on this.
[0059] In the embodiment of the present application, one or more electronic devices 100 in the device group 200 can be used as source devices, and at the same time, one or more electronic devices 100 in the device group 200 can be used as destination devices. The source device can project the display content in its display interface to the destination device for display.
[0060] For example, Figure 2 As shown in (a) of FIG. 1 , taking electronic device 101 as a source device, electronic device 102 and electronic device 103 can both be destination devices of electronic device 101. Electronic device 101 can project the display content in its display interface to electronic device 102 and electronic device 103 for display at the same time. In other words, one source device can simultaneously project the screen to multiple destination devices.
[0061] Or, if Figure 2 As shown in (b), taking electronic device 101 as the destination device, electronic device 102 and electronic device 103 can both be used as source devices of electronic device 101. At this time, electronic device 102 and electronic device 103 can simultaneously project the display contents in their display interfaces to electronic device 101 for display. In other words, one destination device can simultaneously receive and display the display contents sent by multiple source devices.
[0062] When the destination device in device group 200 displays the display content projected by the source device, the destination device can negotiate with each source device for the projection parameters used for this projection according to the number of current source devices. For example, the projection parameters may include one or more of projection resolution, transmission bit rate, encoding compression rate, etc.
[0063] For example, if the number of current source devices is small, each source device can set the resolution of each frame of the display screen sent during screen projection to be larger. In this way, the destination device can play each frame of the display screen projected by the source device at a larger resolution, and the destination device can improve the clarity of the display screen during screen projection. At the same time, since the number of source devices is small, the source device can use a larger transmission bandwidth and a faster transmission speed during screen projection, and the load of the destination device will not be too high, thereby ensuring the display smoothness during screen projection.
[0064] Correspondingly, if there are a large number of current source devices, each source device can set the resolution of each frame of the display image sent during screen projection to be smaller. In this way, although the resolution of the target device is reduced when playing the display image projected by the source device, the bandwidth pressure when multiple source devices transmit the display image to the target device is reduced, and the load of the target device is also reduced accordingly. Therefore, the display smoothness of multiple source devices when projecting can be guaranteed.
[0065] That is to say, when casting the screen, the source device and the destination device can dynamically negotiate the casting parameters when casting the screen to the destination device. When the number of source devices is large, the display smoothness during casting can be prioritized by adjusting the casting parameters; when the number of source devices is small, the display clarity during casting can be prioritized by adjusting the casting parameters, so that users can get a better user experience in different casting scenarios.
[0066] In some embodiments, the specific structures of the electronic devices in the device group 200 may be the same or different.
[0067] For example, the above-mentioned electronic devices can specifically be mobile phones, tablet computers, smart TVs, wearable electronic devices, car computers, laptops, ultra-mobile personal computers (ultra-mobile personal computers, UMPCs), handheld computers, netbooks, personal digital assistants (personal digital assistants, PDAs), virtual reality devices, etc., and the embodiments of the present application do not impose any restrictions on this.
[0068] For example, Figure 3 A structural schematic diagram of an electronic device is shown.
[0069] Among them, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a camera 193, a display screen 194, etc.
[0070] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0071] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0072] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0073] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0074] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of an electronic device. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0075] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0076] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0077] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0078] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 150 may include one or more filters, switches, power amplifiers, low noise amplifiers (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0079] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0080] The wireless communication module 160 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 can be one or more devices integrating one or more communication processing modules. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0081] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0082] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0083] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0084] The electronic device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0085] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0086] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0087] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.
[0088] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0089] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0090] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can execute the above instructions stored in the internal memory 121, so that the electronic device performs the screen projection display method provided in some embodiments of the present application, as well as various functional applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, universal flash storage (UFS), etc. In other embodiments, the processor 110 executes the instructions stored in the internal memory 121, and / or the instructions stored in the memory provided in the processor, so that the electronic device executes the screen projection display method provided in the embodiment of the present application, as well as various functional applications and data processing.
[0091] The electronic device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0092] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0093] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device can listen to music or listen to a hands-free call through the speaker 170A.
[0094] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0095] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device can be provided with one or more microphones 170C. In other embodiments, the electronic device can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording function, etc.
[0096] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0097] The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc. A touch sensor may be provided on a display screen, and a touch screen composed of the touch sensor and the display screen is also called a "touch screen".
[0098] In addition, the above-mentioned electronic device may also include one or more components such as buttons, motors, indicators, and SIM card interfaces, and the embodiments of the present application do not impose any restrictions on this.
[0099] A screen projection display method provided by an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0100] like Figure 4 As shown, taking the target device for screen projection as a smart TV and the source device as mobile phone A as an example, a screen projection display method provided in an embodiment of the present application includes:
[0101] S401: The smart TV establishes a communication connection with mobile phone A.
[0102] For example, the smart TV and mobile phone A can establish a communication connection via a wireless method (such as Bluetooth, Wi-Fi or WLAN direct connection). Alternatively, the smart TV and mobile phone A can also establish a communication connection via a wired method (such as a USB data cable, a dock device).
[0103] For example, if a smart TV and mobile phone A establish a Wi-Fi connection, the user can turn on the Wi-Fi function of the smart TV and mobile phone A and connect to the same Wi-Fi network. If the user wants to project the display content in mobile phone A to the smart TV, the user can turn on the screen projection app installed on the smart TV and mobile phone A. Figure 5 As shown, after the user opens the screen casting APP in mobile phone A, mobile phone A can display interface 501. Mobile phone A can display the searched device list 502 located in the same Wi-Fi network in interface 501. For example, the device list 502 includes the logo 503 of the smart TV. Furthermore, if it is detected that the user selects the logo 503 in the device list 502, mobile phone A can establish a Wi-Fi connection with the smart TV through the WLAN direct connection function.
[0104] In addition, after the user selects the identifier 503 in the device list 502, the smart TV may also prompt the user to confirm the establishment of a Wi-Fi connection with mobile phone A. When the smart TV detects that the user confirms the establishment of this Wi-Fi connection, mobile phone A may establish a Wi-Fi connection with the smart TV through the WLAN direct connection function.
[0105] For example, after the user opens the screen casting app on the smart TV and mobile phone A, Figure 6 As shown, the smart TV can also display a QR code 601 as an access point (AP) by default. The QR code 601 can carry the identification of the smart TV, such as the MAC address or IP address of the TV. Furthermore, the user can use the scanning function provided by the screen projection APP in mobile phone A to scan the QR code 601 to obtain the identification of the smart TV. In this way, mobile phone A can establish a Wi-Fi connection with the smart TV through the WLAN direct connection function according to the identification of the smart TV.
[0106] After the smart TV and mobile phone A establish a communication connection, the smart TV and mobile phone A form a device group. The members in the device group can be dynamically increased or decreased.
[0107] S402. Mobile phone A sends a first screen projection instruction to the smart TV.
[0108] Let's take the example of a user using the screen casting app on mobile phone A to establish a Wi-Fi connection with a smart TV. Figure 5 As shown, the interface 501 displayed by mobile phone A may also include a screen casting option 504. If it is detected that the user selects the smart TV logo 503 and clicks the screen casting option 504, the mobile phone can send a first screen casting instruction to the target device (i.e., smart TV) selected by the user as the source device. For example, the screen casting instruction may include the logo of mobile phone A, and after receiving the first screen casting instruction, the smart TV may determine that the source device for subsequent screen casting is mobile phone A.
[0109] Of course, after the user selects the smart TV logo 503, the user can also manually set the smart TV as the source device or the target device in the screen casting APP. When the user sets the smart TV as the target device, mobile phone A is the source device of the smart TV; when the user sets the smart TV as the source device, mobile phone A is the destination device of the smart TV. This embodiment of the application does not impose any restrictions on this.
[0110] S403. In response to the first screen projection instruction, the smart TV sends a first broadcast, where the first broadcast includes the number 1 of the current source device.
[0111] Still taking the smart TV as the destination device as an example, after the smart TV receives the first screen projection instruction sent by mobile phone A, the smart TV can determine the number of source devices that currently need to be projected. For example, the smart TV can determine the number of source devices based on the number of current Wi-Fi connections. If the smart TV currently has a Wi-Fi connection established between N (N ≥ 1, and N is an integer) devices, it can be determined that the current number of source devices is N. For another example, the smart TV can determine the number of source devices based on the number of screen projection instructions received. If the smart TV has currently received screen projection instructions sent by N devices, it can be determined that the current number of source devices is N.
[0112] Taking the example of a smart TV whose source devices only include mobile phone A, after the smart TV determines that the current number of source devices is 1, it can broadcast the current number of source devices 1 to each member in the device group in the form of a broadcast, that is, the smart TV can send the first broadcast carrying the current number of source devices 1 in the device group.
[0113] S404. Mobile phone A determines the first screen projection parameter when projecting the screen according to the number 1 of the current source device.
[0114] In an embodiment of the present application, before screen projection, mobile phone A (i.e., source device) can dynamically determine the first screen projection parameters to be used in this screen projection based on the number of current source devices. The first screen projection parameters may include one or more of screen projection resolution, transmission bit rate, encoding compression rate, etc.
[0115] Exemplarily, taking the screen projection resolution as an example, when the source device (such as mobile phone A) projects the screen to the destination device (such as a smart TV), each frame of the display interface of mobile phone A can be sent to the smart TV in the form of a picture for display. In the prior art, the resolution of each frame of the picture sent by mobile phone A when projecting the screen to the smart TV (i.e., the screen projection resolution) is certain. For example, if the resolution of mobile phone A is 1080p (i.e., 1920*1080), then mobile phone A can send each frame of the picture at a projection resolution of 1080p. However, when the number of source devices of the smart TV is large, if each source device transmits the display data during projection at a projection resolution of 1080p, the transmission bandwidth available to each source device will be significantly reduced, and the processing power of the smart TV will also be significantly reduced, resulting in freezes and other phenomena in the destination device during projection.
[0116] In an embodiment of the present application, after mobile phone A receives the first broadcast sent by the smart TV, it can determine the projection resolution of each frame of the display interface during subsequent projection according to the number of current source devices in the first broadcast. For example, if the current number of source devices is 1, mobile phone A can determine that the projection resolution of the display interface sent to the smart TV during projection is 1080p. If the current number of source devices is 2, mobile phone A can determine that the projection resolution of the display interface sent to the smart TV during projection is 720p (i.e., 1280x720). In other words, the more source devices there are, the smaller the projection resolution determined by mobile phone A; when the number of source devices is smaller, the larger the projection resolution determined by mobile phone A.
[0117] For example, the correspondence between the number of different source devices and the projection resolution can be pre-stored in mobile phone A. After the mobile phone obtains the above-mentioned first broadcast, it can find the projection resolution corresponding to the current number of source devices 1 according to the correspondence. In this way, when there are many source devices for projection, mobile phone A (ie, the source device) can reduce the projection resolution to improve the display smoothness of the target device during projection. Correspondingly, when there are fewer source devices for projection, mobile phone A (ie, the source device) can increase the projection resolution to improve the display clarity of the target device during projection.
[0118] Exemplarily, taking the encoding compression rate as an example, in order to reduce the amount of data transmission during screen projection, when mobile phone A (i.e., the source device) sends the display data that needs to be projected to the smart TV (i.e., the destination device), a certain encoding and decoding protocol will be used to encode and compress the display data. For example, the encoding and decoding protocol can be H.263, H.264, or H.265. In the prior art, the encoding compression rate of encoding and compression when mobile phone A projects the screen to the smart TV is certain. However, when the number of source devices of the smart TV is large, if each source device is encoded according to the same encoding compression rate, the available transmission bandwidth of each source device will be significantly reduced, and the processing power of the smart TV will be significantly reduced, resulting in freezes and other phenomena in the destination device during screen projection.
[0119] In the embodiment of the present application, after receiving the first broadcast sent by the smart TV, mobile phone A can determine the encoding compression rate for subsequent screen projection according to the number of current source devices in the first broadcast. For example, when the number of source devices is greater, the encoding compression rate determined by mobile phone A is greater; when the number of source devices is smaller, the encoding compression rate determined by mobile phone A for screen projection is smaller.
[0120] Taking the codec protocol specified in H.264 as an example, when the source device (such as mobile phone A) encodes the data stream composed of each frame of the display interface, it can encode the data stream into multiple I frames and multiple P frames in sequence. Among them, the I frame, also known as the intra-frame coded frame, is an independent frame with all its own information and can be decoded independently without referring to other images. The P frame, also known as the inter-frame prediction coded frame, requires reference to the previous I frame to be encoded. The P frame is used to indicate the difference between the current frame and the previous frame (the previous frame may be an I frame or a P frame). The amount of data when the source device transmits an I frame is much greater than the amount of data when transmitting a P frame.
[0121] For example, mobile phone A can use the number of P frames between adjacent I frames to represent the encoding compression rate. When the number of P frames between adjacent I frames is more, the encoding compression rate is higher, and the amount of data transmitted by the source device during screen projection is less; when the number of P frames between adjacent I frames is less, the encoding compression rate is lower, and the amount of data transmitted by the source device during screen projection is more.
[0122] Exemplarily, the correspondence between the number of different source devices and the encoding compression rate can be pre-stored in mobile phone A. For example, when the number of source devices is 1, the number of P frames between adjacent I frames can be set to 5; when the number of source devices is 2, the number of P frames between adjacent I frames can be set to 10. Then, after the mobile phone obtains the above-mentioned first broadcast, it can find the encoding compression rate corresponding to the current number of source devices 1 according to the correspondence.
[0123] In this way, when there are many source devices for screen projection, mobile phone A (i.e., source device) can increase the encoding compression rate to improve the display smoothness of the target device during screen projection. Correspondingly, when there are fewer source devices for screen projection, mobile phone A (i.e., source device) can reduce the encoding compression rate to improve the display clarity of the target device during screen projection.
[0124] In addition, there is a certain functional relationship between the encoding compression rate and the transmission bit rate. When mobile phone A sets the encoding compression rate, the transmission bit rate during screen projection is also fixed accordingly; when mobile phone A sets the transmission bit rate, the encoding compression rate during screen projection is also fixed accordingly. Generally, the higher the encoding compression rate, the lower the corresponding transmission bit rate. Then, when there are more source devices for screen projection, mobile phone A (ie, the source device) can reduce the transmission bit rate to improve the display smoothness of the target device during screen projection. Correspondingly, when there are fewer source devices for screen projection, mobile phone A (ie, the source device) can increase the transmission bit rate to improve the display clarity of the target device during screen projection.
[0125] Exemplarily, when determining the first screen projection parameter, mobile phone A can determine one of the encoding compression rate and the transmission bit rate according to the number of source devices. Furthermore, mobile phone A can determine the other of the encoding compression rate and the transmission bit rate according to the functional relationship between the encoding compression rate and the transmission bit rate.
[0126] For example, the mobile phone may pre-store the correspondence between the number of different source devices and the transmission bit rate. For example, when the number of source devices is 1, the corresponding transmission bit rate is 5M; when the number of source devices is 2, the corresponding transmission bit rate is 2M. After the mobile phone obtains the above-mentioned first broadcast, it can also determine the transmission bit rate corresponding to the current number of source devices according to the correspondence. Furthermore, the mobile phone can determine the encoding compression rate corresponding to the above-mentioned transmission bit rate according to the functional relationship between the encoding compression rate and the transmission bit rate.
[0127] In addition, mobile phone A may support one or more codec protocols, and the smart TV may also support one or more codec protocols. Then, mobile phone A and the smart TV can also negotiate the codec protocol to be used this time before casting the screen. For example, the smart TV can carry the codec protocols supported by the smart TV, which are H.264 and H.265, in the above-mentioned first broadcast. Then, after mobile phone A receives the first broadcast, it can choose one of the two codec protocols, H.264 and H.265. Taking the example of mobile phone A selecting the H.265 codec protocol, mobile phone A can send the identifier corresponding to the H.265 codec protocol to the smart TV. In this way, both the smart TV and mobile phone A can determine that the codec protocol used for this screen casting is H.265.
[0128] In other embodiments, the smart TV may also provide the user with setting options or setting menus for manually setting the screen projection parameters. For example, before sending the first broadcast to the source device in the device group, the smart TV may display a first option of "clarity priority" and a second option of "fluency priority". If it is detected that the user selects the first option, the smart TV may carry a "clarity priority" logo (e.g., logo A) in the first broadcast. If it is detected that the user selects the second option, the smart TV may carry a "fluency priority" logo (e.g., logo B) in the first broadcast.
[0129] Then, if mobile phone A parses out identifier A in the first broadcast, when setting the first screen projection parameters, mobile phone A can increase the above-mentioned screen projection parameters, increase the transmission bit rate, or reduce the compression encoding rate, one or more parameters to ensure that the user's demand for clarity is prioritized when projecting the screen. Correspondingly, if mobile phone A parses out identifier B in the first broadcast, when setting the first screen projection parameters, mobile phone A can reduce the above-mentioned screen projection parameters, reduce the transmission bit rate, or increase the compression encoding rate, one or more parameters to ensure that the user's demand for fluency is prioritized when projecting the screen.
[0130] Of course, the smart TV and mobile phone A can also automatically negotiate the first projection parameters for this projection according to the above method, and the user can manually modify the first projection parameters in the settings menu of mobile phone A or the smart TV. Furthermore, the smart TV and mobile phone A can perform projection display according to the first projection parameters manually modified by the user, and the embodiment of the present application does not impose any restrictions on this.
[0131] S405. Mobile phone A sends the first screen projection parameters to the smart TV for storage.
[0132] Generally, large-screen devices (such as smart TVs) have higher display capabilities than mobile terminals such as mobile phone A. Therefore, smart TVs are generally able to support the first screen projection parameters determined by mobile phone A. Then, after mobile phone A determines the first screen projection parameters when projecting the screen, it can send the first screen projection parameters to the smart TV for storage, so that the smart TV can subsequently decode and display the display data sent by mobile phone A according to the first screen projection parameters.
[0133] Alternatively, after mobile phone A determines the first screen projection parameter for screen projection based on the number 1 of the current source device, it can send the first screen projection parameter to the smart TV for negotiation. For example, the first screen projection parameter determined by mobile phone A includes: the screen projection resolution is 1080p, and the transmission bit rate is 5M. After receiving the first screen projection parameter, the smart TV can determine whether it supports the first screen projection parameter. If the smart TV does not support the screen projection resolution of 1080p, or does not support the transmission bit rate of 5M, the smart TV can send multiple screen projection resolutions or transmission bit rates that it supports to mobile phone A. Mobile phone A can redetermine the above-mentioned first screen projection parameter among the multiple screen projection resolutions or transmission bit rates sent by the smart TV.
[0134] Of course, if the smart TV receives the first screen projection parameters sent by mobile phone A and determines that its own display capabilities can support the first screen projection parameters, the smart TV can save the first screen projection parameters so that the smart TV can subsequently decode and display the display data sent by mobile phone A according to the first screen projection parameters.
[0135] It should be noted that the above embodiment is illustrated by the example that mobile phone A determines the first projection parameter of mobile phone A when projecting the screen according to the number of current source devices. It is understandable that the smart TV can also determine the first projection parameter of mobile phone A when projecting the screen according to the number of current source devices.
[0136] For example, the smart TV can obtain a configuration file corresponding to mobile phone A from the server. The configuration file records the projection parameters such as the projection resolution and encoding compression rate corresponding to different numbers of source devices. If the current number of source devices is 1, the smart TV can determine the first projection parameter corresponding to 1 source device in the configuration file. In addition, the smart TV can send the determined first projection parameter to mobile phone A for storage, so that mobile phone A can subsequently encode the display data projected to the smart TV according to the first projection parameter.
[0137] S406. Mobile phone A sends the first display data being displayed in mobile phone A to the smart TV according to the first screen projection parameter.
[0138] After mobile phone A and the smart TV negotiate the first projection parameters for this projection, the mobile phone can generate display data that needs to be projected to the smart TV according to the first projection parameters.
[0139] For example, Figure 7 As shown in (a), after the user turns on the screen projection function in mobile phone A, the user opens the game APP to display the first interface 701. At this time, mobile phone A needs to project the first interface 701 to the smart TV for display. Then, mobile phone A can encode the first interface 701 according to the screen projection resolution and encoding compression rate negotiated in the first screen projection parameter, and send the encoded data stream (i.e., the first display data) to the smart TV.
[0140] It should be noted that mobile phone A can encode the entire first interface 701 according to the first projection parameter, or encode part of the display content in the first interface 701 according to the first projection parameter. In other words, mobile phone A can project the entire first interface 701 to the smart TV for display, or project part of the display content in the first interface 701 to the smart TV for display, and the embodiment of the present application does not impose any restrictions on this.
[0141] S407: The smart TV displays the first display data according to the first screen projection parameters.
[0142] Still taking the example of mobile phone A projecting the first interface 701 onto the smart TV, as shown in FIG. Figure 7 As shown in (b), after receiving the first display data sent by mobile phone A, the smart TV can decode and display the first display data according to the negotiated first projection parameters. For example, the smart TV can restore the first interface 701 using a decoding method corresponding to the encoding compression rate in the first projection parameters, and display the first interface 701 according to the projection resolution in the first projection parameters.
[0143] For example, Figure 7 As shown in (b) of FIG. 1 , the smart TV can display the first interface 701 projected by mobile phone A in the center according to the first projection parameter. Figure 8 As shown, the smart TV can also display the first interface 701 in the preset area 1 according to the first screen projection parameter, and the smart TV can continue to display the above QR code 601 in the preset area 2. Other source devices can still establish a communication connection with the smart TV by scanning the QR code 601 and start screen projection.
[0144] For example, Fig. 9 As shown in (a) of FIG. 1 , when the smart TV displays the first interface 701 projected by the mobile phone A, the QR code 601 may be hidden. In addition, the smart TV may display an option 901 for calling the QR code 601. If it is detected that the user selects option 901 in the smart TV, Fig. 9 As shown in (b), the smart TV can redisplay the QR code 601 while displaying the first interface 701, so that other source devices can establish a communication connection with the smart TV by scanning the QR code 601 and start screen projection.
[0145] In the above embodiment, the number of source devices of the smart TV is 1 (i.e., the mobile phone A). It is understandable that the smart TV can dynamically receive display data sent by one or more source devices for screen projection display. When the number of source devices of the smart TV changes, the projection parameters used by each source device when projecting to the smart TV will also change dynamically.
[0146] For example, when mobile phone A is projecting data to the smart TV, other source devices can also establish a communication connection with the smart TV and project their own display data to the smart TV. Fig.10 As shown, a screen projection display method provided in an embodiment of the present application also includes:
[0147] S1001. The smart TV establishes a communication connection with mobile phone B.
[0148] The process of establishing a communication connection between the smart TV and the mobile phone B is similar to the process of establishing a communication connection between the smart TV and the mobile phone A in step S401. For example, mobile phone B can scan Fig. 9 The QR code 601 shown in (b) in the figure is used to obtain the identification of the smart TV, and a Wi-Fi connection is established with the smart TV according to the identification of the smart TV. This embodiment of the present application will not be described in detail.
[0149] After the smart TV establishes a communication connection with mobile phone B, if the smart TV still maintains a communication connection with mobile phone A, then the smart TV, mobile phone A and mobile phone B constitute a device group. Similarly, the members in the device group can be dynamically increased or decreased.
[0150] S1002. Mobile phone B sends a second screen projection instruction to the smart TV.
[0151] Among them, the process of mobile phone B sending the second screen projection instruction to the smart TV is similar to the process of mobile phone A sending the first screen projection instruction to the smart TV in step S402, so it will not be repeated here.
[0152] S1003. In response to the second screen projection instruction, the smart TV sends a second broadcast, which includes the number of the current source device 2.
[0153] After the smart TV receives the second screen projection instruction sent by mobile phone B, it indicates that a new source device has joined the current screen projection process. The smart TV can re-determine the number of source devices that currently need to be projected.
[0154] For example, if the source devices of the smart TV are mobile phone A and mobile phone B, after the smart TV determines that the number of current source devices is 2, it can broadcast the number of current source devices 2 to each member in the device group in the form of broadcast, that is, the smart TV can send a second broadcast carrying the number of current source devices 2 in the device group. Both mobile phone A and mobile phone B in the device group can receive the second broadcast.
[0155] S1004a. Mobile phone A determines the second screen projection parameters when projecting the screen according to the number of current source devices 2.
[0156] Similar to step S404, in step S1004a, after mobile phone A receives the number of source devices 2 in the second broadcast, it can re-determine the second projection parameters corresponding to the number of source devices 2. Similar to the first projection parameters, the second projection parameters may include one or more of projection resolution, transmission bit rate, encoding compression rate, etc.
[0157] For example, if the current number of source devices is 2, mobile phone A can reduce the projection resolution in the second projection parameter from 1080p to 720p according to the pre-stored correspondence between the number of different source devices and the projection resolution.
[0158] For another example, if the current number of source devices is 2, mobile phone A can set the encoding compression rate in the second projection parameter to set one I frame for every 10 P frames based on the pre-stored correspondence between the number of different source devices and the encoding compression rate.
[0159] That is to say, when the number of source devices increases, the second screen projection parameters determined by mobile phone A can prioritize the display smoothness during screen projection, and avoid problems such as display freeze and delay on the destination device caused by multiple source devices projecting at the same time after the number of source devices increases.
[0160] S1005a. Mobile phone A sends the second screen projection parameters to the smart TV for storage.
[0161] Similar to step S405, in step S1005a, after mobile phone A determines the second screen projection parameters, the second screen projection parameters can be sent to the smart TV. If the display capability of the smart TV supports the second screen projection parameters, the smart TV can save the second screen projection parameters. Otherwise, the smart TV can continue to negotiate with mobile phone A the second screen projection parameters when there are two source devices.
[0162] S1006a. Mobile phone A sends the second display data being displayed in mobile phone A to the smart TV according to the second screen projection parameters.
[0163] Similar to step S406, in step S1006a, after mobile phone A negotiates with the smart TV to determine the second projection parameters to be used in subsequent projection, the mobile phone can generate second display data that needs to be projected to the smart TV according to the second projection parameters.
[0164] like Figure 7 As shown in (a), mobile phone A originally uses the first projection parameters to project the display data of the first interface 701 (i.e., the first display data) to the smart TV. When mobile phone B joins this projection as the source device, mobile phone A re-negotiates with the smart TV to obtain the second projection parameters used in subsequent projection. Fig.11 As shown, if mobile phone A is displaying the second interface 1101 of the game APP, mobile phone A can use the second screen projection parameters to send the display data of the second interface 1101 (ie, the second display data) to the smart TV.
[0165] S1004b. Mobile phone B determines the third screen projection parameter when projecting the screen according to the number of current source devices 2.
[0166] Similar to step S1004a, in step S1004b, after mobile phone B receives the number of source devices 2 in the second broadcast, it can determine the third projection parameter corresponding to the number of source devices 2. Similar to the first projection parameter and the second projection parameter, the third projection parameter may include one or more of projection resolution, transmission bit rate, encoding compression rate, etc.
[0167] Among them, the third screen projection parameters can be the same as or different from the second screen projection parameters. That is to say, the specific screen projection parameters negotiated by each source device and the destination device can be the same or different. Similar to the second screen projection parameters, when the number of source devices is large during screen projection, the third screen projection parameters determined by mobile phone B can give priority to ensuring the display smoothness during screen projection, and avoid problems such as display freeze and delay on the destination device when multiple source devices are projected at the same time after the number of source devices increases.
[0168] Correspondingly, if the number of source devices projecting the screen to the smart TV is reduced, the probability of the smart TV freezing during projection is lower. Then, the projection parameters determined by the source device at this time can prioritize the display clarity during projection, so that users can get a better user experience in different projection scenarios.
[0169] S1005b. Mobile phone B sends the third screen projection parameters to the smart TV for storage.
[0170] Similar to step S1005a, in step S1005b, after mobile phone B determines the third screen projection parameter, the third screen projection parameter can be sent to the smart TV. If the display capability of the smart TV supports the third screen projection parameter, the smart TV can save the third screen projection parameter. Otherwise, the smart TV can continue to negotiate with mobile phone B the third screen projection parameter when there are two source devices.
[0171] S1006b. Mobile phone B sends the third display data being displayed in mobile phone B to the smart TV according to the third screen projection parameters.
[0172] Similar to step S1006a, in step S1006b, after mobile phone B negotiates with the smart TV to determine the third projection parameters to be used in subsequent projection, the mobile phone can generate the third display data that needs to be projected to the smart TV according to the third projection parameters.
[0173] like Fig.12 As shown, when mobile phone B joins this screen projection as a source device, mobile phone B can display the third interface 1201 of the game APP. After mobile phone B negotiates with the smart TV to use the third screen projection parameters for subsequent screen projection, the third screen projection parameters can be used to send the display data of the third interface 1201 (i.e., the third display data) to the smart TV.
[0174] S1007: The smart TV displays the second display data and the third display data simultaneously in a display interface.
[0175] like Fig.13 As shown, after the smart TV receives the second display data sent by mobile phone A, it can decode the second display data according to the second screen projection parameters negotiated with mobile phone A, and display the second interface 1101 corresponding to the second display data in the first preset area of the smart TV according to the second screen projection parameters.
[0176] At the same time, Fig.13 As shown, after the smart TV receives the third display data sent by mobile phone B, it can decode the third display data according to the third screen projection parameters negotiated with mobile phone B, and display the third interface 1201 corresponding to the third display data in the second preset area of the smart TV according to the third screen projection parameters.
[0177] In this way, the smart TV, as a destination device, can simultaneously receive display data from one or more source devices for screen projection. Moreover, whenever the number of source devices changes, the destination device can renegotiate with the source devices the projection parameters used for this projection. When the number of source devices is large, the display smoothness during projection can be prioritized by adjusting the projection parameters; when the number of source devices is small, the display clarity during projection can be prioritized by adjusting the projection parameters, so that users can get a better user experience in different projection scenarios.
[0178] In addition, Fig.13 As shown, when the smart TV displays the second interface 1101 and the third interface 1201, it can also display an option 1301 for calling the QR code 601. If it is detected that the user selects option 1301 in the smart TV, Fig.14 As shown, while displaying the second interface 1101 and the third interface 1201, the smart TV can redisplay the QR code 601 of the smart TV so that other source devices can establish a communication connection with the smart TV by scanning the QR code 601 and start screen projection.
[0179] Then, when a new device joins the device group to project the screen to the smart TV, the smart TV and each source device can continue to negotiate the projection parameters used by each source device after the number of source devices changes according to the above method.
[0180] Similarly, if it is detected that an existing source device exits the current screen projection, the smart TV can also continue to negotiate with each source device according to the above method about the screen projection parameters used by each source device after the number of source devices changes.
[0181] For example, when the smart TV detects that the communication connection between mobile phone A and the smart TV is disconnected, or when the smart TV detects that mobile phone A sends an instruction to stop screen projection, the smart TV can determine that the number of current source devices has been reduced from 2 to 1. Furthermore, the smart TV can send a third broadcast to the source devices in the device group, and the number of current source devices included in the third broadcast is 1. At this time, the source devices in the device group only include mobile phone B. After mobile phone B receives the third broadcast, similar to the above steps S404-S405, mobile phone B can determine the third projection parameters when projecting the screen according to the number of current source devices 1, and send the determined third projection parameters to the smart TV for storage. Since the number of source devices in the device group is reduced, mobile phone B can increase the projection resolution, reduce the compression coding rate, or increase the transmission bit rate when determining the third projection parameters to improve the display clarity of the target device (i.e., smart TV) when projecting the screen. Subsequently, mobile phone B and the smart TV can perform screen projection display according to the third projection parameters obtained in this negotiation.
[0182] In other embodiments of the present application, when casting a screen, the destination device may also send a reference threshold of the casting parameters to each source device according to the number of source devices. In this way, each source device may determine appropriate casting parameters within the reference threshold according to its own casting capability, and cast the screen with the destination device according to the determined casting parameters.
[0183] For example, the smart TV is still used as the target device, such as Fig.15 As shown, a screen projection display method provided in an embodiment of the present application includes:
[0184] S1501. When detecting that a source device joins or exits, the smart TV obtains the number N of source devices that currently need to be projected.
[0185] The smart TV can monitor the newly added source devices in the device group, or the source devices in the device group that exit the screen projection function in real time. For example, when the number of source devices currently projecting the screen of the smart TV is 1, if a screen projection instruction is received from a new source device, the smart TV can determine that the number of source devices currently needing to project the screen is increased by one, that is, the number of source devices N=2. For another example, when the number of source devices currently projecting the screen of the smart TV is 2, if the smart TV detects that the communication connection between one of the source devices and the smart TV is disconnected, the smart TV can determine that the number of source devices currently needing to project the screen is reduced by one, that is, the number of source devices N=1.
[0186] When the smart TV determines that the number N of source devices that need to be projected has changed, for example, the number N of source devices increases or decreases, the smart TV can continue to execute the following steps S1502-S1505, and negotiate with each source device on the projection parameters used in this projection to perform projection display.
[0187] S1502: The smart TV determines a reference threshold of a screen projection parameter for each source device when projecting the screen according to the number of source devices N.
[0188] After the smart TV detects the current number of source devices N, it can dynamically negotiate with the source devices based on the current number of source devices N about the projection parameters used during this projection, such as projection resolution, transmission bit rate, or encoding compression rate.
[0189] In the embodiment of the present application, the smart TV can first set a corresponding reference threshold for the screen projection parameter of each source device according to the number of source devices N. Then, the source device determines the screen projection parameter to be finally used according to the reference threshold issued by the smart TV.
[0190] In step S1502, when the number of source devices N is larger, the smart TV can prioritize the display smoothness of the target device during screen projection when setting the reference threshold of the screen projection parameters for each source device; when the number of source devices N is smaller, the smart TV can prioritize the display clarity of the target device during screen projection when setting the reference threshold of the screen projection parameters for each source device.
[0191] Exemplarily, the reference thresholds of the above-mentioned screen projection parameters may include reference thresholds of screen projection resolution. The reference threshold of the screen projection resolution is the maximum screen projection resolution supported by the smart TV when casting the screen. For example, when the number of source devices N=1, the smart TV can set the reference threshold of the screen projection resolution used when the source device is cast to 1080p. When the number of source devices N=2, the smart TV can set the reference threshold of the screen projection resolution used when each source device is cast to 720p. That is to say, when there is only one source device on the smart TV for screen projection, the maximum resolution supported by the smart TV for the source device is 1080p. When there are 2 source devices on the smart TV for screen projection, the maximum resolution supported by the smart TV for each source device is 720p.
[0192] In this way, when there are many source devices for screen projection, the display smoothness of the target device can be improved by reducing the screen projection resolution. Correspondingly, when there are fewer source devices for screen projection, the display clarity of the target device can be improved by increasing the screen projection resolution.
[0193] For another example, the reference threshold of the above-mentioned screen projection parameters may include a reference threshold of the transmission bit rate. The reference threshold of the transmission bit rate is the maximum transmission bit rate supported by the smart TV when casting the screen. For example, when the number of source devices N=1, the smart TV can set the reference threshold of the transmission bit rate of the source device when casting the screen to 5M. When the number of source devices N=2, the smart TV can set the reference threshold of the transmission bit rate of each source device when casting the screen to 3M. In other words, when there is only one source device on the smart TV for screen projection, the maximum transmission bit rate supported by the smart TV for the source device is 5M. When there are 2 source devices on the smart TV for screen projection, the maximum transmission bit rate supported by the smart TV for each source device is 3M.
[0194] In this way, when there are many source devices for screen projection, the display smoothness of the target device can be improved by reducing the transmission bit rate. Correspondingly, when there are fewer source devices for screen projection, the display clarity of the target device can be improved by increasing the transmission bit rate.
[0195] For another example, the reference threshold of the above-mentioned screen projection parameters may include a reference threshold of the encoding compression rate. The reference threshold of the encoding compression rate is the maximum encoding compression rate supported by the smart TV when casting the screen. For example, the encoding compression rate can be represented by the number of P frames between adjacent I frames. When the number of source devices N=1, the smart TV can set the number of P frames between adjacent I frames transmitted by the source device when casting the screen to a maximum of 5. When the number of source devices N=2, the smart TV can set the number of P frames between adjacent I frames transmitted by each source device when casting the screen to a maximum of 10.
[0196] In this way, when there are many source devices for screen projection, the display smoothness of the target device during screen projection can be improved by increasing the encoding compression rate. Correspondingly, when there are fewer source devices for screen projection, the display clarity of the target device during screen projection can be improved by reducing the encoding compression rate.
[0197] It should be noted that the coding compression rate and the transmission bit rate satisfy a certain functional relationship. Then, the source device can determine the reference threshold of one of the two parameters, the coding compression rate and the transmission bit rate. Furthermore, through the preset functional relationship, the source device can determine the reference threshold of the other parameter.
[0198] For example, the correspondence between the number of different source devices N and the reference thresholds of different projection parameters can be pre-set in the smart TV. Then, after the smart TV obtains the current number of source devices N, it can determine the reference thresholds of projection resolution, transmission bit rate or encoding compression rate according to the correspondence.
[0199] Alternatively, each time the smart TV obtains the current number of source devices N, it can also calculate the corresponding reference thresholds of the projection resolution, transmission bit rate or encoding compression rate based on the number of source devices N. For example, when the resolution of the smart TV is 2K (i.e. 2560p), if the number of source devices N=1, the smart TV can set 2560p as the reference threshold of the projection resolution; if the number of source devices N=2, the smart TV can set 1280p (i.e. 2560p / 2) as the reference threshold of the projection resolution. For another example, when the transmission bandwidth of the smart TV is 10M, if the number of source devices N=1, the smart TV can set 10M as the reference threshold of the transmission bit rate; if the number of source devices N=2, the smart TV can set 5M (i.e. 10M / 2) as the reference threshold of the transmission bit rate.
[0200] S1503: The smart TV broadcasts the reference threshold to N source devices.
[0201] In step S1503, after the smart TV determines the reference threshold of the screen projection parameter according to the number of source devices N, it can broadcast the determined reference threshold to each member in the device group in the form of broadcast, so that the N source devices of the smart TV in the device group can all obtain the reference threshold of the screen projection parameter determined by the smart TV.
[0202] In other embodiments, the smart TV may also carry the current number of source devices N in the broadcast. Subsequently, the source device may also determine the screen projection parameters used in this screen projection according to the number of source devices N.
[0203] It can be understood that the smart TV can broadcast the codec protocol supported by the smart TV to the source device.
[0204] S1504. Each source device among the N source devices determines the screen projection parameters used for this screen projection according to the above reference threshold.
[0205] Taking mobile phone A as one of the N source devices of the smart device, after mobile phone A receives the reference threshold of the screen projection parameter sent by the smart TV, it can determine the specific screen projection parameters used for this screen projection based on the screen projection capability of its own device.
[0206] For example, the reference threshold of the screen projection resolution sent by the smart TV is 720p. Then, mobile phone A can obtain the maximum resolution supported by itself. If the maximum resolution supported by mobile phone A is greater than 720p, mobile phone A can determine 720p as the screen projection resolution used during screen projection. If the maximum resolution supported by mobile phone A is less than 720p, mobile phone A can determine the maximum resolution supported by mobile phone A as the screen projection resolution used during screen projection.
[0207] For another example, the reference threshold of the transmission bit rate sent by the smart TV is 5M. Then, mobile phone A can obtain the maximum transmission bit rate supported by itself. If the maximum transmission bit rate supported by mobile phone A is greater than 5M, mobile phone A can determine 5M as the transmission bit rate used when casting the screen. If the maximum resolution supported by mobile phone A is less than 5M, mobile phone A can determine the maximum transmission bit rate supported by mobile phone A as the transmission bit rate used when casting the screen.
[0208] Since there is a certain functional relationship between the encoding compression rate and the transmission bit rate, after mobile phone A determines the transmission bit rate used for screen projection, it can calculate the encoding compression rate for this screen projection according to the preset functional relationship. It can be seen that after different source devices receive the reference threshold sent by the destination device, they can determine the specific projection parameters used for this screen projection according to the projection capabilities of their own devices, and the projection parameters determined by each source device can be the same or different.
[0209] In other embodiments, if the broadcast received by mobile phone A contains the current number of source devices N, mobile phone A can also determine one or more screen projection parameters such as screen projection resolution, transmission bit rate or compression coding rate used during screen projection according to the method described in step S404 or S1004a in the above embodiments.
[0210] Alternatively, if the broadcast received by mobile phone A contains both the reference threshold of the screen projection parameters and the current number of source devices N, mobile phone A can also determine part of the screen projection parameters during screen projection based on the reference threshold of the screen projection parameters, and the mobile phone can also determine another part of the screen projection parameters during screen projection based on the current number of source devices N. For example, mobile phone A can determine the screen projection resolution used during screen projection based on the reference threshold of the screen projection resolution. In addition, mobile phone A can also determine the transmission bit rate and compression coding rate used during screen projection based on the current number of source devices N, and the embodiments of the present application do not impose any restrictions on this.
[0211] Similar to mobile phone A, each of the N source devices of the smart TV can determine the projection parameters used for this projection according to the above method. In addition, the projection parameters determined by each source device can change dynamically according to the current number of source devices N. When the number of projection source devices is large, the display smoothness during projection is prioritized, and when the number of projection source devices is small, the display clarity during projection is prioritized. Subsequently, each source device can project the screen to the smart TV according to the determined projection parameters.
[0212] Each source device can determine the codec protocol it supports according to the codec protocols supported by the smart TV.
[0213] S1505. Each of the N source devices sends the determined screen projection parameters to the smart TV for storage.
[0214] Similar to steps S405, S1005a and S1005b, in step S1505, after each source device determines the projection parameters during projection through step S1504, it can send its projection parameters to the smart TV for storage, so that the smart TV can subsequently decode and display the display data sent by each source device according to the projection parameters of each source device.
[0215] It can be understood that in steps S405, S1005a, S1005b, and S1505, after the smart TV saves the newly received projection parameters, the previous projection parameters can be deleted. For example, when the source device that needs to be projected on the smart TV is updated from 1 to 2, the smart TV saves the projection parameters received when the source device is 2, and deletes the projection parameters received when the source device is 1.
[0216] S1506. Each of the N source devices sends the display data being displayed to the smart TV according to the above-mentioned screen projection parameters.
[0217] S1507. The smart TV simultaneously displays the display data sent by N source devices according to the above-mentioned screen projection parameters.
[0218] In steps S1506-S1507, each source device of the smart TV can encode the display data being displayed according to the projection parameters determined by each source device, and send the encoded display data to the smart TV. Accordingly, after receiving the display data sent by each source device, the smart TV can decode and display the sent display data according to the projection parameters corresponding to the source device.
[0219] Ultimately, the smart TV can display the display data sent by N source devices at the same time, and present the display interfaces of multiple source devices on the smart TV for users. In addition, whenever the number of source devices changes, the smart TV (i.e., the destination device) can renegotiate with the source devices the projection parameters used for this projection. When the number of source devices is large, the projection parameters can be adjusted to prioritize the display smoothness during projection; when the number of source devices is small, the projection parameters can be adjusted to prioritize the display clarity during projection, so that users can get a better user experience in different projection scenarios.
[0220] The embodiment of the present application discloses an electronic device, which can be the above-mentioned source device or the above-mentioned destination device. Specifically, the electronic device may include a processor, and a memory, an input device, and an output device connected to the processor. Among them, the input device and the output device can be integrated into one device, for example, a touch sensor can be used as an input device, a display screen can be used as an output device, and the touch sensor and the display screen can be integrated into a touch screen.
[0221] At this time, if Fig.16As shown, the electronic device may include: a touch screen 1601, the touch screen 1601 includes a touch sensor 1606 and a display screen 1607; one or more processors 1602; a memory 1603; a communication module 1608; one or more applications (not shown); and one or more computer programs 1604, and the above-mentioned devices may be connected through one or more communication buses 1605. The one or more computer programs 1604 are stored in the above-mentioned memory 1603 and are configured to be executed by the one or more processors 1602. The one or more computer programs 1604 include instructions, and the above-mentioned instructions can be used to execute the various steps in the above-mentioned embodiments. Among them, all relevant contents of each step involved in the above-mentioned method embodiment can be referred to the functional description of the corresponding physical device, and will not be repeated here. It can be understood that the above-mentioned electronic device may also include a display screen, and the touch sensor is not integrated with the display screen. The touch screen can be input through other input methods, such as a keyboard, a mouse or a remote control, or a touch sensor that is not integrated with the display screen.
[0222] Exemplarily, the processor 1602 may be Figure 3 The processor 110 shown in the figure, the memory 1603 can be specifically Figure 3 The internal memory 116 and / or the external memory 120 shown, the display screen 1607 may specifically be Figure 3 The display screen 194 shown, the touch sensor 1606 can be specifically Figure 3 The touch sensor in the sensor module 180 shown is not limited in any way in the embodiment of the present application.
[0223] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0224] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0225] If the integrated unit is implemented in the form of 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 the embodiment of the present application is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.
[0226] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
Claims
1. A screen projection display method, characterized in that: include: The source device sends a screen projection instruction to the destination device, wherein the screen projection instruction is used to instruct to project the display interface of the source device to the destination device for display; The source device obtains a reference threshold of a first screen projection parameter when the number of source devices is N, the first screen projection parameter includes one or more of a screen projection resolution, a transmission bit rate, or a coding compression rate, the reference threshold of the first screen projection parameter is used to indicate a maximum value of the first screen projection parameter supported by the destination device, and N is an integer greater than 0; The source device determines the first screen projection parameter according to a reference threshold of the first screen projection parameter; The source device sends first display data to the destination device according to the first screen projection parameter; The source device determines the first screen projection parameter according to a reference threshold of the first screen projection parameter, including: If the source device supports the reference threshold of the first screen projection parameter, the source device determines the reference threshold of the first screen projection parameter as the first screen projection parameter; If the source device does not support the reference threshold of the first screen projection parameter, the source device determines the maximum screen projection parameter supported by the source device as the first screen projection parameter.
2. The method according to claim 1, characterized in that After the source device sends the first display data to the destination device according to the first screen projection parameter, the method further includes: The source device obtains a reference threshold value of the second screen projection parameter when the number of source devices is M, where M is a positive integer not equal to N; The source device determines the second screen projection parameter according to a reference threshold of the second screen projection parameter, where the second screen projection parameter is different from the first screen projection parameter; The source device sends the second display data to the destination device according to the second screen projection parameters.
3. A screen projection display method, characterized in that: include: The destination device determines that the number of source devices that need to be projected and displayed in the destination device is N, where N is an integer greater than 0; The destination device determines, respectively with the N source devices according to the number N of the source devices, first screen projection parameters, where the first screen projection parameters include one or more of a screen projection resolution, a transmission bit rate, or a coding compression rate; The destination device receives the display data sent by the N source devices respectively according to the first screen projection parameter, and simultaneously displays the display data sent by the N source devices in the screen projection interface; The destination device determines the first screen projection parameter with the N source devices respectively according to the number N of the source devices, including: The destination device determines, according to the number N of source devices, a reference threshold of the first screen projection parameter used by each source device when projecting the screen, where the reference threshold of the first screen projection parameter is used to indicate a maximum value of the first screen projection parameter supported by the destination device; The destination device sends a reference threshold of the first screen projection parameter to the N source devices, and the reference threshold of the first screen projection parameter is used by the N source devices to determine the first screen projection parameter. If the source device supports the reference threshold of the first screen projection parameter, the first screen projection parameter is the reference threshold of the first screen projection parameter; if the source device does not support the reference threshold of the first screen projection parameter, the first screen projection parameter is the maximum screen projection parameter supported by the source device; The destination device receives and saves the first screen projection parameters sent respectively by the N source devices.
4. The method according to claim 3, characterized in that After the destination device simultaneously displays the display data sent by the N source devices in the screen projection interface, the method further includes: The destination device determines that the number of source devices that need to be projected and displayed in the destination device is M, where M is a positive integer not equal to N; The destination device determines second screen projection parameters with the M source devices respectively according to the number M of the source devices, where the second screen projection parameters are different from the first screen projection parameters; The destination device receives the display data sent by the M source devices respectively according to the second screen projection parameters, and simultaneously displays the display data sent by the M source devices in the screen projection interface.
5. The method according to claim 4, characterized in that The destination device determines that the number of source devices that need to be projected and displayed in the destination device is N, including: The destination device determines the number N of source devices according to the number of screen projection instructions sent by the source device; or, The destination device determines the number N of source devices according to the number of established communication connections.
6. The method according to claim 4 or 5, characterized in that: The first screen projection parameter includes a first screen projection resolution, and the second screen projection parameter includes a second screen projection resolution; If M is greater than N, the first projection screen resolution is greater than the second projection screen resolution; If M is less than N, the first screen projection resolution is less than the second screen projection resolution.
7. The method according to claim 4 or 5, characterized in that: The first screen projection parameter includes a first encoding compression rate, and the second screen projection parameter includes a second encoding compression rate; If M is greater than N, the first coding compression rate is less than the second coding compression rate; If M is smaller than N, the first coding compression rate is greater than the second coding compression rate.
8. The method according to claim 4 or 5, characterized in that: The first screen projection parameter includes a first transmission bit rate, and the second screen projection parameter includes a second transmission bit rate; If M is greater than N, the first transmission code rate is greater than the second transmission code rate; If M is smaller than N, the first transmission code rate is smaller than the second transmission code rate.
9. An electronic device, the electronic device being a source device during screen projection, characterized in that: The source device comprises: Display screen; Communication module; one or more processors; one or more memories; And one or more programs, wherein the one or more programs are stored in the one or more memories, and the one or more programs include instructions, and when the instructions are executed by the source device, the source device executes the screen projection display method as described in any one of claims 1-2.
10. An electronic device, the electronic device being a target device for screen projection, characterized in that: The destination device includes: Display screen; Communication module; one or more processors; one or more memories; And one or more programs, wherein the one or more programs are stored in the one or more memories, and the one or more programs include instructions, which, when executed by the destination device, enable the destination device to execute the screen projection display method as described in any one of claims 3-8.
11. A readable storage medium, wherein instructions are stored in the readable storage medium, characterized in that: When the instruction is executed on an electronic device, the electronic device executes the screen projection display method as described in any one of claims 1 to 8.
