CN114428598A - Screen projection method and device, electronic equipment and storage medium - Google Patents

Screen projection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114428598A
CN114428598A CN202210113740.0A CN202210113740A CN114428598A CN 114428598 A CN114428598 A CN 114428598A CN 202210113740 A CN202210113740 A CN 202210113740A CN 114428598 A CN114428598 A CN 114428598A
Authority
CN
China
Prior art keywords
screen
application
target application
screen projection
white list
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210113740.0A
Other languages
Chinese (zh)
Inventor
李宾
田园
候志龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202210113740.0A priority Critical patent/CN114428598A/en
Publication of CN114428598A publication Critical patent/CN114428598A/en
Priority to PCT/CN2022/103975 priority patent/WO2023142389A1/en
Pending legal-status Critical Current

Links

Images

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

Abstract

The application discloses a screen projection method, a screen projection device, electronic equipment and a storage medium, wherein the screen projection method comprises the following steps: when the upper-layer application is detected to be switched from the first target application to the second target application in the screen projection process, suspending transmission of a screen projection signal; acquiring a screen-casting white list, and judging whether the second target application is a white list application or not according to the screen-casting white list; and if the second target application is determined to be the white list application, continuing to transmit a screen projection signal. The technical problem that privacy is revealed in the screen projection process in the prior art is solved.

Description

Screen projection method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of screen projection technologies, and in particular, to a screen projection method and apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology and the improvement of living standards of people, the functions of displaying screens of mobile devices such as mobile phones, tablet computers and computers are increasingly popularized through display devices such as large television screens and projectors, and users often push pictures, music, videos and the like of the mobile devices to the display devices for playing.
Disclosure of Invention
The application mainly aims to provide a screen projection method, a screen projection device, electronic equipment and a storage medium, and aims to solve the technical problem that privacy is revealed in the screen projection process in the prior art.
In order to achieve the above object, the present application provides a screen projection method, including:
when the upper-layer application is detected to be switched from the first target application to the second target application in the screen projection process, suspending transmission of a screen projection signal;
acquiring a screen-casting white list, and judging whether the second target application is a white list application or not according to the screen-casting white list;
and if the second target application is determined to be the white list application, continuing to transmit the screen projection signal.
Optionally, after the step of determining whether the second target application is a white list application according to the screen-casting white list, the method further includes:
if the second target application is determined not to be the white list application, detecting whether the upper layer application is switched to the white list application;
and when the upper application is detected to be switched to the white list application, continuing to transmit the screen projection signal.
Optionally, before the step of suspending transmission of the screen projection signal when the upper layer application is detected to be switched from the first target application to the second target application during the screen projection process, the method further includes:
acquiring a current screen projection display mode;
and if the current screen projection display mode is determined to be the privacy protection mode, monitoring whether the upper-layer application carries out application switching or not.
Optionally, the step of suspending transmission of the screen projection signal when the upper layer application is detected to be switched from the first target application to the second target application during the screen projection process includes:
when the upper layer application is detected to be switched from the first target application to the second target application in the screen projection process, playing content corresponding to the first target application is paused, and transmission of a screen projection signal is paused.
Optionally, the step of pausing the playing of the playing content corresponding to the first target application includes:
judging whether the playing content corresponding to the first target application is recorded and played resources;
if the playing content corresponding to the first target application is judged to be recorded and broadcast resources, the recorded and broadcast resources are paused to be played, and the pause time of the recorded and broadcast resources is obtained;
and when the upper application is detected to be switched to the first target application, continuing to play the recorded and broadcast resources from the pause time.
Optionally, the step of pausing the playing of the playing content corresponding to the first target application includes:
judging whether the playing content corresponding to the first target application is a live broadcast resource;
if the playing content corresponding to the first target application is judged to be the live broadcast resource, the current playing picture of the live broadcast resource is frozen, and the live broadcast resource is recorded to obtain a recorded file;
and when the upper layer application is detected to be switched to the first target application, playing the recording file.
Optionally, after the step of suspending transmission of the screen projection signal, the method further includes:
and displaying the last frame of picture received before the transmission of the screen projection signal is suspended through the display device.
The application further provides a throw the screen device, throw the screen device and be applied to and throw screen equipment, throw the screen device and include:
the pause module is used for pausing transmission of the screen projection signal when the upper-layer application is detected to be switched from the first target application to the second target application in the screen projection process;
the judging module is used for acquiring a screen-casting white list and judging whether the second target application is a white list application or not according to the screen-casting white list;
and the transmission module is used for continuing transmitting the screen projection signal if the second target application is determined to be the white list application.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the screen projection method stored on the memory and executable on the processor, which program, when executed by the processor, may implement the steps of the screen projection method as described above.
The present application also provides a storage medium, which is a computer-readable storage medium, on which a program for implementing a screen projection method is stored, and when the program of the screen projection method is executed by a processor, the steps of the screen projection method as described above are implemented.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the screen projection method as described above.
The application provides a screen projection method, a screen projection device, an electronic device and a storage medium, wherein when an upper application is detected to be switched from a first target application to a second target application in the screen projection process, the transmission of a screen projection signal is suspended, so that the screen projection signal is suspended to ensure that the display content of the switched second target application cannot be synchronously displayed immediately if the display content comprises private content, a screen projection white list is obtained, whether the second target application is a white list application is judged according to the screen projection white list, if the second target application is determined to be the white list application, the screen projection signal is continuously transmitted, whether the second target application can be subjected to screen projection display is determined according to the screen projection white list, and if the second target application is determined to be the white list application, the second target application is indicated to not comprise the private content, the screen projection signal can be continuously transmitted, and the screen projection display is performed on the display picture corresponding to the second target application, so that the screen projection signal is only transmitted in a pause mode for the application which is not on the screen projection white list, the protection of personal privacy in the screen projection process is effectively improved, and the technical problem of privacy disclosure in the screen projection process in the prior art is solved.
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 embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic view of a screen-casting connection scene according to an embodiment of a screen-casting call method of the present application;
fig. 2 is a schematic structural diagram of an electronic device in a hardware operating environment related to a screen projection call method in an embodiment of the present application;
FIG. 3 is a schematic flowchart illustrating an embodiment of a screen projection method according to the present application;
FIG. 4 is a schematic view of a scene in which an embodiment of the screen-shot conversation method of the present application can be implemented;
fig. 5 is a schematic structural diagram of a device related to a screen projection call method in the embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic view of a screen projection connection according to an embodiment of the present invention.
As shown in fig. 1, the screen projector includes: the electronic device comprises a screen projector transmitter and/or a screen projector receiver, wherein the first electronic device can be a personal computer, a mobile terminal device such as a smart phone, a tablet computer, an electronic book reader and a portable computer, and the second electronic device can be a television, a display, a projector and other display devices with display functions.
In some embodiments, the first electronic device is connected with the screen projector transmitter and/or the screen projector receiver through a wired or wireless network for data transmission and interaction; the screen projector transmitter is connected with the screen projector receiver through a wireless network to perform data transmission and interaction, or the screen projector transmitter is connected with the second electronic equipment through the wireless network to perform data transmission and interaction; the screen projector receiver is connected with the second electronic equipment through a wired or wireless network to perform data transmission and interaction. In an optional implementation manner, the wired connection between the screen projector receiver and the second electronic device and the wired connection between the screen projector transmitter and the first electronic device may include wired connections based on HDMI (High Definition Multimedia Interface), USB (Universal Serial Bus), DP (display Interface), VGA (Video Graphics Array), and the like. The wireless communication modes between the first electronic device and the screen projector and between the first electronic device and the screen projector receiver and between the second electronic device and the screen projector receiver can include wireless communication such as Bluetooth (Bluetooth), wireless broadband (Wi-Fi) and infrared communication.
Therefore, the possible connection modes for realizing screen projection between the first electronic device, the screen projector transmitter, the screen projector receiver and the second electronic device at least include:
(1) the screen projector transmitter is connected with the screen projector receiver, and the first electronic equipment picture is finally projected to the second electronic equipment through the screen projector transmitter and the screen projector receiver;
(2) the screen projector transmitter is wirelessly connected with the second electronic equipment, the picture of the first electronic equipment is projected to the second electronic equipment through the screen projector transmitter, and at the moment, the screen projector transmitter is connected with a wireless communication module arranged in the second electronic equipment through a wireless network;
(3) the first electronic equipment is connected with the screen projector receiver, and the first electronic equipment picture is projected to the second electronic equipment through the screen projector receiver.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an electronic device in a hardware operating environment related to a screen projection call method in the embodiment of the present application. The electronic device in the embodiments of the present disclosure may include, but is not limited to, a fixed terminal such as a television, a screen projector receiver, a screen projector transmitter, a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), a digital TV, a desktop computer, and the like.
As shown in fig. 2, the electronic device further includes: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a network interface 1003, and a memory 1004. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1004 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1004 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the configuration shown in FIG. 2 does not constitute a limitation of the operating device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 2, the memory 1004, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, and a screen shot program.
In the operation device shown in fig. 2, the network interface 1003 is mainly used for data communication with other devices. The processor 1001 and the memory 1004 in the execution device of the present invention may be provided in the execution device, which calls the screen-shot call program stored in the memory 1004 through the processor 1001 and performs the following operations:
when the upper-layer application is detected to be switched from the first target application to the second target application in the screen projection process, suspending transmission of a screen projection signal;
acquiring a screen-casting white list, and judging whether the second target application is a white list application or not according to the screen-casting white list;
and if the second target application is determined to be the white list application, continuing to transmit a screen projection signal.
Further, the processor 1001 may call a screen shot program stored in the memory 1004, and further perform the following operations:
if the second target application is determined not to be the white list application, detecting whether the upper layer application is switched to the white list application;
and when the upper application is detected to be switched to the white list application, continuing to transmit the screen projection signal.
Further, the processor 1001 may call a screen shot program stored in the memory 1004, and further perform the following operations:
acquiring a current screen projection display mode;
and if the current screen projection display mode is determined to be the privacy protection mode, monitoring whether the upper-layer application carries out application switching or not.
Further, the processor 1001 may call a screen shot program stored in the memory 1004, and further perform the following operations:
when the upper layer application is detected to be switched from the first target application to the second target application in the screen projection process, playing content corresponding to the first target application is paused, and transmission of a screen projection signal is paused.
Further, the processor 1001 may call a screen shot program stored in the memory 1004, and further perform the following operations:
judging whether the playing content corresponding to the first target application is recorded and played resources;
if the playing content corresponding to the first target application is judged to be recorded and broadcast resources, the recorded and broadcast resources are paused to be played, and the pause time of the recorded and broadcast resources is obtained;
and when the upper-layer application is detected to be switched to the first target application, continuing to play the recorded broadcast resource from the pause time.
Further, the processor 1001 may call a screen shot program stored in the memory 1004, and further perform the following operations:
judging whether the playing content corresponding to the first target application is a live broadcast resource;
if the playing content corresponding to the first target application is judged to be the live broadcast resource, the current playing picture of the live broadcast resource is frozen, and the live broadcast resource is recorded to obtain a recorded file;
and when the upper layer application is detected to be switched to the first target application, playing the recording file.
Further, the processor 1001 may call a screen shot program stored in the memory 1004, and further perform the following operations:
and displaying the last frame of picture received before the transmission of the screen projection signal is suspended through the display device.
In a first embodiment of the screen projection method, referring to fig. 3, the screen projection method includes:
step S10, when the upper layer application is detected to be switched from the first target application to the second target application in the screen projecting process, the screen projecting signal is suspended to be transmitted;
in this embodiment, it should be noted that the screen projection is a process of projecting the display screen of the screen projection pushing end to the screen projection receiving end for displaying, the screen projection receiving end is in communication connection with the screen projection pushing end, the execution main body of the embodiment can be the screen projection pushing end or the screen projection receiving end, wherein the screen projection receiving end is equipment for receiving screen projection, such as a television, a computer or a projector, in an implementable manner, the projection receiving end may also be a projector receiver connected to a display and/or a loudspeaker, the screen projector receiver may be connected to the display and/or speaker by a wired or wireless connection, after receiving the audio signal and the image signal projected on the screen, outputting the audio signal and the image signal received on the screen through a display and/or a loudspeaker connected with the screen projector receiver; the screen projection pushing end is a mobile device for pushing a screen, such as a mobile phone, a computer or a tablet computer, and in an implementable manner, the screen projection pushing end can also be a screen projector connected with the mobile device, the screen projector can be in wired or wireless connection with the mobile device, and the mobile device sends an audio signal and an image signal which need to be projected to a screen projection receiving end through the screen projector.
Specifically, in the process of a screen projection from a screen projection pushing end to a screen projection receiving end, whether an upper layer application corresponding to the screen projection pushing end changes or not is detected in real time, when it is detected that the upper layer application is switched from a first target application which is displayed currently to a second target application, a screen projection signal is suspended from being transmitted to the screen projection receiving end, wherein the screen projection signal comprises a screen projection audio signal, a screen projection image signal and the like, the upper layer application is an application which is displayed on the uppermost layer of the screen projection pushing end, the mode of switching the upper layer application from the first target application to the second target application comprises a pop-up message notification, an incoming call or a switching application (for example, switching the application through a top message notification or switching the application directly through a mode of switching a picture and the like), and in an implementable mode, an exception scene of the upper layer application can be set, and if the current upper layer application is determined to belong to the exception scene, the method includes the steps of determining a new upper layer application from other applications except the current upper layer application, for example, if the exceptional scene is determined to be a top floating window, receiving the top floating window of the WeChat in the process of projecting and watching the video, and then re-determining the new upper layer application from other applications except the WeChat application, wherein the new upper layer application is an original application for watching the video, the poor experience that the WeChat message is interrupted continuously in the process of watching the video and the like can be avoided, and in an implementable manner, the privacy protection of the upper layer application corresponding to the exceptional scene can be achieved by performing blurring processing or other hiding processing on the upper layer application corresponding to the exceptional scene.
Optionally, before the step of suspending transmission of the screen projection signal when the upper layer application is detected to be switched from the first target application to the second target application during the screen projection process, the method further includes:
step A10, acquiring a current screen projection display mode;
step a20, if it is determined that the current screen-projection display mode is the privacy protection mode, monitoring whether the upper layer application performs application switching.
In this embodiment, specifically, the screen-casting connection currently set screen-casting display mode is obtained, whether the currently set screen-casting display mode is a privacy protection mode is determined, and if it is determined that the current screen-casting display mode is the privacy protection mode, whether application switching is performed on an upper application of the mobile device at the screen-casting push end is monitored, wherein the screen-casting display mode is a display mode in which screen-casting display is performed or not performed according to different situations during screen casting, and includes a privacy protection mode, an unlimited screen-casting mode, a conference mode, a game mode, and the like, which may be preset according to big data or test data, and may also guide a user to perform setting and changing according to own needs, and the privacy protection mode is a mode in which screen-casting display is not performed on a privacy protection application requiring privacy protection, the privacy protection application corresponding to the privacy protection mode can be determined according to a screen projection white list or a screen projection black list, the screen projection white list is an application list which is allowed to be displayed by screen projection, the black list is an application list which is not allowed to be displayed by screen projection, both the screen projection white list and the screen projection black list can be preset according to big data or test data and the like, and can also be used for guiding a user to set and change according to the self requirement, the privacy protection mode can be started in a default mode when screen projection connection is established, can be started when the user operation of switching to the privacy protection mode is detected, can be also used for judging the number of people watching the screen by sound signals collected by a microphone and/or image signals shot by a camera, and can be automatically started when the number of people watching the screen exceeds the preset number of people.
In an implementation manner, after the step of acquiring the current screen projection display mode, the method further includes: and outputting prompt information of the current screen-projecting display mode to remind a user of the current screen-projecting display mode, wherein if the current screen-projecting display mode is not accordant with the current requirement of the user, the user can adjust in time.
Optionally, the step of suspending transmission of the screen projection signal when the upper layer application is detected to be switched from the first target application to the second target application during the screen projection process includes:
when the upper layer application is detected to be switched from the first target application to the second target application in the screen projection process, playing content corresponding to the first target application is paused, and transmission of a screen projection signal is paused.
In this embodiment, specifically, in the screen projection process, whether an upper application changes is detected in real time, when it is detected that the upper application is switched from a first target application currently displayed to a second target application, playing of playing content corresponding to the first target application is paused, and transmission of a screen projection signal to a screen projection receiving end is paused, where the playing content includes recorded broadcast resources (e.g., network videos, music, and the like), live broadcast resources (e.g., network live broadcasts, radio stations, and the like), and/or instant resources (e.g., games, conversations, and the like), and the like.
Optionally, the step of pausing the playing of the playing content corresponding to the first target application includes:
step B10, judging whether the playing content corresponding to the first target application is recorded and played resources;
in this embodiment, specifically, whether the playing content is a recorded broadcast resource is determined according to resource information of the playing content corresponding to the first target application, where the resource information is related information of the playing resource and is used to determine whether the playing resource is a live broadcast resource or a recorded broadcast resource, for example, if the playing content is detected to be a video content of a live broadcast platform, the playing content is a live broadcast resource, if the playing content is detected to be an episode updated on a video website, the playing content is a recorded broadcast resource, in an implementable manner, the resource information may further perform character recognition on the playing content, if a live broadcast related character is recognized, the playing content is determined to be a live broadcast resource, and if a live broadcast related character is not recognized, the playing content is determined to be a recorded broadcast resource.
Step B20, if the playing content corresponding to the first target application is determined to be recorded and broadcast resources, pausing the playing of the recorded and broadcast resources and acquiring pause time of the recorded and broadcast resources;
and step B30, when the upper layer application is detected to be switched to the first target application, the recorded broadcast resource is continuously played from the pause time.
In this embodiment, specifically, if it is determined that the playing content corresponding to the first target application is a recorded broadcast resource, the recorded broadcast resource is paused, a pause time of the recorded broadcast resource is obtained, and when it is detected that the upper layer application is switched to the first target application, the recorded broadcast resource is continuously played from the pause time; if the current playing content is judged not to be recorded and broadcast resources, the current playing content may be live broadcast resources or resources which cannot be paused and the like, the current playing content is not paused or a current playing picture of the live broadcast resources is frozen, the current playing content is recorded to obtain a recorded file, and when the upper layer application is detected to be switched to the first target application, the recorded file is played.
In this embodiment, the content being played is automatically paused when the application is switched, and the content being played is automatically resumed when the application is switched back, so that the problem of privacy disclosure possibly caused by switching the application can be avoided, the content being played in the original application can be avoided from being missed due to switching the application, and the content being played in the original application can be continuously watched from the time of switching the application without manual pausing or rewinding, thereby protecting the privacy of the user, ensuring the screen-projection experience, and simplifying the user operation.
Optionally, the step of pausing the playing of the playing content corresponding to the first target application includes:
step C10, judging whether the playing content corresponding to the first target application is a live broadcast resource;
in this embodiment, specifically, whether the playing content is a live broadcast resource is determined according to resource information of the playing content corresponding to the first target application, where the resource information is related information of the playing resource and is used to determine whether the playing resource is a live broadcast resource or a recorded broadcast resource, for example, if the playing content is detected to be a video content of a live broadcast platform, the playing content is a live broadcast resource, if the playing content is detected to be an episode updated on a video website, the playing content is a recorded broadcast resource, in an implementable manner, the resource information may further perform character recognition on the playing content, if a live broadcast related character is recognized, the playing content is determined to be a live broadcast resource, and if a live broadcast related character is not recognized, the playing content is determined to be a recorded broadcast resource.
Step C20, if the playing content corresponding to the first target application is judged to be a live broadcast resource, freezing the current playing picture of the live broadcast resource, and recording the live broadcast resource to obtain a recording file;
and step C30, when the upper layer application is detected to be switched to the first target application, playing the recording file.
In this embodiment, specifically, if it is determined that the playing content corresponding to the first target application is a recorded broadcast resource, freezing a current playing picture of the live broadcast resource, and recording the live broadcast resource from the frozen current playing picture to obtain a recorded file, when it is detected that an upper layer application is switched to the first target application, starting to play the recorded file from the frozen current playing picture, and continuing to record the live broadcast resource until the live broadcast resource is finished or a user finishes playing the live broadcast resource; if the playing content corresponding to the first target application is judged not to be the live broadcast resource, the current playing content may be recorded broadcast resource or the resource which cannot be paused is judged, the current playing content is paused or not paused, if the current playing content is detected to be paused successfully, the pause time of the recorded broadcast resource is obtained, and when the upper layer application is detected to be switched to the first target application, the recorded broadcast resource is played continuously from the pause time.
In this embodiment, by recording the content being played when the application is switched and playing the recorded file when the original application is switched back, the problem of privacy disclosure possibly caused by switching the application can be avoided, and the live content played in the original application can be avoided from being missed due to switching the application, so that the privacy of the user is protected, and the screen-casting experience is ensured.
Optionally, after the step of suspending transmission of the screen projection signal, the method further includes:
and displaying the last frame of picture received before the transmission of the screen projection signal is suspended through the display device.
In this embodiment, specifically, a last frame of picture received before transmission of the screen projection signal is suspended is determined, and the last frame of picture is output and displayed through a display device corresponding to the screen projection receiving end, where the last frame of picture received by the screen projection receiving end is the last frame of picture when an upper layer application at the screen projection pushing end is the first target application before the upper layer application is switched from the first target application to the second target application, and the screen projection receiving end is made to display the received last frame of picture by sending a screen projection suspending instruction to the screen projection receiving end, and when the upper layer application is switched back to the first target application and continues to transmit the screen projection signal to the screen projection receiving end, continuity can be provided between pictures, so as to reduce influence on screen projection experience of a user.
In an implementation manner, after the step of suspending transmission of the screen projection signal, the method further includes:
and sending a screen pause prompt message to a screen projection receiving end to remind a user of the reason of the screen pause currently, so that the user is prevented from mistaking that the fault is generated currently, and the user can be reminded of processing the privacy information in time.
Step S20, acquiring a screen-casting white list, and judging whether the second target application is a white list application or not according to the screen-casting white list;
in this embodiment, specifically, a screen-casting white list is obtained, whether application information matched with the second target application exists in the screen-casting white list is judged, if it is determined that the application information matched with the second target application exists in the screen-casting white list, the second target application is a white list application, and if it is determined that the application information matched with the second target application does not exist in the screen-casting white list, the second target application is not a white list application, wherein the screen-casting white list is an application list that allows the screen-casting receiving end to display through screen casting, and the screen-casting white list may be preset according to big data or test data, and may also guide a user to set and change according to own requirements.
Optionally, after the step of determining whether the second target application is a white list application according to the screen-casting white list, the method further includes:
step D10, if it is determined that the second target application is not a white list application, detecting whether the upper layer application is switched to the white list application;
and D20, when the upper application is detected to be switched to the white list application, continuing to transmit the screen projection signal.
In this embodiment, specifically, if it is determined that the second target application is not the white list application, detecting whether an upper layer application changes in real time, when it is detected that the upper layer application is switched to a third target application, matching the third target application with the screen-casting white list, determining whether the third target application is the white list application, and if it is determined that the third target application is not the white list application, returning to the step: and detecting whether the upper layer application is changed in real time, and if the third target application is judged to be the white list application, continuing to transmit a screen projection signal to the screen projection receiving end, wherein the third target application can be the first target application or other applications.
Step S30, if the second target application is determined to be a white list application, continuing to transmit a screen projection signal;
in this embodiment, specifically, if it is determined that the second target application is a white list application, the operation of suspending transmission of the screen projection signal is cancelled, and the screen projection signal is continuously transmitted to the screen projection receiving end, and if it is determined that the second target application is not a white list application, the operation of suspending transmission of the screen projection signal to the screen projection receiving end is continuously suspended.
In an implementable manner, referring to fig. 4, the screen projection receiving end includes a television 400 and a screen projector receiver 300, the television 400 is in communication connection with the screen projector receiver 300, the screen projection pushing end includes a mobile phone 100 and a screen projector transmitter 200, the mobile phone 100 is in communication connection with the screen projector transmitter 200, the screen projector receiver 300 is in communication connection with the screen projector transmitter 200, the screen projector transmitter 200 synchronously transmits a screen picture and sound of the mobile phone 100 to the screen projector receiver 300 in the screen projection process of the mobile phone 100 to the television 400, the screen projector receiver 300 transmits the received screen picture and sound of the mobile phone 100 to the television 400 for picture display and sound playing, when the mobile phone 100 detects that an upper layer application is switched from a first target application to a second target application in the screen projection process, the screen projection signal is paused to be transmitted to the screen projector transmitter 200, the screen projector transmitter 200 is prevented from sending the privacy information to the screen projector receiver 300, so that the television 400 is prevented from outputting the privacy information, a screen projecting white list is obtained, whether the second target application is a white list application or not is judged according to the screen projecting white list, if the second target application is determined to be the white list application, the display content of the second target application can be displayed in a screen projecting manner, and therefore a screen projecting signal is continuously transmitted to the screen projector transmitter 200, so that the screen projector transmitter 200 can continuously send the screen projecting signal to the screen projector receiver 300, and the screen projecting signal is sent to the television 400 through the screen projector 300 to display the picture and play the sound.
In this embodiment, by suspending transmission of the screen-casting signal when it is detected that the upper-layer application is switched from the first target application to the second target application in the screen casting process, it is achieved that, at each application switching, the transmission of the screen-casting signal is suspended to ensure that the display content of the switched second target application is not displayed synchronously at once if the display content includes private content, and further, by acquiring a screen-casting white list, it is determined whether the second target application is a white list application according to the screen-casting white list, if it is determined that the second target application is the white list application, the transmission of the screen-casting signal is continued, it is determined whether the second target application can be displayed on the screen according to the screen-casting white list, if it is determined that the second target application is the white list application, it is determined that the second target application does not include the private content, the screen-casting signal may be continuously transmitted, and a display picture corresponding to the second target application is displayed, the method and the device have the advantages that the screen projection signals are only transmitted in a pause mode for the applications which are not on the screen projection white list, the protection of personal privacy in the screen projection process is effectively improved, and the technical problem that privacy is revealed in the screen projection process in the prior art is solved.
Further, an embodiment of the present application further provides a screen projecting device, referring to fig. 5, the screen projecting device is applied to a screen projecting device, and the screen projecting device includes:
the pause module 10 is used for pausing the transmission of the screen projection signal when the upper layer application is detected to be switched from the first target application to the second target application in the screen projection process;
the judging module 20 is configured to obtain a screen-casting white list, and judge whether the second target application is a white list application according to the screen-casting white list;
and the transmission module 30 is configured to continue to transmit the screen projection signal if it is determined that the second target application is the white list application.
Optionally, the transmission module 30 is further configured to:
if the second target application is determined not to be the white list application, detecting whether the upper layer application is switched to the white list application;
and when the upper application is detected to be switched to the white list application, continuing to transmit the screen projection signal.
Optionally, the screen projection device further includes a monitoring module, and the monitoring module is further configured to:
acquiring a current screen projection display mode;
and if the current screen projection display mode is determined to be the privacy protection mode, monitoring whether the upper-layer application carries out application switching or not.
Optionally, the pause module 10 is further configured to:
when the upper layer application is detected to be switched from the first target application to the second target application in the screen projection process, playing of playing content corresponding to the first target application is paused, and transmission of a screen projection signal is paused.
Optionally, the pause module 10 is further configured to:
judging whether the playing content corresponding to the first target application is recorded and played resources;
if the playing content corresponding to the first target application is judged to be recorded and broadcast resources, the recorded and broadcast resources are paused to be played, and the pause time of the recorded and broadcast resources is obtained;
and when the upper-layer application is detected to be switched to the first target application, continuing to play the recorded broadcast resource from the pause time.
Optionally, the pause module 10 is further configured to:
judging whether the playing content corresponding to the first target application is a live broadcast resource;
if the playing content corresponding to the first target application is judged to be the live broadcast resource, the current playing picture of the live broadcast resource is frozen, and the live broadcast resource is recorded to obtain a recorded file;
and when the upper layer application is detected to be switched to the first target application, playing the recording file.
Optionally, the screen projection device further includes an instruction sending module, and the instruction sending module is further configured to:
and displaying the last frame of picture received before the transmission of the screen projection signal is suspended through the display device.
By adopting the screen projecting method in the embodiment, the screen projecting device provided by the invention solves the technical problem of privacy disclosure in the screen projecting process in the prior art. Compared with the prior art, the beneficial effects of the screen projection device provided by the embodiment of the invention are the same as the beneficial effects of the screen projection method provided by the embodiment, and other technical characteristics of the screen projection device are the same as those disclosed by the embodiment method, which are not repeated herein.
Further, the present application also provides a computer program product comprising a computer program which, when being executed by a processor, realizes the steps of the screen projection method as described above.
The computer program product provided by the application solves the technical problem that privacy is revealed in the screen projection process in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the invention are the same as those of the screen projection method provided by the embodiment, and are not repeated herein.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A screen projection method is characterized by comprising the following steps:
when the upper-layer application is detected to be switched from the first target application to the second target application in the screen projection process, suspending transmission of a screen projection signal;
acquiring a screen-casting white list, and judging whether the second target application is a white list application or not according to the screen-casting white list;
and if the second target application is determined to be the white list application, continuing to transmit a screen projection signal.
2. The screen-casting method of claim 1, wherein after the step of determining whether the second target application is a white list application according to the screen-casting white list, the method further comprises:
if the second target application is determined not to be the white list application, detecting whether the upper layer application is switched to the white list application;
and when the upper application is detected to be switched to the white list application, continuing to transmit the screen projection signal.
3. The screen-casting method of claim 1, wherein before the step of suspending transmission of the screen-casting signal when the upper-layer application is detected to be switched from the first target application to the second target application during the screen casting, the screen casting method further comprises:
acquiring a current screen projection display mode;
and if the current screen projection display mode is determined to be the privacy protection mode, monitoring whether the upper-layer application carries out application switching or not.
4. The screen-casting method of claim 1, wherein the step of suspending transmission of the screen-casting signal when the upper layer application is detected to be switched from the first target application to the second target application during the screen casting process comprises:
when the upper layer application is detected to be switched from the first target application to the second target application in the screen projection process, playing of playing content corresponding to the first target application is paused, and transmission of a screen projection signal is paused.
5. The screen-projection method of claim 4, wherein the step of pausing the playing of the playing content corresponding to the first target application comprises:
judging whether the playing content corresponding to the first target application is recorded and played resources;
if the playing content corresponding to the first target application is judged to be recorded and broadcast resources, the recorded and broadcast resources are paused to be played, and the pause time of the recorded and broadcast resources is obtained;
and when the upper-layer application is detected to be switched to the first target application, continuing to play the recorded broadcast resource from the pause time.
6. The screen-projection method of claim 4, wherein the step of pausing the playing of the playing content corresponding to the first target application comprises:
judging whether the playing content corresponding to the first target application is a live broadcast resource;
if the playing content corresponding to the first target application is judged to be the live broadcast resource, the current playing picture of the live broadcast resource is frozen, and the live broadcast resource is recorded to obtain a recorded file;
and when the upper layer application is detected to be switched to the first target application, playing the recording file.
7. The screen projection method of claim 1, wherein the step of suspending transmission of the screen projection signal is followed by further comprising:
and displaying the last frame of picture received before the transmission of the screen projection signal is suspended through the display device.
8. A screen projection apparatus, comprising:
the pause module is used for pausing transmission of the screen projection signal when the upper-layer application is detected to be switched from the first target application to the second target application in the screen projection process;
the judging module is used for acquiring a screen-casting white list and judging whether the second target application is a white list application or not according to the screen-casting white list;
and the transmission module is used for continuing transmitting the screen projection signal if the second target application is determined to be the white list application.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the screen projection method of any one of claims 1 to 7.
10. A storage medium, characterized in that the storage medium is a computer-readable storage medium having a program for implementing a screen projection method stored thereon, the program for implementing the screen projection method being executed by a processor to implement the steps of the screen projection method according to any one of claims 1 to 7.
CN202210113740.0A 2022-01-30 2022-01-30 Screen projection method and device, electronic equipment and storage medium Pending CN114428598A (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
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
CN114428598A true CN114428598A (en) 2022-05-03

Family

ID=81312929

Family Applications (1)

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

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495307A (en) * 2022-08-26 2022-12-20 深圳市旭联信息技术有限公司 Screen transmission data processing method and device, computer readable storage medium and system
WO2023142389A1 (en) * 2022-01-30 2023-08-03 深圳创维-Rgb电子有限公司 Screen mirroring method and apparatus, and electronic device and storage medium
CN117041506A (en) * 2022-07-26 2023-11-10 深圳Tcl新技术有限公司 Screen projection control method and device, screen projection receiving end and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109963178B (en) * 2019-03-15 2022-04-26 北京领度信息技术有限公司 Method for projecting screen by using safe screen projector and safe screen projector
CN113497909B (en) * 2020-03-18 2022-12-02 华为技术有限公司 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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023142389A1 (en) * 2022-01-30 2023-08-03 深圳创维-Rgb电子有限公司 Screen mirroring method and apparatus, and electronic device and storage medium
CN117041506A (en) * 2022-07-26 2023-11-10 深圳Tcl新技术有限公司 Screen projection control method and device, screen projection receiving end and computer readable storage medium
CN115495307A (en) * 2022-08-26 2022-12-20 深圳市旭联信息技术有限公司 Screen transmission data processing method and device, computer readable storage medium and system

Also Published As

Publication number Publication date
WO2023142389A1 (en) 2023-08-03

Similar Documents

Publication Publication Date Title
US11343556B2 (en) Method of controlling a horizontal screen or vertical screen of television, device, and storage medium
CN114428598A (en) Screen projection method and device, electronic equipment and storage medium
US9661390B2 (en) Method, server, and user terminal for sharing video information
CN110536008B (en) Screen projection method and mobile terminal
CN109413453B (en) Video playing method, device, terminal and storage medium
JP5982079B2 (en) Image transmission method, apparatus, program, and recording medium
US8925032B2 (en) AV output system performing video output
CN111510757A (en) Method, device and system for sharing media data stream
CN111586431A (en) Method, device and equipment for live broadcast processing and storage medium
CN111010588B (en) Live broadcast processing method and device, storage medium and equipment
CN107682541B (en) Audio control method for screen projection, mobile terminal and storage medium
CN110996117A (en) Video transcoding method and device, electronic equipment and storage medium
CN114501089B (en) Screen-throwing communication method and device, electronic equipment and storage medium
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
CN112911337B (en) Method and device for configuring video cover pictures of terminal equipment
CN110996115B (en) Live video playing method, device, equipment, storage medium and program product
CN111263093B (en) Video recording method and electronic equipment
CN114567809A (en) Screen projection control method and device, electronic equipment and readable storage medium
CN114550393A (en) Doorbell control method, electronic device and readable storage medium
CN114428596B (en) Screen projection display method, electronic equipment and readable storage medium
WO2023240973A1 (en) Display device and screen-projection method
WO2022242544A1 (en) Live-streaming video stream playing method and apparatus, and electronic device and storage medium
CN111107104B (en) Video transmitting method, video receiving method, device, equipment and storage medium
CN116668772A (en) Multimedia data playing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination