Screen projection method, device, wireless terminal, screen projection device and storage medium

By establishing a Bluetooth link between the wireless terminal and the screen casting device during the screen casting process, and requesting the screen casting device and the audio output device to establish a second Bluetooth link, the problem of audio playback freedom and interference during the screen casting process is solved, and the Effective transmission and playback of audio data.

CN115442643BActive Publication Date: 2024-09-13GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110620731.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-03
Publication Date
2024-09-13
Estimated Expiration
2041-06-03

AI Technical Summary

Technical Problem

During the screencasting process, it is difficult to maintain the freedom of audio playback with existing technology, and the impact caused by switching audio playback sources is greater, especially when it is necessary to avoid disturbing others.

Method used

By establishing a Bluetooth link between the wireless terminal and the screen projection device, requesting the screen projection device and the audio output device to establish a second Bluetooth link, ensuring that the audio data in the screen projection data is transmitted to the audio output device for playback, thereby enabling the screen projection device to During the process, continue to use audio output devices other than the screen mirroring device for audio playback.

Benefits of technology

It improves the freedom of audio playback during screencasting, avoids the impact caused by switching audio playback sources, and reduces the risk of causing interference to others.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442643B
    Figure CN115442643B
Patent Text Reader

Abstract

The embodiments of the present application disclose a screen projection method, apparatus, wireless terminal, screen projection device and storage medium, which belong to the field of screen projection technology. The method includes: in response to a screen projection instruction, establishing a data communication link with the screen projection device; when a first Bluetooth link is established between the wireless terminal and the audio output device, sending a Bluetooth link establishment request to the screen projection device, so that the screen projection device establishes a second Bluetooth link with the audio output device based on the Bluetooth link establishment request; transmitting screen projection data to the screen projection device through the data communication link, so that the screen projection device outputs a picture based on the image data, and transmits audio data to the audio output device through the second Bluetooth link. In the embodiments of the present application, during the screen projection process, audio output devices other than the screen projection device can continue to be used for audio playback. For example, audio playback can continue through the Bluetooth headset connected to the terminal before screen projection, avoiding the impact caused by the switching of the audio playback source during the screen projection process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of screen projection technology, and in particular to a screen projection method, apparatus, wireless terminal, screen projection equipment and storage medium. Background Art

[0002] Screen projection is a technology that transmits audio and video data on the terminal side to a projection device, thereby displaying the terminal screen and playing the terminal sound through the projection device.

[0003] For example, when a mobile phone and a TV are connected to the same wireless network, the user can turn on the screen projection function of the mobile phone, and the mobile phone will transmit the audio and video data to the TV through the wireless network, so that the mobile phone's picture can be displayed on the TV and the sound of the mobile phone can be played. Summary of the invention

[0004] The embodiments of the present application provide a screen projection method, apparatus, wireless terminal, screen projection device and storage medium. The technical solution is as follows:

[0005] On the one hand, an embodiment of the present application provides a screen projection method in a wireless terminal, the method comprising:

[0006] In response to the screen projection instruction, establish a data communication link with the screen projection device, wherein the data communication link is used to transmit the screen projection data, wherein the screen projection data includes image data and audio data;

[0007] In the case where a first Bluetooth link is established between the wireless terminal and the audio output device, a Bluetooth link establishment request is sent to the screen projection device, so that the screen projection device establishes a second Bluetooth link with the audio output device based on the Bluetooth link establishment request; and

[0008] The screen projection data is transmitted to the screen projection device through the data communication link so that the screen projection device outputs a picture based on the image data, and the audio data is transmitted to the audio output device through the second Bluetooth link.

[0009] On the other hand, an embodiment of the present application provides a screen projection method in a screen projection device, the method comprising:

[0010] Establishing a data communication link with a wireless terminal, wherein the data communication link is used to transmit screen projection data, wherein the screen projection data includes image data and audio data;

[0011] In response to the Bluetooth link establishment request sent by the wireless terminal, establish a second Bluetooth link with the audio output device, the audio output device and the wireless terminal having established a first Bluetooth link;

[0012] Receiving the screen projection data transmitted by the wireless terminal through the data communication link; and

[0013] A picture is output based on the image data, and the audio data is transmitted to the audio output device through the second Bluetooth link, so that the audio output device outputs sound based on the audio data.

[0014] On the other hand, an embodiment of the present application provides a screen projection device, the device comprising:

[0015] A data link establishing module, used to establish a data communication link with the screen projection device in response to a screen projection instruction, wherein the data communication link is used to transmit screen projection data, wherein the screen projection data includes image data and audio data;

[0016] A request sending module, used for sending a Bluetooth link establishment request to the screen projection device when a first Bluetooth link is established between the wireless terminal and the audio output device, so that the screen projection device can establish a second Bluetooth link with the audio output device based on the Bluetooth link establishment request;

[0017] a first transmission module, configured to transmit the screen projection data to the screen projection device through the data communication link, so that the screen projection device outputs a picture based on the image data; and

[0018] The second transmission module is used to transmit the audio data to the audio output device through the second Bluetooth link.

[0019] On the other hand, an embodiment of the present application provides a screen projection device, the device comprising:

[0020] A data link establishment module, used to establish a data communication link with a wireless terminal, wherein the data communication link is used to transmit screen projection data, wherein the screen projection data includes image data and audio data;

[0021] A Bluetooth link establishment module, configured to establish a second Bluetooth link with an audio output device in response to a Bluetooth link establishment request sent by the wireless terminal, wherein the audio output device has established a first Bluetooth link with the wireless terminal;

[0022] A data receiving module, used for receiving the screen projection data transmitted by the wireless terminal through the data communication link;

[0023] A display module is used to output a picture based on the image data; and

[0024] The third transmission module is used to transmit the audio data to the audio output device through the second Bluetooth link, so that the audio output device outputs sound based on the audio data.

[0025] On the other hand, an embodiment of the present application provides a wireless terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the screen projection method in the wireless terminal as described in the above aspects.

[0026] On the other hand, an embodiment of the present application provides a screen projection device, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the screen projection method in the screen projection device as described in the above aspects.

[0027] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one program code is stored, and the program code is loaded and executed by a processor to implement the screen projection method as described in the above aspects.

[0028] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The Bluetooth chip of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the screen projection method provided in various optional implementations of the above aspects.

[0029] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:

[0030] In an embodiment of the present application, during the screen projection process of the wireless terminal to the screen projection device, if the wireless terminal has established a Bluetooth link with the audio output device, the screen projection device establishes a Bluetooth link with the audio output device based on the Bluetooth link establishment request sent by the wireless terminal. When the screen projection device subsequently receives the projection data transmitted by the wireless terminal, it can display the terminal screen based on the image data in the projection data, and transmit the audio data in the projection data to the audio output device so that the audio output device plays the terminal sound. By adopting the solution provided in the embodiment of the present application, audio output devices other than the screen projection device can continue to be used for audio playback during the screen projection process. For example, audio playback can continue to be performed through the Bluetooth headset connected to the wireless terminal before the screen projection, thereby improving the freedom of audio playback during the screen projection process and avoiding the influence of audio playback source switching during the screen projection process. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1 A schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application is shown;

[0033] Figure 2 A flowchart of a screen projection method provided by an exemplary embodiment of the present application is shown;

[0034] Figure 3 is a schematic diagram of an implementation of a screen projection process shown in an exemplary embodiment of the present application;

[0035] Figure 4 is a flowchart of a second Bluetooth link establishment process provided by an exemplary embodiment of the present application;

[0036] Figure 5 is a schematic diagram of an implementation of a screen projection process shown in another exemplary embodiment of the present application;

[0037] Figure 6 is a schematic diagram of an implementation of an audio path switching process shown in an exemplary embodiment of the present application;

[0038] Figure 7 is a flowchart of a screen projection end process shown in an exemplary embodiment of the present application;

[0039] Figure 8 A structural block diagram of a screen projection device provided by an embodiment of the present application is shown;

[0040] Fig. 9 A structural block diagram of a screen projection device provided by another embodiment of the present application is shown;

[0041] Fig.10 A structural block diagram of an electronic device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0042] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0043] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application, wherein the implementation environment includes a wireless terminal 110, an audio output device 120, and a screen projection device 130.

[0044] The wireless terminal 110 is an electronic device with Bluetooth and screen projection functions, and the electronic device can be a smart phone, a tablet computer, a personal computer, etc. Figure 1 The wireless terminal 110 is taken as a smart phone as an example for description, but this is not a limitation.

[0045] The audio output device 120 is an electronic device with Bluetooth and audio output functions, and the electronic device can be a Bluetooth headset, a Bluetooth speaker, etc. Figure 1 The audio output device 120 is taken as a Bluetooth headset as an example for description, but this is not a limitation.

[0046] After the wireless terminal 110 establishes the first Bluetooth link with the audio output device 120, the wireless terminal 110 transmits the audio data to the audio output device 120 via the first Bluetooth link, and the audio output device 120 plays the terminal sound based on the audio data.

[0047] The screen projection device 130 is an electronic device with Bluetooth and display functions, which may be a smart TV, a display, a personal computer or a projector, etc. Figure 1 The screen projection device 130 is taken as a smart TV as an example for explanation.

[0048] In one possible implementation, the wireless terminal 110 and the screen projection device 130 are located in the same wireless network. When a screen projection instruction is received, the wireless terminal 110 and the screen projection device 130 establish a data communication link through the wireless network. During the screen projection process, the wireless terminal 110 transmits the projection data (image data and audio data) to the screen projection device 130 through the data communication link. The screen projection device 130 displays the terminal image and plays the terminal audio through its own speaker.

[0049] Of course, in other possible implementations, the wireless terminal 110 and the screen projection device 130 can also establish a data communication link based on a wired connection. For example, the wireless terminal 110 and the screen projection device 130 are connected via a data line. When a screen projection instruction is received, the wireless terminal 110 and the screen projection device 130 establish a data communication link via the data line. This embodiment is not limited to this.

[0050] In the embodiment of the present application, during the screen projection process, if a first Bluetooth link is established between the wireless terminal 110 and the audio output device 120, the wireless terminal 110 actively triggers the screen projection device 130 to establish a second Bluetooth link with the audio output device 120. In the subsequent process, after the screen projection device 130 receives the projection data through the data communication link, on the one hand, it displays the terminal screen based on the image data in the projection data, and on the other hand, transmits the audio data in the projection data to the audio output device 120 through the second Bluetooth link, and the audio output device 120 plays the terminal sound based on the audio data.

[0051] Optionally, during the screen projection process, the wireless terminal 110 also provides an audio path switching function, through which the user can switch the audio path from the audio output device 120 to the screen projection device 130 as needed, thereby playing the terminal sound through the screen projection device 130.

[0052] In the related technology, during the screen projection process, the wireless terminal sends the projection data (including image data and audio data) to the screen projection device, which displays the picture and plays the sound. Even if there is a Bluetooth connection between the wireless terminal and the audio output device at this time, the terminal sound will not be played through the audio output device.

[0053] In the solution provided in the embodiment of the present application, if screen projection is performed when a Bluetooth connection exists between the wireless terminal and the audio output device, the wireless terminal instructs the screen projection device to establish a Bluetooth connection with the audio output device, so that the screen projection device can play sound through the audio output device during the screen projection process, thereby avoiding the impact caused by the audio playback source switching from the audio output device to the screen projection device.

[0054] In one possible application scenario, a smartphone establishes a Bluetooth connection with a Bluetooth headset. When a user uses the smartphone to watch a video, the smartphone transmits audio data to the Bluetooth headset, which plays the audio to avoid disturbing others. When the user wants to continue watching the video on a smart TV, the screen projection function of the smartphone can be triggered to establish a data communication link between the smartphone and the smart TV.

[0055] Using the solution provided by relevant technologies, during the screen projection process, the sound of the smartphone will be played through the smart TV, and the external sound of the smart TV will cause interference to others.

[0056] With the solution provided in the embodiment of the present application, when establishing a data communication link, the smartphone triggers the smart TV to establish a Bluetooth connection with the Bluetooth headset. During the screen projection process, the smart TV displays the phone screen based on the received image data, and synchronously transmits the audio data to the Bluetooth headset through the Bluetooth connection, and the Bluetooth headset plays the phone sound, so as to avoid the external sound of the smart TV causing interference to others during screen projection.

[0057] Please refer to Figure 2 , which shows a flowchart of a screen projection method provided by an exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1 Taking the implementation environment shown in FIG. 1 as an example, the method includes:

[0058] Step 201, in response to the screen projection instruction, the wireless terminal establishes a data communication link with the screen projection device, and the data communication link is used to transmit the screen projection data, which includes image data and audio data.

[0059] Optionally, in response to the screen projection instruction, the wireless terminal and the screen projection device establish a wireless data communication link through a wireless network, or the wireless terminal and the screen projection device establish a wired data communication link through a wired connection. For ease of description, the following embodiments are described using a wireless data communication link as an example.

[0060] In some embodiments, when there are multiple candidate screen projection devices in the wireless network, when a screen projection instruction is received, the wireless terminal displays the device identification of each candidate screen projection device, and when a device selection operation is received, establishes a data communication link with the selected screen projection device.

[0061] During the screen projection process, the wireless terminal uses the image data of its own display screen and the audio data of its own sound as the projection data, and sends the projection data to the projection device through the data communication link.

[0062] Step 202: The screen projection device establishes a data communication link with the wireless terminal.

[0063] Step 203: When a first Bluetooth link is established between the wireless terminal and the audio output device, the wireless terminal sends a Bluetooth link establishment request to the screen projection device.

[0064] When a data communication link is established between the wireless terminal and the screen projection device, and a first Bluetooth link is established between the wireless terminal and the audio output device, the wireless terminal sends a Bluetooth link establishment request to the screen projection device, instructing the screen projection device to establish a second Bluetooth link with the audio output device.

[0065] Among them, the first Bluetooth link between the wireless terminal and the audio output device can be established before screen projection, or during the screen projection process (if the first Bluetooth link is not established during the screen projection process, the screen projection device displays the terminal screen and plays the terminal sound).

[0066] Optionally, the Bluetooth link establishment request is transmitted via a data communication link, or the Bluetooth link establishment request is transmitted via a Bluetooth link between the screen projection device, which is not limited in this embodiment.

[0067] Step 204: In response to the Bluetooth link establishment request sent by the wireless terminal, the screen projection device establishes a second Bluetooth link with the audio output device.

[0068] After receiving the Bluetooth link establishment request, the screen projection device establishes a second Bluetooth link with the audio output device based on the information contained in the Bluetooth link establishment request.

[0069] Indicatively, Figure 3As shown, a Bluetooth link is established between the mobile phone 31 and the Bluetooth headset 32 ​​before screen projection, and audio data is transmitted to the Bluetooth headset 32 ​​through the Bluetooth link; when a screen projection instruction is received, the mobile phone 31 sends a Bluetooth link establishment request to the TV 33, and after receiving the request, the TV 33 establishes a Bluetooth link with the Bluetooth headset 32.

[0070] Step 205: The wireless terminal transmits the screen projection data to the screen projection device via the data communication link.

[0071] After the second Bluetooth link is established, the wireless terminal transmits the image data and audio data synchronously to the screen projection device through the data communication link. Figure 3 As shown, the mobile phone 31 transmits the projection data including image data and audio data to the TV 33.

[0072] Step 206: The screen projection device receives the screen projection data transmitted by the wireless terminal through the data communication link.

[0073] Step 207: The screen projection device outputs the picture based on the image data.

[0074] Since a second Bluetooth link is established between the screen projection device and the audio output device, the screen projection device only parses the image data and displays the terminal screen when implementing the screen projection function, but does not parse the audio data.

[0075] Step 208: The screen projection device transmits audio data to the audio output device through the second Bluetooth link, so that the audio output device outputs sound based on the audio data.

[0076] While displaying the terminal screen, the projection device synchronously transmits audio data to the audio output device through the second Bluetooth link. After receiving the audio data, the audio output device plays the terminal sound based on the audio data, thereby achieving the effect that the terminal screen is displayed on the projection device and the terminal sound is played on the audio output device.

[0077] Indicatively, Figure 3 As shown, the TV 33 parses the image data and displays the same picture as the mobile phone 31; at the same time, the TV 33 transmits the audio data to the Bluetooth headset 32, so that the sound of the mobile phone is played through the Bluetooth headset 32 ​​(the mobile phone 31 does not make any sound during the screen projection process).

[0078] It can be seen that by adopting the solution provided in the embodiment of the present application, the terminal sounds before and after screen projection are played through the audio output device (the audio path between the wireless terminal and the audio output device is switched to the audio path between the screen projection device and the audio output device), thereby avoiding interference to others due to the terminal sounds being directly played through the screen projection device during the screen projection process.

[0079] To summarize, in the embodiment of the present application, during the screen projection process of the wireless terminal to the screen projection device, if the wireless terminal has established a Bluetooth link with the audio output device, the screen projection device establishes a Bluetooth link with the audio output device based on the Bluetooth link establishment request sent by the wireless terminal. When the screen projection device subsequently receives the projection data transmitted by the wireless terminal, it can display the terminal screen based on the image data in the projection data, and transmit the audio data in the projection data to the audio output device so that the audio output device plays the terminal sound. By adopting the solution provided in the embodiment of the present application, audio output devices other than the screen projection device can continue to be used for audio playback during the screen projection process. For example, audio playback can continue to be performed through the Bluetooth headset connected to the wireless terminal before the screen projection during the screen projection process, which improves the freedom of audio playback during the screen projection process and avoids the influence of switching of the audio playback source during the screen projection process.

[0080] In a possible application scenario, before screen projection, the wireless terminal has established a first Bluetooth link with the audio output device and transmits audio data to the audio output device through the first Bluetooth link. When the user triggers the wireless terminal to project the screen in this case, in response to the screen projection instruction, the wireless terminal obtains the audio device Bluetooth information of the audio output device and sends a Bluetooth link establishment request containing the audio device Bluetooth information to the screen projection device. The audio device Bluetooth information can be the Bluetooth address or Bluetooth name of the audio output device.

[0081] Correspondingly, after receiving the Bluetooth link establishment request, the screen projection device initiates a Bluetooth connection request to the audio output device based on the audio device Bluetooth information, thereby establishing a second Bluetooth link with the audio output device. The embodiment of the present application does not limit the specific process of establishing a Bluetooth link.

[0082] In one possible implementation, although the wireless terminal establishes a Bluetooth connection with the audio output device, the user may not be using the audio output device. In order to avoid continuing to play the terminal sound through the audio output device in this case, the wireless terminal obtains the device status of the audio output device and sends a Bluetooth link establishment request containing the Bluetooth information of the audio device to the projection device when the audio output device is in use.

[0083] Optionally, the device state is detected by the audio output device through its own sensor and reported to the wireless terminal through the first Bluetooth link. For example, when the audio output device is a Bluetooth headset, the Bluetooth headset determines the headset posture through a built-in sensor and determines that it is in use when the headset posture is in the ear.

[0084] Optionally, if the audio output device is not in use, the wireless terminal will not send a request to establish a Bluetooth link to the screen projection device; or, if the audio output device is not in use, the wireless terminal will still send a request to establish a Bluetooth link to the screen projection device, and instruct the screen projection device to play the terminal sound through its own speaker during the screen projection process (i.e., not transmitting audio data to the audio output device through the second Bluetooth link).

[0085] In this embodiment, the wireless terminal determines whether to send a Bluetooth link establishment request to the screen projection device based on the device status of the audio output device, thereby avoiding the problem of playing the terminal sound through the audio output device when the audio output device is not in use, resulting in the need to manually switch the audio path again (switch to the screen projection device for playback).

[0086] In another possible application scenario, before screen projection, the wireless terminal has not established the first Bluetooth link with the audio output device. If screen projection is performed at this time, the projection device will display the terminal screen and play the terminal sound. If the wireless terminal establishes a connection with the audio output device during the screen projection process, the wireless terminal can determine whether to switch the audio path (from the projection device to the audio output device) according to user needs. Figure 4 As shown, the above step 203 may include the following steps.

[0087] Step 203A: Establish a first Bluetooth link with the audio output device.

[0088] Optionally, during the screen projection process, when a Bluetooth connection instruction is received, the wireless terminal establishes a first Bluetooth link with the audio output device, wherein the audio output device may be a Bluetooth device that is paired with the wireless terminal for the first time, or a Bluetooth device that has been paired with the wireless terminal in the past.

[0089] Step 203B, display a link establishment prompt, which is used to confirm whether to establish a second Bluetooth link between the screen projection device and the audio output device.

[0090] When it is detected that a Bluetooth connection is established with the audio output device during the screen projection process, in order to determine whether it is necessary to switch the audio path from the screen projection device to the audio output device, the wireless terminal displays a link establishment prompt to prompt the user to confirm whether to establish a second Bluetooth link between the screen projection device and the audio output device, and switch the audio path to the audio output device.

[0091] If a confirmation instruction is received, the wireless terminal determines that it needs to switch to the audio path and executes step 203C; if a cancellation instruction is received, the wireless terminal determines to maintain the audio path and continues to play the terminal sound through the screen projection device.

[0092] Indicatively, Figure 5As shown, during the screen projection process, the mobile phone 31 transmits the screen projection data to the TV 33, and the TV displays the mobile phone screen according to the image data therein, and plays the mobile phone sound according to the audio data therein. When the mobile phone 31 establishes a Bluetooth connection with the Bluetooth headset 32, the mobile phone 31 displays a link establishment prompt 311, prompting whether a Bluetooth link needs to be established between the TV 33 and the Bluetooth headset 32, and the mobile phone sound is played through the Bluetooth headset 32.

[0093] Step 203C, in response to the confirmation instruction, obtain the audio device Bluetooth information of the audio output device, and send a Bluetooth link establishment request containing the audio device Bluetooth information to the screen projection device.

[0094] When receiving the confirmation instruction, the wireless terminal obtains the audio device Bluetooth information of the audio output device, and then sends a Bluetooth link establishment request containing the audio device Bluetooth information to the projection device. The projection device establishes a second Bluetooth link with the audio output device based on the audio device Bluetooth information, and sends the audio data to the audio output device through the second Bluetooth link for the audio output device to play. The confirmation instruction is triggered by a confirmation operation, which is received by the wireless terminal (such as clicking the confirmation option), or received by the audio output device (such as tapping the Bluetooth headset).

[0095] Indicatively, Figure 5 As shown, after the user clicks the confirmation option, the TV 33 and the Bluetooth headset 32 ​​establish a Bluetooth link, and send the audio data to the Bluetooth headset 32 ​​through the Bluetooth link, so that the mobile phone sound is played through the Bluetooth headset 32.

[0096] In order to further improve the freedom of audio playback during screen projection, users can switch the audio playback source of the mobile phone sound as needed during screen projection. In one possible implementation, in response to the switching instruction, the wireless terminal sends a switching request to the screen projection device so that the screen projection device stops transmitting audio data to the audio output device through the second Bluetooth link and plays the terminal sound based on the audio data.

[0097] Optionally, a switching control is displayed on the interface of the wireless terminal during the screen projection process. When a trigger operation is received on the switching control, the wireless terminal receives a switching instruction, thereby sending a switching request to the screen projection device. The switching request can be sent via a data path link or via a Bluetooth link between the wireless terminal and the screen projection device.

[0098] After receiving the switching request, the projection device stops sending audio data to the audio output device through the second Bluetooth link, that is, switches the audio path from the audio output device to the projection device. Optionally, after receiving the switching request, the second Bluetooth link between the projection device and the audio output device is maintained so that the audio path can be switched again later.

[0099] Indicatively, Figure 6 As shown, during the screen projection process, the TV 33 first displays the mobile phone screen and plays the mobile phone sound through the Bluetooth headset 32; when a switching instruction is received, the mobile phone 31 sends a switching request to the TV 33, and the TV 33 stops transmitting audio data to the Bluetooth headset 32 ​​according to the switching request, thereby playing the mobile phone sound through its own speakers.

[0100] Optionally, when a switching instruction is received again, the wireless terminal sends a switching request to the screen projection device so that the screen projection device re-transmits audio data to the audio output device through the second Bluetooth link.

[0101] In this embodiment, during the screen projection process, when a switching instruction is received, the wireless terminal instructs the screen projection device to switch the audio path, thereby realizing the switching of sound playback between the screen projection device and the audio output device, further improving the freedom of sound playback during the screen projection process.

[0102] In a possible implementation, when the wireless terminal instructs the screen projection device to establish a Bluetooth link with the audio output device, it is necessary to determine whether to maintain the first Bluetooth link with the audio output device based on the Bluetooth link support of the audio output device. When the audio output device supports multiple Bluetooth links, the wireless terminal maintains the first Bluetooth link with the audio output device; when the audio output device supports a single Bluetooth link, the wireless terminal needs to disconnect the first Bluetooth link with the audio output device so that the screen projection device can establish a second Bluetooth link with the audio output device.

[0103] Furthermore, in the case where the first Bluetooth link is disconnected, in order for the wireless terminal to continue to play the terminal sound through the audio output device after the screen projection is completed, in a possible implementation manner, Figure 7 As shown, the method may also include the following steps.

[0104] Step 701, in response to the screen projection end instruction, the wireless terminal sends a screen projection end request to the screen projection device.

[0105] In a possible implementation, when a screen projection end operation is received and the first Bluetooth link with the audio output device is disconnected during the screen projection process, the wireless terminal obtains the audio device Bluetooth information of the audio output device from the screen projection device so as to continue to play the terminal sound through the audio output device after the screen projection ends. Optionally, the wireless terminal obtains the audio device Bluetooth information by sending a screen projection end request.

[0106] Among them, the screen projection end request can be sent through a data communication link, or through a Bluetooth link between the wireless terminal and the screen projection device.

[0107] Step 702, in response to the screen projection end request sent by the wireless terminal, the screen projection device sends the audio device Bluetooth information of the audio output device to the wireless terminal.

[0108] Since a Bluetooth link is established between the screen projection device and the audio output device, the screen projection device can obtain the audio device Bluetooth information of the audio output device after receiving the request, and then send the Bluetooth information to the wireless terminal so that the wireless terminal can re-establish the first Bluetooth link. The audio device Bluetooth information can be sent via a data communication link or via a Bluetooth link between the wireless terminal and the screen projection device.

[0109] Step 703, in response to the wireless terminal sending a screen projection end request, the screen projection device disconnects the data communication link and the second Bluetooth link.

[0110] Since there is no need to play the terminal sound through the screen projection device after the screen projection is completed, the screen projection device disconnects the data communication link based on the screen projection end request and disconnects the second Bluetooth link between the audio output device so that the wireless terminal and the audio output device can re-establish the Bluetooth connection.

[0111] Step 704: The wireless terminal re-establishes the first Bluetooth link with the audio output device based on the audio device Bluetooth information.

[0112] After the wireless terminal obtains the Bluetooth information of the audio device, it re-establishes the first Bluetooth link with the audio output device, and then plays the terminal sound through the audio output device, without the user manually triggering the Bluetooth link reconstruction.

[0113] In this embodiment, when the audio output device only supports a single link, when the screen projection ends, the wireless terminal obtains the Bluetooth information of the audio output device from the screen projection device, and re-establishes the Bluetooth link with the audio output device based on the Bluetooth information, so that the audio output device can continue to play the terminal sound after the screen projection ends, and there is no need for the user to manually trigger the link reconstruction, thereby ensuring the continuity of the audio playback before and after the screen projection ends.

[0114] When the terminal image and terminal sound are both displayed and played through the projection device, the terminal image and terminal sound remain synchronized; when the terminal image is displayed by the projection device and the terminal sound is played by the audio output device, there is a transmission delay when the projection device transmits audio data to the audio output device, so there may be a problem of audio and video being out of sync (manifested as a lag in the sound).

[0115] Therefore, in order to improve the synchronization of audio and video during the screen projection process, in one possible implementation, when the screen projection device receives the screen projection data and needs to play the terminal sound through the audio output device, the screen projection device first determines the transmission delay of the second Bluetooth link.

[0116] Regarding the specific method of determining the transmission delay of the second Bluetooth link, in one possible implementation, the screen projection device sends a delay measurement instruction to the audio output device through the second Bluetooth link, and after the audio output device receives the delay measurement instruction, it sends a response instruction through the second Bluetooth link. The screen projection device determines the transmission delay of the second Bluetooth link based on the time interval between the delay measurement instruction and the response instruction.

[0117] Illustratively, when the sending time of the delay measurement instruction is t1 and the receiving time of the response instruction is t2, the transmission delay of the second Bluetooth link is (t2-t1) / 2.

[0118] Furthermore, the screen projection device synchronizes the transmission of image data and audio data based on the determined transmission delay, thereby ensuring that in the screen projection data at the same timestamp, the display time of the image data is synchronized with the playback time of the audio data.

[0119] In one possible implementation, the screen projection device can delay the transmission of image data based on the transmission delay, thereby using the delay to offset the transmission delay of audio data, and ensure the synchronization of image decoding in the screen projection device and audio decoding in the audio output device. For example, when the transmission delay of the second Bluetooth link is 20ms, the screen projection device will delay 20ms to decode and display the received image data.

[0120] Optionally, before synchronizing the transmission of image data and audio data, the wireless terminal needs to determine the currently displayed content. If the currently displayed content has a high real-time requirement, synchronization is not performed; if the currently displayed content has a low real-time requirement, synchronization is performed, wherein the real-time requirement can be determined based on the application type of the application currently running on the terminal.

[0121] For example, if the currently displayed content is the application screen of a game application, the wireless terminal will not synchronize in order to reduce the screen display delay; if the currently displayed content is the application screen of a video application, the wireless terminal will synchronize to ensure the synchronization of audio and video.

[0122] In this embodiment, when the terminal screen is displayed through the screen projection device and the terminal sound is played through the audio output device, the screen projection device synchronizes the transmission of image data and audio data based on the transmission delay of the second Bluetooth link, thereby improving the synchronization of audio and video during the screen projection process.

[0123] It should be noted that in the above-mentioned embodiments, the steps with the wireless terminal as the execution subject can be independently implemented as a screen projection method on the wireless terminal side, and the steps with the screen projection device as the execution subject can be independently implemented as a screen projection method on the screen projection device side, which will not be elaborated in this embodiment.

[0124] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0125] Please refer to Figure 8 , which shows a structural block diagram of a screen projection device provided by an embodiment of the present application. The device is used in a wireless terminal, and the device may include:

[0126] A data link establishing module 801 is used to establish a data communication link with the screen projection device in response to a screen projection instruction, wherein the data communication link is used to transmit screen projection data, wherein the screen projection data includes image data and audio data;

[0127] The request sending module 802 is used to send a Bluetooth link establishment request to the screen projection device when a first Bluetooth link is established between the wireless terminal and the audio output device, so that the screen projection device establishes a second Bluetooth link with the audio output device based on the Bluetooth link establishment request;

[0128] A first transmission module 803 is used to transmit the screen projection data to the screen projection device through the data communication link, so that the screen projection device outputs a picture based on the image data;

[0129] The second transmission module 804 is configured to transmit the audio data to the audio output device through the second Bluetooth link.

[0130] Optionally, the device further comprises:

[0131] A first Bluetooth link establishing module, configured to establish the first Bluetooth link with the audio output device;

[0132] The request sending module 802 is used to:

[0133] Obtain the audio device Bluetooth information of the audio output device, and send the Bluetooth link establishment request containing the audio device Bluetooth information to the screen projection device.

[0134] Optionally, the request sending module 802 is specifically configured to:

[0135] Obtain the device status of the audio output device;

[0136] In response to the audio output device being in use, sending the Bluetooth link establishment request containing the Bluetooth information of the audio device to the screen projection device.

[0137] Optionally, the request sending module 802 includes:

[0138] A link establishing unit, configured to establish the first Bluetooth link with the audio output device;

[0139] A display unit, used for displaying a link establishment prompt, wherein the link establishment prompt is used to confirm whether to establish the second Bluetooth link between the screen projection device and the audio output device;

[0140] A request sending unit is used to obtain the audio device Bluetooth information of the audio output device in response to a confirmation instruction, and send the Bluetooth link establishment request containing the audio device Bluetooth information to the screen projection device.

[0141] Optionally, the device further comprises:

[0142] A switching module is used to send a switching request to the screen projection device in response to a switching instruction, so that the screen projection device stops transmitting the audio data to the audio output device through the second Bluetooth link and outputs sound based on the audio data.

[0143] Optionally, the device further comprises:

[0144] A Bluetooth link maintaining module, configured to maintain the first Bluetooth link in response to the audio output device supporting multiple Bluetooth links;

[0145] or,

[0146] The Bluetooth link disconnection module is used to disconnect the first Bluetooth link in response to the audio output device supporting a single Bluetooth link.

[0147] Optionally, the device further comprises:

[0148] A Bluetooth information acquisition module, configured to respond to a screen projection end instruction and when the first Bluetooth link is disconnected, send a screen projection end request to the screen projection device, wherein the screen projection end request is used to request to obtain the audio output device Bluetooth information of the audio output device from the screen projection device;

[0149] A link reestablishment module is used to reestablish the first Bluetooth link with the audio output device based on the Bluetooth information of the audio output device.

[0150] Optionally, the device further comprises:

[0151] The screen projection end module is used to send a screen projection end request to the screen projection device in response to the screen projection end instruction, so that the screen projection device disconnects the data communication link and the second Bluetooth link based on the screen projection end request.

[0152] Please refer to Fig. 9 , which shows a structural block diagram of a screen projection device provided by another embodiment of the present application. The device is used for a screen projection device, and the device may include:

[0153] A data link establishing module 901 is used to establish a data communication link with a wireless terminal, wherein the data communication link is used to transmit screen projection data, wherein the screen projection data includes image data and audio data;

[0154] A Bluetooth link establishing module 902, configured to establish a second Bluetooth link with an audio output device in response to a Bluetooth link establishment request sent by the wireless terminal, wherein the audio output device has established a first Bluetooth link with the wireless terminal;

[0155] A data receiving module 903 is used to receive the screen projection data transmitted by the wireless terminal through the data communication link;

[0156] A display module 904, configured to output a picture based on the image data;

[0157] The third transmission module 905 is configured to transmit the audio data to the audio output device through the second Bluetooth link, so that the audio output device outputs sound based on the audio data.

[0158] Optionally, the device further comprises:

[0159] a stopping module, configured to stop transmitting the audio data to the audio output device through the second Bluetooth link in response to a switching request sent by the wireless terminal;

[0160] A playing module is used to output sound based on the audio data.

[0161] Optionally, the device further comprises:

[0162] A disconnection module is used to disconnect the data communication link and the second Bluetooth link in response to the wireless terminal sending a screen projection end request.

[0163] Optionally, the audio output device supports a single Bluetooth link;

[0164] The device also includes:

[0165] A Bluetooth information sending module is used to send the audio device Bluetooth information of the audio output device to the wireless terminal in response to the screen projection end request sent by the wireless terminal, so that the wireless terminal can re-establish the first Bluetooth link with the audio output device based on the audio device Bluetooth information.

[0166] Optionally, the device further comprises:

[0167] A delay determination module, used to determine the transmission delay of the second Bluetooth link;

[0168] A synchronization module is used to synchronize the transmission of the image data and the audio data based on the transmission delay.

[0169] Please refer to Fig.10 , which shows a block diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. The electronic device 1000 can be implemented as a wireless terminal or a screen projection device in the above embodiments. The electronic device can be a smart phone, a tablet computer, a personal computer, a smart TV, a projector, etc. The electronic device 1000 in the present application may include one or more of the following components: a processor 1010, a memory 1020, and a Bluetooth chip 1030.

[0170] The processor 1010 may include one or more processing cores. The processor 1010 uses various interfaces and lines to connect the various parts of the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1020, and calling data stored in the memory 1020. Optionally, the processor 1010 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1010 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1010, but may be implemented by a separate chip.

[0171] The memory 1020 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1020 includes a non-transitory computer-readable storage medium. The memory 1020 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1020 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book), etc., created according to the use of the electronic device 1000.

[0172] The Bluetooth chip 1030 is a component for implementing Bluetooth functions. The Bluetooth chip 1030 includes two parts: Host and Controller (corresponding to different Bluetooth protocol stacks). The Host and Controller can run on the same chip (single-chip architecture) or on different chips (dual-chip architecture). For example, the Host runs on the processor, and the Controller runs on the Bluetooth module; or, both the Host and the Controller run on the Bluetooth chip 1030.

[0173] In addition, those skilled in the art can understand that the structure of the electronic device 1000 shown in the above figures does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the electronic device 1000 also includes components such as a display screen, a sensor, a speaker, a microphone, a power supply, and a WiFi component, which will not be described in detail here.

[0174] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one program code, and the program code is loaded and executed by a processor to implement the screen projection method described in the above embodiments.

[0175] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The Bluetooth chip of the electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device executes the screen projection method provided in various optional implementations of the above aspects.

[0176] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0177] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A screen projection method in a wireless terminal, characterized in that: The method comprises: In response to the screen projection instruction, establish a data communication link with the screen projection device, wherein the data communication link is used to transmit the screen projection data, wherein the screen projection data includes image data and audio data; In the case where a first Bluetooth link is established between the wireless terminal and the audio output device, a Bluetooth link establishment request is sent to the screen projection device, so that the screen projection device establishes a second Bluetooth link with the audio output device based on the Bluetooth link establishment request; and The screen projection data is transmitted to the screen projection device through the data communication link so that the screen projection device outputs a picture based on the image data, and the audio data is transmitted to the audio output device through the second Bluetooth link.

2. The method according to claim 1, characterized in that Before establishing a data communication link with the screen projection device in response to the screen projection instruction, the method includes: Establishing the first Bluetooth link with the audio output device; When a first Bluetooth link is established between the wireless terminal and the audio output device, sending a Bluetooth link establishment request to the screen projection device includes: Obtain the audio device Bluetooth information of the audio output device, and send the Bluetooth link establishment request containing the audio device Bluetooth information to the screen projection device.

3. The method according to claim 2, characterized in that The sending the Bluetooth link establishment request including the Bluetooth information of the audio device to the screen projection device includes: Obtaining the device status of the audio output device; and, In response to the audio output device being in use, sending the Bluetooth link establishment request containing the Bluetooth information of the audio device to the screen projection device.

4. The method according to claim 1, characterized in that: When a first Bluetooth link is established between the wireless terminal and the audio output device, sending a Bluetooth link establishment request to the screen projection device includes: Establishing the first Bluetooth link with the audio output device; Displaying a link establishment prompt, wherein the link establishment prompt is used to confirm whether to establish the second Bluetooth link between the screen projection device and the audio output device; and In response to the confirmation instruction, the audio device Bluetooth information of the audio output device is obtained, and the Bluetooth link establishment request containing the audio device Bluetooth information is sent to the screen projection device.

5. The method according to any one of claims 1 to 4, characterized in that: After transmitting the screen projection data to the screen projection device, the method further includes: In response to the switching instruction, a switching request is sent to the screen projection device so that the screen projection device stops transmitting the audio data to the audio output device through the second Bluetooth link and outputs sound based on the audio data.

6. The method according to any one of claims 1 to 4, characterized in that: After sending a Bluetooth link establishment request to the screen projection device, the method includes: In response to the audio output device supporting multiple Bluetooth links, maintaining the first Bluetooth link; or, In response to the audio output device supporting a single Bluetooth link, disconnecting the first Bluetooth link.

7. The method according to claim 6, characterized in that After transmitting the screen projection data to the screen projection device, the method further includes: In response to a screen projection end instruction and the first Bluetooth link is disconnected, obtaining audio device Bluetooth information of the audio output device from the screen projection device; and, The first Bluetooth link is re-established with the audio output device based on the audio device Bluetooth information.

8. The method according to any one of claims 1 to 4, characterized in that: After transmitting the screen projection data to the screen projection device, the method further includes: In response to the screen projection end instruction, a screen projection end request is sent to the screen projection device, so that the screen projection device disconnects the data communication link and the second Bluetooth link based on the screen projection end request.

9. A screen projection method in a screen projection device, characterized in that: The method comprises: Establishing a data communication link with a wireless terminal, wherein the data communication link is used to transmit screen projection data, wherein the screen projection data includes image data and audio data; In response to the Bluetooth link establishment request sent by the wireless terminal, establish a second Bluetooth link with the audio output device, the audio output device and the wireless terminal having established a first Bluetooth link; Receiving the screen projection data transmitted by the wireless terminal through the data communication link; and A picture is output based on the image data, and the audio data is transmitted to the audio output device through the second Bluetooth link, so that the audio output device outputs sound based on the audio data.

10. The method according to claim 9, characterized in that After outputting a picture based on the image data and transmitting the audio data to the audio output device through the second Bluetooth link, the method further includes: In response to the switching request sent by the wireless terminal, stop transmitting the audio data to the audio output device through the second Bluetooth link; and A sound is output based on the audio data.

11. The method according to claim 9, characterized in that After outputting a picture based on the image data and transmitting the audio data to the audio output device through the second Bluetooth link, the method further includes: In response to the wireless terminal sending a screen projection end request, the data communication link and the second Bluetooth link are disconnected.

12. The method according to claim 9, characterized in that The audio output device supports a single Bluetooth link; After outputting a picture based on the image data and transmitting the audio data to the audio output device through the second Bluetooth link, the method further includes: In response to the screen projection end request sent by the wireless terminal, the audio device Bluetooth information of the audio output device is sent to the wireless terminal, so that the wireless terminal re-establishes the first Bluetooth link with the audio output device based on the audio device Bluetooth information.

13. The method according to any one of claims 9 to 12, characterized in that: Before outputting a picture based on the image data and transmitting the audio data to the audio output device through the second Bluetooth link, the method further includes: determining a transmission delay of the second Bluetooth link; and, The image data and the audio data are transmitted synchronously based on the transmission delay.

14. A screen projection device, characterized in that: The device is used in a wireless terminal, and comprises: A data link establishing module, used to establish a data communication link with the screen projection device in response to a screen projection instruction, wherein the data communication link is used to transmit screen projection data, wherein the screen projection data includes image data and audio data; A request sending module, used for sending a Bluetooth link establishment request to the screen projection device when a first Bluetooth link is established between the wireless terminal and the audio output device, so that the screen projection device can establish a second Bluetooth link with the audio output device based on the Bluetooth link establishment request; a first transmission module, configured to transmit the screen projection data to the screen projection device through the data communication link, so that the screen projection device outputs a picture based on the image data; and The second transmission module is used to transmit the audio data to the audio output device through the second Bluetooth link.

15. A screen projection device, characterized in that: The device is used for a screen projection device, and the device includes: A data link establishment module, used to establish a data communication link with a wireless terminal, wherein the data communication link is used to transmit screen projection data, wherein the screen projection data includes image data and audio data; A Bluetooth link establishment module, configured to establish a second Bluetooth link with an audio output device in response to a Bluetooth link establishment request sent by the wireless terminal, wherein the audio output device has established a first Bluetooth link with the wireless terminal; A data receiving module, used for receiving the screen projection data transmitted by the wireless terminal through the data communication link; A display module is used to output a picture based on the image data; and The third transmission module is used to transmit the audio data to the audio output device through the second Bluetooth link, so that the audio output device outputs sound based on the audio data.

16. A wireless terminal, characterized in that: The wireless terminal includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the screen projection method in the wireless terminal as described in any one of claims 1 to 8.

17. A screen projection device, characterized in that: The screen projection device includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the screen projection method in the screen projection device as described in any one of claims 9 to 13.

18. A computer-readable storage medium, characterized in that: At least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by the processor to implement the screen projection method in the wireless terminal as described in any one of claims 1 to 8, or to implement the screen projection method in the screen projection device as described in any one of claims 9 to 13.