[go: up one dir, main page]

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

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

Info

Publication number
WO2024139478A1
WO2024139478A1 PCT/CN2023/121684 CN2023121684W WO2024139478A1 WO 2024139478 A1 WO2024139478 A1 WO 2024139478A1 CN 2023121684 W CN2023121684 W CN 2023121684W WO 2024139478 A1 WO2024139478 A1 WO 2024139478A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
screen
screen projection
display brightness
event
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.)
Ceased
Application number
PCT/CN2023/121684
Other languages
French (fr)
Chinese (zh)
Inventor
贺琪茗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Publication of WO2024139478A1 publication Critical patent/WO2024139478A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • 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

Definitions

  • the present application proposes a screen projection method, device, electronic device and storage medium to solve the above problems.
  • an embodiment of the present application provides a screen projection device, which is applied to an electronic device, and the device includes: a screen projection event creation module, which is used to create a screen projection event for the electronic device in response to a screen projection instruction; a screen off time setting module, which is used to set the screen off time of the electronic device to not turn off the screen if the screen projection is successful based on the screen projection event, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.
  • an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
  • FIG1 is a schematic diagram showing an application environment that can be used for the screen projection method provided in an embodiment of the present application
  • FIG2 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application.
  • FIG3 shows a schematic diagram of an application of the screen projection method provided in an embodiment of the present application
  • FIG4 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application.
  • FIG5 shows another application schematic diagram of the screen projection method provided in an embodiment of the present application
  • FIG6 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application.
  • FIG8 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application.
  • FIG. 10 is a schematic flow chart showing step S630 of the screen projection method shown in FIG. 9 of the present application.
  • FIG11 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application.
  • FIG13 shows a block diagram of an electronic device for executing a screen projection method according to an embodiment of the present application
  • Figure 14 shows a storage unit of an embodiment of the present application for storing or carrying program code for implementing the screen projection method according to an embodiment of the present application.
  • electronic devices can be used for screen projection.
  • electronic devices need to install third-party screen projection applications and use third-party screen projection applications to project the screen.
  • the electronic device After the electronic device successfully projects the screen, if it is not connected to a power source, then after a period of inactivity, the electronic device will lock the screen and enter Doze mode, and the screen projection application will switch to the background operation of the electronic device accordingly.
  • the screen projection application will be subject to the following restrictions: 1. Suspend access to the network; 2. The system will ignore wake locks; 3. AlarmManager (alarm service) alarms will be postponed to the next maintenance period; 4.
  • the system does not perform Wi-Fi scans; 5.
  • the system does not allow data synchronization to run; 6.
  • the system does not allow JobScheduler to run. Therefore, the screen projection application or the one running on the screen projection Other applications in the application will run abnormally.
  • the inventors have discovered after long-term research and proposed the screen projection method, device, electronic device and storage medium provided in the embodiments of the present application.
  • the screen off time of the electronic device By setting the screen off time of the electronic device to non-screen off during the screen projection process, the risk of the system screen off restricting the application operation and causing the application to run abnormally can be avoided.
  • the specific screen projection method is described in detail in the subsequent embodiments.
  • Figure 1 shows a schematic diagram of an application environment that can be used for the screen projection method provided in an embodiment of the present application.
  • the electronic device 100 includes an electronic device 100 and a display device 200, and the electronic device 100 can project the screen on the display device 200.
  • the electronic device 100 may include a smart phone, a tablet computer, a wearable device, and other devices with a screen projection application installed
  • the display device 200 may include a display screen, a smart TV, and other devices with display functions.
  • the electronic device 100 and the display device 200 can be connected, or the electronic device 100 and the display device can be in the same local area network, which is not limited here.
  • FIG 2 shows a flow chart of a screen projection method provided by an embodiment of the present application.
  • the screen projection method is used to avoid the risk of the system restricting the application from running due to the screen off time by setting the screen off time of the electronic device to non-screen off during the screen projection process, thereby causing abnormal operation of the application.
  • the screen projection method is applied to a screen projection device 300 as shown in Figure 12 and an electronic device 100 ( Figure 13) equipped with the screen projection device 300.
  • the following will take an electronic device as an example to illustrate the specific process of this embodiment.
  • the electronic device used in this embodiment may include smart phones, tablet computers, wearable electronic devices, etc., which are not limited here.
  • the process shown in Figure 2 will be elaborated in detail below.
  • the screen projection method may specifically include the following steps:
  • Step S110 In response to the screen projection instruction, create a screen projection item for the electronic device.
  • the electronic device can detect whether a screen projection instruction is received. If it is detected that a screen projection instruction is received, it can create a screen projection event of the electronic device in response to the screen projection instruction.
  • the electronic device can detect whether the first target voice information is received. If it is detected that the first target voice information is received, it can be determined that the screen projection instruction is received. For example, if it is determined that the voice information of "cast the screen to the display device" is received, it can be determined that the screen projection instruction is received.
  • the electronic device can detect whether it has received a first target operation acting on a physical key of the electronic device. If it is detected that the first target operation acting on a physical key of the electronic device has been received, it can be determined that the screen projection instruction has been received. For example, if it is determined that the first long press operation, the first press operation, etc. acting on the power button of the electronic device have been received, it can be determined that the screen projection instruction has been received.
  • the electronic device can detect whether a second target operation acting on a virtual key of the electronic device is received. If it is detected that a second target operation acting on a target virtual key of the electronic device is received, it can be determined that a screen projection instruction is received. For example, if it is determined that a second click operation is received on an application icon of a screen projection application installed on the electronic device, a second click operation is received on a screen projection control corresponding to the screen projection application installed on the electronic device, etc., it can be determined that a screen projection instruction is received.
  • the electronic device can detect whether a third target operation acting on the touch screen of the electronic device is received. If it is detected that the third target operation acting on the touch screen of the electronic device is received, it can be determined that the screen projection instruction is received. For example, if it is determined that a third sliding operation, a third click operation, etc. acting on the touch screen of the electronic device are received, it can be determined that the screen projection instruction is received.
  • the process of creating a screen projection event for an electronic device and a display device is described by taking the creation of a screen projection event for an electronic device as an example.
  • the electronic device and the display device are connected to the same wireless local area network, and the screen projection service is turned on the display device.
  • the display device will broadcast its own IP address and port number to the local area network.
  • the screen projection function is turned on the electronic device, and the electronic device automatically searches for available devices in the current wireless local area network, finds the corresponding display device, and clicks to connect.
  • the electronic device will send a connection request to the display device according to the IP address and port number of the display device.
  • the connection request sent carries the IP address and port number of the electronic device.
  • the display device After the display device receives the connection request sent by the electronic device, it establishes a wireless connection with the electronic device, and sends a connection success confirmation message to the electronic device according to the IP address and port number of the electronic device. After the electronic device receives the connection success confirmation message, it displays that the connection is successful.
  • the electronic device mobile phone selects the playback content that needs to be projected to the display device for screen projection playback.
  • the electronic device transmits the playback content to the display device through the wireless local area network. After the display device receives the playback content, it plays it on the display device.
  • Step S120 If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.
  • the electronic device can set a screen-off time, and automatically enter the screen-off state when the screen-off time is reached.
  • the screen-off time can generally include 30 seconds, 1 minute, 2 minutes, no screen-off, etc.
  • the screen-off time is 30 seconds, it means that the electronic device automatically enters the screen-off state if it does not receive a keep-screen-on operation or event for 30 seconds; if the screen-off time is 1 minute, it means that the electronic device automatically enters the screen-off state if it does not receive a keep-screen-on operation or event for 1 minute; if the screen-off time is no screen-off, it means that the electronic device will not automatically enter the screen-off state even if it does not receive a keep-screen-on operation or event for a long time.
  • the electronic device can determine whether the screen projection is successful based on the screen projection event. If it is determined that the screen projection is successful based on the screen projection event, the screen off time of the electronic device can be set to not to be off, thereby ensuring that the electronic device will not automatically enter the screen off state during the screen projection process, and avoiding the system screen off limiting the application operation, causing the application to run abnormally. If it is determined that the screen projection based on the screen projection event is unsuccessful, the screen off time of the electronic device may not be set to non-screen off, and it is continued to be determined whether the screen projection based on the screen projection event is successful.
  • the electronic device can detect whether a connection success confirmation message sent by the display device is received. If it is determined that the electronic device receives the connection success confirmation message sent by the display device, it can be determined that the screen projection based on the screen projection matter is successful. If it is determined that the electronic device does not receive the connection success confirmation message sent by the display device, it can be determined that the screen projection based on the screen projection matter is unsuccessful.
  • the initial screen off time of the electronic device (the currently set screen off time) can be detected, and based on the initial screen off time, the screen off time of the electronic device can be set to not be on.
  • the screen off time of the electronic device can be modified to not be on; if it is detected that the initial screen off time of the electronic device is not to be on, the screen off time of the electronic device can be kept as not to be on.
  • Figure 3 shows an application schematic diagram of the screen projection method provided in an embodiment of the present application. As shown in Figure 3, when the electronic device 100 successfully projects the screen on the display device 200, the electronic device 100 can continue to display the screen.
  • a screen projection method provided in an embodiment of the present application creates a screen projection event for an electronic device in response to a screen projection instruction. If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be on, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state. Therefore, by setting the screen off time of the electronic device to not be on during the screen projection process, the risk of the system screen off restricting the operation of the projection application and causing abnormal operation of the projection application can be avoided.
  • FIG 4 shows a schematic diagram of the process of the screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 4 will be described in detail below.
  • the screen projection method may specifically include the following steps:
  • Step S210 In response to the screen projection instruction, create a screen projection item for the electronic device.
  • Step S220 If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.
  • step S210 to step S220 please refer to step S110 to step S120, which will not be repeated here.
  • Step S230 If the screen projection is successful based on the screen projection event, the display brightness of the electronic device is set to the minimum display brightness.
  • the display brightness of the electronic device is generally the target display brightness, wherein the target display brightness is the display brightness of the electronic device in normal use, and the target display brightness is greater than the minimum display brightness. If it is determined that the screen projection based on the screen projection event is successful, the display brightness of the electronic device can be reduced from the target display brightness to the minimum display brightness; if it is determined that the screen projection based on the screen projection event is unsuccessful, the display brightness of the electronic device can be maintained at the target display brightness to ensure the normal use of the electronic device.
  • the electronic device may be pre-set and stored with a minimum display brightness, for example, the electronic device may be pre-set and stored with a minimum display brightness when it is factory set. Then, if it is determined that the screen projection based on the projection event is successful, the display brightness of the electronic device may be set to the pre-set and stored minimum display brightness.
  • Figure 5 shows another application schematic diagram of the screen projection method provided in an embodiment of the present application.
  • the electronic device 100 when the electronic device 100 successfully projects the screen on the display device 200, the electronic device 100 can display at the lowest display brightness.
  • Step S240 intercepting a touch event on the touch screen of the electronic device.
  • touch events on the touch screen of the electronic device can be intercepted, thereby preventing the user from triggering erroneous operations on the touch screen of the electronic device and affecting the screen projection effect when the electronic device is projecting the screen at the lowest display brightness.
  • Step S320 If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.
  • step S330 For the detailed description of step S330, please refer to step S230, which will not be repeated here.
  • the screen projection method createds a screen projection event for an electronic device in response to a screen projection instruction. If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state, and the display brightness of the electronic device is set to the minimum display brightness. If the screen projection ends, the display brightness of the electronic device is adjusted from the minimum display brightness to the target display brightness, wherein the target display brightness is greater than the minimum display brightness. Compared with the screen projection method shown in FIG2, this embodiment also sets the display brightness of the electronic device to the minimum display brightness to reduce the power consumption of the electronic device. In addition, when the screen projection ends, the display brightness of the electronic device is restored to normal to improve the user experience.
  • FIG 7 shows a schematic diagram of the process of the screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 7 will be described in detail below.
  • the screen projection method may specifically include the following steps:
  • the display brightness of the electronic device can be increased from the minimum display brightness to the target display brightness.
  • the display brightness of the electronic device can be reduced from the target display brightness to the minimum display brightness.
  • the target display brightness of the electronic device can be recorded.
  • the target display brightness can be determined based on the record of the electronic device, and the display brightness of the electronic device can be increased from the minimum display brightness to the target display brightness of the record.
  • the second pressing event for the power key of the electronic device may include: a pressing operation on the power key of the electronic device.
  • step S510 to step S520 please refer to step S110 to step S120, which will not be repeated here.
  • the screen projection method createds a screen projection event of an electronic device in response to a screen projection instruction. If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state. If the screen projection ends, the screen off time of the electronic device is restored to the initial screen off time set before the screen projection is successful. Compared with the screen projection method shown in FIG2, this embodiment also restores the initial screen off time when the screen projection ends, so as to reduce the impact on user use and improve the user experience.
  • FIG. 9 shows a schematic diagram of the process of a screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 9 will be described in detail below.
  • the screen projection method may specifically include the following steps:
  • Step S620 If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.
  • step S610 to step S620 please refer to step S110 to step S120, which will not be repeated here.
  • the electronic device may be pre-set and stored with a preset type, which is used as a basis for judging the application running on the electronic device. Therefore, in this embodiment, when it is determined that the screen projection is successful based on the projection event, the application running in the background of the electronic device may be compared with the preset type to determine whether the application running in the background of the electronic device meets the preset type. If it is determined based on the above judgment result that the application meets the preset type, the application may not be determined as the target application; if it is determined based on the above judgment result that the application does not meet the preset type, the application may be determined as the target application.
  • the first application running in the background of the electronic device meets the preset type, it can be considered that the power consumption caused by the first application running in the background of the electronic device is low, and the first application may not be determined as the target application; if it is determined that the application running in the background of the electronic device does not meet the preset type, it can be considered that the power consumption caused by the first application running in the background of the electronic device is high, and the application may be determined as the target application.
  • the preset type may be an instant messaging type. That is, if the second application running in the background of the electronic device is of an instant messaging type, it can be considered that the second application meets the preset type; if the second application running in the background of the electronic device is not of an instant messaging type, it can be considered that the second application does not meet the preset type.
  • the second application running in the background of the electronic device meets the preset type, it can be considered that the second application needs to receive messages and pop up prompts in a timely manner, and the second application may not be determined as the target application; if it is determined that the second application running in the background of the electronic device does not meet the preset type, it can be considered that the second application does not need to receive messages and pop up prompts in a timely manner, and the second application may be determined as the target application.
  • the third application running in the background of the electronic device meets the preset type, then it can be considered that when the third application runs in the foreground again, it is necessary to locate the current reading position, and the third application may not be determined as the target application; if it is determined that the third application running in the background of the electronic device does not meet the preset type, then it can be considered that when the third application runs in the foreground again, it is not necessary to locate the current reading position. The third application may then be determined as the target application.
  • Figure 10 shows a schematic flow chart of step S630 of the screen projection method shown in Figure 9 of the present application.
  • the process shown in Figure 10 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S631 If the screen projection is successful based on the screen projection event, the remaining power of the electronic device is obtained.
  • the remaining power of the electronic device can be obtained.
  • the remaining power of the electronic device can be obtained in real time, the remaining power of the electronic device can be obtained at preset time intervals, the remaining power of the electronic device can be obtained at preset time points, or the remaining power of the electronic device can be obtained according to other preset rules, etc., which are not limited here.
  • Step S632 If the remaining power is lower than the remaining power threshold, a target application that does not meet a preset type is determined from the applications running in the background of the electronic device.
  • the electronic device may pre-set and store a remaining power threshold, which is used as a basis for determining the remaining power of the electronic device. Therefore, in this embodiment, when the remaining power of the electronic device is obtained, the remaining power can be compared with the remaining power threshold to determine whether the remaining power is lower than the remaining power threshold.
  • the remaining power threshold may include 30%, 20%, etc., which is not limited here.
  • the target application that does not meet the preset type can be determined from the applications running in the background of the electronic device, and the target application can be closed to reduce the power consumption of the electronic device and increase the usage time of the screen projection.
  • the remaining power threshold If it is determined that the remaining power is greater than or equal to the remaining power threshold, it can be indicated that the remaining power of the electronic device is sufficient, and the application running in the background of the electronic device does not need to be closed.
  • Step S640 close the target application.
  • the target application when the target application is determined, the target application can be closed, that is, the target application can be deleted from the background of the electronic device. Based on this, the power consumption of the electronic device can be reduced to increase the usage time of the screen projection.
  • FIG 11 shows a schematic diagram of the process of the screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 11 will be described in detail below.
  • the screen projection method may specifically include the following steps:
  • Step S710 In response to a screen projection instruction, determine the screen projection method indicated by the screen projection instruction.
  • the screen projection method indicated by the screen projection instruction can be determined in response to the screen projection instruction.
  • the electronic device can output a prompt message, wherein the prompt message can be used to prompt the user to determine the projection mode from a first projection mode and a second projection mode, wherein the first projection mode represents a projection mode with the screen off, and the second projection mode represents a projection mode without the screen off.
  • Step S720 Based on the screen projection method, create a screen projection item for the electronic device.
  • the screen projection items of the electronic device can be created based on the screen projection method.
  • a screen-off projection event can be created if the determined screen projection method is the first screen projection method; if the determined screen projection method is the second screen projection method, a screen-non-screen-off projection event can be created.
  • Step S730 If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.
  • step S730 please refer to step S120, which will not be repeated here.
  • the screen projection method provided in an embodiment of the present application responds to a screen projection instruction, determines the screen projection mode indicated by the screen projection instruction, creates a screen projection event for the electronic device based on the screen projection mode, and if the screen projection is successful based on the screen projection event, sets the screen off time of the electronic device to not be off, wherein the screen off time is used to indicate an event in which the electronic device automatically enters the screen off state.
  • this embodiment further determines the screen projection mode, and creates a screen projection event for the electronic device based on the screen projection mode, which can improve the screen projection experience.
  • the screen projection event creation module 310 is used to create a screen projection event for the electronic device in response to a screen projection instruction.
  • the screen projection event creation module 310 includes: a screen projection mode determination submodule and a screen projection event creation submodule, wherein:
  • the screen projection mode determination submodule is used to respond to the screen projection instruction and determine the screen projection mode indicated by the screen projection instruction.
  • the screen projection event creation submodule is used to create screen projection events for the electronic device based on the screen projection method.
  • the screen off time setting module 320 is used to set the screen off time of the electronic device to not turn off the screen if the screen projection is successful based on the screen projection event, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.
  • the screen projection device 300 further includes: a first display brightness setting module, wherein:
  • the first display brightness setting module is used to set the display brightness of the electronic device to the lowest display brightness if the screen projection is successful based on the screen projection matter.
  • the touch event interception module is used to intercept touch events on the touch screen of the electronic device.
  • the screen projection device 300 further includes: a second display brightness setting module, wherein:
  • the second display brightness setting module is used to adjust the display brightness of the electronic device from the minimum display brightness to the target display brightness if the screen projection is completed, wherein the target display brightness is greater than the minimum display brightness.
  • the screen projection device 300 further includes: a third display brightness setting module and a fourth display brightness setting module, wherein:
  • the third display brightness setting module is used to adjust the display brightness of the electronic device from the minimum display brightness to a target display brightness in response to an incoming call event for the electronic device, wherein the target display brightness is greater than the minimum display brightness.
  • the fourth display brightness setting module is used to adjust the display brightness of the electronic device from the minimum display brightness to the target display brightness in response to a first pressing event of the power key of the electronic device.
  • the screen projection device 300 further includes: a fifth display brightness setting module, wherein:
  • the application determination submodule is used to determine a target application that does not meet a preset type from the applications running in the background of the electronic device if the remaining power is lower than a remaining power threshold.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Studio Devices (AREA)

Abstract

The present application relates to the technical field of electronic devices. Disclosed are a screen mirroring method and apparatus, an electronic device, and a storage medium. The method is applied to an electronic device. The method comprises: in response to a screen mirroring instruction, creating a screen mirroring item of an electronic device; and if screen mirroring succeeds on the basis of the screen mirroring item, setting the screen-off time of the electronic device to be never, wherein the screen-off time is used for indicating the time when the electronic device automatically enters a screen-off state. In the present application, the screen-off time of an electronic device is set to be never during a screen mirroring process, such that the risk of a screen mirroring application operating abnormally due to the operation of the screen mirroring application being limited by system screen-off can be avoided.

Description

投屏方法、装置、电子设备以及存储介质Screen projection method, device, electronic device and storage medium

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本申请要求于2022年12月29日提交的申请号为CN202211707826.2的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority to Chinese application No. CN202211707826.2, filed on December 29, 2022, the entire contents of which are hereby incorporated by reference for all purposes.

技术领域Technical Field

本申请涉及电子设备技术领域,更具体地,涉及一种投屏方法、装置、电子设备以及存储介质。The present application relates to the technical field of electronic devices, and more specifically, to a screen projection method, device, electronic device and storage medium.

背景技术Background technique

随着科学技术的发展,电子设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一。目前,电子设备可以用于进行投屏。With the development of science and technology, electronic devices are used more and more widely and have more and more functions. They have become one of the necessities in people's daily life. At present, electronic devices can be used for screen projection.

发明内容Summary of the invention

鉴于上述问题,本申请提出了一种投屏方法、装置、电子设备以及存储介质,以解决上述问题。In view of the above problems, the present application proposes a screen projection method, device, electronic device and storage medium to solve the above problems.

第一方面,本申请实施例提供了一种投屏方法,应用于电子设备,所述方法包括:响应于投屏指令,创建所述电子设备的投屏事项;若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。In a first aspect, an embodiment of the present application provides a screen projection method, which is applied to an electronic device, and the method includes: in response to a screen projection instruction, creating a screen projection item for the electronic device; if the screen projection is successful based on the screen projection item, setting the screen off time of the electronic device to no screen off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

第二方面,本申请实施例提供了一种投屏装置,应用于电子设备,所述装置包括:投屏事项创建模块,用于响应于投屏指令,创建所述电子设备的投屏事项;息屏时间设置模块,用于若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。In a second aspect, an embodiment of the present application provides a screen projection device, which is applied to an electronic device, and the device includes: a screen projection event creation module, which is used to create a screen projection event for the electronic device in response to a screen projection instruction; a screen off time setting module, which is used to set the screen off time of the electronic device to not turn off the screen if the screen projection is successful based on the screen projection event, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

第三方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.

第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

图1示出了可用于本申请实施例提供的投屏方法的应用环境示意图;FIG1 is a schematic diagram showing an application environment that can be used for the screen projection method provided in an embodiment of the present application;

图2示出了本申请一实施例提供的投屏方法的流程示意图;FIG2 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application;

图3示出了本申请实施例提供的投屏方法的一种应用示意图;FIG3 shows a schematic diagram of an application of the screen projection method provided in an embodiment of the present application;

图4示出了本申请一实施例提供的投屏方法的流程示意图;FIG4 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application;

图5示出了本申请实施例提供的投屏方法的另一种应用示意图;FIG5 shows another application schematic diagram of the screen projection method provided in an embodiment of the present application;

图6示出了本申请一实施例提供的投屏方法的流程示意图;FIG6 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application;

图7示出了本申请一实施例提供的投屏方法的流程示意图;FIG. 7 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application;

图8示出了本申请一实施例提供的投屏方法的流程示意图;FIG8 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application;

图9示出了本申请一实施例提供的投屏方法的流程示意图;FIG9 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application;

图10示出了本申请的图9所示的投屏方法的步骤S630的流程示意图;FIG. 10 is a schematic flow chart showing step S630 of the screen projection method shown in FIG. 9 of the present application;

图11示出了本申请一实施例提供的投屏方法的流程示意图;FIG11 is a schematic diagram showing a flow chart of a screen projection method provided in an embodiment of the present application;

图12示出了本申请一实施例提供的投屏装置的模块框图;FIG12 shows a module block diagram of a screen projection device provided in an embodiment of the present application;

图13示出了本申请实施例用于执行根据本申请实施例的投屏方法的电子设备的框图;FIG13 shows a block diagram of an electronic device for executing a screen projection method according to an embodiment of the present application;

图14示出了本申请实施例的用于保存或者携带实现根据本申请实施例的投屏方法的程序代码的存储单元。Figure 14 shows a storage unit of an embodiment of the present application for storing or carrying program code for implementing the screen projection method according to an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

目前,电子设备可以用于进行投屏,一般地,电子设备需要安装第三方投屏应用,并通过第三方投屏应用进行投屏。电子设备在投屏成功后,如果没有连接电源,那么,在静止一段时间后,电子设备会锁屏且息屏进入Doze模式,投屏应用会相应切换到电子设备的后台运行。但是,在Doze模式下,投屏应用会受到以下限制:1、暂停访问网络;2、系统将忽略wake locks(唤醒锁);3、AlarmManager(闹钟服务)闹钟推迟到下一维护时段;4、系统不执行Wi-Fi扫描;5、系统不允许运行数据同步;6、系统不允许运行JobScheduler(任务调度器)。因此,投屏应用或者运行在投屏 应用中的其他应用会出现运行异常。Currently, electronic devices can be used for screen projection. Generally, electronic devices need to install third-party screen projection applications and use third-party screen projection applications to project the screen. After the electronic device successfully projects the screen, if it is not connected to a power source, then after a period of inactivity, the electronic device will lock the screen and enter Doze mode, and the screen projection application will switch to the background operation of the electronic device accordingly. However, in Doze mode, the screen projection application will be subject to the following restrictions: 1. Suspend access to the network; 2. The system will ignore wake locks; 3. AlarmManager (alarm service) alarms will be postponed to the next maintenance period; 4. The system does not perform Wi-Fi scans; 5. The system does not allow data synchronization to run; 6. The system does not allow JobScheduler to run. Therefore, the screen projection application or the one running on the screen projection Other applications in the application will run abnormally.

针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的投屏方法、装置、电子设备以及存储介质,通过在投屏过程中设置电子设备的息屏时间为不息屏,可以避免系统息屏限制应用运行,造成应用运行不正常的风险。其中,具体的投屏方法在后续的实施例中进行详细的说明。In view of the above problems, the inventors have discovered after long-term research and proposed the screen projection method, device, electronic device and storage medium provided in the embodiments of the present application. By setting the screen off time of the electronic device to non-screen off during the screen projection process, the risk of the system screen off restricting the application operation and causing the application to run abnormally can be avoided. Among them, the specific screen projection method is described in detail in the subsequent embodiments.

下面将针对可用于本申请实施例提供的投屏方法的应用环境进行描述。The following describes the application environment of the screen projection method provided in the embodiment of the present application.

请参阅图1,图1示出了可用于本申请实施例提供的投屏方法的应用环境示意图。如图1所示,其包括电子设备100和显示设备200,该电子设备100可以投屏于显示设备200。其中,该电子设备100可以包括智能手机、平板电脑、穿戴式设备等安装有投屏应用的设备,显示设备200可以包括显示屏、智能电视等具有显示功能的设备。于本实施例中,该电子设备100和显示设备200可以连接,或者,该电子设备100和显示设备可以处于同一局域网内,在此不做限定。Please refer to Figure 1, which shows a schematic diagram of an application environment that can be used for the screen projection method provided in an embodiment of the present application. As shown in Figure 1, it includes an electronic device 100 and a display device 200, and the electronic device 100 can project the screen on the display device 200. Among them, the electronic device 100 may include a smart phone, a tablet computer, a wearable device, and other devices with a screen projection application installed, and the display device 200 may include a display screen, a smart TV, and other devices with display functions. In this embodiment, the electronic device 100 and the display device 200 can be connected, or the electronic device 100 and the display device can be in the same local area network, which is not limited here.

请参阅图2,图2示出了本申请一实施例提供的投屏方法的流程示意图。该投屏方法用于通过在投屏过程中设置电子设备的息屏时间为不息屏,可以避免系统息屏限制应用运行,造成应用运行不正常的风险。在具体的实施例中,该投屏方法应用于如图12所示的投屏装置300以及配置有投屏装置300的电子设备100(图13)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以包括智能手机、平板电脑、穿戴式电子设备等,在此不做限定。下面将针对图2所示的流程进行详细的阐述,所述投屏方法具体可以包括以下步骤:Please refer to Figure 2, which shows a flow chart of a screen projection method provided by an embodiment of the present application. The screen projection method is used to avoid the risk of the system restricting the application from running due to the screen off time by setting the screen off time of the electronic device to non-screen off during the screen projection process, thereby causing abnormal operation of the application. In a specific embodiment, the screen projection method is applied to a screen projection device 300 as shown in Figure 12 and an electronic device 100 (Figure 13) equipped with the screen projection device 300. The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment may include smart phones, tablet computers, wearable electronic devices, etc., which are not limited here. The process shown in Figure 2 will be elaborated in detail below. The screen projection method may specifically include the following steps:

步骤S110:响应于投屏指令,创建所述电子设备的投屏事项。Step S110: In response to the screen projection instruction, create a screen projection item for the electronic device.

在本实施例中,电子设备可以检测是否接收到投屏指令,若检测接收到投屏指令,则可以响应于该投屏指令,创建电子设备的投屏事项。In this embodiment, the electronic device can detect whether a screen projection instruction is received. If it is detected that a screen projection instruction is received, it can create a screen projection event of the electronic device in response to the screen projection instruction.

作为一种方式,电子设备可以检测是否接收到第一目标语音信息,若检测接收到第一目标语音信息,则可以确定接收到投屏指令,例如,若确定接收到“投屏到显示设备”的语音信息时,可以确定接收到投屏指令。As a method, the electronic device can detect whether the first target voice information is received. If it is detected that the first target voice information is received, it can be determined that the screen projection instruction is received. For example, if it is determined that the voice information of "cast the screen to the display device" is received, it can be determined that the screen projection instruction is received.

作为又一种方式,电子设备可以检测是否接收到作用于电子设备的实体按键的第一目标操作,若检测接收到作用于电子设备的实体按键的第一目标操作,则可以确定接收到投屏指令,例如,若确定接收到作用于电子设备的电源键的第一长按操作、第一按压操作等时,则可以确定接收到投屏指令。As another way, the electronic device can detect whether it has received a first target operation acting on a physical key of the electronic device. If it is detected that the first target operation acting on a physical key of the electronic device has been received, it can be determined that the screen projection instruction has been received. For example, if it is determined that the first long press operation, the first press operation, etc. acting on the power button of the electronic device have been received, it can be determined that the screen projection instruction has been received.

作为再一种方式,电子设备可以检测是否接收到作用于电子设备的虚拟按键的第二目标操作,若检测接收到作用于电子设备的目标虚拟按键的第二目标操作,则可以确定接收到投屏指令,例如,若确定接收到作用于电子设备的安装的投屏应用的应用图标的第二点击操作、作用于电子设备的安装的投屏应用对应的投屏控件的第二点击操作等时,则可以确定接收到投屏指令。As another way, the electronic device can detect whether a second target operation acting on a virtual key of the electronic device is received. If it is detected that a second target operation acting on a target virtual key of the electronic device is received, it can be determined that a screen projection instruction is received. For example, if it is determined that a second click operation is received on an application icon of a screen projection application installed on the electronic device, a second click operation is received on a screen projection control corresponding to the screen projection application installed on the electronic device, etc., it can be determined that a screen projection instruction is received.

作为另一种方式,电子设备可以检测是否接收到作用于电子设备的触摸屏的第三目标操作,若检测接收到作用于电子设备的触摸屏的第三目标操作,则可以确定接收到投屏指令,例如,若确定接收到作用于电子设备的触摸屏的第三滑动操作、第三点击操作等时,则可以确定接收到投屏指令。As another way, the electronic device can detect whether a third target operation acting on the touch screen of the electronic device is received. If it is detected that the third target operation acting on the touch screen of the electronic device is received, it can be determined that the screen projection instruction is received. For example, if it is determined that a third sliding operation, a third click operation, etc. acting on the touch screen of the electronic device are received, it can be determined that the screen projection instruction is received.

在一些实施方式中,以创建电子设备与显示设备的投屏事项为例,说明电子设备创建投屏事项的过程。电子设备与显示设备接入同一个无线局域网,在显示设备上开启投屏服务,显示设备会向局域网内广播自己的IP地址和端口号,在电子设备上开启投屏功能,电子设备自动搜索当前无线局域网内的可用设备,找到对应的显示设备,点击进行连接,电子设备会根据显示设备的IP地址和端口号向显示设备发送连接请求,发送的连接请求携带电子设备的IP地址和端口号,显示设备接收到电子设备发送的连接请求后与电子设备建立无线连接,并根据电子设备的IP地址和端口号向电子设备发送连接成功确认消息,电子设备接收到连接成功确认消息后显示连接成功,电子设备手机选择需要投屏至显示设备的播放内容进行投屏播放,电子设备将播放内容通过无线局域网传输至显示设备,显示设备接收到播放内容后在显示设备上进行播放。In some embodiments, the process of creating a screen projection event for an electronic device and a display device is described by taking the creation of a screen projection event for an electronic device as an example. The electronic device and the display device are connected to the same wireless local area network, and the screen projection service is turned on the display device. The display device will broadcast its own IP address and port number to the local area network. The screen projection function is turned on the electronic device, and the electronic device automatically searches for available devices in the current wireless local area network, finds the corresponding display device, and clicks to connect. The electronic device will send a connection request to the display device according to the IP address and port number of the display device. The connection request sent carries the IP address and port number of the electronic device. After the display device receives the connection request sent by the electronic device, it establishes a wireless connection with the electronic device, and sends a connection success confirmation message to the electronic device according to the IP address and port number of the electronic device. After the electronic device receives the connection success confirmation message, it displays that the connection is successful. The electronic device mobile phone selects the playback content that needs to be projected to the display device for screen projection playback. The electronic device transmits the playback content to the display device through the wireless local area network. After the display device receives the playback content, it plays it on the display device.

步骤S120:若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。Step S120: If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

可以理解的,电子设备如果在长时间没有接收到保持亮屏操作(比如触屏操作)或者事件(比如来电通知)的情况下,仍然保持屏幕点亮状态会导致功耗增加,因此为了降低功耗,电子设备可以设置息屏时间,并在达到息屏时间的情况下,自动进入息屏状态。一般地,该息屏时间一般可以包括30秒、1分钟、2分钟、不息屏等。其中,若息屏时间为30秒,则表征电子设备在30秒持续没有接收到保持亮屏操作或者事件,则自动进入息屏状态;若息屏时间为1分钟,则表征电子设备在1分钟持续没有接收到保持亮屏操作或者事件,则自动进入息屏状态;若息屏时间为不息屏,则表征电子设备即使长时间没有接收到保持亮屏操作或者事件,也不会自动进入息屏状态。It is understandable that if an electronic device keeps the screen on for a long time without receiving a keep-screen-on operation (such as a touch screen operation) or an event (such as a call notification), it will increase power consumption. Therefore, in order to reduce power consumption, the electronic device can set a screen-off time, and automatically enter the screen-off state when the screen-off time is reached. Generally, the screen-off time can generally include 30 seconds, 1 minute, 2 minutes, no screen-off, etc. Among them, if the screen-off time is 30 seconds, it means that the electronic device automatically enters the screen-off state if it does not receive a keep-screen-on operation or event for 30 seconds; if the screen-off time is 1 minute, it means that the electronic device automatically enters the screen-off state if it does not receive a keep-screen-on operation or event for 1 minute; if the screen-off time is no screen-off, it means that the electronic device will not automatically enter the screen-off state even if it does not receive a keep-screen-on operation or event for a long time.

在本实施例中,电子设备在创建投屏事项之后,可以确定基于该投屏事项是否投屏成功。其中,若确定基于该投屏事项投屏成功,则可以将电子设备的息屏时间设置为不息屏,从而保证电子设备在投屏过程中,不会自动进入息屏状态,可以避免系统息屏限制应用运行,造成应用运行不正常的 风险。其中,若确定基于该投屏事项投屏不成功,则可以不设置电子设备的息屏时间为不息屏,并继续确定基于该投屏事项是否投屏成功。In this embodiment, after creating a screen projection event, the electronic device can determine whether the screen projection is successful based on the screen projection event. If it is determined that the screen projection is successful based on the screen projection event, the screen off time of the electronic device can be set to not to be off, thereby ensuring that the electronic device will not automatically enter the screen off state during the screen projection process, and avoiding the system screen off limiting the application operation, causing the application to run abnormally. If it is determined that the screen projection based on the screen projection event is unsuccessful, the screen off time of the electronic device may not be set to non-screen off, and it is continued to be determined whether the screen projection based on the screen projection event is successful.

在一些实施方式中,基于上述电子设备与显示设备的示例,电子设备可以检测是否接收到显示设备发送的连接成功确认消息,若确定电子设备接收到显示设备发送的连接成功确认消息,则可以确定基于投屏事项投屏成功,若确定电子设备未接收到显示设备发送的连接成功确认消息,则可以确定基于投屏事项投屏不成功。In some embodiments, based on the above-mentioned examples of electronic devices and display devices, the electronic device can detect whether a connection success confirmation message sent by the display device is received. If it is determined that the electronic device receives the connection success confirmation message sent by the display device, it can be determined that the screen projection based on the screen projection matter is successful. If it is determined that the electronic device does not receive the connection success confirmation message sent by the display device, it can be determined that the screen projection based on the screen projection matter is unsuccessful.

在一些实施方式中,若基于该投屏事项投屏成功,则可以检测电子设备的初始息屏时间(当前设置的息屏时间),并基于该初始息屏时间,将电子设备的息屏时间设置为不息屏。可选的,若检测到电子设备的初始息屏时间不是不息屏(如初始息屏时间为30秒、1分钟等),则可以将电子设备的息屏时间修改为不息屏;若检测到电子设备的初始息屏时间为不息屏,则可以保持电子设备的息屏时间为不息屏。In some embodiments, if the screen projection is successful based on the projection event, the initial screen off time of the electronic device (the currently set screen off time) can be detected, and based on the initial screen off time, the screen off time of the electronic device can be set to not be on. Optionally, if it is detected that the initial screen off time of the electronic device is not not to be on (such as the initial screen off time is 30 seconds, 1 minute, etc.), the screen off time of the electronic device can be modified to not be on; if it is detected that the initial screen off time of the electronic device is not to be on, the screen off time of the electronic device can be kept as not to be on.

请参阅图3,图3示出了本申请实施例提供的投屏方法的一种应用示意图。如图3所示,电子设备100在成功投屏在显示设备200时,该电子设备100可以不息屏显示。Please refer to Figure 3, which shows an application schematic diagram of the screen projection method provided in an embodiment of the present application. As shown in Figure 3, when the electronic device 100 successfully projects the screen on the display device 200, the electronic device 100 can continue to display the screen.

本申请一实施例提供的投屏方法,响应于投屏指令,创建电子设备的投屏事项,若基于该投屏事项投屏成功,则将电子设备的息屏时间设置为不息屏,其中,该息屏时间用于指示电子设备自动进入息屏状态的时间,从而通过在投屏过程中设置电子设备的息屏时间为不息屏,可以避免系统息屏限制投屏应用运行,造成投屏应用运行不正常的风险。A screen projection method provided in an embodiment of the present application creates a screen projection event for an electronic device in response to a screen projection instruction. If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be on, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state. Therefore, by setting the screen off time of the electronic device to not be on during the screen projection process, the risk of the system screen off restricting the operation of the projection application and causing abnormal operation of the projection application can be avoided.

请参阅图4,图4示出了本申请一实施例提供的投屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图4所示的流程进行详细的阐述,所述投屏方法具体可以包括以下步骤:Please refer to Figure 4, which shows a schematic diagram of the process of the screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 4 will be described in detail below. The screen projection method may specifically include the following steps:

步骤S210:响应于投屏指令,创建所述电子设备的投屏事项。Step S210: In response to the screen projection instruction, create a screen projection item for the electronic device.

步骤S220:若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。Step S220: If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

其中,步骤S210-步骤S220的具体描述请参阅步骤S110-步骤S120,在此不再赘述。For the detailed description of step S210 to step S220, please refer to step S110 to step S120, which will not be repeated here.

步骤S230:若基于所述投屏事项投屏成功,则将所述电子设备的显示亮度设置为最低显示亮度。Step S230: If the screen projection is successful based on the screen projection event, the display brightness of the electronic device is set to the minimum display brightness.

在本实施例中,电子设备在创建投屏事项之后,可以确定基于该投屏事项是否投屏成功。其中,若确定基于该投屏事项投屏成功,则可以将电子设备的显示亮度设置为最低显示亮度,从而降低电子设备在投屏过程中的功耗。其中,若确定基于该投屏事项投屏不成功,则可以不将电子设备的显示亮度设置为最低显示亮度,并基于确定基于该投屏事项是否投屏成功。In this embodiment, after creating a screen projection event, the electronic device can determine whether the screen projection is successful based on the screen projection event. If it is determined that the screen projection is successful based on the screen projection event, the display brightness of the electronic device can be set to the minimum display brightness, thereby reducing the power consumption of the electronic device during the screen projection process. If it is determined that the screen projection is unsuccessful based on the screen projection event, the display brightness of the electronic device may not be set to the minimum display brightness, and the screen projection is determined based on whether the screen projection is successful based on the screen projection event.

在一些实施方式中,电子设备在投屏成功前的使用过程中,电子设备的显示亮度一般为目标显示亮度,其中,该目标显示亮度为电子设备正常使用的显示亮度,该目标显示亮度大于最低显示亮度。若确定基于该投屏事项投屏成功,则可以将电子设备的显示亮度从目标显示亮度降低为最低显示亮度;若确定基于该投屏事项投屏不成功,则可以将电子设备的显示亮度保持目标显示亮度,以保证电子设备的正常使用。In some embodiments, during the use of the electronic device before the screen projection is successful, the display brightness of the electronic device is generally the target display brightness, wherein the target display brightness is the display brightness of the electronic device in normal use, and the target display brightness is greater than the minimum display brightness. If it is determined that the screen projection based on the screen projection event is successful, the display brightness of the electronic device can be reduced from the target display brightness to the minimum display brightness; if it is determined that the screen projection based on the screen projection event is unsuccessful, the display brightness of the electronic device can be maintained at the target display brightness to ensure the normal use of the electronic device.

作为一种可实施的方式,电子设备可以预先设置并存储有最低显示亮度,例如,电子设备在出厂设置时可以设置并存储有最低显示亮度。那么,若确定基于该投屏事项投屏成功,则可以将电子设备的显示亮度设置为该预先设置并存储的最低显示亮度。As an implementable manner, the electronic device may be pre-set and stored with a minimum display brightness, for example, the electronic device may be pre-set and stored with a minimum display brightness when it is factory set. Then, if it is determined that the screen projection based on the projection event is successful, the display brightness of the electronic device may be set to the pre-set and stored minimum display brightness.

请参阅图5,图5示出了本申请实施例提供的投屏方法的另一种应用示意图。如图5所示,电子设备100在成功投屏在显示设备200时,该电子设备100可以以最低显示亮度进行显示。Please refer to Figure 5, which shows another application schematic diagram of the screen projection method provided in an embodiment of the present application. As shown in Figure 5, when the electronic device 100 successfully projects the screen on the display device 200, the electronic device 100 can display at the lowest display brightness.

步骤S240:拦截针对所述电子设备的触摸屏的触摸事件。Step S240: intercepting a touch event on the touch screen of the electronic device.

在本实施例中,在将电子设备的显示亮度设置为最低显示亮度,且电子设备以最低显示亮度进行显示的过程中,可以拦截针对电子设备的触摸屏的触摸事件,从而可以避免电子设备在以最低显示亮度进行投屏过程中,用户在电子设备的触摸屏中触发误操作,影响投屏效果。In this embodiment, when the display brightness of the electronic device is set to the lowest display brightness and the electronic device is displayed at the lowest display brightness, touch events on the touch screen of the electronic device can be intercepted, thereby preventing the user from triggering erroneous operations on the touch screen of the electronic device and affecting the screen projection effect when the electronic device is projecting the screen at the lowest display brightness.

在一些实施方式中,拦截针对电子设备的触摸屏的触摸事件可以包括:拦截作用于电子设备的触摸屏的滑动操作、拦截作用于电子设备的触摸屏的点击操作、拦截作用于电子设备的按压操作等,在此不做限定。In some embodiments, intercepting touch events on the touch screen of the electronic device may include: intercepting a sliding operation on the touch screen of the electronic device, intercepting a clicking operation on the touch screen of the electronic device, intercepting a pressing operation on the electronic device, etc., which are not limited here.

作为一种可实施的方式,电子设备以最低显示亮度进行显示的过程中,可以通过不检测作用于电子设备的触摸屏的触摸事件的方式,拦截针对电子设备的触摸屏的触摸事件。As an implementable manner, when the electronic device is displaying at the lowest display brightness, the touch events on the touch screen of the electronic device can be intercepted by not detecting the touch events acting on the touch screen of the electronic device.

作为又一种可实施的方式,电子设备以最低显示亮度进行显示的过程中,可以通过不响应检测到的作用于电子设备的触摸屏的触摸事件的方式,拦截针对电子设备的触摸屏的触摸事件。As another practicable manner, when the electronic device is displaying at the lowest display brightness, the touch events on the touch screen of the electronic device can be intercepted by not responding to the detected touch events acting on the touch screen of the electronic device.

在一些实施方式中,若电子设备的显示亮度从最低显示亮度调整为目标显示亮度,则可以停止拦截对电子设备的触摸屏的触摸事件,即,若电子设备的显示亮度从最低显示亮度调整为目标显示亮度,则可以停止拦截对电子设备的触摸屏的触摸事件。作为一种可实施的方式,若电子设备的显示亮度从最低显示亮度调整为目标显示亮度,且在以目标显示亮度进行显示的过程中,可以检测作用于电子设备的触摸屏的触摸事件,并在检测到作用于电子设备的触摸屏的触摸事件时,响应该触摸事件。 In some embodiments, if the display brightness of the electronic device is adjusted from the minimum display brightness to the target display brightness, the interception of touch events on the touch screen of the electronic device can be stopped, that is, if the display brightness of the electronic device is adjusted from the minimum display brightness to the target display brightness, the interception of touch events on the touch screen of the electronic device can be stopped. As an implementable manner, if the display brightness of the electronic device is adjusted from the minimum display brightness to the target display brightness, and during the display at the target display brightness, the touch event acting on the touch screen of the electronic device can be detected, and when the touch event acting on the touch screen of the electronic device is detected, the touch event is responded to.

本申请一实施例提供的投屏方法,响应于投屏指令,创建电子设备的投屏事项,若基于该投屏事项投屏成功,则将电子设备的息屏时间设置为不息屏,其中,该息屏时间用于指示电子设备自动进入息屏状态的时间,将电子设备的显示亮度设置为最低显示亮度,拦截针对电子设备的触摸屏的触摸事件。相较于图2所示的投屏方法,本实施例还将电子设备的显示亮度设置为最低显示亮度,以降低电子设备的功耗,另外,还拦截针对电子设备的触摸屏的触摸事件,可以避免投屏过程中的误操作,提升投屏效果。The screen projection method provided in one embodiment of the present application creates a screen projection event for an electronic device in response to a screen projection instruction. If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be on, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state, the display brightness of the electronic device is set to the minimum display brightness, and the touch events for the touch screen of the electronic device are intercepted. Compared with the screen projection method shown in FIG2, this embodiment also sets the display brightness of the electronic device to the minimum display brightness to reduce the power consumption of the electronic device. In addition, the touch events for the touch screen of the electronic device are intercepted, which can avoid misoperation during the screen projection process and improve the screen projection effect.

请参阅图6,图6示出了本申请一实施例提供的投屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图6所示的流程进行详细的阐述,所述投屏方法具体可以包括以下步骤:Please refer to Figure 6, which shows a schematic diagram of the process of the screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 6 will be described in detail below. The screen projection method may specifically include the following steps:

步骤S310:响应于投屏指令,创建所述电子设备的投屏事项。Step S310: In response to the screen projection instruction, create a screen projection item for the electronic device.

步骤S320:若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。Step S320: If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

其中,步骤S310-步骤S320的具体描述请参阅步骤S110-步骤S120,在此不再赘述。For the detailed description of step S310 to step S320, please refer to step S110 to step S120, which will not be repeated here.

步骤S330:若基于所述投屏事项投屏成功,则将所述电子设备的显示亮度设置为最低显示亮度。Step S330: If the screen projection is successful based on the screen projection event, the display brightness of the electronic device is set to the minimum display brightness.

其中,步骤S330的具体描述请参阅步骤S230,在此不再赘述。For the detailed description of step S330, please refer to step S230, which will not be repeated here.

步骤S340:若投屏结束,则将所述电子设备的显示亮度从所述最低显示亮度调整为目标显示亮度,其中,所述目标显示亮度大于所述最低显示亮度。Step S340: If the screen projection is completed, the display brightness of the electronic device is adjusted from the minimum display brightness to the target display brightness, wherein the target display brightness is greater than the minimum display brightness.

在本实施例中,电子设备在以最低显示亮度进行投屏的过程中,可以检测投屏是否结束。其中,若检测到投屏结束,则可以将该电子设备的显示亮度从最低显示亮度调整为目标显示亮度,以保证电子设备的正常使用。其中,若检测到投屏未结束,则可以将电子设备的显示亮度保持为最低显示亮度。In this embodiment, the electronic device can detect whether the screen projection is finished during the process of screen projection at the minimum display brightness. If it is detected that the screen projection is finished, the display brightness of the electronic device can be adjusted from the minimum display brightness to the target display brightness to ensure the normal use of the electronic device. If it is detected that the screen projection is not finished, the display brightness of the electronic device can be maintained at the minimum display brightness.

在一些实施方式中,由于目标显示亮度大于最低显示亮度,因此,在检测到投屏结束时,则可以将电子设备的显示亮度从最低显示亮度增大至目标显示亮度。作为一种可实施的方式,电子设备在投屏成功,且在将电子设备的显示亮度设置为最低显示亮度时,是可以将电子设备的显示亮度从目标显示亮度降低至最低显示亮度,此时,可以记录电子设备的目标显示亮度,之后,电子设备在投屏结束时,可以基于电子设备的记录确定目标显示亮度,并将电子设备的显示亮度从最低显示亮度增大至该记录的目标显示亮度,从而可以保证电子设备在用户正常使用时的显示亮度不变,可以更加符合用户的使用习惯,提升用户的使用体验。In some embodiments, since the target display brightness is greater than the minimum display brightness, when the end of screen projection is detected, the display brightness of the electronic device can be increased from the minimum display brightness to the target display brightness. As an implementable method, when the screen projection of the electronic device is successful and the display brightness of the electronic device is set to the minimum display brightness, the display brightness of the electronic device can be reduced from the target display brightness to the minimum display brightness. At this time, the target display brightness of the electronic device can be recorded. Afterwards, when the screen projection is completed, the electronic device can determine the target display brightness based on the record of the electronic device, and increase the display brightness of the electronic device from the minimum display brightness to the target display brightness of the record, thereby ensuring that the display brightness of the electronic device remains unchanged when the user is in normal use, which can be more in line with the user's usage habits and improve the user's usage experience.

在一些实施方式中,电子设备可以检测是否接收到投屏结束指令,若检测接收到投屏结束指令,则可以响应于该投屏结束指令,将电子设备的显示亮度从最低显示亮度调整为目标显示亮度。In some embodiments, the electronic device can detect whether a screen projection end instruction is received. If it is detected that a screen projection end instruction is received, the display brightness of the electronic device can be adjusted from the minimum display brightness to the target display brightness in response to the screen projection end instruction.

作为一种方式,电子设备可以检测是否接收到第二目标语音信息,若检测接收到第二目标语音信息,则可以确定接收到投屏结束指令,例如,若确定接收到“结束投屏”的语音信息时,可以确定接收到投屏结束指令。As a method, the electronic device can detect whether the second target voice information is received. If it is detected that the second target voice information is received, it can be determined that the screen projection end instruction is received. For example, if it is determined that the voice information of "end screen projection" is received, it can be determined that the screen projection end instruction is received.

作为又一种方式,电子设备可以检测是否接收到作用于电子设备的实体按键的第四目标操作,若检测接收到作用于电子设备的实体按键的第四目标操作,则可以确定接收到投结束指令,例如,若确定接收到作用于电子设备的电源键的第四长按操作、第四按压操作等时,则可以确定接收到投屏结束指令。As another way, the electronic device can detect whether it has received a fourth target operation acting on a physical key of the electronic device. If it is detected that the fourth target operation acting on the physical key of the electronic device has been received, it can be determined that the projection end instruction has been received. For example, if it is determined that the fourth long press operation, the fourth press operation, etc. acting on the power button of the electronic device have been received, it can be determined that the screen projection end instruction has been received.

作为再一种方式,电子设备可以检测是否接收到作用于电子设备的虚拟按键的第五目标操作,若检测接收到作用于电子设备的目标虚拟按键的第五目标操作,则可以确定接收到投屏结束指令,例如,若确定接收到作用于电子设备的安装的投屏应用对应的投屏结束控件的第五点击操作等时,则可以确定接收到投屏结束指令。As another way, the electronic device can detect whether the fifth target operation of the virtual key of the electronic device is received. If it is detected that the fifth target operation of the target virtual key of the electronic device is received, it can be determined that the screen projection end instruction is received. For example, if it is determined that the fifth click operation of the screen projection end control corresponding to the installed screen projection application on the electronic device is received, it can be determined that the screen projection end instruction is received.

作为另一种方式,电子设备可以检测是否接收到作用于电子设备的触摸屏的第六目标操作,若检测接收到作用于电子设备的触摸屏的第六目标操作,则可以确定接收到投屏结束指令,例如,若确定接收到作用于电子设备的触摸屏的第六滑动操作、第六点击操作等时,则可以确定接收到投屏结束指令。As another way, the electronic device can detect whether the sixth target operation acting on the touch screen of the electronic device is received. If it is detected that the sixth target operation acting on the touch screen of the electronic device is received, it can be determined that the screen projection end instruction is received. For example, if it is determined that the sixth sliding operation, the sixth click operation, etc. acting on the touch screen of the electronic device are received, it can be determined that the screen projection end instruction is received.

本申请一实施例提供的投屏方法,响应于投屏指令,创建电子设备的投屏事项,若基于该投屏事项投屏成功,则将电子设备的息屏时间设置为不息屏,其中,该息屏时间用于指示电子设备自动进入息屏状态的时间,将电子设备的显示亮度设置为最低显示亮度,若投屏结束,则将电子设备的显示亮度从最低显示亮度调整为目标显示亮度,其中,该目标显示亮度大于最低显示亮度。相较于图2所示的投屏方法,本实施例还将电子设备的显示亮度设置为最低显示亮度,以降低电子设备的功耗,另外,在投屏结束时,将电子设备的显示亮度恢复正常,提升用户的使用体验。The screen projection method provided in one embodiment of the present application creates a screen projection event for an electronic device in response to a screen projection instruction. If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state, and the display brightness of the electronic device is set to the minimum display brightness. If the screen projection ends, the display brightness of the electronic device is adjusted from the minimum display brightness to the target display brightness, wherein the target display brightness is greater than the minimum display brightness. Compared with the screen projection method shown in FIG2, this embodiment also sets the display brightness of the electronic device to the minimum display brightness to reduce the power consumption of the electronic device. In addition, when the screen projection ends, the display brightness of the electronic device is restored to normal to improve the user experience.

请参阅图7,图7示出了本申请一实施例提供的投屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图7所示的流程进行详细的阐述,所述投屏方法具体可以包括以下步骤:Please refer to Figure 7, which shows a schematic diagram of the process of the screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 7 will be described in detail below. The screen projection method may specifically include the following steps:

步骤S410:响应于投屏指令,创建所述电子设备的投屏事项。Step S410: In response to the screen projection instruction, create a screen projection item for the electronic device.

步骤S420:若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。 Step S420: If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

其中,步骤S410-步骤S420的具体描述请参阅步骤S110-步骤S120,在此不再赘述。For the detailed description of step S410 to step S420, please refer to step S110 to step S120, which will not be repeated here.

步骤S430:若基于所述投屏事项投屏成功,则将所述电子设备的显示亮度设置为最低显示亮度。Step S430: If the screen projection is successful based on the screen projection event, the display brightness of the electronic device is set to the minimum display brightness.

其中,步骤S430的具体描述请参阅步骤S230,在此不再赘述。For the detailed description of step S430, please refer to step S230, which will not be repeated here.

步骤S440:响应于针对所述电子设备的来电呼叫事件,将所述电子设备的显示亮度从所述最低显示亮度调整为目标显示亮度,其中,所述目标显示亮度大于所述最低显示亮度。Step S440: In response to an incoming call event for the electronic device, adjusting the display brightness of the electronic device from the minimum display brightness to a target display brightness, wherein the target display brightness is greater than the minimum display brightness.

在本实施例中,电子设备在以最低显示亮度进行投屏的过程中,可以监听是否接收到针对电子设备的来电呼叫事件。其中,响应于针对电子设备的来电呼叫事件,可以将电子设备的显示亮度从最低显示亮度调整为目标显示亮度,以保证电子设备的正常的电话接听。其中,若未监听到电子设备的来电呼叫事件,则可以将电子设备的显示亮度保持为最低显示亮度。In this embodiment, the electronic device can monitor whether an incoming call event for the electronic device is received during the screen projection at the minimum display brightness. In response to the incoming call event for the electronic device, the display brightness of the electronic device can be adjusted from the minimum display brightness to the target display brightness to ensure the normal call answering of the electronic device. If the incoming call event of the electronic device is not monitored, the display brightness of the electronic device can be maintained at the minimum display brightness.

在一些实施方式中,由于目标显示亮度大于最低显示亮度,因此,在监听到针对电子设备的来电呼叫事件时,则可以将电子设备的显示亮度从最低显示亮度增大至目标显示亮度。作为一种可实施的方式,电子设备在投屏成功,且在将电子设备的显示亮度设置为最低显示亮度时,是可以将电子设备的显示亮度从目标显示亮度降低至最低显示亮度,此时,可以记录电子设备的目标显示亮度,之后,电子设备在监听到针对电子设备的来电呼叫事件时,可以基于电子设备的记录确定目标显示亮度,并将电子设备的显示亮度从最低显示亮度增大至该记录的目标显示亮度。In some embodiments, since the target display brightness is greater than the minimum display brightness, when an incoming call event to the electronic device is monitored, the display brightness of the electronic device can be increased from the minimum display brightness to the target display brightness. As an implementable method, when the electronic device successfully projects the screen and the display brightness of the electronic device is set to the minimum display brightness, the display brightness of the electronic device can be reduced from the target display brightness to the minimum display brightness. At this time, the target display brightness of the electronic device can be recorded. Afterwards, when the electronic device monitors an incoming call event to the electronic device, the target display brightness can be determined based on the record of the electronic device, and the display brightness of the electronic device can be increased from the minimum display brightness to the target display brightness of the record.

在一些实施方式中,针对电子设备的来电呼叫事件可以包括:通过电话的方式针对电子设备的来电呼叫事件;通过语音通话的方式针对电子设备的来电呼叫事件;通过视频通话的方式针对电子设备的来电呼叫事件等,在此不做限定。In some embodiments, an incoming call event to an electronic device may include: an incoming call event to an electronic device via a telephone call; an incoming call event to an electronic device via a voice call; an incoming call event to an electronic device via a video call, etc., which are not limited here.

步骤S450:响应于针对所述电子设备的电源键的第一按压事件,将所述电子设备的显示亮度从所述最低显示亮度调整为所述目标显示亮度。Step S450: In response to a first pressing event of a power key of the electronic device, adjusting the display brightness of the electronic device from the minimum display brightness to the target display brightness.

在本实施例中,电子设备在以最低显示亮度进行投屏的过程中,可以监听是否接收到针对电子设备的电源键的第一按压事件。其中,响应于针对电子设备的电源键的第一按压事件,可以将电子设备的显示亮度从最低显示亮度调整为目标显示亮度,此时,电子设备以目标显示亮度进行投屏。其中,若未监听到针对电子设备的电源键的第一按压事件,则可以将电子设备的显示亮度保持为最低显示亮度。In this embodiment, the electronic device can monitor whether the first pressing event of the power key of the electronic device is received during the process of projecting the screen at the minimum display brightness. In response to the first pressing event of the power key of the electronic device, the display brightness of the electronic device can be adjusted from the minimum display brightness to the target display brightness. At this time, the electronic device projects the screen at the target display brightness. If the first pressing event of the power key of the electronic device is not monitored, the display brightness of the electronic device can be maintained at the minimum display brightness.

在一些实施方式中,由于目标显示亮度大于最低显示亮度,因此,在监听到针对电子设备的电源键的第一按压事件时,则可以将电子设备的显示亮度从最低显示亮度增大至目标显示亮度。作为一种可实施的方式,电子设备在投屏成功,且在将电子设备的显示亮度设置为最低显示亮度时,是可以将电子设备的显示亮度从目标显示亮度降低至最低显示亮度,此时,可以记录电子设备的目标显示亮度,之后,电子设备在监听到针对电子设备的电源键的第一按压事件时,可以基于电子设备的记录确定目标显示亮度,并将电子设备的显示亮度从最低显示亮度增大至该记录的目标显示亮度。In some embodiments, since the target display brightness is greater than the minimum display brightness, when the first pressing event of the power button of the electronic device is monitored, the display brightness of the electronic device can be increased from the minimum display brightness to the target display brightness. As an implementable method, when the electronic device successfully projects the screen and the display brightness of the electronic device is set to the minimum display brightness, the display brightness of the electronic device can be reduced from the target display brightness to the minimum display brightness. At this time, the target display brightness of the electronic device can be recorded. Afterwards, when the electronic device monitors the first pressing event of the power button of the electronic device, the target display brightness can be determined based on the record of the electronic device, and the display brightness of the electronic device can be increased from the minimum display brightness to the target display brightness of the record.

在一些实施方式中,针对电子设备的电源键的第一按压事件可以包括:作用于电子设备的电源键的按压操作。In some embodiments, the first pressing event for the power key of the electronic device may include: a pressing operation on the power key of the electronic device.

步骤S460:响应于针对所述电子设备的电源键的第二按压事件,将所述电子设备的显示亮度从所述目标显示亮度调整为所述最低显示亮度。Step S460: In response to a second pressing event on the power key of the electronic device, adjusting the display brightness of the electronic device from the target display brightness to the minimum display brightness.

在本实施例中,电子设备在以目标显示亮度进行投屏的过程中,可以监听是否接收到针对电子设备的电源键的第二按压事件。其中,响应于针对电子设备的电源键的第二按压事件,可以将电子设备的显示亮度从目标显示亮度调整为最低显示亮度,此时,电子设备以最低显示亮度进行投屏。其中,若未监听到针对电子设备的电源键的第二按压事件,则可以将电子设备的显示亮度保持为目标显示亮度。基于此,可以实现通过作用于电子设备的电源键的按压事件,控制电子设备的显示亮度在最低显示亮度和目标显示亮度之间切换,可以提升用户的交互体验。In this embodiment, the electronic device can monitor whether a second press event for the power button of the electronic device is received during the process of projecting the screen at the target display brightness. In response to the second press event for the power button of the electronic device, the display brightness of the electronic device can be adjusted from the target display brightness to the minimum display brightness. At this time, the electronic device projects the screen at the minimum display brightness. If the second press event for the power button of the electronic device is not monitored, the display brightness of the electronic device can be maintained at the target display brightness. Based on this, it is possible to control the display brightness of the electronic device to switch between the minimum display brightness and the target display brightness by acting on the press event of the power button of the electronic device, which can enhance the user's interactive experience.

在一些实施方式中,由于目标显示亮度大于最低显示亮度,因此,在监听到针对电子设备的电源键的第二按压事件时,则可以将电子设备的显示亮度从目标显示亮度减小至最低显示亮度。In some embodiments, since the target display brightness is greater than the minimum display brightness, when a second press event of the power button of the electronic device is monitored, the display brightness of the electronic device can be reduced from the target display brightness to the minimum display brightness.

在一些实施方式中,针对电子设备的电源键的第二按压事件可以包括:作用于电子设备的电源键的按压操作。In some embodiments, the second pressing event for the power key of the electronic device may include: a pressing operation on the power key of the electronic device.

本申请一实施例提供的投屏方法,响应于投屏指令,创建电子设备的投屏事项,若基于该投屏事项投屏成功,则将电子设备的息屏时间设置为不息屏,其中,该息屏时间用于指示电子设备自动进入息屏状态的时间,将电子设备的显示亮度设置为最低显示亮度,响应于电子设备的来电呼叫事件,将电子设备的显示亮度从最低显示亮度调整为目标显示亮度,其中,该目标显示亮度大于最低显示亮度,响应于针对电子设备的电源键的第一按压事件,将电子设备的显示亮度从最低显示亮度调整为目标显示亮度,响应于针对电子设备的电源键的第二按压事件,将电子设备的显示亮度从目标显示亮度调整为最低显示亮度。相较于图2所示的投屏方法,本实施例还将电子设备的显示亮度设置为最低显示亮度,以降低电子设备的功耗,另外,本实施例还可以通过不同的事件控制电子设备的显示亮度在最低显示亮度和目标显示亮度之间切换,以提升用户的交互体验。 The screen projection method provided by an embodiment of the present application, in response to a screen projection instruction, creates a screen projection event of an electronic device, if the screen projection is successful based on the screen projection event, then sets the screen off time of the electronic device to not be screen off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state, sets the display brightness of the electronic device to the minimum display brightness, in response to an incoming call event of the electronic device, adjusts the display brightness of the electronic device from the minimum display brightness to the target display brightness, wherein the target display brightness is greater than the minimum display brightness, in response to a first pressing event of the power button of the electronic device, adjusts the display brightness of the electronic device from the minimum display brightness to the target display brightness, and in response to a second pressing event of the power button of the electronic device, adjusts the display brightness of the electronic device from the target display brightness to the minimum display brightness. Compared with the screen projection method shown in FIG. 2, this embodiment also sets the display brightness of the electronic device to the minimum display brightness to reduce the power consumption of the electronic device. In addition, this embodiment can also control the display brightness of the electronic device to switch between the minimum display brightness and the target display brightness through different events to enhance the user's interactive experience.

请参阅图8,图8示出了本申请一实施例提供的投屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图8所示的流程进行详细的阐述,所述投屏方法具体可以包括以下步骤:Please refer to Figure 8, which shows a schematic diagram of the process of the screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 8 will be described in detail below. The screen projection method may specifically include the following steps:

步骤S510:响应于投屏指令,创建所述电子设备的投屏事项。Step S510: In response to the screen projection instruction, create a screen projection item for the electronic device.

步骤S520:若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。Step S520: If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

其中,步骤S510-步骤S520的具体描述请参阅步骤S110-步骤S120,在此不再赘述。For the detailed description of step S510 to step S520, please refer to step S110 to step S120, which will not be repeated here.

步骤S530:若投屏结束,则将所述电子设备的息屏时间恢复为投屏成功前设置的初始息屏时间。Step S530: If the screen projection is completed, the screen off time of the electronic device is restored to the initial screen off time set before the screen projection is successful.

在本实施例中,电子设备在投屏的过程中,可以检测投屏是否结束。其中,若检测到投屏结束,则可以将电子设备的息屏时间恢复为投屏成功前设置的初始息屏时间,以保证电子设备的正常使用。其中,若检测到投屏未结束,则可以将电子设备的息屏时间保持为不息屏。In this embodiment, during the screen projection process, the electronic device can detect whether the screen projection has ended. If it is detected that the screen projection has ended, the screen off time of the electronic device can be restored to the initial screen off time set before the screen projection is successful, so as to ensure the normal use of the electronic device. If it is detected that the screen projection has not ended, the screen off time of the electronic device can be kept as non-screen off.

在一些实施方式中,电子设备在投屏成功时,是可以将电子设备的息屏时间从初始息屏时间(如30秒、1分钟等)调整为不息屏,此时,可以记录电子设备的初始息屏时间,之后,电子设备在投屏结束时,可以基于电子设备的记录确定初始息屏时间,并将电子设备的息屏时间从不息屏重新设置为初始息屏时间,从而可以保证电子设备在用户正常使用时的息屏时间不变,可以更加符合用户的使用习惯,提升用户的使用体验。In some embodiments, when the screen is projected successfully, the electronic device can adjust the screen-off time of the electronic device from the initial screen-off time (such as 30 seconds, 1 minute, etc.) to no screen off. At this time, the initial screen-off time of the electronic device can be recorded. Afterwards, when the screen projection is completed, the electronic device can determine the initial screen-off time based on the record of the electronic device, and reset the screen-off time of the electronic device from no screen off to the initial screen-off time, thereby ensuring that the screen-off time of the electronic device remains unchanged when the user is in normal use, which can be more in line with the user's usage habits and enhance the user's usage experience.

本申请一实施例提供的投屏方法,响应于投屏指令,创建电子设备的投屏事项,若基于该投屏事项投屏成功,则将电子设备的息屏时间设置为不息屏,其中,该息屏时间用于指示电子设备自动进入息屏状态的时间,若投屏结束,则将电子设备的息屏时间恢复为投屏成功前设置的初始息屏时间。相较于图2所示的投屏方法,本实施例还在投屏结束时,恢复初始的息屏时间,以降低对用户使用的影响,提升用户的使用体验。The screen projection method provided in an embodiment of the present application creates a screen projection event of an electronic device in response to a screen projection instruction. If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state. If the screen projection ends, the screen off time of the electronic device is restored to the initial screen off time set before the screen projection is successful. Compared with the screen projection method shown in FIG2, this embodiment also restores the initial screen off time when the screen projection ends, so as to reduce the impact on user use and improve the user experience.

请参阅图9,图9示出了本申请一实施例提供的投屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图9所示的流程进行详细的阐述,所述投屏方法具体可以包括以下步骤:Please refer to Figure 9, which shows a schematic diagram of the process of a screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 9 will be described in detail below. The screen projection method may specifically include the following steps:

步骤S610:响应于投屏指令,创建所述电子设备的投屏事项。Step S610: In response to the screen projection instruction, create a screen projection item for the electronic device.

步骤S620:若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。Step S620: If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

其中,步骤S610-步骤S620的具体描述请参阅步骤S110-步骤S120,在此不再赘述。For the detailed description of step S610 to step S620, please refer to step S110 to step S120, which will not be repeated here.

步骤S630:若基于所述投屏事项投屏成功,则从在所述电子设备的后台运行的应用程序中确定不满足预设类型的目标应用程序。Step S630: If the screen projection is successful based on the projection matter, a target application that does not meet the preset type is determined from the applications running in the background of the electronic device.

在一些实施方式中,电子设备可以预先设置并存储有预设类型,该预设类型用于作为在电子设备运行的应用程序的判断依据,因此,在本实施例中,在确定基于该投屏事项投屏成功的情况下,则可以将在电子设备的后台运行的应用程序与预设类型进行比较,以判断在电子设备的后台运行的应用程序是否满足预设类型。其中,若基于上述判断结果确定应用程序满足预设类型,则可以不将该应用程序确定为目标应用程序,若基于上述判断结果确定应用程序不满足预设类型,则可以将该应用程序确定为目标应用程序。In some embodiments, the electronic device may be pre-set and stored with a preset type, which is used as a basis for judging the application running on the electronic device. Therefore, in this embodiment, when it is determined that the screen projection is successful based on the projection event, the application running in the background of the electronic device may be compared with the preset type to determine whether the application running in the background of the electronic device meets the preset type. If it is determined based on the above judgment result that the application meets the preset type, the application may not be determined as the target application; if it is determined based on the above judgment result that the application does not meet the preset type, the application may be determined as the target application.

作为一种可实施的方式,预设类型可以为运行功耗低于功耗阈值的类型。即,若在电子设备的后台运行的第一应用程序,其运行功耗低于功耗阈值,则可以认为该第一应用程序满足预设类型,若在电子设备的后台运行的第一应用程序,其运行功耗高于功耗阈值,则可以认为该第一应用程序不满足预设类型。基于此,在本实施例中,若确定在电子设备的后台运行的第一应用程序满足预设类型,则可以认为该第一应用程序在电子设备的后台运行造成的功耗较低,可以不将该第一应用程序确定为目标应用程序,若确定在电子设备的后台运行的应用程序不满足预设类型,则可以认为该第一应用程序在电子设备的后台运行造成的功耗较高,可以将该应用程序确定为目标应用程序。As an implementable manner, the preset type may be a type whose operating power consumption is lower than a power consumption threshold. That is, if the operating power consumption of the first application running in the background of the electronic device is lower than the power consumption threshold, it can be considered that the first application meets the preset type; if the operating power consumption of the first application running in the background of the electronic device is higher than the power consumption threshold, it can be considered that the first application does not meet the preset type. Based on this, in this embodiment, if it is determined that the first application running in the background of the electronic device meets the preset type, it can be considered that the power consumption caused by the first application running in the background of the electronic device is low, and the first application may not be determined as the target application; if it is determined that the application running in the background of the electronic device does not meet the preset type, it can be considered that the power consumption caused by the first application running in the background of the electronic device is high, and the application may be determined as the target application.

作为又一种可实施的方式,预设类型可以为即时通讯类型。即,若在电子设备的后台运行的第二应用程序,其类型为即时通讯类型,则可以认为该第二应用程序满足预设类型,若在电子设备的后台运行的第二应用程序,其类型不是即时通讯类型,则可以认为该第二应用程序不满足预设类型。基于此,在本实施例中,若确定在电子设备的后台运行的第二应用程序满足预设类型,则可以认为该第二应用程序需要及时接收消息并弹出提示,可以不将该第二应用程序确定为目标应用程序,若确定在电子设备的后台运行的第二应用程序不满足预设类型,则可以认为该第二应用程序不需要及时接收消息并弹出提示,则可以将该第二应用程序确定为目标应用程序。As another practicable method, the preset type may be an instant messaging type. That is, if the second application running in the background of the electronic device is of an instant messaging type, it can be considered that the second application meets the preset type; if the second application running in the background of the electronic device is not of an instant messaging type, it can be considered that the second application does not meet the preset type. Based on this, in this embodiment, if it is determined that the second application running in the background of the electronic device meets the preset type, it can be considered that the second application needs to receive messages and pop up prompts in a timely manner, and the second application may not be determined as the target application; if it is determined that the second application running in the background of the electronic device does not meet the preset type, it can be considered that the second application does not need to receive messages and pop up prompts in a timely manner, and the second application may be determined as the target application.

作为再一种可实施的方式,预设类型可以为阅读类型。即,若在电子设备的后台运行的第三应用程序,其类型为阅读类型,则可以认为该第三应用程序满足预设类型,若在电子设备的后台运行的第三应用程序,其类型不是阅读类型,则可以认为该第三应用程序不满足预设类型。基于此,在本实施例中,若确定在电子设备的后台运行的第三应用程序满足预设类型,则可以认为该第三应用程序再次运行在前台时,需要定位到当前阅读位置,可以不将该第三应用程序确定为目标应用程序,若确定在电子设备的后台运行的第三应用程序不满足预设类型,则可以认为该第三应用程序再次运行在前台时,不需要定位到当前阅读位置, 则可以将该第三应用程序确定为目标应用程序。As another implementable method, the preset type may be a reading type. That is, if the type of the third application running in the background of the electronic device is a reading type, then it can be considered that the third application meets the preset type; if the type of the third application running in the background of the electronic device is not a reading type, then it can be considered that the third application does not meet the preset type. Based on this, in this embodiment, if it is determined that the third application running in the background of the electronic device meets the preset type, then it can be considered that when the third application runs in the foreground again, it is necessary to locate the current reading position, and the third application may not be determined as the target application; if it is determined that the third application running in the background of the electronic device does not meet the preset type, then it can be considered that when the third application runs in the foreground again, it is not necessary to locate the current reading position. The third application may then be determined as the target application.

请参阅图10,图10示出了本申请的图9所示的投屏方法的步骤S630的流程示意图。下面将针对图10所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to Figure 10, which shows a schematic flow chart of step S630 of the screen projection method shown in Figure 9 of the present application. The process shown in Figure 10 will be described in detail below. The method may specifically include the following steps:

步骤S631:若基于所述投屏事项投屏成功,则获取所述电子设备的剩余电量。Step S631: If the screen projection is successful based on the screen projection event, the remaining power of the electronic device is obtained.

在一些实施方式中,若基于该投屏事项投屏成功,则可以获取该电子设备的剩余电量。In some implementations, if the screen projection is successful based on the screen projection event, the remaining power of the electronic device can be obtained.

作为一种可实施的方式,若基于投屏事项投屏成功并在投屏的过程中,可以实时获取电子设备的剩余电量,可以按预设时间间隔获取电子设备的剩余电量,可以按预设时间点获取电子设备的剩余电量,或者,也可以按其他预设规则获取电子设备的剩余电量等,在此不做限定。As an implementable method, if the screen is projected successfully based on the projection matter and during the projection process, the remaining power of the electronic device can be obtained in real time, the remaining power of the electronic device can be obtained at preset time intervals, the remaining power of the electronic device can be obtained at preset time points, or the remaining power of the electronic device can be obtained according to other preset rules, etc., which are not limited here.

步骤S632:若所述剩余电量低于剩余电量阈值,则从在所述电子设备的后台运行的应用程序中确定不满足预设类型的目标应用程序。Step S632: If the remaining power is lower than the remaining power threshold, a target application that does not meet a preset type is determined from the applications running in the background of the electronic device.

在一些实施方式中,电子设备可以预先设置并存储有剩余电量阈值,该剩余电量阈值用于作为该电子设备的剩余电量的判断依据。因此,在本实施例中,在获得该电子设备的剩余电量的情况下,则可以将该剩余电量与剩余电量阈值进行比较,以判断该剩余电量是否低于剩余电量阈值。可选的,该剩余电量阈值可以包括30%、20%等,在此不做限定。In some embodiments, the electronic device may pre-set and store a remaining power threshold, which is used as a basis for determining the remaining power of the electronic device. Therefore, in this embodiment, when the remaining power of the electronic device is obtained, the remaining power can be compared with the remaining power threshold to determine whether the remaining power is lower than the remaining power threshold. Optionally, the remaining power threshold may include 30%, 20%, etc., which is not limited here.

其中,若确定该剩余电量低于剩余电量阈值,则可以表征该电子设备的剩余电量不足,可以从在电子设备的后台运行的应用程序中确定不满足预设类型的目标应用程序,并关闭该目标应用程序,以降低电子设备的功耗,提升投屏的使用时长。Among them, if it is determined that the remaining power is lower than the remaining power threshold, it can be indicated that the remaining power of the electronic device is insufficient. The target application that does not meet the preset type can be determined from the applications running in the background of the electronic device, and the target application can be closed to reduce the power consumption of the electronic device and increase the usage time of the screen projection.

其中,若确定该剩余电量大于或等于剩余电量阈值,则可以表征该电子设备的剩余电量充足,可以不关闭在电子设备的后台运行的应用程序。If it is determined that the remaining power is greater than or equal to the remaining power threshold, it can be indicated that the remaining power of the electronic device is sufficient, and the application running in the background of the electronic device does not need to be closed.

步骤S640:关闭所述目标应用程序。Step S640: close the target application.

在本实施例中,在确定目标应用程序的情况下,则可以关闭该目标应用程序,即,可以将该目标应用程序从该电子设备的后台删除,基于此,可以降低电子设备的功耗,以提升投屏的使用时长。In this embodiment, when the target application is determined, the target application can be closed, that is, the target application can be deleted from the background of the electronic device. Based on this, the power consumption of the electronic device can be reduced to increase the usage time of the screen projection.

本申请一实施例提供的投屏方法,响应于投屏指令,创建电子设备的投屏事项,若基于该投屏事项投屏成功,则将电子设备的息屏时间设置为不息屏,其中,该息屏时间用于指示电子设备自动进入息屏状态的时间,从电子设备的后台运行的应用程序中确定不满足预设类型的目标应用程序,关闭该目标应用程序。相较于图2所示的投屏方法,本实施例还可以关闭在电子设备的后台运行的不满足预设类型的目标应用程序,可以降低电子设备的功耗,提升投屏的使用时长。The screen projection method provided in one embodiment of the present application creates a screen projection event of the electronic device in response to a screen projection instruction. If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state, and the target application that does not meet the preset type is determined from the applications running in the background of the electronic device, and the target application is closed. Compared with the screen projection method shown in FIG2, this embodiment can also close the target application that does not meet the preset type running in the background of the electronic device, which can reduce the power consumption of the electronic device and increase the use time of the screen projection.

请参阅图11,图11示出了本申请一实施例提供的投屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图11所示的流程进行详细的阐述,所述投屏方法具体可以包括以下步骤:Please refer to Figure 11, which shows a schematic diagram of the process of the screen projection method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The process shown in Figure 11 will be described in detail below. The screen projection method may specifically include the following steps:

步骤S710:响应于投屏指令,确定所述投屏指令所指示的投屏方式。Step S710: In response to a screen projection instruction, determine the screen projection method indicated by the screen projection instruction.

在本实施例中,在接收到投屏指令的情况下,则可以响应于该投屏指令,确定该投屏指令所指示的投屏方式。In this embodiment, when a screen projection instruction is received, the screen projection method indicated by the screen projection instruction can be determined in response to the screen projection instruction.

可选的,该投屏指令中可以携带有用户所期望的投屏方式,那么,电子设备在接收到投屏指令的情况下,可以对该投屏指令进行解析,获得该投屏指令所指示的投屏方式。在一些实施方式中,用户在通过电子设备触发投屏时,电子设备可以输出提示信息,其中,该提示信息用于提示选择投屏方式,用户可以基于该提示信息进行投屏方式的选择,从而可以确定该投屏指令所指示的投屏方式。Optionally, the screen projection instruction may carry the screen projection method desired by the user, so when the electronic device receives the screen projection instruction, it may parse the screen projection instruction to obtain the screen projection method indicated by the screen projection instruction. In some embodiments, when the user triggers screen projection through the electronic device, the electronic device may output prompt information, wherein the prompt information is used to prompt the selection of the screen projection method, and the user may select the screen projection method based on the prompt information, thereby determining the screen projection method indicated by the screen projection instruction.

作为一种可实施的方式,用户在通过电子设备触发投屏时,电子设备可以输出提示信息,其中,该提示信息可以用于提示从第一投屏方式和第二投屏方式中确定投屏方式,其中,该第一投屏方式表征息屏投屏方式,第二投屏方式表征不息屏投屏方式。As an implementable method, when a user triggers screen projection through an electronic device, the electronic device can output a prompt message, wherein the prompt message can be used to prompt the user to determine the projection mode from a first projection mode and a second projection mode, wherein the first projection mode represents a projection mode with the screen off, and the second projection mode represents a projection mode without the screen off.

步骤S720:基于所述投屏方式,创建所述电子设备的投屏事项。Step S720: Based on the screen projection method, create a screen projection item for the electronic device.

在本实施例中,在确定投屏方式的情况下,可以基于该投屏方式,创建该电子设备的投屏事项。In this embodiment, when the screen projection method is determined, the screen projection items of the electronic device can be created based on the screen projection method.

在一些实施方式中,若确定的投屏方式为第一投屏方式,则可以创建息屏投屏事项,若确定的投屏方式为第二投屏方式,则可以创建不息屏投屏事项。In some implementations, if the determined screen projection method is the first screen projection method, a screen-off projection event can be created; if the determined screen projection method is the second screen projection method, a screen-non-screen-off projection event can be created.

步骤S730:若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。Step S730: If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be turned off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

其中,步骤S730的具体描述请参阅步骤S120,在此不再赘述。For the detailed description of step S730, please refer to step S120, which will not be repeated here.

本申请一实施例提供的投屏方法,响应于投屏指令,确定投屏指令所指示的投屏方式,基于该投屏方式,创建电子设备的投屏事项,若基于该投屏事项投屏成功,则将电子设备的息屏时间设置为不息屏,其中,该息屏时间用于指示电子设备自动进入息屏状态的事件。相较于图2所示的投屏方法,本实施例还确定投屏方式,并基于该投屏方式创建电子设备的投屏事项,可以提升投屏的体验。The screen projection method provided in an embodiment of the present application responds to a screen projection instruction, determines the screen projection mode indicated by the screen projection instruction, creates a screen projection event for the electronic device based on the screen projection mode, and if the screen projection is successful based on the screen projection event, sets the screen off time of the electronic device to not be off, wherein the screen off time is used to indicate an event in which the electronic device automatically enters the screen off state. Compared with the screen projection method shown in FIG2 , this embodiment further determines the screen projection mode, and creates a screen projection event for the electronic device based on the screen projection mode, which can improve the screen projection experience.

请参阅图12,图12示出了本申请一实施例提供的投屏装置的模块框图。该投屏装置300应用 于上述电子设备,下面将针对图12所示的框图进行阐述,所述投屏装置300包括:投屏事项创建模块310和息屏时间设置模块320,其中:Please refer to FIG. 12, which shows a block diagram of a screen projection device according to an embodiment of the present application. In the above electronic device, the following will be described with reference to the block diagram shown in FIG. 12 , wherein the screen projection device 300 includes: a screen projection event creation module 310 and a screen off time setting module 320 , wherein:

投屏事项创建模块310,用于响应于投屏指令,创建所述电子设备的投屏事项。The screen projection event creation module 310 is used to create a screen projection event for the electronic device in response to a screen projection instruction.

进一步地,所述投屏事项创建模块310包括:投屏方式确定子模块和投屏事项创建子模块,其中:Furthermore, the screen projection event creation module 310 includes: a screen projection mode determination submodule and a screen projection event creation submodule, wherein:

投屏方式确定子模块,用于响应于投屏指令,确定所述投屏指令所指示的投屏方式。The screen projection mode determination submodule is used to respond to the screen projection instruction and determine the screen projection mode indicated by the screen projection instruction.

投屏事项创建子模块,用于基于所述投屏方式,创建所述电子设备的投屏事项。The screen projection event creation submodule is used to create screen projection events for the electronic device based on the screen projection method.

息屏时间设置模块320,用于若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。The screen off time setting module 320 is used to set the screen off time of the electronic device to not turn off the screen if the screen projection is successful based on the screen projection event, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state.

进一步地,所述投屏装置300还包括:第一显示亮度设置模块,其中:Furthermore, the screen projection device 300 further includes: a first display brightness setting module, wherein:

第一显示亮度设置模块,用于若基于所述投屏事项投屏成功,则将所述电子设备的显示亮度设置为最低显示亮度。The first display brightness setting module is used to set the display brightness of the electronic device to the lowest display brightness if the screen projection is successful based on the screen projection matter.

进一步地,所述投屏装置300还包括:触摸事件拦截模块,其中:Furthermore, the screen projection device 300 further includes: a touch event interception module, wherein:

触摸事件拦截模块,用于拦截针对所述电子设备的触摸屏的触摸事件。The touch event interception module is used to intercept touch events on the touch screen of the electronic device.

进一步地,所述投屏装置300还包括:第二显示亮度设置模块,其中:Furthermore, the screen projection device 300 further includes: a second display brightness setting module, wherein:

第二显示亮度设置模块,用于若投屏结束,则将所述电子设备的显示亮度从所述最低显示亮度调整为目标显示亮度,其中,所述目标显示亮度大于所述最低显示亮度。The second display brightness setting module is used to adjust the display brightness of the electronic device from the minimum display brightness to the target display brightness if the screen projection is completed, wherein the target display brightness is greater than the minimum display brightness.

进一步地,所述投屏装置300还包括:第三显示亮度设置模块和第四显示亮度设置模块,其中:Furthermore, the screen projection device 300 further includes: a third display brightness setting module and a fourth display brightness setting module, wherein:

第三显示亮度设置模块,用于响应于针对所述电子设备的来电呼叫事件,将所述电子设备的显示亮度从所述最低显示亮度调整为目标显示亮度,其中,所述目标显示亮度大于所述最低显示亮度。The third display brightness setting module is used to adjust the display brightness of the electronic device from the minimum display brightness to a target display brightness in response to an incoming call event for the electronic device, wherein the target display brightness is greater than the minimum display brightness.

第四显示亮度设置模块,用于响应于针对所述电子设备的电源键的第一按压事件,将所述电子设备的显示亮度从所述最低显示亮度调整为所述目标显示亮度。The fourth display brightness setting module is used to adjust the display brightness of the electronic device from the minimum display brightness to the target display brightness in response to a first pressing event of the power key of the electronic device.

进一步地,所述投屏装置300还包括:第五显示亮度设置模块,其中:Furthermore, the screen projection device 300 further includes: a fifth display brightness setting module, wherein:

第五显示亮度设置模块,用于响应于针对所述电子设备的电源键的第二按压事件,将所述电子设备的显示亮度从所述目标显示亮度调整为所述最低显示亮度。The fifth display brightness setting module is used to adjust the display brightness of the electronic device from the target display brightness to the minimum display brightness in response to a second pressing event of the power key of the electronic device.

进一步地,所述投屏装置300还包括:息屏时间恢复模块,其中:Furthermore, the screen projection device 300 further includes: a screen off time recovery module, wherein:

息屏时间恢复模块,用于若投屏结束,则将所述电子设备的息屏时间恢复为投屏成功前设置的初始息屏时间。The screen off time recovery module is used to restore the screen off time of the electronic device to the initial screen off time set before the screen projection is successful if the screen projection is completed.

进一步地,所述投屏装置300还包括:应用程序确定模块和应用程序关闭模块,其中:Furthermore, the screen projection device 300 further includes: an application determination module and an application closing module, wherein:

应用程序确定模块,用于若基于所述投屏事项投屏成功,则从在所述电子设备的后台运行的应用程序中确定不满足预设类型的目标应用程序。An application determination module is used to determine a target application that does not meet a preset type from applications running in the background of the electronic device if the screen projection is successful based on the screen projection matter.

进一步地,所述应用程序确定模块包括:剩余电量获取子模块和应用程序确定子模块,其中:Furthermore, the application determination module includes: a remaining power acquisition submodule and an application determination submodule, wherein:

剩余电量获取子模块,用于若基于所述投屏事项投屏成功,则获取所述电子设备的剩余电量。The remaining power acquisition submodule is used to obtain the remaining power of the electronic device if the screen projection is successful based on the screen projection event.

应用程序确定子模块,用于若所述剩余电量低于剩余电量阈值,则从在所述电子设备的后台运行的应用程序中确定不满足预设类型的目标应用程序。The application determination submodule is used to determine a target application that does not meet a preset type from the applications running in the background of the electronic device if the remaining power is lower than a remaining power threshold.

应用程序关闭模块,用于关闭所述目标应用程序。The application closing module is used to close the target application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

请参阅图13,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to Figure 13, which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用 户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts within the entire electronic device 100, and executes various functions of the electronic device 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can 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), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of several of the central processing unit (Central Processing Unit, CPU), graphics processing unit (Graphics Processing Unit, GPU) and modem, etc. Among them, the CPU mainly processes the operating system, user The GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to handle wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing functions (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

请参阅图14,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质400中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to Figure 14, which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 400 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

计算机可读存储介质400可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质400包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质400具有执行上述方法中的任何方法步骤的程序代码410的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码410可以例如以适当形式进行压缩。The computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 400 comprises a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has storage space for program code 410 for executing any method steps in the above method. These program codes may be read from or written to one or more computer program products. The program code 410 may be compressed, for example, in a suitable form.

综上所述,本申请实施例提供的投屏方法、装置、电子设备以及存储介质,响应于投屏指令,创建电子设备的投屏事项,若基于该投屏事项投屏成功,则将电子设备的息屏时间设置为不息屏,其中,该息屏时间用于指示电子设备自动进入息屏状态的时间,从而通过在投屏过程中设置电子设备的息屏时间为不息屏,可以避免系统息屏限制投屏应用运行,造成投屏应用运行不正常的风险。To summarize, the screen projection method, device, electronic device and storage medium provided in the embodiments of the present application create a screen projection event for the electronic device in response to a screen projection instruction. If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to non-screen off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state. Therefore, by setting the screen off time of the electronic device to non-screen off during the screen projection process, the risk of the system screen off restricting the running of the projection application and causing abnormal operation of the projection application can be avoided.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

一种投屏方法,其特征在于,应用于电子设备,所述方法包括:A screen projection method, characterized in that it is applied to an electronic device, and the method comprises: 响应于投屏指令,创建所述电子设备的投屏事项;In response to the screen projection instruction, creating a screen projection event for the electronic device; 若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。If the screen projection is successful based on the screen projection event, the screen off time of the electronic device is set to not be off, wherein the screen off time is used to indicate the time when the electronic device automatically enters the screen off state. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises: 若基于所述投屏事项投屏成功,则将所述电子设备的显示亮度设置为最低显示亮度。If the screen projection is successful based on the screen projection matter, the display brightness of the electronic device is set to the lowest display brightness. 根据权利要求2所述的方法,其特征在于,在所述若基于所述投屏事项投屏成功,则将所述电子设备的显示亮度设置为最低显示亮度之后,还包括:The method according to claim 2, characterized in that after setting the display brightness of the electronic device to the lowest display brightness if the screen projection is successful based on the screen projection event, it also includes: 拦截针对所述电子设备的触摸屏的触摸事件。A touch event on a touch screen of the electronic device is intercepted. 根据权利要求3所述的方法,其特征在于,所述拦截针对所述电子设备的触摸屏的触摸事件,包括:The method according to claim 3, characterized in that intercepting a touch event on the touch screen of the electronic device comprises: 通过不检测作用于所述电子设备的触摸屏的触摸事件的方式,拦截针对所述电子设备的触摸屏的触摸事件。The touch events on the touch screen of the electronic device are intercepted by not detecting the touch events acting on the touch screen of the electronic device. 根据权利要求3所述的方法,其特征在于,所述拦截针对所述电子设备的触摸屏的触摸事件,包括:The method according to claim 3, characterized in that intercepting a touch event on the touch screen of the electronic device comprises: 通过不响应检测到的作用于所述电子设备的触摸屏的触摸事件的方式,拦截针对所述电子设备的触摸屏的触摸事件。The touch events on the touch screen of the electronic device are intercepted by not responding to the detected touch events acting on the touch screen of the electronic device. 根据权利要求3所述的方法,其特征在于,所述拦截针对所述电子设备的触摸屏的触摸事件,包括:The method according to claim 3, characterized in that intercepting a touch event on the touch screen of the electronic device comprises: 拦截作用于所述电子设备的触摸屏的滑动操作;和/或intercepting a sliding operation on a touch screen of the electronic device; and/or 拦截作用于所述电子设备的触摸屏的点击操作;和/或Intercepting a click operation on a touch screen of the electronic device; and/or 拦截作用于所述电子设备的触摸屏的按压操作。A pressing operation on a touch screen of the electronic device is intercepted. 根据权利要求2所述的方法,其特征在于,在所述若基于所述投屏事项投屏成功,则将所述电子设备的显示亮度设置为最低显示亮度之后,还包括:The method according to claim 2 is characterized in that after setting the display brightness of the electronic device to the lowest display brightness if the screen projection is successful based on the screen projection event, it also includes: 若投屏结束,则将所述电子设备的显示亮度从所述最低显示亮度调整为目标显示亮度,其中,所述目标显示亮度大于所述最低显示亮度。If the screen projection is completed, the display brightness of the electronic device is adjusted from the minimum display brightness to the target display brightness, wherein the target display brightness is greater than the minimum display brightness. 根据权利要求2所述的方法,其特征在于,在所述若基于所述投屏事项投屏成功,则将所述电子设备的显示亮度设置为最低显示亮度之后,还包括:The method according to claim 2, characterized in that after setting the display brightness of the electronic device to the lowest display brightness if the screen projection is successful based on the screen projection event, it also includes: 响应于针对所述电子设备的来电呼叫事件,将所述电子设备的显示亮度从所述最低显示亮度调整为目标显示亮度,其中,所述目标显示亮度大于所述最低显示亮度;或者In response to an incoming call event for the electronic device, adjusting the display brightness of the electronic device from the minimum display brightness to a target display brightness, wherein the target display brightness is greater than the minimum display brightness; or 响应于针对所述电子设备的电源键的第一按压事件,将所述电子设备的显示亮度从所述最低显示亮度调整为所述目标显示亮度。In response to a first pressing event on a power key of the electronic device, the display brightness of the electronic device is adjusted from the minimum display brightness to the target display brightness. 根据权利要求8所述的方法,其特征在于,在所述响应于针对所述电子设备的电源键的第一按压事件,将所述电子设备的显示亮度从所述最低显示亮度调整为所述目标显示亮度之后,还包括:The method according to claim 8, characterized in that after the step of adjusting the display brightness of the electronic device from the minimum display brightness to the target display brightness in response to the first pressing event of the power key of the electronic device, further comprising: 响应于针对所述电子设备的电源键的第二按压事件,将所述电子设备的显示亮度从所述目标显示亮度调整为所述最低显示亮度。In response to a second pressing event on a power key of the electronic device, the display brightness of the electronic device is adjusted from the target display brightness to the minimum display brightness. 根据权利要求8所述的方法,其特征在于,所述针对所述电子设备的来电呼叫事件,包括:The method according to claim 8, wherein the incoming call event for the electronic device comprises: 通过电话的方式针对所述电子设备的来电呼叫事件;或者An incoming call event to the electronic device via a telephone; or 通过语音通话的方式针对所述电子设备的来电呼叫事件;或者An incoming call event to the electronic device by way of a voice call; or 通过视频通话的方式针对所述电子设备的来电不呼叫事件。A no-call event for an incoming call to the electronic device is implemented by means of a video call. 根据权利要求1-10任一项所述的方法,其特征在于,在所述若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏之后,还包括:The method according to any one of claims 1 to 10, characterized in that after setting the screen off time of the electronic device to non-screen off if the screen projection is successful based on the screen projection event, it also includes: 若投屏结束,则将所述电子设备的息屏时间恢复为投屏成功前设置的初始息屏时间。If the screen projection is completed, the screen off time of the electronic device is restored to the initial screen off time set before the screen projection is successful. 根据权利要求1-10任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 10, characterized in that the method further comprises: 若基于所述投屏事项投屏成功,则从在所述电子设备的后台运行的应用程序中确定不满足预设类型的目标应用程序;If the screen projection is successful based on the screen projection event, determining a target application that does not meet the preset type from the applications running in the background of the electronic device; 关闭所述目标应用程序。Close the target application. 根据权利要求12所述的方法,其特征在于,所述若基于所述投屏事项投屏成功,则从在所述电子设备的后台运行的应用程序中确定不满足预设类型的目标应用程序,包括:The method according to claim 12, characterized in that if the screen projection is successful based on the screen projection event, determining a target application that does not meet a preset type from the applications running in the background of the electronic device comprises: 若基于所述投屏事项投屏成功,则获取所述电子设备的剩余电量;If the screen projection is successful based on the screen projection event, obtaining the remaining power of the electronic device; 若所述剩余电量低于剩余电量阈值,则从在所述电子设备的后台运行的应用程序中确定不满足预设 类型的目标应用程序。If the remaining power is lower than the remaining power threshold, determine from the application running in the background of the electronic device that the preset Type of target application. 根据权利要求12所述的方法,其特征在于,所述预设类型包括运行功耗低于功耗阈值的类型、即时通讯类型或者阅读类型。The method according to claim 12 is characterized in that the preset type includes a type whose running power consumption is lower than a power consumption threshold, an instant messaging type, or a reading type. 根据权利要求1-10任一项所述的方法,其特征在于,所述响应于投屏指令,创建所述电子设备的投屏事项,包括:The method according to any one of claims 1 to 10, characterized in that, in response to the screen projection instruction, creating a screen projection item of the electronic device comprises: 响应于投屏指令,确定所述投屏指令所指示的投屏方式;In response to a screen projection instruction, determining a screen projection mode indicated by the screen projection instruction; 基于所述投屏方式,创建所述电子设备的投屏事项。Based on the screen projection method, create a screen projection item for the electronic device. 根据权利要求15所述的方法,其特征在于,所述响应于投屏指令,确定所述投屏指令所指示的投屏方式,包括:The method according to claim 15, characterized in that, in response to the screen projection instruction, determining the screen projection mode indicated by the screen projection instruction comprises: 输出提示信息,其中,所述提示信息用于提示选择投屏方式;Outputting prompt information, wherein the prompt information is used to prompt the user to select a screen projection mode; 响应基于所述提示信息输入的选择操作,确定所述投屏方式。In response to a selection operation input based on the prompt information, the screen projection method is determined. 根据权利要求16所述的方法,其特征在于,所述响应基于所述提示信息输入的选择操作,确定所述投屏方式,包括:The method according to claim 16, wherein the step of determining the screen projection mode in response to a selection operation based on the prompt information input comprises: 响应基于所述提示信息输入的选择操作,从第一投屏方式和第二投屏方式中确定所述投屏方式,其中,所述第一投屏方式表征息屏投屏方式,所述第二投屏方式表征不息屏投屏方式。In response to a selection operation based on the prompt information input, the projection mode is determined from a first projection mode and a second projection mode, wherein the first projection mode represents a screen-off projection mode, and the second projection mode represents a screen-non-off projection mode. 一种投屏装置,其特征在于,应用于电子设备,所述装置包括:A screen projection device, characterized in that it is applied to an electronic device, and the device comprises: 投屏事项创建模块,用于响应于投屏指令,创建所述电子设备的投屏事项;A screen projection event creation module, used to create a screen projection event for the electronic device in response to a screen projection instruction; 息屏时间设置模块,用于若基于所述投屏事项投屏成功,则将所述电子设备的息屏时间设置为不息屏,其中,所述息屏时间用于指示所述电子设备自动进入息屏状态的时间。A screen-off time setting module is used to set the screen-off time of the electronic device to not turn off the screen if the screen projection is successful based on the screen projection event, wherein the screen-off time is used to indicate the time when the electronic device automatically enters the screen-off state. 一种电子设备,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-17任一项所述的方法。An electronic device, characterized in that it comprises a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 17. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。 A computer-readable storage medium, characterized in that program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the method according to any one of claims 1 to 17.
PCT/CN2023/121684 2022-12-29 2023-09-26 Screen mirroring method and apparatus, electronic device, and storage medium Ceased WO2024139478A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211707826.2A CN118276800A (en) 2022-12-29 2022-12-29 Screen projection method, device, electronic device and storage medium
CN202211707826.2 2022-12-29

Publications (1)

Publication Number Publication Date
WO2024139478A1 true WO2024139478A1 (en) 2024-07-04

Family

ID=91642259

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/121684 Ceased WO2024139478A1 (en) 2022-12-29 2023-09-26 Screen mirroring method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN118276800A (en)
WO (1) WO2024139478A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119052874A (en) * 2024-11-04 2024-11-29 四川酷比通信设备有限公司 Smart phone screen projection method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762471A (en) * 2018-05-30 2018-11-06 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN112346685A (en) * 2020-10-26 2021-02-09 努比亚技术有限公司 Screen-off and screen-projection control method and device and computer readable storage medium
CN114428599A (en) * 2022-01-30 2022-05-03 深圳创维-Rgb电子有限公司 Screen projection brightness control method, device, storage medium and screen projection device
WO2022126334A1 (en) * 2020-12-14 2022-06-23 华为技术有限公司 Wireless screen projection method, source-end device and destination-end device
CN115097926A (en) * 2022-06-16 2022-09-23 Oppo广东移动通信有限公司 Screen projection method, device, device, system and storage medium
CN115278842A (en) * 2022-08-08 2022-11-01 深圳传音控股股份有限公司 Mobile terminal screen projection method, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762471A (en) * 2018-05-30 2018-11-06 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN112346685A (en) * 2020-10-26 2021-02-09 努比亚技术有限公司 Screen-off and screen-projection control method and device and computer readable storage medium
WO2022126334A1 (en) * 2020-12-14 2022-06-23 华为技术有限公司 Wireless screen projection method, source-end device and destination-end device
CN114428599A (en) * 2022-01-30 2022-05-03 深圳创维-Rgb电子有限公司 Screen projection brightness control method, device, storage medium and screen projection device
CN115097926A (en) * 2022-06-16 2022-09-23 Oppo广东移动通信有限公司 Screen projection method, device, device, system and storage medium
CN115278842A (en) * 2022-08-08 2022-11-01 深圳传音控股股份有限公司 Mobile terminal screen projection method, mobile terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119052874A (en) * 2024-11-04 2024-11-29 四川酷比通信设备有限公司 Smart phone screen projection method and device
CN119052874B (en) * 2024-11-04 2025-01-24 四川酷比通信设备有限公司 Smart phone screen projection method and device

Also Published As

Publication number Publication date
CN118276800A (en) 2024-07-02

Similar Documents

Publication Publication Date Title
WO2020192311A1 (en) Master-slave server switching method and apparatus, electronic device and storage medium
CN107797841B (en) Window control method, device, terminal device and storage medium
US9817484B2 (en) Method for capturing screen content of mobile terminal and device thereof
CN107835322A (en) Interface display method, device, storage medium and terminal equipment
CN105847554A (en) Data processing method during abnormal shutdown of mobile terminal and mobile terminal
CN108153647A (en) log processing method, device, terminal device and storage medium
US7249024B2 (en) Resource saving preemption
CN110134237B (en) Interface control method and related equipment
CN106095065A (en) A kind of mode switching method and device
WO2024139478A1 (en) Screen mirroring method and apparatus, electronic device, and storage medium
CN112988246B (en) System switching method, device, electronic equipment and storage medium
CN113342415A (en) Timed task execution method and display device
US20200236206A1 (en) Recording method for mobile terminal and mobile terminal
CN111752632A (en) Control method and device of mobile terminal, mobile terminal and storage medium
CN108170585A (en) Log processing method and device, terminal equipment and storage medium
CN113282362B (en) Application management method, device, storage medium and terminal
US11907599B2 (en) Information processing method, apparatus, electronic device, and storage medium
CN118585398A (en) A display device and a device operation restart method
WO2024193371A1 (en) Program processing method and apparatus, and electronic device
WO2023197679A1 (en) Video playing method and apparatus, electronic device and storage medium
WO2023124634A1 (en) Display method and apparatus, electronic device, and storage medium
CN108196893A (en) Adjust the method, apparatus and terminal of terminal sleeping
CN107566215A (en) Wireless network disconnection detection method, device, storage medium and mobile terminal
CN111752634A (en) Control method, device, mobile terminal and storage medium of mobile terminal
WO2018010363A1 (en) Screen display control method and mobile terminal

Legal Events

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

Ref document number: 23909413

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE