CN115097926B - Screen projection method, device, equipment, system and storage medium - Google Patents

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

Info

Publication number
CN115097926B
CN115097926B CN202210684186.1A CN202210684186A CN115097926B CN 115097926 B CN115097926 B CN 115097926B CN 202210684186 A CN202210684186 A CN 202210684186A CN 115097926 B CN115097926 B CN 115097926B
Authority
CN
China
Prior art keywords
screen
brightness
duration
state
terminal equipment
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.)
Active
Application number
CN202210684186.1A
Other languages
Chinese (zh)
Other versions
CN115097926A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210684186.1A priority Critical patent/CN115097926B/en
Publication of CN115097926A publication Critical patent/CN115097926A/en
Priority to PCT/CN2022/143554 priority patent/WO2023241009A1/en
Application granted granted Critical
Publication of CN115097926B publication Critical patent/CN115097926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • 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/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application discloses a screen projection method, device, equipment, system and storage medium, and belongs to the technical field of screen projection. The method comprises the following steps: setting the screen-off duration from a first duration to a second duration in a screen-on state, wherein the screen-off duration is the duration of the source terminal equipment automatically entering the screen-off state, and the second duration is longer than the first duration; under the condition that a target duration is reached, controlling a screen to be extinguished, wherein the source terminal equipment does not enter the screen extinguishing state after the screen is extinguished, and the target duration is smaller than the second duration; and under the condition that the screen is extinguished and the second time period is not reached, maintaining the screen-throwing data stream transmission with the destination terminal equipment. By adopting the scheme provided by the embodiment of the application, the source terminal equipment can automatically prolong the screen-off duration in the screen-off state, and can maintain the screen-off data stream transmission with the destination terminal equipment under the condition that the screen is off but does not enter the screen-off state.

Description

Screen projection method, device, equipment, system and storage medium
Technical Field
The embodiment of the application relates to the technical field of screen projection, in particular to a screen projection method, a device, equipment, a system and a storage medium.
Background
In order to meet the demands of people for screen projection display, mirror image screen projection technology is continuously developed.
In the related art, in the process of mirror image screen projection, source equipment needs to keep a bright screen state all the time, once the screen projection screen of destination equipment enters a screen extinction state, screen projection images of destination equipment are interrupted, so that the screen projection experience effect of a user is poor, and the source equipment keeps the bright screen state all the time, and power consumption of the source equipment is increased.
Disclosure of Invention
The embodiment of the application provides a screen projection method, device, equipment and storage medium. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a screen projection method, where the method is performed by a source device, and the method includes:
setting the screen-off duration from a first duration to a second duration in a screen-on state, wherein the screen-off duration is the duration of the source terminal equipment automatically entering the screen-off state, and the second duration is longer than the first duration;
Under the condition that a target duration is reached, controlling a screen to be extinguished, wherein the source terminal equipment does not enter the screen extinguishing state after the screen is extinguished, and the target duration is smaller than the second duration;
and under the condition that the screen is extinguished and the second time period is not reached, maintaining the screen-throwing data stream transmission with the destination terminal equipment.
In another aspect, an embodiment of the present application provides a screen projection device, where the device includes:
the time length setting module is used for setting the screen extinguishing time length from a first time length to a second time length in a screen throwing state, wherein the screen extinguishing time length is the time length when the source terminal equipment automatically enters the screen extinguishing state, and the second time length is longer than the first time length;
The screen control module is used for controlling the screen to be extinguished under the condition that the target duration is reached, wherein the source terminal equipment does not enter the screen extinguishing state after the screen is extinguished, and the target duration is smaller than the second duration;
and the data transmission module is used for maintaining the screen-throwing data stream transmission with the destination terminal equipment under the condition that the screen is extinguished and the second time length is not reached.
On the other hand, the embodiment of the application provides a screen projection system, which comprises source terminal equipment and destination terminal equipment;
The source terminal equipment is used for setting the screen-off duration from a first duration to a second duration in a screen-on state, wherein the screen-off duration is the duration of the source terminal equipment automatically entering the screen-off state, and the second duration is longer than the first duration; under the condition that a target duration is reached, controlling a screen to be extinguished, wherein the source terminal equipment does not enter the screen extinguishing state after the screen is extinguished, and the target duration is smaller than the second duration; under the condition that the screen is extinguished and the second time period is not reached, the screen-throwing data stream transmission with the destination terminal equipment is maintained;
the destination device is configured to receive an audio/video data stream transmitted by the source device under a condition that a screen-casting data stream between the destination device and the source device is kept being transmitted; and playing the screen throwing content based on the audio and video data stream.
In another aspect, an embodiment of the present application provides a computer device including a processor and a memory; the memory stores at least one instruction for execution by the processor to implement the method of screening as described in the above aspects.
In another aspect, embodiments of the present application provide a computer readable storage medium having at least one program code stored therein, the program code loaded and executed by a processor to implement a method of screening as described in the above aspects.
In another aspect, embodiments of the present application provide a computer program product comprising computer instructions stored in a computer-readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the method of screening provided in various alternative implementations of the above aspects.
In the embodiment of the application, in the screen-throwing state, the source terminal equipment prolongs the screen-throwing time length of automatically entering the screen-throwing state from the first time length to the second time length, and controls the screen to be extinguished under the condition that the target time length is reached, wherein the target time length is smaller than the second time length. By adopting the scheme provided by the embodiment of the application, the source terminal equipment can automatically prolong the screen-off time length in the screen-off state, and can maintain the screen-off data stream transmission with the destination terminal equipment under the condition that the screen is off but does not enter the screen-off state, thereby ensuring the normal screen-off between the source terminal equipment and the destination terminal equipment, avoiding the increase of the power consumption of the source terminal equipment caused by long-time screen-on and being beneficial to reducing the power consumption of the source terminal equipment in the screen-off process.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
FIG. 2 illustrates a flow chart of a screen projection method provided by an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of an implementation of a target duration screen blanking shown in an exemplary embodiment of the present application;
FIG. 4 illustrates a flowchart of a screen projection method provided by another exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of an implementation of controlling screen brightness according to an exemplary embodiment of the present application;
FIG. 6 is a flowchart illustrating operation after a screen is extinguished in a screen-cast state according to another exemplary embodiment of the present application;
FIG. 7 is a flow chart of entering a lock screen off state provided by another exemplary embodiment of the present application;
FIG. 8 is a schematic diagram illustrating an embodiment of resuming screen-cast data streaming after successful unlocking according to another exemplary embodiment of the present application;
FIG. 9 is a flowchart of operations in a screen lock out state during a screen throw process according to another exemplary embodiment of the present application;
FIG. 10 is a general operational flow diagram for entering a screen-cast state provided by another exemplary embodiment of the present application;
FIG. 11 is a block diagram of a screen projection system provided in an exemplary embodiment of the present application;
FIG. 12 is a block diagram of a screen projection device according to an exemplary embodiment of the present application;
fig. 13 is a block diagram showing the structure of a computer device according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
References herein to "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In the related art, in the process that the source terminal equipment performs screen projection to the destination terminal equipment, the source terminal equipment needs to keep a screen-on working state all the time, and once the screen-off state is entered, the source terminal equipment interrupts the connection with the destination terminal equipment and finishes screen projection.
In one possible scenario, in the process that the source device performs mirror image screen projection to the destination device, when a user performs operation on a screen projection screen through the destination device, and does not perform operation through the source device any more, the source device still needs to maintain a bright screen state, and once the source device enters a screen quenching state, connection between the source device and the destination device is interrupted, so that screen projection fails. Therefore, during the screen throwing process, the user needs to intermittently operate the source device (such as a touch screen operation), or manually turn off the automatic screen-off function of the source device, so as to avoid the source device from entering the screen-off state. However, maintaining the source device in the on-screen state may result in increased power consumption and increased power consumption.
In the embodiment of the application, aiming at the problems, in the process of screen throwing, the source equipment automatically prolongs the screen throwing duration, and controls the screen to be extinguished under the condition that the screen throwing duration is not prolonged, so that the screen throwing data stream transmission with the destination equipment can be kept under the condition that the screen is only extinguished and the screen throwing state is not entered, the power consumption of the source equipment is reduced, and the screen throwing interruption caused by the fact that the source equipment automatically enters the screen throwing state is avoided.
FIG. 1 illustrates a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. The implementation environment includes a source device 101 and a destination device 102.
The source device 101 is an electronic device with a screen-throwing function, where the screen-throwing function may be a function of an original application in the electronic device or a function of a third party application; the destination device 102 is an electronic device with a screen display function, where the screen display function may be a function of an original application in the electronic device or a function of a third party application. The electronic device may be a smart phone, a tablet computer, a personal computer, a wearable device, a vehicle-mounted terminal, or the like, and in fig. 1, the source device 101 is a smart phone, and the destination device 102 is a television terminal, but this configuration is not limited thereto.
In one possible implementation, the source device 101 and the destination device 102 are located under the same lan, and perform on-screen data streaming through the lan.
As shown in fig. 1, the source device 101 and the destination device 102 are simultaneously connected under the same local area network provided by the router 103, so that the screen-casting data stream transmission is performed through the router 103.
In the process that the source terminal equipment 101 throws the screen to the destination terminal equipment 102, the source terminal equipment 101 records the screen picture and collects the equipment audio, so that the recorded picture and the audio are encoded, an audio-video data stream is generated, the audio-video data stream is transmitted to the destination terminal equipment 102 through the router 103, and the destination terminal equipment 102 decodes and plays the audio-video data stream. Further, when the reverse control function is supported, the sink device 102 may transmit a reverse control instruction to the source device 101 through the router 103, and the source device 101 performs a corresponding reverse control operation according to the reverse control instruction.
It should be noted that, the source device 101 and the destination device 102 may be connected under the same lan, or may be connected under the same router at the same time, or may be other possible manners, which is not limited in this embodiment of the present application. In other possible embodiments, the source device 101 and the destination device 102 may also perform screen casting through the internet, which is not limited in this embodiment.
In addition, the source device 101 may transmit the screen-projection data stream (i.e. one-to-many screen-projection) to the plurality of destination devices 102 with the screen-projection function, and the destination device 102 may also receive the screen-projection data stream (i.e. many-to-one screen-projection) of the plurality of source devices 101 at the same time.
Referring to fig. 2, a flowchart of a screen projection method according to an exemplary embodiment of the present application is shown. The embodiment of the application is illustrated by taking the method for the source device shown in fig. 1 as an example, and the method may include the following steps:
In step 201, in the screen-on state, the screen-off duration is set from a first duration to a second duration, where the screen-off duration is a duration for the source device to automatically enter the screen-off state, and the second duration is longer than the first duration.
Because the power consumption increases when the source device does not receive the operation of keeping the screen on (such as the touch screen operation) or the event (such as the incoming call notification) for a long time, the source device can set the screen off duration in order to reduce the power consumption, and automatically enter the screen off state when the screen off duration is reached.
In the off-screen state, the source device will turn down or turn off a part of voltage output, store the running application data in the memory, monitor the application switched to the background running, off the screen and keep the screen in the locked state. Only when the unlocking operation of the screen is received, the source device can light the screen and continue the running of the application in the foreground.
Optionally, in the non-screen-throwing state, the screen-off duration of the source device is set to be a first duration. In the non-screen-throwing state, if the operation or the event of keeping the screen on is not received within the first time period, the source terminal equipment automatically enters the screen-off state.
In order to avoid the situation that in the screen throwing state, when the first time length is reached and the screen keeping operation or the event is not received, the source terminal equipment automatically enters the screen extinction state, and when the source terminal equipment enters the screen throwing state, the screen extinction time length is automatically set to be a second time length from the first time length, wherein the second time length is longer than the first time length. By setting the second time length, the time for the source terminal equipment to automatically enter the screen-off state can be prolonged, and the problem of screen-on interruption caused by the fact that the source terminal equipment enters the screen-off state in a short time is avoided.
Optionally, the second duration may be a maximum value of candidate values of the screen-off duration that the source device supports setting, for example, the second duration is an integer (int) maximum value. Or when the screen-off duration is set to be the second duration under the condition that the source terminal equipment turns off the automatic screen-off function, the source terminal equipment cannot enter a screen-off state, namely the automatic screen-off function is turned off.
Optionally, the screen-throwing state refers to a mirror-image screen-throwing state. The source terminal equipment records the screen to obtain a screen recording picture, and the destination terminal equipment displays the screen recording picture.
Schematically, as shown in fig. 3, in the non-screen-throwing state, the duration of the source device 301 entering the screen-off state automatically is 2 minutes, and when the screen throwing function is started to throw a screen to the destination device 302, the duration of the source device 301 entering the screen-off state is automatically prolonged to be the integer (int) maximum value, so that the source device 301 will not enter the screen-off state, i.e. the automatic screen-off function is turned off.
And 202, controlling the screen to be extinguished under the condition that the target duration is reached, wherein the source terminal equipment does not enter the screen extinguishing state after the screen is extinguished, and the target duration is smaller than the second duration.
Unlike the related art, the source device always keeps the screen in a bright state after the automatic screen-off duration is prolonged. In this embodiment, in order to reduce power consumption of the source device, on the premise of prolonging the screen-off duration, the source device can control the screen to be extinguished without entering the screen-off state under the condition that the target duration is reached, so as to reduce power consumption.
Optionally, the target duration is less than the second duration, which may be the first duration, or may be another duration less than the second duration. When the target time length is the first time length, the time length of the control screen extinction is the same as the time length of the automatic screen extinction state of the source equipment, so that a screen extinction control process similar to the screen extinction state is provided for a user, and the screen extinction process of the source equipment is consistent with the screen extinction process when the screen extinction state is entered in terms of user experience.
In one possible implementation, the source device sets a countdown timer whose countdown duration is the target duration, and controls the screen to go out after the countdown timer expires.
In the above process, since the screen-off duration of the source device is prolonged, the source device will not automatically enter the screen-off state when the second duration is not reached. Under the condition that the target duration is reached, the source equipment can control the screen to be extinguished, so that the excessive power consumption of the source equipment is avoided, and the process of extinguishing the screen of the source equipment is similar to the process of extinguishing the screen when the screen is in an off-screen state in terms of user experience.
Alternatively, the screen may be controlled to be turned off by adjusting the brightness of the screen to zero, or the screen may be independently turned off, which is not limited in the embodiment of the present application.
In one possible implementation, the source device controls the screen to be extinguished and not enter the screen-extinguishing state, the screen is in the unlocked state, and the source device maintains the screen-recording and screen-throwing state.
Schematically, as shown in fig. 3, in the case where no operation is received within 2 minutes, the source device 301 extinguishes the screen, and does not enter the off-screen state, and maintains the on-screen state.
And 203, maintaining the screen-throwing data stream transmission with the destination terminal equipment under the condition that the screen is extinguished and the second time period is not reached.
Under the condition that the screen is extinguished and the second duration is not reached, the source terminal equipment does not enter the screen extinguishing state, so that the source terminal equipment can keep screen casting data stream transmission with the destination terminal equipment, wherein the screen casting data stream comprises an audio and video data stream sent by the source terminal equipment to the destination terminal equipment and a reverse control instruction sent by the destination terminal equipment to the source terminal equipment.
Schematically, as shown in fig. 3, in the case that the extended screen-off duration is not reached, the source device 301 continues to maintain the screen-casting data stream transmission with the destination device 302, and the destination device 302 continues to display the screen-recording screen.
In summary, in the embodiment of the present application, in the screen-on state, the source device extends the screen-off duration of automatically entering the screen-off state from the first duration to the second duration, and controls the screen to be extinguished when the target duration is reached, where the target duration is less than the second duration. By adopting the scheme provided by the embodiment of the application, the source terminal equipment can automatically prolong the screen-off time length in the screen-off state, and can maintain the screen-off data stream transmission with the destination terminal equipment under the condition that the screen is off but does not enter the screen-off state, thereby ensuring the normal screen-off between the source terminal equipment and the destination terminal equipment, avoiding the increase of the power consumption of the source terminal equipment caused by long-time screen-on and being beneficial to reducing the power consumption of the source terminal equipment in the screen-off process.
In general, the process of automatically entering the screen off state from the screen on state by the source device includes the process of changing the screen from the screen on state to the screen off state. In the embodiment of the application, in order to improve user experience, the process of controlling the screen to be extinguished by the source device can be consistent with the process of extinguishing the screen represented by the source device automatically entering the screen extinguishing state, and the process of controlling the screen to be extinguished by the source device and the working state under the condition of extinguishing the screen are described in detail through specific embodiments.
Referring to fig. 4, a flowchart of a screen projection method according to another exemplary embodiment of the present application is shown. This embodiment is described by taking the method used for the source device shown in fig. 1 as an example, and the method may include the following steps:
In step 401, in the screen-on state, the screen-off duration is set from the first duration to the second duration, where the screen-off duration is the duration of the source device automatically entering the screen-off state, and the second duration is longer than the first duration.
The implementation of this step may refer to step 201, and this embodiment is not described herein.
Step 402, when the third duration is reached, adjusting the screen brightness from the first brightness to the second brightness, wherein the third duration is smaller than the target duration, and the second brightness is smaller than the first brightness.
According to the screen extinction process expressed in the process that the source equipment automatically enters the screen extinction state under the normal condition, the source equipment sets a third time length, and under the condition that the third time length is reached, the source equipment adjusts the screen brightness from the first brightness to the second brightness, so that the process of darkening the screen in the process that the source equipment automatically enters the screen extinction state is simulated.
Optionally, the difference between the third duration and the target duration is a fixed value. For example, the fixed value is 5 seconds, and when the target time length is 1 minute, the third time length is 55 seconds; when the target period is 30 seconds, the third period is 25 seconds. In one possible implementation manner, the source device determines the third duration based on the target duration and the fixed value, so as to set the countdown duration to be a countdown timer of the third duration, and starts the countdown timer, so that when the countdown timer expires, the screen brightness is adjusted from the first brightness to the second brightness.
To ensure the screen display effect under different environments, a user typically sets the brightness adjustment mode of the screen to a first adjustment mode (or referred to as an auto adjustment mode). In the first adjusting mode, the function of automatically adjusting the screen brightness based on the ambient light brightness is started, the source device automatically adjusts the screen brightness according to the ambient light brightness (acquired by an ambient light sensor) of the environment where the source device is located, and under the condition that a user manually adjusts the screen brightness, the source device still adjusts the screen brightness according to the ambient light brightness of the environment where the source device is located. In the embodiment of the present application, since the screen brightness needs to be adjusted from the first brightness to the second brightness, in order to ensure the normal execution of the screen brightness adjustment process (without the second brightness after adjustment changing due to the first adjustment mode), in one possible implementation, the brightness adjustment process may include the following steps:
1. In the case where the luminance adjustment mode is the first adjustment mode, the luminance adjustment mode is set to the second adjustment mode.
In one possible implementation, the source device determines the current brightness adjustment mode. If the current brightness adjustment mode is the first adjustment mode, the brightness adjustment mode is changed to a second adjustment mode (or called a manual adjustment mode), wherein in the second adjustment mode, the function of automatically adjusting the screen brightness based on the ambient light brightness is closed, the source device does not automatically adjust the screen brightness according to the ambient light brightness, and under the condition that the user manually adjusts the screen brightness, the source device does not adjust the screen brightness according to the ambient light brightness of the environment in which the source device is located. And if the current brightness adjustment mode is the second adjustment mode, maintaining the second adjustment mode.
It should be noted that, the setting process of the brightness adjustment mode is automatically performed by the source device in the background, and the user side does not feel the setting process.
2. In the second adjustment mode, the screen brightness is automatically adjusted from the first brightness to the second brightness.
Further, in the second adjustment mode, the source device automatically adjusts the screen brightness from the first brightness to the second brightness. Since the screen brightness does not change with the change of the ambient light brightness in the second adjustment mode, the screen brightness will not change after being set to the second brightness.
It should be noted that, when the initial brightness adjustment mode of the source device is the second adjustment mode, the source device directly adjusts the first brightness to the second brightness.
In some embodiments, the second brightness is a fixed value, and the second brightness is a brightness after the screen brightness is reduced before the screen normally enters the off-screen state. For example, the second luminance is 50nit.
In one illustrative example, when the target time period is 1 minute, the source device sets the brightness adjustment mode to the second adjustment mode and adjusts the screen brightness from 1000nit to 50nit when 55 seconds are reached.
In the normal automatic screen-off process, before entering the screen-off state, if a user operates the device or the device receives a specific notification, the device needs to keep on the screen. To simulate this effect, in one possible implementation manner, in a screen-throwing state, the source device monitors a target event, and in a case that the third duration is reached and the target event is not monitored, the source device adjusts the brightness of the screen from the first brightness to the second brightness, where the target event has a function of keeping the screen of the source device in a bright screen state.
Optionally, the target event may be an incoming call notification, a message alert, a touch-screen operation, a voice control command, and the embodiment of the present application is not limited thereto.
Optionally, if the target event is monitored under the condition that the third duration is not reached, the source device responds to the target event and maintains the first brightness.
In one possible implementation, the source device sets a countdown timer having a countdown duration of a third duration, and starts the countdown timer. If the target event is not monitored in the countdown process, after the expiration of the countdown timer, adjusting the screen brightness to be second brightness; if the target event is monitored in the countdown process, resetting the countdown timer when the target event is monitored, and keeping the screen brightness to be the first brightness.
Illustratively, as shown in fig. 5, the source device 501 sets the target duration to 1 minute, the third duration to 55 seconds, and when the third duration is reached and no touch operation and no incoming call notification are detected, the source device 501 adjusts the screen brightness from the first brightness 1000nit to the second brightness 50nit.
In one possible implementation manner, the source device adjusts the screen brightness to the first brightness when the third duration is reached and the target duration is not reached and the target event is monitored.
And when the third duration is reached and the target duration is not reached, the source device monitors the target event, and the source device restores the screen brightness to the first brightness in order to facilitate the subsequent operation processing of the user.
Illustratively, as shown in fig. 5, in the case that the source device 501 monitors the touch screen operation, the screen brightness is adjusted from 50nit to 1000nit, so that the user can conveniently perform subsequent operation processing.
Step 403, when the target duration is reached and the target event is not monitored, controlling the screen to be extinguished, wherein the target event has the function of keeping the screen of the source terminal device in a bright screen state.
In a possible implementation manner, in the screen-throwing state, the source device sets a countdown timer with a countdown duration being a target duration, and starts the countdown timer. If the target event is not monitored in the countdown process, the control screen is turned off after the countdown timer expires.
The target event has a function of keeping a screen of the source device in a bright screen state, and can be triggered by a user operation on the source device, such as a touch event triggered by a user touch operation on the source device, or can be triggered by a notification received by the source device, such as an incoming call notification received by the source device.
Illustratively, as shown in fig. 5, if the source device 501 does not monitor the touch screen operation and the incoming call notification within the target time period, the control screen is turned off when the target time period is reached.
Step 404, under the condition that the target event is monitored within the target duration, keeping the screen in a bright screen state, and resetting a countdown timer, wherein the countdown duration of the countdown timer is the target duration.
In a possible implementation manner, in the case that the target event is monitored during the countdown process (the countdown duration of the countdown timer is the target duration), in order to facilitate the subsequent operation processing of the user, the source device keeps the screen in a bright screen state, and resets the countdown timer when the target event is monitored.
In one possible implementation manner, if the target event is not monitored within the third duration, the source device saves the current brightness adjustment mode and the first brightness. If the target event is monitored under the condition that the third duration is reached but the target duration is not reached, the source device restores the stored brightness adjustment mode and restores the screen brightness to the first brightness.
And step 405, in the case that the screen is extinguished and the second time period is not reached, maintaining the screen-casting data stream transmission with the destination terminal equipment.
The implementation of this step may refer to step 203, and this embodiment is not described herein.
And step 406, receiving a reverse control instruction sent by the destination terminal equipment under the condition that the screen is extinguished and the second time period is not reached, wherein the reverse control instruction is used for carrying out reverse control on the source terminal equipment.
When the screen is extinguished and the second time period is not reached, the destination device sends the user operation to the source device in the form of a reverse control instruction when the user operates on the screen throwing picture through the destination device, and further the source device receives the reverse control instruction, so that corresponding reverse control operation is executed.
In one possible implementation manner, the destination device receives an operation instruction of a user on the screen, optionally, the destination device receives a touch operation of the user on the screen, or receives the operation instruction through a peripheral (such as a mouse, a keyboard, etc.). After receiving the operation instruction, the destination device identifies the operation instruction, converts the operation instruction into a reverse control instruction for the source device, and sends the reverse control instruction to the source device.
The reverse control instruction comprises an operation type and a corresponding operation parameter. For example, when the destination device receives a click operation from a mouse, the reverse control instruction includes an operation type "click", a click coordinate corresponding to the click operation, and a click frequency of the click operation; when the destination terminal equipment receives a sliding operation, the reverse control instruction comprises a sliding track coordinate of the operation type sliding operation; when the destination terminal equipment receives the long-press operation, the reverse operation instruction comprises an operation type of long-press, long-press coordinates corresponding to the long-press operation, long-press duration and the like. The embodiment of the application does not limit specific parameters contained in the reverse control instruction.
Step 407, executing the reverse control operation indicated by the reverse control instruction.
Further, the source device executes the indicated reverse control operation according to the reverse control instruction. Correspondingly, the user can see the updated screen projection picture after the reverse control operation through the destination terminal equipment.
It should be noted that, because there may be a difference between the screen sizes of the source device and the destination device, the source device needs to perform coordinate transformation on the parameters in the reverse control instruction before executing the reverse control operation, which is not described in detail herein.
In addition, in this embodiment, in the process of reversely controlling the source device by the destination device, the screen of the source device remains extinguished.
In step 408, in the case of monitoring the screen-on event, the screen is turned on, wherein the screen displayed after the screen is turned on is the non-screen-locking screen, and the screen-on event is an event triggering the screen to be turned on.
In order to simulate the process of the source equipment lighting up the screen in the normal screen-off state, the source equipment monitors a screen-on event under the condition that the screen is off, and lights up the screen under the condition that the screen-on event is monitored. The screen-lighting event is an event triggering screen lighting.
Optionally, the screen-lighting event may be an event triggered by pressing a physical key, an event triggered by a touch operation, a time triggered by a voice control instruction, an event triggered by a specific notification (such as an incoming call notification), or the like, which is not limited in the embodiment of the present application.
After the screen is extinguished, the source device needs to register a screen-on event, and only when the registered screen-on event is monitored, the source device can lighten the screen.
Optionally, the registered on-screen event may be the same as or different from the event that wakes up the source device to exit the off-screen state, which is not limited in the embodiment of the present application. For example, when the source device supports exiting the off-screen state by a power key, clicking on a screen, or messaging, the registered on-screen events may include a power key press event, a screen click event, and a notification event, or may include only a power key press event and an incoming notification event (i.e., a notification event of a specified type).
Under the condition that the source terminal equipment is awakened to exit the screen-off state, the source terminal equipment is still in the screen-on state, so that the screen-on interface is displayed after the source terminal equipment lights up the screen, and the unlocking operation is waited for. In the embodiment of the application, under the screen throwing state, the source device only controls the screen to be extinguished, but does not enter the screen extinguishing state (does not enter the screen locking state), so that under the condition of hearing a screen lightening event, the source device lightens the screen, and the screen directly displays the current screen throwing picture instead of the screen locking interface after the screen lightening event.
In one illustrative example, the source device registers a pressing operation of the power key as a bright screen event, and in response to the pressing operation of the power key, the source device lights up the screen, directly displays the current screen-throwing picture, without performing an unlocking operation.
In an illustrative example, to ensure privacy security, when the source device registers an incoming call notification as a bright screen event, the source device lights up a screen to display an incoming call interface if the incoming call notification is heard. In the process of answering the incoming call, the source terminal device firstly carries out privacy processing on the screen recording picture, then encodes the screen recording picture, generates a data stream and transmits the data stream to the destination terminal device, wherein the privacy processing method comprises, but is not limited to, carrying out mosaic processing on the number displayed by the incoming call.
Step 409, setting the screen brightness to the first brightness and setting the brightness adjustment mode to the first adjustment mode.
Since the source device adjusts the brightness adjustment mode and the screen brightness in the case where the screen brightness adjustment mode is the first adjustment mode in the process of controlling the screen to be extinguished, in order to ensure consistency between the screen brightness and the brightness adjustment mode before the screen is extinguished after the screen is lit, the source device sets the screen brightness to the first brightness and resets the brightness adjustment mode to the first adjustment mode.
Further, after the source device is on, the above step 402 is continuously performed.
In step 410, in the case of exiting the screen-on state, the screen-off duration is set to the first duration.
The second duration is set to avoid the source equipment from entering the screen-off state quickly in the screen-on state, so that the source equipment adjusts the screen-off duration from the second duration to the first duration, namely, the duration for the source equipment to automatically enter the screen-off state in the normal use state in order to reduce power consumption under the condition of exiting the screen-on state. It should be noted that, if the screen-throwing state is exited during the screen extinction process, the source device needs to restore the brightness adjustment mode and the screen brightness.
Optionally, the screen exit state may be triggered by the destination device, for example, when receiving a screen exit instruction sent by the destination device, the source device exits the screen exit state; or the screen-throwing-out state can be triggered by the source terminal equipment, for example, when the screen-throwing-out operation is received, the source terminal equipment exits the screen-throwing state; or the screen-off state can be automatically triggered when the screen-off link is disconnected, for example, when the screen-off link is disconnected due to network reasons, the source terminal equipment exits the screen-off state.
In the above embodiment, in the screen throwing state, by setting the third duration and monitoring the target event, the source device can make the process of controlling the screen to be extinguished consistent with the process of extinguishing the screen when entering the screen extinguishing state, so that the use experience of the user is improved, and in the case of monitoring the screen lightening event, the source device can directly display the interface where the screen lightening event is located, so that the step of unlocking the screen is omitted, and the user can conveniently and timely perform subsequent processing.
It should be noted that the above embodiment is only one possible control logic, and in other possible embodiments, after the control screen is turned off, the source device may monitor the on-screen event and receive the reverse control instruction sent by the destination device at the same time, and the embodiment of the present application is not limited to specific control logic.
According to the above embodiment, as shown in fig. 6, a flowchart is shown after the screen is extinguished in the screen-throwing state according to another exemplary embodiment of the present application. After the source device 601 controls the screen to be extinguished in the screen-on state, the screen-on data stream transmission with the destination device 602 is maintained. When the source device 601 registers an incoming call notification and a triggering operation on a power key as a screen-on event, the source device 601 sequentially judges the event, firstly judges whether a reverse control instruction is received, and under the condition that the reverse control instruction is received, the source device executes the reverse control operation indicated by the reverse control instruction and keeps the screen extinguished; continuously judging whether to monitor the incoming call notification or not under the condition that the reverse control instruction is not received, and lighting a screen by the source terminal equipment under the condition that the incoming call notification is monitored to display the incoming call notification; if the volume key triggering operation is monitored, the source equipment adjusts the volume according to the volume key triggering operation and keeps the screen extinguished; and under the condition that the triggering operation of the power key is not monitored, continuously judging whether the triggering operation of the power key is monitored, under the condition that the triggering operation of the power key is monitored, the source terminal equipment lights up a screen, directly displays a screen throwing picture, and under the condition that the triggering operation of the power key is not monitored, the source terminal equipment keeps the screen extinguished.
It should be noted that, in the foregoing embodiments, the foregoing embodiments are merely illustrative, and in other possible implementation manners, in the process of determining an event by the source device, the determination may be performed on the receiving of the reverse control instruction, the monitoring of the incoming call operation, the monitoring of the triggering operation of the volume key, and the monitoring of the triggering operation of the power key, or may be performed according to a different determining sequence from that shown in fig. 6, which is not limited to this embodiment of the present application.
In the screen-throwing process, in response to a screen locking event of the source terminal equipment, the destination terminal equipment is disconnected with the source terminal equipment, exits from the screen-throwing state, and screen-throwing connection needs to be carried out again. In the embodiment of the application, under the condition that the source end equipment responds to the screen locking event and enters the screen locking state, the destination end equipment keeps the connection state with the source end equipment, and a screen locking prompt picture is displayed for prompting a user that the source end equipment is in the screen locking state. After the source device unlocks the screen, the destination device interface resumes displaying the screen-cast picture.
Under the condition that a screen locking event is monitored within a target duration, the source terminal equipment enters a screen-off state, wherein screen-on data stream transmission between the source terminal equipment and the destination terminal equipment is interrupted under the screen-off state.
In a possible implementation manner, under the condition that a screen locking event is monitored within a target duration, the source terminal equipment enters a screen locking and extinguishing state, screen recording operation on a picture is stopped, screen casting data stream transmission with the destination terminal equipment is interrupted, and monitoring is carried out on an application running in the background.
Alternatively, the screen locking event may be an event triggered by a physical key (such as pressing a power key), or may be an event triggered by a voice control command, which is not limited in the embodiment of the present application.
As shown in fig. 7, the process specifically includes the steps of:
And step 701, sending a screen locking message to the destination terminal equipment under the condition that the screen locking event is monitored within the target duration, so that the destination terminal equipment displays a screen locking prompt picture based on the screen locking message.
In a possible implementation manner, under the condition that a screen locking event is monitored within a target duration, the source terminal device sends a screen locking message to the destination terminal device to prompt the destination terminal device to interrupt the screen-locking data flow, and the screen locking state is about to be entered.
The screen locking message may be an instruction in a screen throwing data stream transmitted from the source terminal device to the destination terminal device, and instruct the destination terminal device to display a preset screen locking prompt screen; the device can also be a screen locking prompt image contained in the screen throwing data stream, and the destination device displays a screen locking prompt picture based on the image. In the process of decoding the screen-throwing data stream by the destination terminal equipment and generating a screen-throwing picture, when the destination terminal equipment monitors the instruction or the screen-locking prompt image, the screen-locking message of the source terminal equipment, which is about to enter a screen-locking and screen-extinguishing state, is received.
Step 702, enter an off screen state.
In one possible implementation manner, the source end device enters a screen-off state, and interrupts the transmission of the screen-throwing data stream with the destination end device, and at the same time, the destination end device displays a screen-locking prompt screen.
Illustratively, as shown in fig. 8, the source device 801 enters a screen-off state, interrupts the transmission of the screen-throwing data stream with the destination device 802, and at the same time, the destination device 802 displays a screen-locking prompt screen.
In step 703, in the off-screen state, under the condition that a screen-lighting event is monitored, the screen is lightened and a screen-locking interface is displayed, and the screen-lighting event is an event triggering the screen to light.
In one possible implementation, after the source device monitors the on-screen event, the screen is turned on and the screen-locked to-be-unlocked interface is displayed, at which time the screen brightness is set to the first brightness, and the source device continues to maintain interruption of the on-screen data flow with the destination device.
And when the fourth time length is up and the unlocking operation is not monitored, the source terminal equipment extinguishes the screen, and the screen extinguishing state is kept continuously, wherein the fourth time length is the screen brightening time length for waiting for the unlocking operation of the user.
Schematically, the source device registers the incoming call notification as a bright screen event, and when the incoming call notification is monitored, the source device lights up a screen, displays an incoming call picture, and when the unlocking operation is monitored, the source device keeps bright screen after the incoming call is ended; and after the incoming call is ended and the unlocking operation is not monitored, the source terminal equipment still keeps the screen-off state.
And step 704, recovering the screen-throwing data stream transmission with the destination terminal equipment under the condition that the unlocking is successful.
In a possible implementation manner, under the condition that the unlocking is successful, the source terminal device continues to record the screen picture and acquire the device audio, so that the recorded picture and the audio are encoded, an audio-video data stream is generated, and the generated audio-video data stream is transmitted to the destination terminal device. And under the condition that the destination terminal equipment receives the audio and video data stream, ending displaying the screen locking prompt picture and displaying the screen throwing picture again. Meanwhile, the source terminal device receives a reverse control instruction from the destination terminal device and executes a reverse control operation indicated by the reverse control instruction.
Schematically, as shown in fig. 8, in the case that the unlocking is successful, the source device 801 continues to record the screen, collects the device audio, and transmits the generated audio/video data stream to the destination device 802, where the destination device 802 directly displays the screen.
In the above embodiment, in the screen throwing process, after the source terminal device enters the screen locking and extinguishing state, the source terminal device can be kept connected with the destination terminal device, and the source terminal device is prompted to be in the screen locking and extinguishing state through the destination terminal device, so that a user can know the state of the source terminal device in time. Under the condition that the unlocking is successful, the source terminal equipment can directly recover the screen-throwing data stream transmission with the destination terminal equipment, and the convenience of operation in the screen-throwing process is improved.
According to the above embodiment, as shown in fig. 9, a flowchart of the operation in a screen locking and extinguishing state in a screen throwing process according to another exemplary embodiment of the present application is shown. In the screen locking and screen extinguishing state, the source terminal device 901 interrupts the screen-throwing data stream transmission with the destination terminal device 902, and the destination terminal device 902 displays a screen locking prompt screen. When the source device 901 registers an incoming call notification and a triggering operation of a power key as a screen-lighting event, the source device 901 sequentially judges the event, and when the incoming call notification is heard, the source device 901 lights up a screen, and after the incoming call is ended, if an unlocking success operation exists, the source device exits from a screen-locking and screen-quenching state; if the successful unlocking operation does not exist, the source terminal equipment restores the screen locking and extinguishing state; and under the condition that the incoming call notification is not monitored, continuously judging whether the triggering operation of the power key is monitored, and under the condition that the triggering operation of the power key is monitored, the source end equipment 901 lights up a screen, if the successful unlocking operation exists, the source end equipment 901 exits from a screen locking and extinguishing state, and screen throwing data stream transmission with the destination end equipment 902 is restored. In the case that the triggering operation of the power key is not monitored, the source device 901 maintains a screen locking and extinguishing state.
It should be noted that, in the screen locking and screen extinguishing state in the screen throwing process, the source device may judge the monitoring incoming call notification and the triggering operation of the monitoring power key at the same time, and the embodiment of the present application does not limit the specific execution sequence.
In connection with the above embodiments, as shown in fig. 10, a general operation flowchart for entering a screen-throwing state according to another exemplary embodiment of the present application is shown.
In step 1001, in the screen-throwing state, the screen is kept bright.
And in the screen-throwing state, the source terminal equipment keeps a bright screen, and screen-throwing data stream transmission is carried out between the source terminal equipment and the destination terminal equipment.
Step 1002, it is determined whether a screen lock event exists.
The source device monitors the screen locking event and judges whether the screen locking event exists, if yes, the step 1003 is entered; if there is no screen lock event, step 1004 is entered.
Step 1003, entering a screen locking and extinguishing state.
And under the condition that the screen locking event is monitored, the source terminal device sends a screen locking message to the destination terminal device, the destination terminal device displays a screen locking prompt picture, and the source terminal device interrupts screen casting data stream transmission with the destination terminal device.
Step 1004, determining whether there is an incoming call notification or a touch-screen operation.
The source terminal device monitors the incoming call notification and the touch screen operation, judges whether the incoming call notification or the touch screen operation exists, and returns to step 1001 to keep the screen bright state if the incoming call notification or the touch screen operation exists; if there is no incoming call notification or touch-screen operation, step 1005 is entered.
Step 1005, adjusting the screen brightness.
And when the third duration is reached, the source device adjusts the screen brightness from the first brightness to the second brightness, and when the brightness adjustment mode is the first adjustment mode, the source device adjusts the brightness adjustment mode to the second adjustment mode.
Step 1006, it is continued to determine whether there is an incoming call notification or a touch-screen operation.
The source device continues to monitor the incoming call notification and the touch screen operation, judges whether the incoming call notification or the touch screen operation exists, and returns to step 1001 to keep the screen bright state if the incoming call notification or the touch screen operation exists; if there is no incoming call notification or touch-screen operation, step 1007 is entered.
Step 1007, the control screen is extinguished, and incoming call notification and triggering operation on the power key are monitored.
Under the condition that the target duration is reached, the source end equipment controls the screen to be extinguished, monitors the incoming call notification and the triggering operation of the power key, meanwhile, the source end equipment keeps the screen-throwing data stream transmission with the destination end equipment, and the destination end equipment keeps displaying the screen-throwing picture.
Referring to fig. 11, a block diagram of a screen projection system according to an exemplary embodiment of the present application is shown, where the screen projection system includes a source device 1101 and a destination device 1102.
The source end equipment is used for setting the screen-off duration from a first duration to a second duration in a screen-on state, wherein the screen-off duration is the duration of the source end equipment automatically entering the screen-off state, and the second duration is longer than the first duration; under the condition that the target duration is reached, controlling the screen to be extinguished, wherein the source terminal equipment does not enter a screen extinguishing state after the screen is extinguished, and the target duration is smaller than the second duration; and under the condition that the screen is extinguished and the second time period is not reached, the screen-throwing data stream transmission with the destination terminal equipment is maintained.
The destination terminal equipment is used for receiving the audio and video data stream transmitted by the source terminal equipment under the condition that the screen-throwing data stream between the destination terminal equipment and the source terminal equipment is kept to be transmitted; and playing the screen throwing content based on the audio and video data stream.
In one possible implementation, the on-screen data stream transmitted between the source device and the destination device further includes reverse control instructions.
The destination terminal equipment is used for receiving reverse control operation of screen throwing content under the condition that the screen of the source terminal equipment is extinguished and the second time length is not reached; and sending a reverse control instruction to the source terminal equipment based on the reverse control operation.
And under the condition that the destination terminal equipment receives the reverse control operation of the screen throwing content, converting the reverse control operation into a corresponding reverse control instruction, wherein the reverse control instruction comprises an operation type and a corresponding operation parameter, so that the destination terminal equipment sends the reverse control instruction to the source terminal equipment.
And the source end equipment is used for executing the reverse control operation indicated by the reverse control instruction.
In one possible implementation, the source device enters a screen locking and screen extinguishing state, and the transmission of the screen casting data stream between the source device and the destination device is interrupted.
The source terminal equipment is used for entering a screen-locking state and sending a screen-locking message to the destination terminal equipment under the condition that a screen-locking event is monitored within a target duration, wherein screen-locking data flow transmission between the source terminal equipment and the destination terminal equipment is interrupted under the screen-locking state;
And the destination terminal equipment is used for displaying a screen locking prompt picture based on the screen locking message under the condition that the source terminal equipment enters the screen locking state.
Under the condition that the source terminal equipment enters a screen-locking state, in order to prompt a user that the source terminal equipment is in a screen-locking state, the destination terminal equipment displays a screen-locking prompt picture based on the received screen-locking message.
The source terminal equipment is also used for lighting up a screen and displaying a screen locking interface under the condition that a screen-turning-off state is adopted and a screen-turning-on event is monitored, wherein the screen-turning-on event is an event triggering screen-turning-on; and under the condition that the unlocking is successful, the screen-throwing data stream transmission with the destination terminal equipment is restored.
Referring to fig. 12, a block diagram of a screen projection device according to an exemplary embodiment of the present application is shown, where the device may include the following structures:
a duration setting module 1201, configured to set, in a screen-on state, a screen-off duration from a first duration to a second duration, where the screen-off duration is a duration for the source device to automatically enter a screen-off state, and the second duration is longer than the first duration;
A screen control module 1202, configured to control, when a target duration is reached, to extinguish a screen, where the source device does not enter the screen-extinguishing state after the screen is extinguished, and the target duration is less than the second duration;
The data transmission module 1203 is configured to keep the screen-casting data stream transmission with the destination device when the screen is extinguished and the second duration is not reached.
Alternatively to this, the method may comprise,
The screen control module 1202 is further configured to adjust the screen brightness from the first brightness to the second brightness when a third duration is reached, where the third duration is less than the target duration, and the second brightness is less than the first brightness.
Optionally, the screen control module 1202 is configured to:
Setting the brightness adjustment mode to be a second adjustment mode under the condition that the brightness adjustment mode is a first adjustment mode, wherein in the first adjustment mode, the function of automatically adjusting the brightness of the screen based on the ambient light brightness is started, and in the second adjustment mode, the function of automatically adjusting the brightness of the screen based on the ambient light brightness is stopped;
in the second adjustment mode, the screen brightness is automatically adjusted from the first brightness to the second brightness.
Alternatively to this, the method may comprise,
The screen control module 1202 is further configured to light a screen when a screen-lighting event is monitored, where a screen displayed on the screen after the screen is lit is a non-screen-locking screen, and the screen-lighting event is an event triggering screen lighting;
The screen brightness is set to the first brightness, and the brightness adjustment mode is set to the first adjustment mode.
Optionally, the screen control module 1202 is configured to:
When the third duration is reached and a target event is not monitored, adjusting the screen brightness from the first brightness to the second brightness, wherein the target event has the function of keeping the screen of the source terminal equipment in a bright screen state;
and under the condition that the target duration is not reached and the target event is monitored, adjusting the screen brightness to be the first screen brightness.
Optionally, the screen control module 1202 is configured to:
when the target duration is reached and a target event is not monitored, controlling a screen to be extinguished, wherein the target event has the function of keeping the screen of the source terminal equipment in a bright screen state;
And under the condition that the target event is monitored within the target time length, keeping a screen in a bright screen state, and resetting a countdown timer, wherein the countdown time length of the countdown timer is the target time length.
Optionally, the apparatus further includes:
the screen locking and extinguishing module is used for entering the screen extinguishing state under the condition that a screen locking event is monitored in the target duration, wherein the screen throwing data stream transmission between the source terminal equipment and the destination terminal equipment is interrupted under the screen extinguishing state.
Optionally, the screen locking and extinguishing module is configured to:
Under the condition that the screen locking event is monitored within the target duration, sending a screen locking message to the destination terminal equipment so that the destination terminal equipment displays a screen locking prompt picture based on the screen locking message;
And entering the screen-off state.
Optionally, the screen locking device is further used for lighting up a screen and displaying a screen locking interface under the condition that the screen is in the screen-off state and under the condition that a screen-on event is monitored, wherein the screen-on event is an event triggering screen-on;
The data transmission module 1203 is further configured to resume the screen-casting data stream transmission with the destination device when the unlocking is successful.
Alternatively to this, the method may comprise,
The data transmission module 1203 is further configured to receive a reverse control instruction sent by the destination device, where the screen is extinguished and the second duration is not reached, and the reverse control instruction is used to perform reverse control on the source device;
and the operation execution module is used for executing the reverse control operation indicated by the reverse control instruction.
Alternatively to this, the method may comprise,
The screen control module 1202 is further configured to set the screen-off duration to the first duration when the screen-on state is exited.
In summary, in the embodiment of the present application, in the screen-on state, the source device extends the screen-off duration of automatically entering the screen-off state from the first duration to the second duration, and controls the screen to be extinguished when the target duration is reached, where the target duration is less than the second duration. By adopting the scheme provided by the embodiment of the application, the source terminal equipment can automatically prolong the screen-off time length in the screen-off state, and can maintain the screen-off data stream transmission with the destination terminal equipment under the condition that the screen is off but does not enter the screen-off state, thereby ensuring the normal screen-off between the source terminal equipment and the destination terminal equipment, avoiding the increase of the power consumption of the source terminal equipment caused by long-time screen-on and being beneficial to reducing the power consumption of the source terminal equipment in the screen-off process.
In addition, in the screen throwing state, by setting the third duration and monitoring the target event, the source device can make the process of controlling the screen to be extinguished consistent with the process of extinguishing the screen when the screen is in the screen extinguishing state, so that the use experience of a user is improved, and under the condition of monitoring the screen lightening event, the source device can directly display the interface where the screen lightening event is located, so that the step of unlocking the screen is omitted, and the user can conveniently and timely carry out subsequent processing.
It should be noted that: the apparatus provided in the above embodiment is only exemplified by the division of the above functional modules, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to perform all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and detailed implementation processes of the method embodiments are described in the method embodiments, which are not repeated herein.
Referring to FIG. 13, a block diagram of a computer device according to an exemplary embodiment of the present application is shown. Computer device 1300 may include one or more of the following: processor 1310, memory 1320, and display 1330.
Processor 1310 may include one or more processing cores. The processor 1310 utilizes various interfaces and lines to connect various portions of the overall computer device 1300, execute various functions of the computer device 1300 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1320, and invoking data stored in the memory 1320. Alternatively, the processor 1310 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1310 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the touch display screen; the NPU is used for realizing an artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) function; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1310 and may be implemented by a single chip.
Memory 1320 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Optionally, the memory 1320 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 1320 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 1320 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc.; the storage data area may store data (e.g., audio data, phonebook) created according to the use of the computer device 1300, etc.
Display 1330 is a component for performing screen display. Optionally, the display 1330 also has a touch function, so that the user can control the display content by performing a touch operation on the display 1330. For example, the display 1330 may be a touch display of a smart phone, or the display 1330 may be a non-touch display of a television terminal.
In addition, those skilled in the art will appreciate that the configuration of the computer device 1300 illustrated in the above-described figures is not limiting of the computer device, and a computer device may include more or less components than illustrated, or may combine certain components, or a different arrangement of components. For example, the computer device 1300 further includes a camera, a microphone, a speaker, a radio frequency circuit, an input unit, a sensor (such as an acceleration sensor, an angular velocity sensor, a light sensor, etc.), an audio circuit, a WiFi module, a power supply, a bluetooth module, etc., which are not described herein.
Embodiments of the present application also provide a computer readable storage medium storing at least one program code loaded and executed by a processor to implement the screen projection method described in the above embodiments.
Embodiments of the present application provide a computer program product comprising computer instructions stored in a computer-readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the method of screening provided in various alternative implementations of the above aspects.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. In addition, the step numbers described herein are merely exemplary of one possible execution sequence among steps, and in some other embodiments, the steps may be executed out of the order of numbers, such as two differently numbered steps being executed simultaneously, or two differently numbered steps being executed in an order opposite to that shown, which is not limiting.
The foregoing description of the preferred embodiments of the present application is not intended to limit the application, but rather, the application is to be construed as limited to the appended claims.

Claims (18)

1. A method of screening, the method performed by a source device, the method comprising:
setting the screen-off duration from a first duration to a second duration in a screen-on state, wherein the screen-off duration is the duration of the source terminal equipment automatically entering the screen-off state, and the second duration is longer than the first duration;
When a third time period is reached and the brightness adjustment mode is a first adjustment mode, setting the brightness adjustment mode to be a second adjustment mode, wherein the third time period is smaller than the second time period, the function of automatically adjusting the brightness of the screen based on the ambient light brightness is started in the first adjustment mode, and the function of automatically adjusting the brightness of the screen based on the ambient light brightness is stopped in the second adjustment mode;
When the third duration is reached and the brightness adjustment mode is the second adjustment mode, automatically adjusting the screen brightness from a first brightness to a second brightness, wherein the second brightness is smaller than the first brightness;
Under the condition that a target time length is reached, controlling a screen to be extinguished, wherein the source terminal equipment does not enter the screen extinguishing state after the screen is extinguished, the target time length is longer than the third time length, and the target time length is shorter than the second time length;
and under the condition that the screen is extinguished and the second time period is not reached, maintaining the screen-throwing data stream transmission with the destination terminal equipment.
2. The method according to claim 1, wherein the method further comprises:
under the condition that a screen-lightening event is monitored, lightening a screen, wherein a picture displayed by the screen after lightening is a non-screen-locking picture, and the screen-lightening event is an event triggering screen lightening;
The screen brightness is set to the first brightness, and the brightness adjustment mode is set to the first adjustment mode.
3. The method of claim 1, wherein automatically adjusting the screen brightness from the first brightness to the second brightness when the third duration is reached and the brightness adjustment mode is the second adjustment mode comprises:
When the third duration is reached and a target event is not monitored, adjusting the screen brightness from the first brightness to the second brightness, wherein the target event has the function of keeping the screen of the source terminal equipment in a bright screen state;
The method further comprises the steps of:
And under the condition that the target duration is not reached and the target event is monitored, adjusting the screen brightness to be the first brightness.
4. A method according to any one of claims 1 to 3, wherein said controlling the screen to extinguish in case said target duration is reached comprises:
when the target duration is reached and a target event is not monitored, controlling a screen to be extinguished, wherein the target event has the function of keeping the screen of the source terminal equipment in a bright screen state;
The method further comprises the steps of:
And under the condition that the target event is monitored within the target time length, keeping a screen in a bright screen state, and resetting a countdown timer, wherein the countdown time length of the countdown timer is the target time length.
5. A method according to any one of claims 1 to 3, wherein the method further comprises:
and under the condition that a screen locking event is monitored within the target duration, entering the screen-off state, wherein screen-throwing data stream transmission between the source terminal equipment and the destination terminal equipment is interrupted in the screen-off state.
6. The method of claim 5, wherein the entering the off-screen state if a lock-screen event is detected within the target duration comprises:
Under the condition that the screen locking event is monitored within the target duration, sending a screen locking message to the destination terminal equipment so that the destination terminal equipment displays a screen locking prompt picture based on the screen locking message;
And entering the screen-off state.
7. The method of claim 5, wherein the method further comprises:
in the screen-off state, under the condition that a screen-on event is monitored, a screen is lightened and a screen-locking interface is displayed, wherein the screen-on event is an event triggering screen-on;
And under the condition that the unlocking is successful, recovering the screen-throwing data stream transmission with the destination terminal equipment.
8. A method according to any one of claims 1 to 3, wherein the method further comprises:
receiving a reverse control instruction sent by the destination terminal equipment under the condition that the screen is extinguished and the second time period is not reached, wherein the reverse control instruction is used for carrying out reverse control on the source terminal equipment;
and executing the reverse control operation indicated by the reverse control instruction.
9. A method according to any one of claims 1 to 3, wherein the method further comprises:
And setting the screen extinguishing time length to be the first time length under the condition of exiting the screen throwing state.
10. A screen projection device, the device comprising:
The system comprises a time length setting module, a screen switching module and a screen switching module, wherein the time length setting module is used for setting the screen switching time length from a first time length to a second time length in a screen switching state, the screen switching time length is the time length when source equipment automatically enters the screen switching state, and the second time length is longer than the first time length;
The screen control module is used for setting the brightness adjustment mode into a second adjustment mode when a third time length is reached and the brightness adjustment mode is a first adjustment mode, wherein the third time length is smaller than the second time length, a function of automatically adjusting the brightness of the screen based on the ambient light brightness is started in the first adjustment mode, and a function of automatically adjusting the brightness of the screen based on the ambient light brightness is stopped in the second adjustment mode;
The screen control module is further configured to automatically adjust the screen brightness from a first brightness to a second brightness when the third duration is reached and the brightness adjustment mode is the second adjustment mode, where the second brightness is smaller than the first brightness;
The screen control module is further configured to control a screen to be turned off when a target duration is reached, where the source device does not enter the off-screen state after the screen is turned off, the target duration is longer than the third duration, and the target duration is shorter than the second duration;
and the data transmission module is used for maintaining the screen-throwing data stream transmission with the destination terminal equipment under the condition that the screen is extinguished and the second time length is not reached.
11. The screen projection system is characterized by comprising source end equipment and destination end equipment;
The source terminal equipment is used for setting the screen-off duration from a first duration to a second duration in a screen-on state, wherein the screen-off duration is the duration of the source terminal equipment automatically entering the screen-off state, and the second duration is longer than the first duration; when a third time period is reached and the brightness adjustment mode is a first adjustment mode, setting the brightness adjustment mode to be a second adjustment mode, wherein the third time period is smaller than the second time period, the function of automatically adjusting the brightness of the screen based on the ambient light brightness is started in the first adjustment mode, and the function of automatically adjusting the brightness of the screen based on the ambient light brightness is stopped in the second adjustment mode; when the third duration is reached and the brightness adjustment mode is the second adjustment mode, automatically adjusting the screen brightness from a first brightness to a second brightness, wherein the second brightness is smaller than the first brightness; under the condition that a target time length is reached, controlling a screen to be extinguished, wherein the source terminal equipment does not enter the screen extinguishing state after the screen is extinguished, the target time length is longer than the third time length, and the target time length is shorter than the second time length; under the condition that the screen is extinguished and the second time period is not reached, the screen-throwing data stream transmission with the destination terminal equipment is maintained;
the destination device is configured to receive an audio/video data stream transmitted by the source device under a condition that a screen-casting data stream between the destination device and the source device is kept being transmitted; and playing the screen throwing content based on the audio and video data stream.
12. The screen projection system of claim 11 wherein the screen projection data stream transmitted between the source device and the destination device further comprises reverse control instructions;
The destination device is further configured to receive a reverse control operation for the screen-casting content when the screen of the source device is extinguished and the second duration is not reached; transmitting a reverse control instruction to the source terminal equipment based on the reverse control operation;
The source device is configured to execute the reverse control operation indicated by the reverse control instruction.
13. The screen projection system of claim 11 wherein,
The source terminal device is further configured to enter the screen-off state when a screen locking event is monitored within the target duration, where screen-on data stream transmission between the source terminal device and the destination terminal device is interrupted in the screen-off state;
the destination device is further configured to display a screen locking prompt screen when the source device enters a screen-off state.
14. The screen projection system of claim 13 wherein,
The source terminal device is further configured to send a screen locking message to the destination terminal device when the screen locking event is monitored within the target duration;
And the destination terminal equipment is used for displaying the screen locking prompt picture based on the screen locking message.
15. The screen projection system of claim 13 wherein,
The source terminal equipment is also used for lighting up a screen and displaying a screen locking interface under the condition that a screen-lighting event is monitored in a screen-off state, wherein the screen-lighting event is an event triggering screen lighting; and under the condition that the unlocking is successful, recovering the screen-throwing data stream transmission with the destination terminal equipment.
16. A computer device, the computer device comprising a processor and a memory; the memory stores at least one instruction for execution by the processor to implement the method of screening according to any one of claims 1 to 9.
17. A computer readable storage medium having stored therein at least one program code loaded and executed by a processor to implement the method of screening according to any one of claims 1 to 9.
18. A computer program product, the computer program product comprising computer instructions stored in a computer readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executing the computer instructions, causing the computer device to implement the method of projecting a screen as claimed in any one of claims 1 to 9.
CN202210684186.1A 2022-06-16 2022-06-16 Screen projection method, device, equipment, system and storage medium Active CN115097926B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210684186.1A CN115097926B (en) 2022-06-16 2022-06-16 Screen projection method, device, equipment, system and storage medium
PCT/CN2022/143554 WO2023241009A1 (en) 2022-06-16 2022-12-29 Screen projection method, apparatus and system, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210684186.1A CN115097926B (en) 2022-06-16 2022-06-16 Screen projection method, device, equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN115097926A CN115097926A (en) 2022-09-23
CN115097926B true CN115097926B (en) 2024-05-17

Family

ID=83291453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210684186.1A Active CN115097926B (en) 2022-06-16 2022-06-16 Screen projection method, device, equipment, system and storage medium

Country Status (2)

Country Link
CN (1) CN115097926B (en)
WO (1) WO2023241009A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115097926B (en) * 2022-06-16 2024-05-17 Oppo广东移动通信有限公司 Screen projection method, device, equipment, system and storage medium
CN117950612A (en) * 2022-10-31 2024-04-30 荣耀终端有限公司 Screen projection method and electronic equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450801A (en) * 2017-07-26 2017-12-08 广东欧珀移动通信有限公司 A kind of control method of screen display, device, storage medium and mobile terminal
CN107734619A (en) * 2017-11-27 2018-02-23 维沃移动通信有限公司 Reduce the method and mobile terminal of mobile terminal power consumption
CN107968874A (en) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 Screen control method, device and terminal
CN108446628A (en) * 2018-03-19 2018-08-24 广东欧珀移动通信有限公司 Screen control method, device, mobile terminal and computer readable storage medium
CN108574778A (en) * 2018-04-19 2018-09-25 Oppo广东移动通信有限公司 Throw screen brightness adjusting method and Related product
CN109660665A (en) * 2018-12-21 2019-04-19 Oppo广东移动通信有限公司 A kind of screen control method, screen control device and terminal device
CN109788138A (en) * 2019-02-01 2019-05-21 Oppo广东移动通信有限公司 Screen control method, device, terminal and storage medium
CN110175479A (en) * 2019-05-31 2019-08-27 努比亚技术有限公司 Terminal puts out screen control method, device, mobile terminal and readable storage medium storing program for executing
CN112346685A (en) * 2020-10-26 2021-02-09 努比亚技术有限公司 Screen-off and screen-projection control method and device and computer readable storage medium
CN113093898A (en) * 2021-04-19 2021-07-09 Tcl通讯(宁波)有限公司 Power saving method, storage medium and system in multi-screen interaction scene
WO2021244184A1 (en) * 2020-06-02 2021-12-09 Oppo广东移动通信有限公司 Screen control method and apparatus, and mobile terminal and storage medium
CN113889055A (en) * 2021-09-30 2022-01-04 荣耀终端有限公司 Screen brightness adjusting method, electronic equipment and storage medium
CN114518854A (en) * 2020-11-20 2022-05-20 华为技术有限公司 Screen projection method and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426145B (en) * 2015-11-06 2019-04-23 武汉卡比特信息有限公司 A kind of method that mobile phone screen projects computer terminal
JP2017139603A (en) * 2016-02-03 2017-08-10 京セラ株式会社 Portable terminal, display control method and program
CN115097926B (en) * 2022-06-16 2024-05-17 Oppo广东移动通信有限公司 Screen projection method, device, equipment, system and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968874A (en) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 Screen control method, device and terminal
CN107450801A (en) * 2017-07-26 2017-12-08 广东欧珀移动通信有限公司 A kind of control method of screen display, device, storage medium and mobile terminal
CN107734619A (en) * 2017-11-27 2018-02-23 维沃移动通信有限公司 Reduce the method and mobile terminal of mobile terminal power consumption
CN108446628A (en) * 2018-03-19 2018-08-24 广东欧珀移动通信有限公司 Screen control method, device, mobile terminal and computer readable storage medium
CN108574778A (en) * 2018-04-19 2018-09-25 Oppo广东移动通信有限公司 Throw screen brightness adjusting method and Related product
CN109660665A (en) * 2018-12-21 2019-04-19 Oppo广东移动通信有限公司 A kind of screen control method, screen control device and terminal device
CN109788138A (en) * 2019-02-01 2019-05-21 Oppo广东移动通信有限公司 Screen control method, device, terminal and storage medium
CN110175479A (en) * 2019-05-31 2019-08-27 努比亚技术有限公司 Terminal puts out screen control method, device, mobile terminal and readable storage medium storing program for executing
WO2021244184A1 (en) * 2020-06-02 2021-12-09 Oppo广东移动通信有限公司 Screen control method and apparatus, and mobile terminal and storage medium
CN112346685A (en) * 2020-10-26 2021-02-09 努比亚技术有限公司 Screen-off and screen-projection control method and device and computer readable storage medium
CN114518854A (en) * 2020-11-20 2022-05-20 华为技术有限公司 Screen projection method and equipment
CN113093898A (en) * 2021-04-19 2021-07-09 Tcl通讯(宁波)有限公司 Power saving method, storage medium and system in multi-screen interaction scene
CN113889055A (en) * 2021-09-30 2022-01-04 荣耀终端有限公司 Screen brightness adjusting method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115097926A (en) 2022-09-23
WO2023241009A1 (en) 2023-12-21

Similar Documents

Publication Publication Date Title
CN115097926B (en) Screen projection method, device, equipment, system and storage medium
US11425315B2 (en) Video communications method and apparatus, terminal, and computer-readable storage medium
KR102199436B1 (en) Terminal control method and terminal
CN111314768A (en) Screen projection method, screen projection device, electronic equipment and computer readable storage medium
CN111629239B (en) Screen projection processing method, device, equipment and computer readable storage medium
CN112835549A (en) Method and device for switching audio output device
CN112346685B (en) Screen-off and screen-projection control method and device and computer readable storage medium
JP4501991B2 (en) Terminal device and program
CN108769784A (en) screen recording method, mobile terminal and storage medium
CN109327716A (en) Delay control method, delay control device and computer readable storage medium
CN113938748B (en) Video playing method, device, terminal, storage medium and program product
WO2020142905A1 (en) Bandwidth part switching method and apparatus
CN112822433B (en) Control method and related device in video conference
WO2024032144A1 (en) Device control method and apparatus, and wearable device and storage medium
CN112445384A (en) Information screen display method and device, processor and display equipment
CN112860212A (en) Volume adjusting method and display device
JP2008083182A (en) Pc, projection system, and projection method
WO2020165088A1 (en) Determining a light effect based on an average color after a detected transition in content
CN113938555B (en) Intelligent device, control method thereof, and computer-readable storage medium
CN112835506B (en) Display device and control method thereof
CN112905269A (en) Network access method, device, terminal and storage medium of application program
CN113282362A (en) Application program management method, device, storage medium and terminal
CN115129283A (en) Screen display method and device, electronic equipment and computer readable storage medium
CN114071056B (en) Video data display method and display device
CN117544715A (en) Call control method and device 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
GR01 Patent grant
GR01 Patent grant