WO2023142389A1 - Screen mirroring method and apparatus, and electronic device and storage medium - Google Patents

Screen mirroring method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2023142389A1
WO2023142389A1 PCT/CN2022/103975 CN2022103975W WO2023142389A1 WO 2023142389 A1 WO2023142389 A1 WO 2023142389A1 CN 2022103975 W CN2022103975 W CN 2022103975W WO 2023142389 A1 WO2023142389 A1 WO 2023142389A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
screen projection
screen
target application
whitelist
Prior art date
Application number
PCT/CN2022/103975
Other languages
French (fr)
Chinese (zh)
Inventor
李宾
田园
候志龙
Original Assignee
深圳创维-Rgb电子有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳创维-Rgb电子有限公司 filed Critical 深圳创维-Rgb电子有限公司
Publication of WO2023142389A1 publication Critical patent/WO2023142389A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Definitions

  • the present application relates to the technical field of screen projection, and in particular to a screen projection method, device, electronic equipment, and storage medium.
  • the main purpose of the present application is to provide a screen projection method, device, electronic equipment and storage medium, aiming to solve the technical problem of privacy leakage during the screen projection process in the prior art.
  • the present application provides a screen projection method, the screen projection method includes:
  • the step of judging whether the second target application is a whitelist application according to the screen projection whitelist further includes:
  • step of detecting that the upper-layer application switches from the first target application to the second target application during the screen projection process, and suspending the transmission of the screen projection signal further includes:
  • the step of detecting that the upper-layer application is switched from the first target application to the second target application during the screen projection process, and suspending the transmission of the screen projection signal includes:
  • the upper layer application is switched from the first target application to the second target application, the playing content corresponding to the first target application is suspended, and the transmission of the screen projection signal is suspended.
  • the step of pausing and playing the playing content corresponding to the first target application includes:
  • the playback content corresponding to the first target application is a recording resource, pause playing the recording resource, and acquire a pause time of the recording resource
  • the step of pausing and playing the playing content corresponding to the first target application includes:
  • the playback content corresponding to the first target application is a live broadcast resource, freezing the current playback screen of the live broadcast resource, and recording the live broadcast resource to obtain a recording file;
  • step of suspending the transmission of the screen projection signal it further includes:
  • the display device displays the last frame received before suspending the transmission of the projection signal.
  • the screen projection signal includes a screen projection audio signal and a screen projection image signal.
  • the upper-layer application is an application displayed on the uppermost layer of the screen projection push terminal, and the way for the upper-layer application to switch from the first target application to the second target application includes pop-up message notification, incoming call, or through the top message Notify to switch applications or switch applications directly by switching screens.
  • the method also includes:
  • the current upper-layer application belongs to the exception scenario, it includes:
  • the privacy protection mode includes:
  • the privacy protection mode is a mode in which no screen projection is performed for privacy protection applications that require privacy protection, and the privacy protection application corresponding to the privacy protection mode is determined according to the screen projection whitelist or screen projection blacklist, and the screen projection whitelist
  • the list is a list of applications that are allowed to be displayed on the screen
  • the blacklist is a list of applications that are not allowed to be displayed on the screen
  • the present application also provides a screen projection device, the screen projection device is applied to a screen projection device, and the screen projection device includes:
  • the pause module is used to detect that the upper-layer application is switched from the first target application to the second target application during the screen projection process, and suspend the transmission of the screen projection signal;
  • a judging module configured to obtain a screen projection whitelist, and judge whether the second target application is a whitelist application according to the screen projection whitelist;
  • the transmission module is configured to determine that the second target application is a whitelist application, and continue to transmit the screen projection signal.
  • the judging module is further used to determine that the second target application is not a whitelist application, detect whether the upper-layer application is switched to a whitelist application; and detect that the upper-layer application is switched to a whitelist application, and continue to transmit the cast screen signal.
  • the present application also provides an electronic device, the electronic device is a physical device, and the electronic device includes: a memory, a processor, and the screen projection method stored in the memory and operable on the processor A program.
  • the program of the screen projection method is executed by the processor, the steps of the above screen projection method can be realized.
  • the present application also provides a storage medium, the storage medium is a computer-readable storage medium, and the computer-readable storage medium stores a program for implementing the screen projection method, and the program for the screen projection method is implemented when the processor executes the program. The steps of the above screen casting method.
  • the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above screen projection method are realized.
  • the present application provides a screen projection method, device, electronic equipment, and storage medium, by suspending the transmission of the screen projection signal when it is detected that the upper layer application is switched from the first target application to the second target application during the screen projection process.
  • the transmission of the screen projection signal is suspended to ensure that if the display content of the switched-to second target application contains private content, it will not be displayed synchronously immediately, and then by obtaining the screen projection whitelist, according to the screen projection
  • the whitelist judges whether the second target application is a whitelist application, and if it is determined that the second target application is a whitelist application, then continue to transmit the screen projection signal, realizing whether the second target application can be determined according to the screen projection whitelist Screen projection display, if it is determined that the second target application is a whitelist application, it means that the second target application does not contain private content, then the screen projection signal can be continuously transmitted, and the display corresponding to the second target application can be displayed on the screen projection
  • the screen realizes the suspension of transmission of projection signals only for applications that are
  • FIG. 1 is a schematic diagram of a screen projection connection scenario of an embodiment of the screen projection call method of the present application
  • FIG. 2 is a schematic structural diagram of an electronic device in a hardware operating environment involved in the method of casting a call in an embodiment of the present application;
  • FIG. 3 is a schematic flow diagram of an embodiment of the screen projection method of the present application.
  • FIG. 4 is a schematic diagram of a scenario of an implementation mode of the method for casting a call in the present application
  • FIG. 5 is a schematic structural diagram of a device involved in a method of casting a call in an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a screen projection connection involved in an embodiment of the present invention.
  • the screen projector includes: a screen projector transmitter and/or a screen projector receiver, wherein the first electronic device may be a personal computer, a smart phone, a tablet computer, an e-book reader or a portable computer, etc.
  • the second electronic device may be a display device with a display function such as a television, a monitor, or a projector.
  • the first electronic device is connected to the screen projector transmitter and/or screen projector receiver through a wired or wireless network for data transmission and interaction; the screen projector transmitter is connected to the screen projector receiver through a wireless network for data transmission and interaction.
  • Data transmission and interaction, or the screen projector transmitter is connected to the second electronic device through a wireless network for data transmission and interaction; the screen projector receiver is connected to the second electronic device through a wired or wireless network for data transmission and interaction.
  • the wired connection between the screen projector receiver and the second electronic device and between the screen projector transmitter and the first electronic device may include HDMI (High Definition Multimedia Interface, USB (Universal Serial Bus, Universal Serial Bus), DP (DisplayPort, Display Interface) and VGA (Video Graphics Array, Video Graphics Array) and other wired connections.
  • HDMI High Definition Multimedia Interface
  • USB Universal Serial Bus
  • DP DisplayPort
  • VGA Video Graphics Array, Video Graphics Array
  • Bluetooth Bluetooth
  • Wi- Fi wireless broadband
  • Possible connection methods for screen projection between the first electronic device, the screen projector transmitter, the screen projector receiver, and the second electronic device at least include:
  • the screen projector transmitter is connected to the screen projector receiver, and the screen of the first electronic device is finally projected to the second electronic device through the screen projector transmitter and screen projector receiver;
  • the screen projector transmitter is wirelessly connected to the second electronic device, and the screen of the first electronic device is projected to the second electronic device through the screen projector transmitter. At this time, the screen projector transmitter and the built-in second electronic device
  • the wireless communication modules are connected via a wireless network;
  • the first electronic device is connected to the screen projector receiver, and the screen of the first electronic device is projected to the second electronic device through the screen projector receiver.
  • FIG. 2 is a schematic structural diagram of an electronic device in a hardware operating environment involved in the screen-casting call method in the embodiment of the present application.
  • Electronic devices in the embodiments of the present disclosure may include, but are not limited to, TVs, screen projectors, screen projector receivers, screen projector transmitters, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants) , PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as vehicle navigation terminal), digital TV, desktop computer and other fixed terminals.
  • the electronic device further includes: a processor 1001 , such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002 , a network interface 1003 , and a memory 1004 .
  • the communication bus 1002 is used to realize connection and communication between these components.
  • the network interface 1003 may include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (Wireless-Fidelity, WI-FI) interface).
  • Memory 1004 can be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as disk memory.
  • the memory 1004 may also be a storage device independent of the aforementioned processor 1001 .
  • the terminal may also include a camera, RF (Radio Frequency, radio frequency) circuits, sensors, audio circuits, WiFi modules, etc.
  • sensors such as light sensors, motion sensors and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and/or backlight.
  • the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile terminal posture (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
  • FIG. 2 does not constitute a limitation on the operating equipment, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
  • the memory 1004 as a storage medium may include an operating system, a data storage module, a network communication module, and a screen-casting call program.
  • the network interface 1003 is mainly used for data communication with other devices.
  • the processor 1001 and memory 1004 in the operating device of the present invention can be set in the operating device, and the operating device invokes the screen projection call program stored in the memory 1004 through the processor 1001, and performs the following operations:
  • the second target application is a whitelist application, continue to transmit the screen projection signal.
  • the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
  • the second target application is not a whitelist application, then detecting whether the upper layer application is switched to a whitelist application;
  • the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
  • the current projection screen display mode is a privacy protection mode
  • the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
  • the playback of the content corresponding to the first target application is suspended, and the transmission of the screen projection signal is suspended.
  • the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
  • the playback content corresponding to the first target application is a recording and broadcasting resource, then pause playing the recording and broadcasting resource, and obtain the pause time of the recording and broadcasting resource;
  • the recording resource is continued to be played from the pause time.
  • the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
  • the playback content corresponding to the first target application is a live broadcast resource, freeze the current playback screen of the live broadcast resource, and record the live broadcast resource to obtain a recording file;
  • the recorded file is played.
  • the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
  • the display device displays the last frame received before suspending the transmission of the projection signal.
  • An embodiment of the present application provides a screen projection method.
  • the screen projection method includes:
  • Step S10 when it is detected that the upper-layer application is switched from the first target application to the second target application during the screen projection process, suspending the transmission of the screen projection signal;
  • the screen projection is a process of projecting the display screen of the screen projection push end to the screen projection receiving end for display, and the screen projection receiving end communicates with the screen projection push end.
  • the execution subject of the embodiment may be a screen projection pusher or a screen projection receiver, wherein the screen projection receiver is a device that receives a screen projection, such as a TV, a computer or a projector, etc., in an implementable manner , the screen projection receiving end may also be a screen projection receiver connected to a display and/or a speaker, and the screen projection receiver may be connected to the display and/or a speaker through a wired or wireless connection.
  • the audio signal and image signal received by the screen projection are output through the display and/or speaker connected to the receiver of the screen projection device;
  • Devices such as mobile phones, computers, or tablets.
  • the screen projection push end may also be a screen projection transmitter connected to a mobile device, and the screen projection transmitter and the mobile device may be connected through a wired or wireless connection, and the mobile device Send the audio signal and image signal of the desired screen projection to the screen projection receiver through the screen projection device transmitter.
  • the method of switching the upper-level application from the first target application to the second target application includes pop-up message notification, incoming call, or switching applications (for example: switching applications through top message notifications or switching applications directly by switching screens, etc.
  • the exception scenario of the upper-layer application can also be set, and if it is determined that the current upper-layer application belongs to the exception scenario, then re-determined from other applications except the current upper-layer application
  • a new upper-level application for example, if it is determined that the exception scene is the top floating window, and the top floating window of WeChat is received during the process of watching the video on the screen, it will be re-determined from other applications except the WeChat application.
  • the new upper-level application at this time, the new upper-level application should be the original application for watching videos, which can avoid the bad experience of continuous interruption of WeChat messages during the process of watching videos and other continuous screen projections, in an implementable way
  • the privacy protection of the upper-layer application corresponding to the exception scenario may be performed by obfuscating or other concealment processing on the upper-layer application corresponding to the exception scenario.
  • the step of suspending the transmission of the screen projection signal when it is detected that the upper layer application is switched from the first target application to the second target application during the screen projection process it further includes:
  • Step A10 obtaining the current projection display mode
  • Step A20 if it is determined that the current projection screen display mode is the privacy protection mode, then monitor whether the upper layer application performs application switching.
  • the screen projection display mode currently set by the screen projection connection is obtained, and it is judged whether the currently set screen projection display mode is a privacy protection mode, and if it is determined that the current screen projection display mode is a privacy protection mode, Then monitor whether the upper-level application of the mobile device at the screen projection push end performs application switching, wherein the screen projection display mode is a display mode for performing screen projection display or not performing screen projection display determined according to different scenarios during the screen projection process , including privacy protection mode, unlimited casting mode, meeting mode and/or game mode, etc., which can be pre-set according to big data or test data, etc., and can also guide users to set and change according to their own needs.
  • the privacy protection mode is For the privacy protection application that needs privacy protection, the mode that does not perform screen projection display, the privacy protection application corresponding to the privacy protection mode can be determined according to the screen projection whitelist or the screen projection blacklist, and the screen projection whitelist is to allow projection.
  • the list of applications displayed on the screen, the blacklist is a list of applications that are not allowed to be displayed on the screen, the white list of screen projection and the blacklist of screen projection can be pre-set according to big data or test data, etc., and users can also be guided according to Set and change according to your own needs.
  • the privacy protection mode can be enabled by default when establishing a screen projection connection, can be enabled when a user operation to switch to the privacy protection mode is detected, or can be captured by the sound signal collected by the microphone and/or the camera
  • the received image signal determines the number of viewers on the projection screen, and if it is detected that the number of viewers on the projection screen exceeds the preset number, the privacy protection mode is automatically turned on.
  • step of obtaining the current screen projection display mode it further includes: outputting prompt information of the current screen projection display mode to remind the user of the current screen projection display mode, if the If the current projected screen display mode does not meet the current needs of the user, the user can make adjustments in time.
  • the step of suspending the transmission of the screen projection signal includes:
  • the playback of the content corresponding to the first target application is suspended, and the transmission of the screen projection signal is suspended.
  • the playback content corresponding to the target application and suspend the transmission of the screen projection signal to the screen projection receiver, wherein the playback content includes recording resources (such as: online video, music, etc.), live resources (such as: webcast, radio, etc.) and/or instant resources (eg: games, calls, etc.), etc.
  • recording resources such as: online video, music, etc.
  • live resources such as: webcast, radio, etc.
  • instant resources eg: games, calls, etc.
  • the step of pausing and playing the playing content corresponding to the first target application includes:
  • Step B10 judging whether the playback content corresponding to the first target application is a recording resource
  • the resource information of the playback content corresponding to the first target application it is judged whether the playback content is a recording resource, wherein the resource information is related information of the playback resource, which is used to Determine whether the playback resource is a live broadcast resource or a recorded broadcast resource. For example, if it is detected that the playback content is a video content of a live broadcast platform, then the playback content is a live broadcast resource; if it is detected that the playback content is an update on a video website episodes, the broadcast content is a recorded resource.
  • the resource information can also be identified by character recognition of the broadcast content. The broadcast content is a live broadcast resource, and if no text related to the live broadcast is recognized, it is determined that the broadcast content is a recorded broadcast resource.
  • Step B20 if it is determined that the playback content corresponding to the first target application is a recording and broadcasting resource, then pause playing the recording and broadcasting resource, and obtain the pause time of the recording and broadcasting resource;
  • Step B30 when it is detected that the upper-layer application is switched to the first target application, continue to play the recording resource from the pause time.
  • the playback of the recorded resource is paused, and the pause time of the recorded resource is obtained.
  • the application is switched to the first target application, continue to play the recorded resource from the pause time; if it is determined that the currently played content is not a recorded resource, the currently played content may be a live resource or cannot Pause resources, etc., then do not pause the current playback content, or freeze the current playback screen of the live broadcast resource, and record the current playback content to obtain a recording file.
  • the upper-layer application is switched to the first target application to play the recording.
  • the content being played is automatically paused when the application is switched, and the originally played content is automatically resumed when the application is switched back to the original application, which can avoid the problem of privacy leakage that may be caused by switching applications, and can also avoid missing information caused by switching applications.
  • the content played in the original application can continue to watch the content played in the original application from the time of switching applications without manually pausing or reverting, which not only protects user privacy, but also ensures the mirroring experience and simplifies user operations.
  • the step of pausing and playing the playing content corresponding to the first target application includes:
  • Step C10 judging whether the playback content corresponding to the first target application is a live resource
  • the resource information of the broadcast content corresponding to the first target application it is judged whether the broadcast content is a live broadcast resource, wherein the resource information is related information of the broadcast resource, and is used for judging Whether the broadcast resource is a live broadcast resource or a recorded broadcast resource, for example, if it is detected that the broadcast content is video content of a live broadcast platform, then the broadcast content is a live broadcast resource; if it is detected that the broadcast content is an updated If it is a drama series, the playback content is a recorded broadcast resource.
  • the resource information can also be identified by character recognition of the playback content.
  • the content is a live broadcast resource. If no text related to the live broadcast is recognized, it is determined that the broadcast content is a recorded broadcast resource.
  • Step C20 if it is determined that the playback content corresponding to the first target application is a live broadcast resource, freeze the current playback screen of the live broadcast resource, and record the live broadcast resource to obtain a recording file;
  • Step C30 when it is detected that the upper layer application is switched to the first target application, playing the recorded file.
  • the playback content corresponding to the first target application is a recording resource
  • freeze the current playback screen of the live broadcast resource and start recording the video from the frozen current playback screen.
  • Live resource obtain the recorded file, when it is detected that the upper-layer application is switched to the first target application, start playing the recorded file from the frozen current playback screen, and continue to record the live resource until the live resource End or the user ends the playback of the live broadcast resource;
  • the current playback content may be a recorded broadcast resource or a resource that cannot be paused, etc., then pause or not
  • the pause time of the recording resource is obtained, and when it is detected that the upper layer application switches to the first target application, continue from the pause time Play the recorded resource.
  • the live broadcast content played in the app not only protects the user's privacy, but also guarantees the screencasting experience.
  • step of suspending the transmission of the screen projection signal it further includes:
  • the display device displays the last frame received before suspending the transmission of the projection signal.
  • the display device corresponding to the screen projection receiving end outputs and displays the last frame of picture, wherein the screen projection
  • the last frame of picture received by the receiving end is the last frame of picture when the upper-level application is the first target application before the upper-layer application of the projection pusher switches from the first target application to the second target application.
  • the screen projection receiving end sends a pause projection instruction so that the screen projection receiving end displays the last frame received, and when the upper layer application switches back to the first target application and continues to transmit the screen projection signal to the screen projection receiving end,
  • the coherence between the screens can be made, and the impact on the user's screen projection experience can be reduced.
  • step of suspending the transmission of the screen projection signal after the step of suspending the transmission of the screen projection signal, it further includes:
  • Step S20 obtaining a screen projection whitelist, and judging whether the second target application is a whitelist application according to the screen projection whitelist;
  • the screen projection whitelist is obtained, and it is judged whether there is application information matching the second target application in the screen projection whitelist. If it is determined that there is no application information matching the second target application in the screen projection whitelist, the The second target application is not a whitelist application, wherein the screen projection whitelist is a list of applications that are allowed to be displayed on the screen projection receiving end through screen projection, and the screen projection whitelist can be based on big data or test data, etc. It can also be pre-set and guide users to set and change according to their own needs.
  • the step of judging whether the second target application is a whitelist application according to the screen projection whitelist further includes:
  • Step D10 if it is determined that the second target application is not a whitelist application, then detecting whether the upper layer application is switched to a whitelist application;
  • Step D20 when it is detected that the upper layer application is switched to the white list application, continue to transmit the screen projection signal.
  • the third target application is matched with the screen projection whitelist, and it is judged whether the third target application is a whitelist application, and if it is determined that the third target application is not a whitelist application, then return to the step: real-time detection of whether the upper layer application changes , if it is determined that the third target application is a whitelist application, continue to transmit a screen projection signal to the screen projection receiving end, wherein the third target application may be the first target application or other applications .
  • Step S30 if it is determined that the second target application is a whitelist application, continue to transmit the screen projection signal
  • the second target application is a whitelist application
  • cancel the pause transmission operation of the screen projection signal and continue to transmit the screen projection signal to the screen projection receiving end; If the second target application is not a whitelist application, continue to suspend the transmission of the screen projection signal to the screen projection receiver.
  • the screen projection receiving end includes a TV 400 and a screen projection receiver 300, the TV 400 and the screen projection receiver 300 are connected in communication, and the projection
  • the screen push end includes a mobile phone 100 and a screen projector transmitter 200, the mobile phone 100 is communicatively connected to the screen projector transmitter 200, and the screen projector receiver 300 is communicatively connected to the screen projector transmitter 200,
  • the screen projector transmitter 200 synchronously transmits the screen image and sound of the mobile phone 100 to the screen projector receiver 300
  • the screen projector receiver 300 transmits the received screen of the mobile phone 100
  • the picture and sound are sent to the TV 400 for picture display and sound playback.
  • the mobile phone 100 When the mobile phone 100 detects that the upper-level application is switched from the first target application to the second target application during the screen projection process, the mobile phone 100 suspends sending the projection to the screen projection device transmitter 200. screen signal, so as to prevent the screen projector transmitter 200 from sending private information to the screen projector receiver 300, thereby preventing the TV 400 from outputting private information, obtaining a screen projection whitelist, and judging the first screen projection whitelist according to the screen projection whitelist 2.
  • the target application is a whitelist application
  • the transmission of the screen projection signal is suspended, so that the transmission of the screen projection signal is suspended every time the application is switched. , so as to ensure that if the displayed content of the switched-to second target application contains private content, it will not be displayed synchronously immediately, and then by obtaining the screen projection white list, judge whether the second target application is white or not according to the screen projection white list
  • the list application if it is determined that the second target application is a whitelist application, then continue to transmit the screen projection signal, realizing whether the second target application can be displayed on the screen according to the screen projection whitelist, if it is determined that the second target application If it is a whitelist application, it means that the second target application does not contain private content, then the screen projection signal can be continuously transmitted, and the display screen corresponding to the second target application can be displayed on the screen, which realizes that only users who are not on the screen projection whitelist
  • the application suspends the transmission of
  • the embodiment of the present application also provides a screen projection device.
  • the screen projection device is applied to a screen projection device, and the screen projection device includes:
  • the pause module 10 is used to suspend the transmission of the screen projection signal when it is detected that the upper layer application is switched from the first target application to the second target application during the screen projection process;
  • the judging module 20 is configured to obtain a screen projection whitelist, and judge whether the second target application is a whitelist application according to the screen projection whitelist;
  • the transmission module 30 is configured to continue to transmit the screen projection signal if it is determined that the second target application is a whitelist application.
  • the transmission module 30 is also used for:
  • the second target application is not a whitelist application, then detecting whether the upper layer application is switched to a whitelist application;
  • the screen projection device further includes a monitoring module, and the monitoring module is also used for:
  • the current projection screen display mode is the privacy protection mode, then it is monitored whether the upper layer application performs application switching.
  • the suspension module 10 is also used for:
  • the playback of the content corresponding to the first target application is suspended, and the transmission of the screen projection signal is suspended.
  • the suspension module 10 is also used for:
  • the playback content corresponding to the first target application is a recording and broadcasting resource, then pause playing the recording and broadcasting resource, and obtain the pause time of the recording and broadcasting resource;
  • the recording resource is continued to be played from the pause time.
  • the suspension module 10 is also used for:
  • the playback content corresponding to the first target application is a live broadcast resource, freeze the current playback screen of the live broadcast resource, and record the live broadcast resource to obtain a recording file;
  • the recorded file is played.
  • the screen projection device further includes an instruction sending module, and the instruction sending module is also used for:
  • the display device displays the last frame received before suspending the transmission of the projection signal.
  • the screen projection device provided by the present invention adopts the screen projection method in the above embodiments, and solves the technical problem of privacy leakage during the screen projection process in the prior art.
  • the beneficial effect of the screen projection device provided by the embodiment of the present invention is the same as that of the screen projection method provided by the above embodiment, and other technical features of the screen projection device are the same as those disclosed by the method of the above embodiment The features are the same, and will not be repeated here.
  • the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above screen projection method are realized.
  • the computer program product provided by the present application solves the technical problem of privacy leakage in the process of screen projection in the prior art.
  • the beneficial effect of the computer program product provided by the embodiment of the present invention is the same as the beneficial effect of the screen projection method provided by the foregoing embodiment, and details are not repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Disclosed in the present application are a screen mirroring method and apparatus, and an electronic device and a storage medium. The screen mirroring method comprises: pausing transmission of a screen mirroring signal when it is detected that an upper-layer application switches from a first target application to a second target application during a screen mirroring process; acquiring a screen mirroring whitelist, and determining, according to the screen mirroring whitelist, whether the second target application is a whitelist application; and if it is determined that the second target application is a whitelist application, continuing to transmit the screen mirroring signal. The present application solves the technical problem of privacy disclosure during a screen mirroring process in the prior art.

Description

投屏方法、装置、电子设备及存储介质Screen projection method, device, electronic device and storage medium
本申请要求于2022年1月30日提交中国专利局、申请号为202210113740.0、名称为“投屏方法、装置、电子设备及存储介质”的中国专利申请的优先权。This application claims the priority of the Chinese patent application with application number 202210113740.0 and titled "screen projection method, device, electronic equipment and storage medium" submitted to the China Patent Office on January 30, 2022.
技术领域technical field
本申请涉及投屏技术领域,尤其涉及一种投屏方法、装置、电子设备及存储介质。The present application relates to the technical field of screen projection, and in particular to a screen projection method, device, electronic equipment, and storage medium.
背景技术Background technique
随着科技的发展和人们生活水平的提高,通过电视大屏、投影仪等显示设备,显示手机、平板电脑、计算机等移动设备的屏幕的功能已经日益普及,用户常常将移动设备的图片、音乐、视频等推送到显示设备上进行播放,然而,将移动设备的屏幕进行同屏投送时,当手机上显示出隐私内容时,也会同步投送到显示设备上,而显示设备往往是公共属性的屏幕,因此会造成个人隐私的泄露。With the development of science and technology and the improvement of people's living standards, the function of displaying the screens of mobile devices such as mobile phones, tablet computers, and computers through large TV screens, projectors, and other display devices has become increasingly popular. , video, etc. are pushed to the display device for playback. However, when the screen of the mobile device is projected on the same screen, when the private content is displayed on the mobile phone, it will also be projected to the display device synchronously, and the display device is often public. properties of the screen, so it will cause the leakage of personal privacy.
技术问题technical problem
本申请的主要目的在于提供一种投屏方法、装置、电子设备及存储介质,旨在解决现有技术在投屏过程中隐私泄露的技术问题。The main purpose of the present application is to provide a screen projection method, device, electronic equipment and storage medium, aiming to solve the technical problem of privacy leakage during the screen projection process in the prior art.
技术解决方案technical solution
为实现上述目的,本申请提供一种投屏方法,所述投屏方法包括:In order to achieve the above purpose, the present application provides a screen projection method, the screen projection method includes:
在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停传输投屏信号;During the screen projection process, it is detected that the upper-layer application is switched from the first target application to the second target application, and the transmission of the screen projection signal is suspended;
获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用;及Obtaining a screen projection whitelist, and judging whether the second target application is a whitelist application according to the screen projection whitelist; and
确定所述第二目标应用为白名单应用,继续传输投屏信号。Determine that the second target application is a whitelist application, and continue to transmit the screen projection signal.
在一实施例中,所述根据所述投屏白名单判断所述第二目标应用是否为白名单应用的步骤之后,还包括:In an embodiment, after the step of judging whether the second target application is a whitelist application according to the screen projection whitelist, further includes:
确定所述第二目标应用不为白名单应用,检测上层应用是否切换至白名单应用;及determining that the second target application is not a whitelist application, and detecting whether the upper-layer application is switched to a whitelist application; and
检测到上层应用切换至白名单应用,继续传输投屏信号。It detects that the upper-layer application is switched to the whitelist application, and continues to transmit the screen projection signal.
在一实施例中,所述在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停传输投屏信号的步骤之前,还包括:In an embodiment, before the step of detecting that the upper-layer application switches from the first target application to the second target application during the screen projection process, and suspending the transmission of the screen projection signal, further includes:
获取当前的投屏显示模式;Get the current projection mode;
确定所述当前的投屏显示模式为隐私保护模式,监测上层应用是否进行应用切换。Determining that the current projection screen display mode is a privacy protection mode, and monitoring whether the upper-layer application performs application switching.
在一实施例中,所述在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停传输投屏信号的步骤包括:In one embodiment, the step of detecting that the upper-layer application is switched from the first target application to the second target application during the screen projection process, and suspending the transmission of the screen projection signal includes:
在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停播放所述第一目标应用对应的播放内容,并暂停传输投屏信号。During the screen projection process, it is detected that the upper layer application is switched from the first target application to the second target application, the playing content corresponding to the first target application is suspended, and the transmission of the screen projection signal is suspended.
在一实施例中,所述暂停播放所述第一目标应用对应的播放内容的步骤包括:In an embodiment, the step of pausing and playing the playing content corresponding to the first target application includes:
判断所述第一目标应用对应的播放内容是否为录播资源;judging whether the playback content corresponding to the first target application is a recording resource;
判定所述第一目标应用对应的播放内容为录播资源,暂停播放所述录播资源,并获取所述录播资源的暂停时间;及Determine that the playback content corresponding to the first target application is a recording resource, pause playing the recording resource, and acquire a pause time of the recording resource; and
检测到上层应用切换至所述第一目标应用,从所述暂停时间开始继续播放所述录播资源。It is detected that the upper-layer application is switched to the first target application, and the recording and broadcasting resource is continued to be played from the pause time.
在一实施例中,所述暂停播放所述第一目标应用对应的播放内容的步骤包括:In an embodiment, the step of pausing and playing the playing content corresponding to the first target application includes:
判断所述第一目标应用对应的播放内容是否为直播资源;judging whether the playback content corresponding to the first target application is a live resource;
判定所述第一目标应用对应的播放内容为直播资源,定格所述直播资源的当前播放画面,并录制所述直播资源,得到录制文件;及determining that the playback content corresponding to the first target application is a live broadcast resource, freezing the current playback screen of the live broadcast resource, and recording the live broadcast resource to obtain a recording file; and
检测到上层应用切换至所述第一目标应用,播放所述录制文件。It is detected that the upper layer application is switched to the first target application, and the recorded file is played.
在一实施例中,所述暂停传输投屏信号的步骤之后,还包括:In an embodiment, after the step of suspending the transmission of the screen projection signal, it further includes:
通过显示设备显示暂停传输投屏信号之前接收到的最后一帧画面。The display device displays the last frame received before suspending the transmission of the projection signal.
在一实施例中,所述投屏信号包括投屏音频信号和投屏图像信号。In an embodiment, the screen projection signal includes a screen projection audio signal and a screen projection image signal.
在一实施例中,所述上层应用是在投屏推送端最上层进行显示的应用,所述上层应用从第一目标应用切换至第二目标应用的方式包括弹出消息通知、来电或通过顶部消息通知切换应用或直接通过切换画面的方式切换应用。In an embodiment, the upper-layer application is an application displayed on the uppermost layer of the screen projection push terminal, and the way for the upper-layer application to switch from the first target application to the second target application includes pop-up message notification, incoming call, or through the top message Notify to switch applications or switch applications directly by switching screens.
在一实施例中,所述方法还包括:In one embodiment, the method also includes:
设置上层应用的例外场景;Set exception scenarios for upper-layer applications;
确定当前的上层应用属于所述例外场景,从除去所述当前的上层应用之外的其他应用中重新确定新的上层应用,determining that the current upper-layer application belongs to the exception scenario, re-determining a new upper-layer application from other applications except the current upper-layer application,
在一实施例中,所述若确定当前的上层应用属于所述例外场景,包括:In an embodiment, if it is determined that the current upper-layer application belongs to the exception scenario, it includes:
确定所述例外场景为顶部悬浮窗,收到当前的上层应用的顶部悬浮窗,从除去所述当前的上层应用之外的其他应用中重新确定新的上层应用.Determine that the exception scenario is the top floating window, receive the top floating window of the current upper application, and re-determine a new upper application from other applications except the current upper application.
在一实施例中,所述隐私保护模式包括:In one embodiment, the privacy protection mode includes:
所述隐私保护模式是对需要进行隐私保护的隐私保护应用不进行投屏显示的模式,所述隐私保护模式对应的隐私保护应用根据投屏白名单或投屏黑名单确定,所述投屏白名单是允许进行投屏显示的应用名单,所述黑名单是不允许进行投屏显示的应用名单The privacy protection mode is a mode in which no screen projection is performed for privacy protection applications that require privacy protection, and the privacy protection application corresponding to the privacy protection mode is determined according to the screen projection whitelist or screen projection blacklist, and the screen projection whitelist The list is a list of applications that are allowed to be displayed on the screen, and the blacklist is a list of applications that are not allowed to be displayed on the screen
本申请还提供一种投屏装置,所述投屏装置应用于投屏设备,所述投屏装置包括:The present application also provides a screen projection device, the screen projection device is applied to a screen projection device, and the screen projection device includes:
暂停模块,用于在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停传输投屏信号;The pause module is used to detect that the upper-layer application is switched from the first target application to the second target application during the screen projection process, and suspend the transmission of the screen projection signal;
判断模块,用于获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用;A judging module, configured to obtain a screen projection whitelist, and judge whether the second target application is a whitelist application according to the screen projection whitelist;
传输模块,用于确定所述第二目标应用为白名单应用,继续传输投屏信号。The transmission module is configured to determine that the second target application is a whitelist application, and continue to transmit the screen projection signal.
在一实施例中,所述判断模块还用于确定所述第二目标应用不为白名单应用,检测上层应用是否切换至白名单应用;及检测到上层应用切换至白名单应用,继续传输投屏信号。In one embodiment, the judging module is further used to determine that the second target application is not a whitelist application, detect whether the upper-layer application is switched to a whitelist application; and detect that the upper-layer application is switched to a whitelist application, and continue to transmit the cast screen signal.
本申请还提供一种电子设备,所述电子设备为实体设备,所述电子设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的所述投屏方法的程序,所述投屏方法的程序被处理器执行时可实现如上述的投屏方法的步骤。The present application also provides an electronic device, the electronic device is a physical device, and the electronic device includes: a memory, a processor, and the screen projection method stored in the memory and operable on the processor A program. When the program of the screen projection method is executed by the processor, the steps of the above screen projection method can be realized.
本申请还提供一种存储介质,所述存储介质为计算机可读存储介质,所述计算机可读存储介质上存储有实现投屏方法的程序,所述投屏方法的程序被处理器执行时实现如上述的投屏方法的步骤。The present application also provides a storage medium, the storage medium is a computer-readable storage medium, and the computer-readable storage medium stores a program for implementing the screen projection method, and the program for the screen projection method is implemented when the processor executes the program. The steps of the above screen casting method.
本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的投屏方法的步骤。The present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above screen projection method are realized.
有益效果Beneficial effect
本申请提供了一种投屏方法、装置、电子设备及存储介质,通过当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停传输投屏信号,实现了在每次应用切换时,暂停传输投屏信号,以确保切换至的第二目标应用的显示内容若包含隐私内容,不会立刻同步进行显示,进而通过获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用,若确定所述第二目标应用为白名单应用,则继续传输投屏信号,实现了根据投屏白名单确定第二目标应用是否可以进行投屏显示,若确定所述第二目标应用为白名单应用,则说明所述第二目标应用未包含隐私内容,则可以继续传输投屏信号,投屏显示所述第二目标应用对应的显示画面,实现了仅对不在投屏白名单上的应用进行暂停传输投屏信号,有效提高了投屏过程中对个人隐私的保护,克服了现有技术在投屏过程中隐私泄露的技术问题。The present application provides a screen projection method, device, electronic equipment, and storage medium, by suspending the transmission of the screen projection signal when it is detected that the upper layer application is switched from the first target application to the second target application during the screen projection process. When each application is switched, the transmission of the screen projection signal is suspended to ensure that if the display content of the switched-to second target application contains private content, it will not be displayed synchronously immediately, and then by obtaining the screen projection whitelist, according to the screen projection The whitelist judges whether the second target application is a whitelist application, and if it is determined that the second target application is a whitelist application, then continue to transmit the screen projection signal, realizing whether the second target application can be determined according to the screen projection whitelist Screen projection display, if it is determined that the second target application is a whitelist application, it means that the second target application does not contain private content, then the screen projection signal can be continuously transmitted, and the display corresponding to the second target application can be displayed on the screen projection The screen realizes the suspension of transmission of projection signals only for applications that are not on the projection whitelist, which effectively improves the protection of personal privacy during the projection process and overcomes the technical problem of privacy leakage during the projection process in the prior art.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1本申请投屏通话方法一实施例的投屏连接场景示意图;FIG. 1 is a schematic diagram of a screen projection connection scenario of an embodiment of the screen projection call method of the present application;
图2为本申请实施例中投屏通话方法涉及的硬件运行环境的电子设备结构示意图;FIG. 2 is a schematic structural diagram of an electronic device in a hardware operating environment involved in the method of casting a call in an embodiment of the present application;
图3为本申请投屏方法一实施例的流程示意图;FIG. 3 is a schematic flow diagram of an embodiment of the screen projection method of the present application;
图4为本申请投屏通话方法一种可实施方式的场景示意图;FIG. 4 is a schematic diagram of a scenario of an implementation mode of the method for casting a call in the present application;
图5为本申请实施例中投屏通话方法涉及的装置结构示意图。FIG. 5 is a schematic structural diagram of a device involved in a method of casting a call in an embodiment of the present application.
本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functions and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
本发明的实施方式Embodiments of the present invention
为使本发明的上述目的、特征和优点能够更加明显易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其它实施例,均属于本发明保护的范围。In order to make the above objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参照图1,图1为本发明实施例方案涉及的投屏连接示意图。Referring to FIG. 1 , FIG. 1 is a schematic diagram of a screen projection connection involved in an embodiment of the present invention.
如图1所示,投屏器包括:投屏器发射器和/或投屏器接收器,其中,第一电子设备可以是个人电脑、智能手机、平板电脑、电子书阅读器或便携计算机等可移动式终端设备,第二电子设备可以是电视、显示器或投影仪等具有显示功能的显示设备。As shown in Figure 1, the screen projector includes: a screen projector transmitter and/or a screen projector receiver, wherein the first electronic device may be a personal computer, a smart phone, a tablet computer, an e-book reader or a portable computer, etc. For the mobile terminal device, the second electronic device may be a display device with a display function such as a television, a monitor, or a projector.
在一些实施例中,第一电子设备通过有线或无线网络连接投屏器发射器和/或投屏器接收器进行数据传输与交互;投屏器发射器通过无线网络连接投屏器接收器进行数据传输与交互,或者投屏器发射器通过无线网络连接第二电子设备进行数据传输与交互;投屏器接收器通过有线或无线网络连接第二电子设备进行数据传输与交互。在一实现方式中,投屏器接收器与第二电子设备之间以及投屏器发射器与第一电子设备之间的有线连接方式,可以包括基于HDMI(High Definition Multimedia Interface,高清多媒体接口)、USB(Universal Serial Bus,通用串行总线)、DP(DisplayPort,显示接口)和VGA(Video Graphics Array,视频图形阵列)等有线连接。第一电子设备与投屏器发射器和投屏器接收器之间、第二电子设备与投屏器发射器和投屏器接收器之间可以采用包括蓝牙(Bluetooth)、无线宽带(Wi-Fi)、红外通讯等无线通信。In some embodiments, the first electronic device is connected to the screen projector transmitter and/or screen projector receiver through a wired or wireless network for data transmission and interaction; the screen projector transmitter is connected to the screen projector receiver through a wireless network for data transmission and interaction. Data transmission and interaction, or the screen projector transmitter is connected to the second electronic device through a wireless network for data transmission and interaction; the screen projector receiver is connected to the second electronic device through a wired or wireless network for data transmission and interaction. In an implementation manner, the wired connection between the screen projector receiver and the second electronic device and between the screen projector transmitter and the first electronic device may include HDMI (High Definition Multimedia Interface, USB (Universal Serial Bus, Universal Serial Bus), DP (DisplayPort, Display Interface) and VGA (Video Graphics Array, Video Graphics Array) and other wired connections. Between the first electronic device and the screen projector transmitter and the screen projector receiver, between the second electronic device and the screen projector transmitter and the screen projector receiver, Bluetooth (Bluetooth), wireless broadband (Wi- Fi), infrared communication and other wireless communication.
第一电子设备、投屏器发射器、投屏器接收器和第二电子设备之间实现投屏时可能的连接方式至少包括:Possible connection methods for screen projection between the first electronic device, the screen projector transmitter, the screen projector receiver, and the second electronic device at least include:
(1)投屏器发射器与投屏器接收器连接,第一电子设备的画面经过投屏器发射器、投屏器接收器,最终投屏到第二电子设备;(1) The screen projector transmitter is connected to the screen projector receiver, and the screen of the first electronic device is finally projected to the second electronic device through the screen projector transmitter and screen projector receiver;
(2)投屏器发射器与第二电子设备无线连接,第一电子设备的画面经过投屏器发射器投屏到第二电子设备,此时投屏器发射器与第二电子设备内置的无线通信模块通过无线网络相连;以及(2) The screen projector transmitter is wirelessly connected to the second electronic device, and the screen of the first electronic device is projected to the second electronic device through the screen projector transmitter. At this time, the screen projector transmitter and the built-in second electronic device The wireless communication modules are connected via a wireless network; and
(3)第一电子设备与投屏器接收器连接,第一电子设备的画面经过投屏器接收器投屏到第二电子设备。(3) The first electronic device is connected to the screen projector receiver, and the screen of the first electronic device is projected to the second electronic device through the screen projector receiver.
参照图2,图2为本申请实施例中投屏通话方法涉及的硬件运行环境的电子设备结构示意图。本公开实施例中的电子设备可以包括但不限于诸如电视机、投屏器、投屏器接收器、投屏器发射器、移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)、数字TV、台式计算机等等的固定终端。Referring to FIG. 2 , FIG. 2 is a schematic structural diagram of an electronic device in a hardware operating environment involved in the screen-casting call method in the embodiment of the present application. Electronic devices in the embodiments of the present disclosure may include, but are not limited to, TVs, screen projectors, screen projector receivers, screen projector transmitters, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants) , PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as vehicle navigation terminal), digital TV, desktop computer and other fixed terminals.
如图2所示,所述电子设备还包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002,网络接口1003,存储器1004。其中,通信总线1002用于实现这些组件之间的连接通信。网络接口1003可选的可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,WI-FI)接口)。存储器1004可以是高速的随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1004可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 2 , the electronic device further includes: a processor 1001 , such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002 , a network interface 1003 , and a memory 1004 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. Optionally, the network interface 1003 may include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (Wireless-Fidelity, WI-FI) interface). Memory 1004 can be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as disk memory. Optionally, the memory 1004 may also be a storage device independent of the aforementioned processor 1001 .
在一实施例中,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。In one embodiment, the terminal may also include a camera, RF (Radio Frequency, radio frequency) circuits, sensors, audio circuits, WiFi modules, etc. Among them, sensors such as light sensors, motion sensors and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and/or backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile terminal posture (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
本领域技术人员可以理解,图2中示出的结构并不构成对运行设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 2 does not constitute a limitation on the operating equipment, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
如图2所示,作为一种存储介质的存储器1004中可以包括操作系统、数据存储模块、网络通信模块以及投屏通话程序。As shown in FIG. 2 , the memory 1004 as a storage medium may include an operating system, a data storage module, a network communication module, and a screen-casting call program.
在图2所示的运行设备中,网络接口1003主要用于与其他设备进行数据通信。本发明运行设备中的处理器1001、存储器1004可以设置在运行设备中,所述运行设备通过处理器1001调用存储器1004中存储的投屏通话程序,并执行以下操作:In the running device shown in FIG. 2 , the network interface 1003 is mainly used for data communication with other devices. The processor 1001 and memory 1004 in the operating device of the present invention can be set in the operating device, and the operating device invokes the screen projection call program stored in the memory 1004 through the processor 1001, and performs the following operations:
当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停传输投屏信号;When it is detected that the upper layer application is switched from the first target application to the second target application during the screen projection process, the transmission of the screen projection signal is suspended;
获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用;Obtaining a screen projection whitelist, and judging whether the second target application is a whitelist application according to the screen projection whitelist;
若确定所述第二目标应用为白名单应用,则继续传输投屏信号。If it is determined that the second target application is a whitelist application, continue to transmit the screen projection signal.
在一实施例中,处理器1001可以调用存储器1004中存储的投屏通话程序,还执行以下操作:In an embodiment, the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
若确定所述第二目标应用不为白名单应用,则检测上层应用是否切换至白名单应用;If it is determined that the second target application is not a whitelist application, then detecting whether the upper layer application is switched to a whitelist application;
当检测到上层应用切换至白名单应用时,继续传输投屏信号。When it is detected that the upper-layer application is switched to the whitelist application, continue to transmit the screen projection signal.
在一实施例中,处理器1001可以调用存储器1004中存储的投屏通话程序,还执行以下操作:In an embodiment, the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
获取当前的投屏显示模式;Get the current projection mode;
若确定所述当前的投屏显示模式为隐私保护模式,则监测上层应用是否进行应用切换。If it is determined that the current projection screen display mode is a privacy protection mode, then it is monitored whether the upper layer application performs application switching.
在一实施例中,处理器1001可以调用存储器1004中存储的投屏通话程序,还执行以下操作:In an embodiment, the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停播放所述第一目标应用对应的播放内容,并暂停传输投屏信号。When it is detected that the upper-layer application is switched from the first target application to the second target application during the screen projection process, the playback of the content corresponding to the first target application is suspended, and the transmission of the screen projection signal is suspended.
在一实施例中,处理器1001可以调用存储器1004中存储的投屏通话程序,还执行以下操作:In an embodiment, the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
判断所述第一目标应用对应的播放内容是否为录播资源;judging whether the playback content corresponding to the first target application is a recording resource;
若判定所述第一目标应用对应的播放内容为录播资源,则暂停播放所述录播资源,并获取所述录播资源的暂停时间;If it is determined that the playback content corresponding to the first target application is a recording and broadcasting resource, then pause playing the recording and broadcasting resource, and obtain the pause time of the recording and broadcasting resource;
当检测到上层应用切换至所述第一目标应用时,从所述暂停时间开始继续播放所述录播资源。When it is detected that the upper-layer application is switched to the first target application, the recording resource is continued to be played from the pause time.
在一实施例中,处理器1001可以调用存储器1004中存储的投屏通话程序,还执行以下操作:In an embodiment, the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
判断所述第一目标应用对应的播放内容是否为直播资源;judging whether the playback content corresponding to the first target application is a live resource;
若判定所述第一目标应用对应的播放内容为直播资源,则定格所述直播资源的当前播放画面,并录制所述直播资源,得到录制文件;If it is determined that the playback content corresponding to the first target application is a live broadcast resource, freeze the current playback screen of the live broadcast resource, and record the live broadcast resource to obtain a recording file;
当检测到上层应用切换至所述第一目标应用时,播放所述录制文件。When it is detected that the upper layer application is switched to the first target application, the recorded file is played.
在一实施例中,处理器1001可以调用存储器1004中存储的投屏通话程序,还执行以下操作:In an embodiment, the processor 1001 may invoke the screen-casting call program stored in the memory 1004, and further perform the following operations:
通过显示设备显示暂停传输投屏信号之前接收到的最后一帧画面。The display device displays the last frame received before suspending the transmission of the projection signal.
本申请实施例提供一种投屏方法,在本申请投屏方法的第一实施例中,参照图3,所述投屏方法包括:An embodiment of the present application provides a screen projection method. In the first embodiment of the screen projection method of the present application, referring to FIG. 3 , the screen projection method includes:
步骤S10,当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停传输投屏信号;Step S10, when it is detected that the upper-layer application is switched from the first target application to the second target application during the screen projection process, suspending the transmission of the screen projection signal;
在本实施例中,需要说明的是,所述投屏是将投屏推送端的显示画面投送到投屏接收端进行显示的过程,所述投屏接收端与投屏推送端通信连接,本实施例的执行主体可以为投屏推送端或投屏接收端,其中,所述投屏接收端是接收投屏的设备,例如电视机、计算机或投影仪等,在一种可实施的方式中,所述投屏接收端也可以是与显示器和/或扬声器连接的投屏器接收器,所述投屏器接收器与显示器和/或扬声器之间可以通过有线或无线连接,在接收到投屏的音频信号和图像信号之后,通过与所述投屏器接收器连接的显示器和/或扬声器,输出接收到投屏的音频信号和图像信号;所述投屏推送端是推送投屏的移动设备,例如手机、计算机或平板电脑等。在一种可实施的方式中,所述投屏推送端也可以是与移动设备连接的投屏器发射器,所述投屏器发射器与移动设备之间可以通过有线或无线连接,移动设备通过投屏器发射器将所需投屏的音频信号和图像信号发送到投屏接收端。In this embodiment, it should be noted that the screen projection is a process of projecting the display screen of the screen projection push end to the screen projection receiving end for display, and the screen projection receiving end communicates with the screen projection push end. The execution subject of the embodiment may be a screen projection pusher or a screen projection receiver, wherein the screen projection receiver is a device that receives a screen projection, such as a TV, a computer or a projector, etc., in an implementable manner , the screen projection receiving end may also be a screen projection receiver connected to a display and/or a speaker, and the screen projection receiver may be connected to the display and/or a speaker through a wired or wireless connection. After the audio signal and image signal of the screen, the audio signal and image signal received by the screen projection are output through the display and/or speaker connected to the receiver of the screen projection device; Devices such as mobile phones, computers, or tablets. In an implementable manner, the screen projection push end may also be a screen projection transmitter connected to a mobile device, and the screen projection transmitter and the mobile device may be connected through a wired or wireless connection, and the mobile device Send the audio signal and image signal of the desired screen projection to the screen projection receiver through the screen projection device transmitter.
具体地,在投屏推送端向投屏接收端投屏的过程中,实时检测所述投屏推送端对应的上层应用是否发生变化,当检测到上层应用从当前显示的第一目标应用切换至第二目标应用时,暂停向投屏接收端传输投屏信号,其中,所述投屏信号包括投屏音频信号和投屏图像信号等,所述上层应用是在所述投屏推送端最上层进行显示的应用,所述上层应用从第一目标应用切换至第二目标应用的方式包括弹出消息通知、来电或切换应用(例如:通过顶部消息通知切换应用或直接通过切换画面的方式切换应用等)等,在一种可实施的方式中,还可以设置上层应用的例外场景,若确定当前的上层应用属于所述例外场景,则从除去所述当前的上层应用之外的其他应用中重新确定新的上层应用,例如,若确定所述例外场景为顶部悬浮窗,在投屏观看视频的过程中,收到微信的顶部悬浮窗,则从除去所述微信应用之外的其他应用中重新确定新的上层应用,此时新的上层应用应为原本的观看视频的应用,则可以避免观看视频等连续投屏过程中,因为微信消息不断被中断的不佳体验,在一种可实施的方式中,所述例外场景对应的上层应用的隐私保护,可以通过对所述例外场景对应的上层应用进行模糊处理或其他隐藏处理。Specifically, during the process of projecting the screen from the screen projection pusher to the screen projection receiver, it is detected in real time whether the upper-layer application corresponding to the screen projection pusher has changed, and when it is detected that the upper-layer application is switched from the currently displayed first target application to the When the second target application is used, the transmission of the screen projection signal to the screen projection receiving end is suspended, wherein the screen projection signal includes a screen projection audio signal and a screen projection image signal, etc., and the upper layer application is the uppermost layer of the screen projection push terminal For the display application, the method of switching the upper-level application from the first target application to the second target application includes pop-up message notification, incoming call, or switching applications (for example: switching applications through top message notifications or switching applications directly by switching screens, etc. ), etc., in an implementable manner, the exception scenario of the upper-layer application can also be set, and if it is determined that the current upper-layer application belongs to the exception scenario, then re-determined from other applications except the current upper-layer application For a new upper-level application, for example, if it is determined that the exception scene is the top floating window, and the top floating window of WeChat is received during the process of watching the video on the screen, it will be re-determined from other applications except the WeChat application. The new upper-level application, at this time, the new upper-level application should be the original application for watching videos, which can avoid the bad experience of continuous interruption of WeChat messages during the process of watching videos and other continuous screen projections, in an implementable way In the above, the privacy protection of the upper-layer application corresponding to the exception scenario may be performed by obfuscating or other concealment processing on the upper-layer application corresponding to the exception scenario.
在一实施例中,所述当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停传输投屏信号的步骤之前,还包括:In one embodiment, before the step of suspending the transmission of the screen projection signal when it is detected that the upper layer application is switched from the first target application to the second target application during the screen projection process, it further includes:
步骤A10,获取当前的投屏显示模式;Step A10, obtaining the current projection display mode;
步骤A20,若确定所述当前的投屏显示模式为隐私保护模式,则监测上层应用是否进行应用切换。Step A20, if it is determined that the current projection screen display mode is the privacy protection mode, then monitor whether the upper layer application performs application switching.
在本实施例中,具体地,获取所述投屏连接当前设置的投屏显示模式,判断当前设置的投屏显示模式是否为隐私保护模式,若确定当前的投屏显示模式为隐私保护模式,则监测所述投屏推送端的移动设备的上层应用是否进行应用切换,其中,所述投屏显示模式是投屏过程中根据不同情景而确定的进行投屏显示或不进行投屏显示的显示模式,包括隐私保护模式、无限畅投模式、会议模式和/或游戏模式等,可以根据大数据或测试数据等进行预先设置,也可以引导用户根据自身需求进行设置和更改,所述隐私保护模式是对需要进行隐私保护的隐私保护应用不进行投屏显示的模式,所述隐私保护模式对应的隐私保护应用可以根据投屏白名单或投屏黑名单确定,所述投屏白名单是允许进行投屏显示的应用名单,所述黑名单是不允许进行投屏显示的应用名单,所述投屏白名单和投屏黑名单均可以根据大数据或测试数据等进行预先设置,也可以引导用户根据自身需求进行设置和更改,所述隐私保护模式可以在建立投屏连接时默认开启,可以在检测到切换至隐私保护模式的用户操作时开启,也可以通过麦克风采集的声音信号和/或摄像头拍摄到的图像信号判断投屏观看人数,若检测到所述投屏观看人数超过预设人数时,自动开启隐私保护模式。In this embodiment, specifically, the screen projection display mode currently set by the screen projection connection is obtained, and it is judged whether the currently set screen projection display mode is a privacy protection mode, and if it is determined that the current screen projection display mode is a privacy protection mode, Then monitor whether the upper-level application of the mobile device at the screen projection push end performs application switching, wherein the screen projection display mode is a display mode for performing screen projection display or not performing screen projection display determined according to different scenarios during the screen projection process , including privacy protection mode, unlimited casting mode, meeting mode and/or game mode, etc., which can be pre-set according to big data or test data, etc., and can also guide users to set and change according to their own needs. The privacy protection mode is For the privacy protection application that needs privacy protection, the mode that does not perform screen projection display, the privacy protection application corresponding to the privacy protection mode can be determined according to the screen projection whitelist or the screen projection blacklist, and the screen projection whitelist is to allow projection. The list of applications displayed on the screen, the blacklist is a list of applications that are not allowed to be displayed on the screen, the white list of screen projection and the blacklist of screen projection can be pre-set according to big data or test data, etc., and users can also be guided according to Set and change according to your own needs. The privacy protection mode can be enabled by default when establishing a screen projection connection, can be enabled when a user operation to switch to the privacy protection mode is detected, or can be captured by the sound signal collected by the microphone and/or the camera The received image signal determines the number of viewers on the projection screen, and if it is detected that the number of viewers on the projection screen exceeds the preset number, the privacy protection mode is automatically turned on.
在一种可实施的方式中,所述获取当前的投屏显示模式的步骤之后,还包括:输出所述当前的投屏显示模式的提示信息,以提醒用户当前的投屏显示模式,若所述当前的投屏显示模式与用户当前的需求不符合,则用户可以及时进行调整。In an implementable manner, after the step of obtaining the current screen projection display mode, it further includes: outputting prompt information of the current screen projection display mode to remind the user of the current screen projection display mode, if the If the current projected screen display mode does not meet the current needs of the user, the user can make adjustments in time.
在一实施例中,所述当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停传输投屏信号的步骤包括:In an embodiment, when it is detected that the upper-layer application is switched from the first target application to the second target application during the screen projection process, the step of suspending the transmission of the screen projection signal includes:
当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停播放所述第一目标应用对应的播放内容,并暂停传输投屏信号。When it is detected that the upper-layer application is switched from the first target application to the second target application during the screen projection process, the playback of the content corresponding to the first target application is suspended, and the transmission of the screen projection signal is suspended.
在本实施例中,具体地,在投屏过程中,实时检测上层应用是否发生变化,当检测到上层应用从当前显示的第一目标应用切换至第二目标应用时,暂停播放所述第一目标应用对应的播放内容,并暂停向投屏接收端传输投屏信号,其中,所述播放内容包括录播资源(例如:网络视频、音乐等)、直播资源(例如:网络直播、电台等)和/或即时资源(例如:游戏、通话等)等。In this embodiment, specifically, during the screen projection process, it is detected in real time whether the upper-layer application changes, and when it is detected that the upper-layer application is switched from the currently displayed first target application to the second target application, the playing of the first target application is paused. The playback content corresponding to the target application, and suspend the transmission of the screen projection signal to the screen projection receiver, wherein the playback content includes recording resources (such as: online video, music, etc.), live resources (such as: webcast, radio, etc.) and/or instant resources (eg: games, calls, etc.), etc.
在一实施例中,所述暂停播放所述第一目标应用对应的播放内容的步骤包括:In an embodiment, the step of pausing and playing the playing content corresponding to the first target application includes:
步骤B10,判断所述第一目标应用对应的播放内容是否为录播资源;Step B10, judging whether the playback content corresponding to the first target application is a recording resource;
在本实施例中,具体地,根据所述第一目标应用对应的播放内容的资源信息,判断所述播放内容是否为录播资源,其中,所述资源信息是播放资源的相关信息,用于判断所述播放资源是直播资源还是录播资源,例如,若检测到所述播放内容为直播平台的视频内容,则所述播放内容为直播资源,若检测到所述播放内容为视频网站上更新的剧集,则所述播放内容为录播资源,在一种可实施的方式中,所述资源信息还可以通过对所述播放内容进行文字识别,若识别到直播相关文字,则判定所述播放内容为直播资源,若未识别到直播相关文字,则判定所述播放内容为录播资源。In this embodiment, specifically, according to the resource information of the playback content corresponding to the first target application, it is judged whether the playback content is a recording resource, wherein the resource information is related information of the playback resource, which is used to Determine whether the playback resource is a live broadcast resource or a recorded broadcast resource. For example, if it is detected that the playback content is a video content of a live broadcast platform, then the playback content is a live broadcast resource; if it is detected that the playback content is an update on a video website episodes, the broadcast content is a recorded resource. In an implementable manner, the resource information can also be identified by character recognition of the broadcast content. The broadcast content is a live broadcast resource, and if no text related to the live broadcast is recognized, it is determined that the broadcast content is a recorded broadcast resource.
步骤B20,若判定所述第一目标应用对应的播放内容为录播资源,则暂停播放所述录播资源,并获取所述录播资源的暂停时间;Step B20, if it is determined that the playback content corresponding to the first target application is a recording and broadcasting resource, then pause playing the recording and broadcasting resource, and obtain the pause time of the recording and broadcasting resource;
步骤B30,当检测到上层应用切换至所述第一目标应用时,从所述暂停时间开始继续播放所述录播资源。Step B30, when it is detected that the upper-layer application is switched to the first target application, continue to play the recording resource from the pause time.
在本实施例中,具体地,若判定所述第一目标应用对应的播放内容为录播资源,则暂停播放所述录播资源,并获取所述录播资源的暂停时间,当检测到上层应用切换至所述第一目标应用时,从所述暂停时间开始继续播放所述录播资源;若判定所述当前播放内容不为录播资源,则所述当前播放内容可能为直播资源或无法暂停资源等,则不暂停所述当前播放内容,或定格所述直播资源的当前播放画面,并录制所述当前播放内容,得到录制文件,当检测到上层应用切换至所述第一目标应用时,播放所述录制文件。In this embodiment, specifically, if it is determined that the playback content corresponding to the first target application is a recorded resource, the playback of the recorded resource is paused, and the pause time of the recorded resource is obtained. When the application is switched to the first target application, continue to play the recorded resource from the pause time; if it is determined that the currently played content is not a recorded resource, the currently played content may be a live resource or cannot Pause resources, etc., then do not pause the current playback content, or freeze the current playback screen of the live broadcast resource, and record the current playback content to obtain a recording file. When it is detected that the upper-layer application is switched to the first target application to play the recording.
在本实施例中,在切换应用时自动暂停正在播放的内容,并在切换回原先应用时自动恢复原本播放的内容,可以避免切换应用可能导致的隐私泄露的问题,又可以避免切换应用导致错过原先应用中播放的内容,且无需手动暂停或回退,就可以从切换应用时开始继续观看原先应用中的播放内容,既保护了用户隐私,又保证了投屏体验,简化了用户操作。In this embodiment, the content being played is automatically paused when the application is switched, and the originally played content is automatically resumed when the application is switched back to the original application, which can avoid the problem of privacy leakage that may be caused by switching applications, and can also avoid missing information caused by switching applications. The content played in the original application can continue to watch the content played in the original application from the time of switching applications without manually pausing or reverting, which not only protects user privacy, but also ensures the mirroring experience and simplifies user operations.
在一实施例中,所述暂停播放所述第一目标应用对应的播放内容的步骤包括:In an embodiment, the step of pausing and playing the playing content corresponding to the first target application includes:
步骤C10,判断所述第一目标应用对应的播放内容是否为直播资源;Step C10, judging whether the playback content corresponding to the first target application is a live resource;
在本实施例中,具体地,根据所述第一目标应用对应的播放内容的资源信息,判断所述播放内容是否为直播资源,其中,所述资源信息是播放资源的相关信息,用于判断所述播放资源是直播资源还是录播资源,例如,若检测到所述播放内容为直播平台的视频内容,则所述播放内容为直播资源,若检测到所述播放内容为视频网站上更新的剧集,则所述播放内容为录播资源,在一种可实施的方式中,所述资源信息还可以通过对所述播放内容进行文字识别,若识别到直播相关文字,则判定所述播放内容为直播资源,若未识别到直播相关文字,则判定所述播放内容为录播资源。In this embodiment, specifically, according to the resource information of the broadcast content corresponding to the first target application, it is judged whether the broadcast content is a live broadcast resource, wherein the resource information is related information of the broadcast resource, and is used for judging Whether the broadcast resource is a live broadcast resource or a recorded broadcast resource, for example, if it is detected that the broadcast content is video content of a live broadcast platform, then the broadcast content is a live broadcast resource; if it is detected that the broadcast content is an updated If it is a drama series, the playback content is a recorded broadcast resource. In an implementable manner, the resource information can also be identified by character recognition of the playback content. The content is a live broadcast resource. If no text related to the live broadcast is recognized, it is determined that the broadcast content is a recorded broadcast resource.
步骤C20,若判定所述第一目标应用对应的播放内容为直播资源,则定格所述直播资源的当前播放画面,并录制所述直播资源,得到录制文件;Step C20, if it is determined that the playback content corresponding to the first target application is a live broadcast resource, freeze the current playback screen of the live broadcast resource, and record the live broadcast resource to obtain a recording file;
步骤C30,当检测到上层应用切换至所述第一目标应用时,播放所述录制文件。Step C30, when it is detected that the upper layer application is switched to the first target application, playing the recorded file.
在本实施例中,具体地,若判定所述第一目标应用对应的播放内容为录播资源,则定格所述直播资源的当前播放画面,并从定格的所述当前播放画面开始录制所述直播资源,得到录制文件,当检测到上层应用切换至所述第一目标应用时,从定格的所述当前播放画面开始播放所述录制文件,并继续录制所述直播资源,直至所述直播资源结束或用户结束所述直播资源的播放;若判定所述第一目标应用对应的播放内容不为直播资源,则所述当前播放内容可能为录播资源或无法暂停资源等,则暂停或不暂停所述当前播放内容,若检测到所述当前播放内容成功暂停,则获取所述录播资源的暂停时间,当检测到上层应用切换至所述第一目标应用时,从所述暂停时间开始继续播放所述录播资源。In this embodiment, specifically, if it is determined that the playback content corresponding to the first target application is a recording resource, freeze the current playback screen of the live broadcast resource, and start recording the video from the frozen current playback screen. Live resource, obtain the recorded file, when it is detected that the upper-layer application is switched to the first target application, start playing the recorded file from the frozen current playback screen, and continue to record the live resource until the live resource End or the user ends the playback of the live broadcast resource; if it is determined that the playback content corresponding to the first target application is not a live broadcast resource, then the current playback content may be a recorded broadcast resource or a resource that cannot be paused, etc., then pause or not For the currently playing content, if it is detected that the current playing content is successfully paused, the pause time of the recording resource is obtained, and when it is detected that the upper layer application switches to the first target application, continue from the pause time Play the recorded resource.
在本实施例中,通过在切换应用时录制正在播放的内容,并在切换回原先应用时播放录制文件的方式,可以避免切换应用可能导致的隐私泄露的问题,又可以避免切换应用导致错过原先应用中播放的直播内容,既保护了用户隐私,又保证了投屏体验。In this embodiment, by recording the content being played when switching applications, and playing the recorded file when switching back to the original application, the problem of privacy leakage that may be caused by switching applications can be avoided, and the loss of the original content caused by switching applications can be avoided. The live broadcast content played in the app not only protects the user's privacy, but also guarantees the screencasting experience.
在一实施例中,所述暂停传输投屏信号的步骤之后,还包括:In an embodiment, after the step of suspending the transmission of the screen projection signal, it further includes:
通过显示设备显示暂停传输投屏信号之前接收到的最后一帧画面。The display device displays the last frame received before suspending the transmission of the projection signal.
在本实施例中,具体地,确定暂停传输投屏信号之前接收到的最后一帧画面,通过所述投屏接收端对应的显示设备输出显示所述最后一帧画面,其中,所述投屏接收端接收到的最后一帧画面为所述投屏推送端的上层应用从第一目标应用切换至第二目标应用之前,上层应用为所述第一目标应用时的最后一帧画面,通过向所述投屏接收端发送暂停投屏指令使得所述投屏接收端显示接收到的最后一帧画面,当上层应用切换回第一目标应用,继续向所述投屏接收端传输投屏信号时,可以使得画面之间具有连贯性,减小对用户投屏体验的影响。In this embodiment, specifically, it is determined to suspend transmission of the last frame of picture received before the screen projection signal is suspended, and the display device corresponding to the screen projection receiving end outputs and displays the last frame of picture, wherein the screen projection The last frame of picture received by the receiving end is the last frame of picture when the upper-level application is the first target application before the upper-layer application of the projection pusher switches from the first target application to the second target application. The screen projection receiving end sends a pause projection instruction so that the screen projection receiving end displays the last frame received, and when the upper layer application switches back to the first target application and continues to transmit the screen projection signal to the screen projection receiving end, The coherence between the screens can be made, and the impact on the user's screen projection experience can be reduced.
在一种可实施的方式中,所述暂停传输投屏信号的步骤之后,还包括:In an implementable manner, after the step of suspending the transmission of the screen projection signal, it further includes:
向投屏接收端发送暂停投屏的提示信息,以提醒用户当前出现的投屏暂停的原因,以避免用户误以为当前是产生了故障,也可以提醒用户及时处理隐私信息。Send a prompt message of suspending screen projection to the screen projection receiving end to remind the user of the reason for the current suspension of screen projection, so as to avoid the user from mistakenly thinking that there is a fault, and also remind the user to deal with private information in time.
步骤S20,获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用;Step S20, obtaining a screen projection whitelist, and judging whether the second target application is a whitelist application according to the screen projection whitelist;
在本实施例中,具体地,获取投屏白名单,判断所述投屏白名单中是否存在与所述第二目标应用相匹配的应用信息,若确定所述投屏白名单中存在与所述第二目标应用相匹配的应用信息,则所述第二目标应用为白名单应用,若确定所述投屏白名单中不存在与所述第二目标应用相匹配的应用信息,则所述第二目标应用不为白名单应用,其中,所述投屏白名单为允许通过投屏在所述投屏接收端进行显示的应用名单,所述投屏白名单可以根据大数据或测试数据等进行预先设置,也可以引导用户根据自身需求进行设置和更改。In this embodiment, specifically, the screen projection whitelist is obtained, and it is judged whether there is application information matching the second target application in the screen projection whitelist. If it is determined that there is no application information matching the second target application in the screen projection whitelist, the The second target application is not a whitelist application, wherein the screen projection whitelist is a list of applications that are allowed to be displayed on the screen projection receiving end through screen projection, and the screen projection whitelist can be based on big data or test data, etc. It can also be pre-set and guide users to set and change according to their own needs.
在一实施例中,所述根据所述投屏白名单判断所述第二目标应用是否为白名单应用的步骤之后,还包括:In an embodiment, after the step of judging whether the second target application is a whitelist application according to the screen projection whitelist, further includes:
步骤D10,若确定所述第二目标应用不为白名单应用,则检测上层应用是否切换至白名单应用;Step D10, if it is determined that the second target application is not a whitelist application, then detecting whether the upper layer application is switched to a whitelist application;
步骤D20,当检测到上层应用切换至白名单应用时,继续传输投屏信号。Step D20, when it is detected that the upper layer application is switched to the white list application, continue to transmit the screen projection signal.
在本实施例中,具体地,若确定所述第二目标应用不为白名单应用,则实时检测上层应用是否发生变化,当检测到上层应用切换至第三目标应用时,将所述第三目标应用与所述投屏白名单进行匹配,判断所述第三目标应用是否为白名单应用,若判定所述第三目标应用不为白名单应用,则返回步骤:实时检测上层应用是否发生变化,若判定所述第三目标应用为白名单应用,则继续向所述投屏接收端传输投屏信号,其中,所述第三目标应用可以是所述第一目标应用,也可以是其他应用。In this embodiment, specifically, if it is determined that the second target application is not a whitelist application, it is detected in real time whether the upper-layer application changes, and when it is detected that the upper-layer application is switched to the third target application, the third The target application is matched with the screen projection whitelist, and it is judged whether the third target application is a whitelist application, and if it is determined that the third target application is not a whitelist application, then return to the step: real-time detection of whether the upper layer application changes , if it is determined that the third target application is a whitelist application, continue to transmit a screen projection signal to the screen projection receiving end, wherein the third target application may be the first target application or other applications .
步骤S30,若确定所述第二目标应用为白名单应用,则继续传输投屏信号;Step S30, if it is determined that the second target application is a whitelist application, continue to transmit the screen projection signal;
在本实施例中,具体地,若确定所述第二目标应用为白名单应用,则取消所述投屏信号的暂停传输操作,继续向所述投屏接收端传输投屏信号,若确定所述第二目标应用不为白名单应用,则继续暂停向所述投屏接收端传输投屏信号。In this embodiment, specifically, if it is determined that the second target application is a whitelist application, cancel the pause transmission operation of the screen projection signal, and continue to transmit the screen projection signal to the screen projection receiving end; If the second target application is not a whitelist application, continue to suspend the transmission of the screen projection signal to the screen projection receiver.
在一种可实施的方式中,参照图4,所述投屏接收端包括电视机400和投屏器接收器300,所述电视机400和所述投屏接收器300通信连接,所述投屏推送端包括手机100和投屏器发射器200,所述手机100和所述投屏器发射器200通信连接,所述投屏器接收器300与所述投屏器发射器200通信连接,在手机100向电视机400投屏过程中,投屏器发射器200将手机100的屏幕画面和声音同步传输到投屏器接收器300,投屏器接收器300将接收到的手机100的屏幕画面和声音发送至电视机400进行画面显示和声音播放,当手机100在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停向投屏器发射器200发送投屏信号,以避免投屏器发射器200将隐私信息发送至投屏器接收器300,进而避免了电视机400输出隐私信息,获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用,若确定所述第二目标应用为白名单应用,则说明所述第二目标应用的播放内容可以进行投屏显示,因此继续向投屏器发射器200传输投屏信号,以供所述投屏器发射器200继续将投屏信号发送至投屏器接收器300,进而通过投屏器300发送至电视机400进行画面显示和声音播放。In an implementable manner, referring to FIG. 4 , the screen projection receiving end includes a TV 400 and a screen projection receiver 300, the TV 400 and the screen projection receiver 300 are connected in communication, and the projection The screen push end includes a mobile phone 100 and a screen projector transmitter 200, the mobile phone 100 is communicatively connected to the screen projector transmitter 200, and the screen projector receiver 300 is communicatively connected to the screen projector transmitter 200, During the screen projection process from the mobile phone 100 to the TV 400 , the screen projector transmitter 200 synchronously transmits the screen image and sound of the mobile phone 100 to the screen projector receiver 300 , and the screen projector receiver 300 transmits the received screen of the mobile phone 100 The picture and sound are sent to the TV 400 for picture display and sound playback. When the mobile phone 100 detects that the upper-level application is switched from the first target application to the second target application during the screen projection process, the mobile phone 100 suspends sending the projection to the screen projection device transmitter 200. screen signal, so as to prevent the screen projector transmitter 200 from sending private information to the screen projector receiver 300, thereby preventing the TV 400 from outputting private information, obtaining a screen projection whitelist, and judging the first screen projection whitelist according to the screen projection whitelist 2. Whether the target application is a whitelist application, if it is determined that the second target application is a whitelist application, it means that the playback content of the second target application can be displayed on the screen, so continue to transmit the projection to the screen projector transmitter 200 screen signal, so that the screen projector transmitter 200 can continue to send the screen projection signal to the screen projector receiver 300, and then send it to the TV 400 through the screen projector 300 for screen display and sound playback.
在本实施例中,通过当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停传输投屏信号,实现了在每次应用切换时,暂停传输投屏信号,以确保切换至的第二目标应用的显示内容若包含隐私内容,不会立刻同步进行显示,进而通过获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用,若确定所述第二目标应用为白名单应用,则继续传输投屏信号,实现了根据投屏白名单确定第二目标应用是否可以进行投屏显示,若确定所述第二目标应用为白名单应用,则说明所述第二目标应用未包含隐私内容,则可以继续传输投屏信号,投屏显示所述第二目标应用对应的显示画面,实现了仅对不在投屏白名单上的应用进行暂停传输投屏信号,有效提高了投屏过程中对个人隐私的保护,克服了现有技术在投屏过程中隐私泄露的技术问题。In this embodiment, when it is detected that the upper-layer application is switched from the first target application to the second target application during the screen projection process, the transmission of the screen projection signal is suspended, so that the transmission of the screen projection signal is suspended every time the application is switched. , so as to ensure that if the displayed content of the switched-to second target application contains private content, it will not be displayed synchronously immediately, and then by obtaining the screen projection white list, judge whether the second target application is white or not according to the screen projection white list The list application, if it is determined that the second target application is a whitelist application, then continue to transmit the screen projection signal, realizing whether the second target application can be displayed on the screen according to the screen projection whitelist, if it is determined that the second target application If it is a whitelist application, it means that the second target application does not contain private content, then the screen projection signal can be continuously transmitted, and the display screen corresponding to the second target application can be displayed on the screen, which realizes that only users who are not on the screen projection whitelist The application suspends the transmission of the screen projection signal, which effectively improves the protection of personal privacy during the screen projection process, and overcomes the technical problem of privacy leakage during the screen projection process in the prior art.
在一实施例中,本申请实施例还提供一种投屏装置,参照图5,所述投屏装置应用于投屏设备,所述投屏装置包括:In an embodiment, the embodiment of the present application also provides a screen projection device. Referring to FIG. 5 , the screen projection device is applied to a screen projection device, and the screen projection device includes:
暂停模块10,用于当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停传输投屏信号;The pause module 10 is used to suspend the transmission of the screen projection signal when it is detected that the upper layer application is switched from the first target application to the second target application during the screen projection process;
判断模块20,用于获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用;The judging module 20 is configured to obtain a screen projection whitelist, and judge whether the second target application is a whitelist application according to the screen projection whitelist;
传输模块30,用于若确定所述第二目标应用为白名单应用,则继续传输投屏信号。The transmission module 30 is configured to continue to transmit the screen projection signal if it is determined that the second target application is a whitelist application.
在一实施例中,所述传输模块30,还用于:In an embodiment, the transmission module 30 is also used for:
若确定所述第二目标应用不为白名单应用,则检测上层应用是否切换至白名单应用;If it is determined that the second target application is not a whitelist application, then detecting whether the upper layer application is switched to a whitelist application;
当检测到上层应用切换至白名单应用时,继续传输投屏信号。When it is detected that the upper-layer application is switched to the whitelist application, continue to transmit the screen projection signal.
在一实施例中,所述投屏装置还包括监测模块,所述监测模块,还用于:In an embodiment, the screen projection device further includes a monitoring module, and the monitoring module is also used for:
获取当前的投屏显示模式;Get the current projection mode;
若确定所述当前的投屏显示模式为隐私保护模式,则监测上层应用是否进行应用切换。If it is determined that the current projection screen display mode is the privacy protection mode, then it is monitored whether the upper layer application performs application switching.
在一实施例中,所述暂停模块10,还用于:In one embodiment, the suspension module 10 is also used for:
当在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用时,暂停播放所述第一目标应用对应的播放内容,并暂停传输投屏信号。When it is detected that the upper-layer application is switched from the first target application to the second target application during the screen projection process, the playback of the content corresponding to the first target application is suspended, and the transmission of the screen projection signal is suspended.
在一实施例中,所述暂停模块10,还用于:In one embodiment, the suspension module 10 is also used for:
判断所述第一目标应用对应的播放内容是否为录播资源;judging whether the playback content corresponding to the first target application is a recording resource;
若判定所述第一目标应用对应的播放内容为录播资源,则暂停播放所述录播资源,并获取所述录播资源的暂停时间;If it is determined that the playback content corresponding to the first target application is a recording and broadcasting resource, then pause playing the recording and broadcasting resource, and obtain the pause time of the recording and broadcasting resource;
当检测到上层应用切换至所述第一目标应用时,从所述暂停时间开始继续播放所述录播资源。When it is detected that the upper-layer application is switched to the first target application, the recording resource is continued to be played from the pause time.
在一实施例中,所述暂停模块10,还用于:In one embodiment, the suspension module 10 is also used for:
判断所述第一目标应用对应的播放内容是否为直播资源;judging whether the playback content corresponding to the first target application is a live resource;
若判定所述第一目标应用对应的播放内容为直播资源,则定格所述直播资源的当前播放画面,并录制所述直播资源,得到录制文件;If it is determined that the playback content corresponding to the first target application is a live broadcast resource, freeze the current playback screen of the live broadcast resource, and record the live broadcast resource to obtain a recording file;
当检测到上层应用切换至所述第一目标应用时,播放所述录制文件。When it is detected that the upper layer application is switched to the first target application, the recorded file is played.
在一实施例中,所述投屏装置还包括指令发送模块,所述指令发送模块,还用于:In an embodiment, the screen projection device further includes an instruction sending module, and the instruction sending module is also used for:
通过显示设备显示暂停传输投屏信号之前接收到的最后一帧画面。The display device displays the last frame received before suspending the transmission of the projection signal.
本发明提供的投屏装置,采用上述实施例中的投屏方法,解决了现有技术在投屏过程中隐私泄露的技术问题。与现有技术相比,本发明实施例提供的投屏装置的有益效果与上述实施例提供的投屏方法的有益效果相同,且该投屏装置中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The screen projection device provided by the present invention adopts the screen projection method in the above embodiments, and solves the technical problem of privacy leakage during the screen projection process in the prior art. Compared with the prior art, the beneficial effect of the screen projection device provided by the embodiment of the present invention is the same as that of the screen projection method provided by the above embodiment, and other technical features of the screen projection device are the same as those disclosed by the method of the above embodiment The features are the same, and will not be repeated here.
在一实施例中,本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的投屏方法的步骤。In an embodiment, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above screen projection method are realized.
本申请提供的计算机程序产品解决了现有技术在投屏过程中隐私泄露的技术问题。与现有技术相比,本发明实施例提供的计算机程序产品的有益效果与上述实施例提供的投屏方法的有益效果相同,在此不做赘述。The computer program product provided by the present application solves the technical problem of privacy leakage in the process of screen projection in the prior art. Compared with the prior art, the beneficial effect of the computer program product provided by the embodiment of the present invention is the same as the beneficial effect of the screen projection method provided by the foregoing embodiment, and details are not repeated here.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利处理范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent processing scope of the present application in the same way.

Claims (15)

  1. 一种投屏方法,其中,所述投屏方法包括:A screen projection method, wherein the screen projection method includes:
    在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停传输投屏信号;During the screen projection process, it is detected that the upper-layer application is switched from the first target application to the second target application, and the transmission of the screen projection signal is suspended;
    获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用;Obtaining a screen projection whitelist, and judging whether the second target application is a whitelist application according to the screen projection whitelist;
    确定所述第二目标应用为白名单应用,继续传输投屏信号。Determine that the second target application is a whitelist application, and continue to transmit the screen projection signal.
  2. 如权利要求1所述投屏方法,其中,所述根据所述投屏白名单判断所述第二目标应用是否为白名单应用的步骤之后,还包括:The screen projection method according to claim 1, wherein, after the step of judging whether the second target application is a whitelist application according to the screen projection whitelist, further comprising:
    确定所述第二目标应用不为白名单应用,检测上层应用是否切换至白名单应用;及determining that the second target application is not a whitelist application, and detecting whether the upper-layer application is switched to a whitelist application; and
    检测到上层应用切换至白名单应用,继续传输投屏信号。It detects that the upper-layer application is switched to the whitelist application, and continues to transmit the screen projection signal.
  3. 如权利要求1所述投屏方法,其中,所述在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停传输投屏信号的步骤之前,还包括:The screen projection method according to claim 1, wherein, before the step of detecting that the upper layer application is switched from the first target application to the second target application during the screen projection process, and suspending transmission of the screen projection signal, further comprising:
    获取当前的投屏显示模式;Get the current projection mode;
    确定所述当前的投屏显示模式为隐私保护模式,监测上层应用是否进行应用切换。Determining that the current projection screen display mode is a privacy protection mode, and monitoring whether the upper-layer application performs application switching.
  4. 如权利要求1所述投屏方法,其中,所述在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停传输投屏信号的步骤包括:The screen projection method according to claim 1, wherein, during the screen projection process, it is detected that the upper layer application is switched from the first target application to the second target application, and the step of suspending transmission of the screen projection signal comprises:
    在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停播放所述第一目标应用对应的播放内容,并暂停传输投屏信号。During the screen projection process, it is detected that the upper layer application is switched from the first target application to the second target application, the playing content corresponding to the first target application is suspended, and the transmission of the screen projection signal is suspended.
  5. 如权利要求4所述投屏方法,其中,所述暂停播放所述第一目标应用对应的播放内容的步骤包括:The screen projection method according to claim 4, wherein the step of pausing playing the playing content corresponding to the first target application comprises:
    判断所述第一目标应用对应的播放内容是否为录播资源;judging whether the playback content corresponding to the first target application is a recording resource;
    判定所述第一目标应用对应的播放内容为录播资源,暂停播放所述录播资源,并获取所述录播资源的暂停时间;及Determine that the playback content corresponding to the first target application is a recording resource, pause playing the recording resource, and acquire a pause time of the recording resource; and
    检测到上层应用切换至所述第一目标应用,从所述暂停时间开始继续播放所述录播资源。It is detected that the upper-layer application is switched to the first target application, and the recording and broadcasting resource is continued to be played from the pause time.
  6. 如权利要求4所述投屏方法,其中,所述暂停播放所述第一目标应用对应的播放内容的步骤包括:The screen projection method according to claim 4, wherein the step of pausing playing the playing content corresponding to the first target application comprises:
    判断所述第一目标应用对应的播放内容是否为直播资源;judging whether the playback content corresponding to the first target application is a live resource;
    判定所述第一目标应用对应的播放内容为直播资源,定格所述直播资源的当前播放画面,并录制所述直播资源,得到录制文件;及determining that the playback content corresponding to the first target application is a live broadcast resource, freezing the current playback screen of the live broadcast resource, and recording the live broadcast resource to obtain a recording file; and
    检测到上层应用切换至所述第一目标应用时,播放所述录制文件。When it is detected that the upper layer application is switched to the first target application, the recorded file is played.
  7. 如权利要求1所述投屏方法,其中,所述暂停传输投屏信号的步骤之后,还包括:The screen projection method according to claim 1, wherein, after the step of suspending transmission of the screen projection signal, further comprising:
    通过显示设备显示暂停传输投屏信号之前接收到的最后一帧画面。The display device displays the last frame received before suspending the transmission of the projection signal.
  8. 如权利要求1所述投屏方法,其中,所述投屏信号包括投屏音频信号和投屏图像信号。The screen projection method according to claim 1, wherein the screen projection signal includes a screen projection audio signal and a screen projection image signal.
  9. 如权利要求1所述投屏方法,其中,所述上层应用是在投屏推送端最上层进行显示的应用,所述上层应用从第一目标应用切换至第二目标应用的方式包括弹出消息通知、来电或通过顶部消息通知切换应用或直接通过切换画面的方式切换应用。The screen projection method according to claim 1, wherein the upper-layer application is an application displayed on the uppermost layer of the screen-casting push terminal, and the method of switching the upper-layer application from the first target application to the second target application includes a pop-up message notification , an incoming call, or switch applications through the top message notification or switch applications directly by switching screens.
  10. 如权利要求1所述投屏方法,其中,所述方法还包括:The screen projection method according to claim 1, wherein the method further comprises:
    设置上层应用的例外场景;Set exception scenarios for upper-layer applications;
    确定当前的上层应用属于所述例外场景,从除去所述当前的上层应用之外的其他应用中重新确定新的上层应用。It is determined that the current upper-layer application belongs to the exception scenario, and a new upper-layer application is re-determined from other applications except the current upper-layer application.
  11. 如权利要求10所述投屏方法,其中,所述确定当前的上层应用属于所述例外场景,包括:The screen projection method according to claim 10, wherein said determining that the current upper-layer application belongs to said exception scenario comprises:
    确定所述例外场景为顶部悬浮窗,收到当前的上层应用的顶部悬浮窗,从除去所述当前的上层应用之外的其他应用中重新确定新的上层应用。The exception scene is determined to be the top floating window, the top floating window of the current upper-layer application is received, and a new upper-layer application is re-determined from other applications except the current upper-layer application.
  12. 如权利要求3所述投屏方法,其中,所述隐私保护模式包括:The screen projection method according to claim 3, wherein the privacy protection mode comprises:
    所述隐私保护模式是对需要进行隐私保护的隐私保护应用不进行投屏显示的模式,所述隐私保护模式对应的隐私保护应用根据投屏白名单或投屏黑名单确定,所述投屏白名单是允许进行投屏显示的应用名单,所述黑名单是不允许进行投屏显示的应用名单。The privacy protection mode is a mode in which no screen projection is performed for privacy protection applications that require privacy protection, and the privacy protection application corresponding to the privacy protection mode is determined according to the screen projection whitelist or screen projection blacklist, and the screen projection whitelist The list is a list of applications that are allowed to be displayed on the screen, and the blacklist is a list of applications that are not allowed to be displayed on the screen.
  13. 一种投屏装置,其中,所述投屏装置包括:A screen projection device, wherein the screen projection device includes:
    暂停模块,用于在投屏过程中检测到上层应用从第一目标应用切换至第二目标应用,暂停传输投屏信号;The pause module is used to detect that the upper-layer application is switched from the first target application to the second target application during the screen projection process, and suspend the transmission of the screen projection signal;
    判断模块,用于获取投屏白名单,根据所述投屏白名单判断所述第二目标应用是否为白名单应用;A judging module, configured to obtain a screen projection whitelist, and judge whether the second target application is a whitelist application according to the screen projection whitelist;
    传输模块,用于确定所述第二目标应用为白名单应用,继续传输投屏信号。The transmission module is configured to determine that the second target application is a whitelist application, and continue to transmit the screen projection signal.
  14. 如权利要求13所述投屏装置,其中,所述判断模块还用于确定所述第二目标应用不为白名单应用,检测上层应用是否切换至白名单应用;及检测到上层应用切换至白名单应用,继续传输投屏信号。The screen projection device according to claim 13, wherein the judging module is further used to determine that the second target application is not a whitelist application, detect whether the upper-layer application is switched to a whitelist application; and detect that the upper-layer application is switched to a whitelist application. The list application continues to transmit the projection signal.
  15. 一种电子设备,其中,所述电子设备包括:An electronic device, wherein the electronic device includes:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1至12中任一项所述的投屏方法的步骤。The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform any one of claims 1 to 12 The steps of the screencasting method.
PCT/CN2022/103975 2022-01-30 2022-07-05 Screen mirroring method and apparatus, and electronic device and storage medium WO2023142389A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210113740.0 2022-01-30
CN202210113740.0A CN114428598A (en) 2022-01-30 2022-01-30 Screen projection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023142389A1 true WO2023142389A1 (en) 2023-08-03

Family

ID=81312929

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/103975 WO2023142389A1 (en) 2022-01-30 2022-07-05 Screen mirroring method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN114428598A (en)
WO (1) WO2023142389A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114428598A (en) * 2022-01-30 2022-05-03 深圳创维-Rgb电子有限公司 Screen projection method and device, electronic equipment and storage medium
CN117041506B (en) * 2022-07-26 2024-09-17 深圳Tcl新技术有限公司 Screen projection control method and device, screen projection receiving end and computer readable storage medium
CN115495307B (en) * 2022-08-26 2023-05-30 深圳市旭联信息技术有限公司 Screen transmission data processing method, device, computer readable storage medium and system
CN115499416A (en) * 2022-09-15 2022-12-20 平安银行股份有限公司 Privacy information protection method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109963178A (en) * 2019-03-15 2019-07-02 北京领度信息技术有限公司 Throw the method for screen using safe throwing screen device and device is shielded in safety throwing
CN111787392A (en) * 2020-08-06 2020-10-16 北京字节跳动网络技术有限公司 Video screen projection method and device, electronic equipment and storage medium
CN112149194A (en) * 2020-09-18 2020-12-29 珠海格力电器股份有限公司 Method and device for projecting screen of equipment, storage medium and electronic device
CN113194353A (en) * 2021-04-29 2021-07-30 广州朗国电子科技有限公司 Wireless screen projection method, device, medium and product
CN113497909A (en) * 2020-03-18 2021-10-12 华为技术有限公司 Equipment interaction method and electronic equipment
CN114428598A (en) * 2022-01-30 2022-05-03 深圳创维-Rgb电子有限公司 Screen projection method and device, electronic equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378681A (en) * 2014-11-12 2015-02-25 无锡科思电子科技有限公司 Self-adaptive control method of smart television
CN110312160A (en) * 2019-06-17 2019-10-08 广州视源电子科技股份有限公司 Wireless screen projection method and device, intelligent panel, terminal and system
CN111432070B (en) * 2020-03-17 2022-04-08 阿波罗智联(北京)科技有限公司 Application screen projection control method, device, equipment and medium
CN111562896B (en) * 2020-04-26 2023-05-19 维沃移动通信(杭州)有限公司 Screen projection method and electronic equipment
CN111367486B (en) * 2020-05-26 2020-09-08 北京小米移动软件有限公司 Incoming call privacy protection method and system
CN113824831B (en) * 2020-06-18 2022-09-16 华为技术有限公司 Screen projection control method, system, terminal device, screen projection device and storage medium
CN112099705B (en) * 2020-09-04 2022-06-10 维沃移动通信有限公司 Screen projection method and device and electronic equipment
CN112689191B (en) * 2020-12-14 2023-05-12 努比亚技术有限公司 Screen projection control method, terminal and computer readable storage medium
CN113326012A (en) * 2021-06-01 2021-08-31 深圳市泰衡诺科技有限公司 Processing method, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109963178A (en) * 2019-03-15 2019-07-02 北京领度信息技术有限公司 Throw the method for screen using safe throwing screen device and device is shielded in safety throwing
CN113497909A (en) * 2020-03-18 2021-10-12 华为技术有限公司 Equipment interaction method and electronic equipment
CN111787392A (en) * 2020-08-06 2020-10-16 北京字节跳动网络技术有限公司 Video screen projection method and device, electronic equipment and storage medium
CN112149194A (en) * 2020-09-18 2020-12-29 珠海格力电器股份有限公司 Method and device for projecting screen of equipment, storage medium and electronic device
CN113194353A (en) * 2021-04-29 2021-07-30 广州朗国电子科技有限公司 Wireless screen projection method, device, medium and product
CN114428598A (en) * 2022-01-30 2022-05-03 深圳创维-Rgb电子有限公司 Screen projection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114428598A (en) 2022-05-03

Similar Documents

Publication Publication Date Title
WO2023142389A1 (en) Screen mirroring method and apparatus, and electronic device and storage medium
US20220312049A1 (en) Method for processing live-streaming interaction video and server
WO2020221039A1 (en) Screen projection method, electronic device and screen projection system
US11343556B2 (en) Method of controlling a horizontal screen or vertical screen of television, device, and storage medium
CN107360458B (en) Play control method, device, storage medium and terminal
WO2020233142A1 (en) Multimedia file playback method and apparatus, electronic device, and storage medium
US20160029093A1 (en) Method and device for sharing video information
WO2017219347A1 (en) Live broadcast display method, device and system
CN109413453B (en) Video playing method, device, terminal and storage medium
US8953100B2 (en) Information processing apparatus and audio output control method of an information processing apparatus
JP2016522952A (en) Image transmission method, apparatus, program, and recording medium
WO2023142391A1 (en) Screen-mirroring call method and apparatus, electronic device, and storage medium
US8925032B2 (en) AV output system performing video output
CN108900921A (en) Even wheat live broadcasting method, device and storage medium
CN111510757A (en) Method, device and system for sharing media data stream
WO2021143388A1 (en) Bitrate switching method and device
KR20220120303A (en) Display device and operating method for the same
CN114489549B (en) Screen projection image processing method and device, electronic equipment and storage medium
CN114647468B (en) Screen projection image display method and device, electronic equipment and storage medium
US9270245B2 (en) Sound output system, non-transitory computer-readable storage medium having sound output program stored thereon, sound output control method, and information processing apparatus
WO2021258608A1 (en) Bandwidth determination method and apparatus, and terminal, and storage medium
CN114554168A (en) Screen projector sharing method and device, screen projector and computer readable storage medium
WO2022242544A1 (en) Live-streaming video stream playing method and apparatus, and electronic device and storage medium
US11704088B2 (en) Intelligent control method and electronic device
CN111770373B (en) Content synchronization method, device and equipment based on live broadcast and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22923197

Country of ref document: EP

Kind code of ref document: A1