Screen projection processing method and device, electronic equipment, storage medium and product
By automatically adjusting the brightness of the display screen in the screen projection mode, the problem of large power consumption after the screen projection of the electronic device is solved, and power saving is achieved without affecting the user experience.
Patent Information
- Application Number
- CN202510420993.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-07-22
AI Technical Summary
After an electronic device establishes a screen projection channel with the display device, the display screen is always on, resulting in high power consumption.
When the screen projection mode is the first screen projection mode, if the continuous operation is not reached to the preset time, the display screen brightness will be automatically reduced; the brightness will be restored during operation.
It effectively reduces the power consumption of electronic devices, while restoring appropriate brightness when needed to facilitate user operation.
Smart Images

Figure CN120353419A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of screen mirroring, and particularly to a screen mirroring processing method, apparatus, electronic device, storage medium and product. Background Art
[0002] Since the display screens of electronic devices such as mobile phones or tablets are relatively small, for convenient viewing, the display content of the electronic device can be screen-mirrored to a display device such as a TV or a monitor through a wired screen mirroring method. Wired screen mirroring is often implemented based on the mirror screen mirroring technology. Mirror screen mirroring means that the screen content of the electronic device is projected onto the display device in real time, so that the display content of the electronic device is exactly the same as that of the display device. Summary of the Invention
[0003] The embodiments of the present application provide a screen mirroring processing method, apparatus, electronic device, storage medium and product. The technical solutions are as follows:
[0004] On the one hand, the embodiments of the present application provide a screen mirroring processing method, and the method includes:
[0005] When a screen mirroring channel is established between the electronic device and the display device, based on the mode recognition information, determine the screen mirroring mode of the electronic device. The mode recognition information is information for recognizing the screen mirroring mode. The screen mirroring channel is used to mirror the screen content of the display screen of the electronic device to the display device, and after the electronic device establishes the screen mirroring channel with the display device, the display screen of the electronic device remains lit.
[0006] When the screen mirroring mode is the first screen mirroring mode and the continuous non-operation duration of the electronic device during the mirror screen mirroring reaches a preset duration, reduce the screen brightness of the display screen of the electronic device. The first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation is received on the electronic device during the mirror screen mirroring.
[0007] On the other hand, the embodiments of the present application provide a screen mirroring processing apparatus, and the apparatus includes:
[0008] A first determination module, configured to determine the screen mirroring mode of the electronic device based on the mode recognition information when a screen mirroring channel is established between the electronic device and the display device. The mode recognition information is information for recognizing the screen mirroring mode. The screen mirroring channel is used to mirror the screen content of the display screen of the electronic device to the display device, and after the electronic device establishes the screen mirroring channel with the display device, the display screen of the electronic device remains lit.
[0009] A reduction module is used to reduce the screen brightness of the display screen of the electronic device when the screen mirroring mode is the first screen mirroring mode and the continuous non - operation duration of the electronic device during the screen mirroring process reaches a preset duration. The first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the screen mirroring process.
[0010] On the other hand, an embodiment of the present application provides an electronic device, which includes a processor and a memory. At least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the screen mirroring processing method as described in the above aspect.
[0011] On the other hand, an embodiment of the present application provides a computer - readable storage medium, which stores at least one computer instruction. The at least one computer instruction is used to be executed by a processor to implement the screen mirroring processing method as described in the above aspect.
[0012] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions. The computer instructions are stored in a computer - readable storage medium; a processor reads the computer instructions from the computer - readable storage medium, and the processor executes the computer instructions to implement the screen mirroring processing method as described in the above aspect.
[0013] Since the display screen of the electronic device is always in the lit - screen state after the electronic device establishes a screen mirroring channel with the display device; therefore, the power consumption of the electronic device will be relatively large. In the embodiment of the present application, when the screen mirroring mode of the electronic device is the first screen mirroring mode and the continuous non - operation duration of the electronic device during the screen mirroring process reaches a preset duration, the screen brightness of the display screen of the electronic device is automatically reduced, thereby reducing the power consumption of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a schematic diagram of the implementation environment of the screen mirroring processing method shown in an exemplary embodiment of the present application;
[0015] Figure 2 is a flowchart of the screen mirroring processing method shown in an exemplary embodiment of the present application;
[0016] Figure 3 is a flowchart of the screen mirroring processing method shown in an exemplary embodiment of the present application;
[0017] Figure 4 is a schematic diagram of the display mode selection information shown in an exemplary embodiment of the present application;
[0018] Figure 5It is a flowchart of a screen mirroring processing method shown in an exemplary embodiment of the present application;
[0019] Figure 6 It is a flowchart of a screen mirroring processing method shown in an exemplary embodiment of the present application;
[0020] Figure 7 It is a flowchart of a screen mirroring processing method shown in an exemplary embodiment of the present application;
[0021] Figure 8 It is a structural block diagram of a screen mirroring processing device shown in an exemplary embodiment of the present application;
[0022] Figure 9 It is a structural block diagram of an electronic device shown in an exemplary embodiment of the present application. Detailed implementation manners
[0023] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0024] As used herein, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0025] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions. For example, the screen mirroring content of the electronic device involved in the present application is obtained under full authorization.
[0026] Please refer to Figure 1 , which shows a schematic diagram of the implementation environment of the screen mirroring processing method provided by an exemplary embodiment of the present application. The implementation environment includes: an electronic device 101 and a display device 102; the electronic device 101 establishes a screen mirroring channel with the display device 102, and mirrors the screen content of the display screen of the electronic device 101 to the display device 102 through the screen mirroring channel. Screen mirroring means that the screen content of the electronic device 101 is projected onto the display device 102 in real time, so that the display content of the electronic device 101 and the display content of the display device 102 are exactly the same. And after the electronic device 101 establishes a screen mirroring channel with the display device 102, the display screen of the electronic device 101 remains lit.
[0027] The electronic device 101 can mirror its screen to the display device 102 through a wired screen mirroring method or a wireless screen mirroring method. Correspondingly, the screen mirroring channel can be a wired screen mirroring channel or a wireless screen mirroring channel. In the embodiments of the present application, the wired screen mirroring channel is taken as an example for illustration.
[0028] The wired screen mirroring method means that the electronic device 101 establishes a wired screen mirroring channel with the display device 102 through a data cable, so as to mirror its screen to the display device 102 through the wired screen mirroring channel; the data cable can be any data cable that can adapt to the output interface of the electronic device 101 and the input interface of the display device 102 and can transmit screen mirroring content; for example, if the output interface of the electronic device 101 is a Universal Serial Bus (USB)-Hardware Interface Specification (TypeC), and the input interface of the display device 102 is a High Definition Multimedia Interface (HDMI), then the data cable can be a USB-TypeC to HDMI cable, where the USB-TypeC is used to connect the output interface of the electronic device 101, and the HDMI is used to connect the input interface of the display device 102. Another example is that if the output interface of the electronic device 101 is HDMI and the input interface of the display device 102 is HDMI, then the data cable can be an HDMI-HDMI cable, with one end of the HDMI-HDMI cable connected to the output interface of the electronic device 101 and the other end connected to the input interface of the display device 102.
[0029] The wireless screen mirroring method means that the electronic device 101 establishes a wireless screen mirroring channel with the display device 102 through a wireless network, so as to mirror its screen to the display device 102 through the wireless screen mirroring channel. For example, the electronic device 101 and the display device 102 are connected to the same local area network, and a wireless screen mirroring channel is established through the routing device in the local area network. Among them, the electronic device 101 can be a mobile phone, a tablet computer, a laptop computer, etc.; the display device 102 can be a television, a monitor, an electronic whiteboard, a projection screen, etc.
[0030] The screen mirroring processing method of the embodiments of the present application can be applied to the following scenarios:
[0031] Scenario 1: Applied to a meeting scenario:
[0032] The electronic device 101 can be a laptop computer used by a meeting presenter, and the display device 102 can be a projection screen; then the laptop computer can mirror the meeting presentation (PowerPoint, PPT) to the projection screen, so that the participants can view the content of the meeting PPT through the projection screen, thereby realizing the explanation of the meeting PPT.
[0033] Scenario 2: Applied in the scenario of watching movies and TV series:
[0034] The electronic device 101 can be a mobile phone or a tablet computer used by the user, and the display device 102 can be a TV or a monitor; then the mobile phone or the tablet computer projects the movie and TV video onto the TV or the monitor, so as to watch the movie and TV video through the TV or the monitor, and thus enjoy the large-screen viewing experience.
[0035] Scenario 3: Applied in the classroom teaching scenario:
[0036] The electronic device 101 can be a laptop computer used by the teacher, and the display device 102 can be an electronic whiteboard; then the laptop computer projects the teaching courseware onto the electronic whiteboard, so that the students can learn more intuitively based on the teaching courseware projected on the electronic whiteboard.
[0037] Scenario 4: Applied in the commercial promotion scenario:
[0038] The electronic device 101 can be a mobile phone used by the merchant, and the display device 102 can be a monitor set in a public place; then the mobile phone used by the merchant projects the advertisement content onto the monitor, so as to attract consumers and improve the conversion rate of the product corresponding to the advertisement content of the merchant.
[0039] The embodiments of the present application can be applied to any screen mirroring scenario. The above four scenarios are only examples and do not specifically limit the screen mirroring scenario.
[0040] Please refer to Figure 2 , which shows a flowchart of a screen mirroring processing method provided by an exemplary embodiment of the present application. The method may include the following steps:
[0041] Step 201: When a screen mirroring channel is established between the electronic device and the display device, the electronic device determines the screen mirroring mode of the electronic device based on the mode recognition information. The mode recognition information is information for recognizing the screen mirroring mode. The screen mirroring channel is used to mirror the screen content of the display screen of the electronic device to the display device, and after the electronic device establishes the screen mirroring channel with the display device, the display screen of the electronic device remains on.
[0042] The screen mirroring channel can be a wired screen mirroring channel or a wireless screen mirroring channel. The screen mirroring mode includes a first screen mirroring mode and a second screen mirroring mode. The first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the mirroring process. The second screen mirroring mode is a mode in which the screen brightness remains unchanged during the mirroring process. When the screen mirroring mode is the first screen mirroring mode, step 202 is executed; when the screen mirroring mode is the second screen mirroring mode, the electronic device keeps the screen brightness of the display screen of the electronic device unchanged during the mirroring process.
[0043] Step 202: When the screen mirroring mode is the first screen mirroring mode and the continuous non - operation duration of the electronic device during the screen mirroring process reaches a preset duration, the electronic device reduces the screen brightness of the display screen of the electronic device. The first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the screen mirroring process.
[0044] The preset duration can be set by the system default or by the user. When the preset duration is set by the user, the user can set the preset duration through the setting interface. Correspondingly, this process can be as follows: In response to the first setting instruction, the electronic device displays a duration setting interface. The duration setting interface includes a first input box, and the user can input a duration in the first input box. The electronic device obtains the input duration in the first input box and determines the input duration as the preset duration; and / or, the duration setting interface includes a duration selection axis, and the user can select a duration by sliding the time selection axis. The electronic device obtains the selected duration and determines the selected duration as the preset duration. For example, the preset duration can be 10 seconds, 15 seconds, 20 seconds, or 30 seconds, etc.
[0045] Since the display screen of the electronic device remains on after the electronic device establishes a screen mirroring channel with the display device, the power consumption of the electronic device will be relatively large. In the embodiment of the present application, when the screen mirroring mode of the electronic device is the first screen mirroring mode and the continuous non - operation duration of the electronic device during the screen mirroring process reaches the preset duration, the screen brightness of the display screen of the electronic device is automatically reduced, thereby reducing the power consumption of the electronic device.
[0046] Please refer to Figure 3 , which shows a flowchart of a screen mirroring processing method provided by an exemplary embodiment of the present application. The method may include the following steps:
[0047] Step 301: When a screen mirroring channel is established between the electronic device and the display device, the electronic device displays mode selection information. The mode selection information includes mode information of at least two candidate screen mirroring modes. The screen mirroring channel is used to mirror the screen content of the display screen of the electronic device to the display device, and after the electronic device establishes a screen mirroring channel with the display device, the display screen of the electronic device remains on.
[0048] The at least two candidate screen mirroring modes include a first screen mirroring mode and a second screen mirroring mode. The first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the screen mirroring process. The mode information of the first screen mirroring mode is used to indicate the first screen mirroring mode, and the mode information of the first screen mirroring mode includes a mode identifier of the first screen mirroring mode. The mode information of the first screen mirroring mode may also include description information of the first screen mirroring mode and / or characteristic information of the first screen mirroring mode, etc.
[0049] The second screen mirroring mode is a mode that keeps the screen brightness unchanged during the screen mirroring process. The mode information of the second screen mirroring mode is used to indicate the second screen mirroring mode, and the mode information of the second screen mirroring mode includes the mode identifier of the second screen mirroring mode. The mode information of the second screen mirroring mode may also include the description information and / or the feature information of the second screen mirroring mode. For example, please continue to refer to Figure 4 , the mode selection information further includes the mode identifier (Mode 2) of the second screen mirroring mode and the description information of the second screen mirroring mode (the display screen of the electronic device remains in a high brightness state).
[0050] In response to the mode information of the first screen mirroring mode among at least two candidate screen mirroring modes being triggered, step 302 is executed; in response to the mode information of the second screen mirroring mode among at least two candidate screen mirroring modes being triggered, the electronic device determines that the screen mirroring mode is the second screen mirroring mode. In the second screen mirroring mode, the screen brightness of the display screen of the electronic device remains unchanged during the screen mirroring process.
[0051] For example, please refer to Figure 4 , when the electronic device establishes a screen mirroring channel with the display device, the electronic device displays mode selection information, and the mode selection information includes the mode identifier (Mode 1) of the first screen mirroring mode and the description information of the first screen mirroring mode (automatically reduces the brightness when there is no touch operation).
[0052] The screen mirroring channel is a wired screen mirroring channel or a wireless screen mirroring channel. In a possible implementation manner, the process of the electronic device mirroring the screen to the display device may be: when the electronic device is connected to the display device through a data cable, the electronic device establishes a screen mirroring channel with the display device through the data cable; obtains the screen content of the display screen of the electronic device, and mirrors the screen content to the display device through the screen mirroring channel for the display device to display the screen content.
[0053] One end of the data cable is connected to the output interface of the electronic device, and the other end is connected to the input interface of the display device. Correspondingly, the data cable can be any data cable that can adapt to the output interface of the electronic device and the input interface of the display device and can transmit the screen mirroring content; for example, if the output interface of the electronic device is USB-TpyeC and the input interface of the display device is HDMI, the data cable can be a USB-TpyeC to HDMI cable, where USB-TpyeC is used to connect the output interface of the electronic device and HDMI is used to connect the input interface of the display device. Another example is that if the output interface of the electronic device is HDMI and the input interface of the display device is HDMI, the data cable can be an HDMI-HDMI cable, and one end of the HDMI-HDMI cable is connected to the output interface of the electronic device and the other end is connected to the input interface of the display device.
[0054] In another possible implementation, the process of the electronic device casting the screen to the display device can be as follows: The electronic device and the display device are connected to the same local area network, and a wireless screen mirroring channel is established through a routing device in the local area network; the screen content of the display screen of the electronic device is obtained, and the screen content is mirror-cast to the display device through the screen mirroring channel, and the display device displays the screen content.
[0055] When the electronic device establishes a screen mirroring channel with the display device, the electronic device can automatically mirror-cast the screen content of the display screen of the electronic device to the display device, and the display device displays the screen content; or, when the electronic device establishes a screen mirroring channel with the display device, the electronic device does not automatically mirror-cast the screen content of the display screen of the electronic device to the display device, but performs the screen mirroring operation after the user triggers a screen mirroring instruction; the electronic device responds to the screen mirroring instruction, and casts the screen content of the display screen of the electronic device to the display device, and the display device displays the screen content.
[0056] In the case where the electronic device mirror-casts the screen to the display device through a wired screen mirroring channel, when one end of the connection line is connected to the output interface of the electronic device and the other end is connected to the input interface of the display device, the electronic device displays the display mode selection information. In the case where the electronic device mirror-casts the screen to the display device through a wireless screen mirroring channel, when the electronic device searches for the display device in the local area network, the electronic device displays the display mode selection information.
[0057] Step 302: In response to the mode information of the first screen mirroring mode among at least two candidate screen mirroring modes being triggered, the electronic device determines that the screen mirroring mode is the first screen mirroring mode, and the first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the screen mirroring process.
[0058] After the user selects the second screen mirroring mode, the electronic device also supports switching of the screen mirroring mode; correspondingly, the process can be as follows: The electronic device responds to the mode switching instruction, and the electronic device switches the screen mirroring mode of the electronic device from the second screen mirroring mode to the first screen mirroring mode, and then executes step 303.
[0059] In a possible implementation, the electronic device displays a display mode switching option, and the display mode switching option is used to switch the screen mirroring mode of the electronic device. In response to the display mode switching option being triggered, it is determined that the mode switching instruction is received. Among them, the display mode switching option can be displayed in the status bar of the electronic device; or, the display mode switching option is displayed in the current interface of the electronic device.
[0060] In the embodiments of the present application, through the display mode switching option, the user can trigger the switching of the screen mirroring mode of the electronic device by triggering the mode switching option, thereby facilitating the user to switch the screen mirroring mode of the electronic device.
[0061] Step 303: The electronic device determines the duration of continuous inactivity of the electronic device during the mirroring projection process.
[0062] The electronic device determines the time when the electronic device was last operated during the mirroring projection process. Based on the current time and the time when the electronic device was last operated, the electronic device determines the duration of continuous inactivity of the electronic device. When the duration reaches the preset duration, step 304 is executed; when the duration does not reach the preset duration, continue to wait until the duration of continuous inactivity of the electronic device during the mirroring projection process reaches the preset duration, and then step 304 is executed.
[0063] Step 304: When the duration reaches the preset duration, the electronic device reduces the screen brightness of the display screen of the electronic device.
[0064] In a possible implementation, the step of the electronic device reducing the screen brightness of the display screen of the electronic device may be: the electronic device reduces the screen brightness of the display screen of the electronic device to a first brightness, and the first brightness is the lowest brightness supported by the display screen of the electronic device. For example, please refer to Figure 5 , the electronic device reduces the screen brightness of the display screen of the electronic device to the lowest brightness. In the embodiments of the present application, the electronic device directly reduces the screen brightness of the display screen of the electronic device to the lowest brightness, which can not only reduce the power consumption of the electronic device, but also enable the user to watch the display device without being affected by the screen of the electronic device.
[0065] In the case where the brightness adjustment mode of the electronic device is the first adjustment mode, the step of the electronic device reducing the screen brightness of the display screen of the electronic device may be: the electronic device adjusts the brightness adjustment mode of the electronic device from the first adjustment mode to the second adjustment mode. The first brightness adjustment mode is a mode of automatically adjusting the screen brightness based on the ambient brightness, and the second adjustment mode is a mode of canceling the automatic adjustment of the screen brightness based on the ambient brightness; in the second adjustment mode, the electronic device reduces the screen brightness of the display screen of the electronic device to a first brightness, and the first brightness is the lowest brightness supported by the display screen of the electronic device.
[0066] In another possible implementation, the electronic device reduces the screen brightness of the display screen of the electronic device by a first preset brightness. The first preset brightness can be set by the system by default, and the first preset brightness can be set and changed as needed. In the embodiments of the present application, the first preset brightness is not specifically limited.
[0067] The first preset brightness can also be set by the user. The process for the user to set the first preset brightness can be as follows: In response to a second setting instruction, the electronic device displays a brightness setting interface. The brightness setting interface includes a second input box, and the user can enter a brightness value in the second input box. The electronic device obtains the brightness value entered in the second input box and determines the entered brightness value as the first preset brightness. The brightness setting interface also includes a brightness selection axis, and the user can slide the brightness selection axis to select a brightness value. The electronic device obtains the selected brightness value and determines the selected brightness value as the first preset brightness.
[0068] The first preset brightness can also be set by the electronic device based on the current screen brightness of the display screen of the electronic device, and the first preset brightness can also be set by the electronic device based on the remaining battery power. In a possible implementation, when the first preset brightness is set by the electronic device based on the current screen brightness of the display screen of the electronic device, the first preset brightness is positively correlated with the current screen brightness. That is, the greater the current screen brightness, the greater the first preset brightness; the smaller the current screen brightness, the smaller the first preset brightness. Thus, when the current screen brightness of the display screen of the electronic device is relatively high, the screen brightness of the display screen of the electronic device can be significantly reduced, and then the screen brightness of the display screen of the electronic device can be reduced to a more appropriate brightness, so that the user is not affected by the bright screen of the electronic device when viewing the display device.
[0069] In another possible implementation, when the first preset brightness is set by the electronic device based on the remaining battery power, the first preset brightness is positively correlated with the remaining battery power. That is, the greater the remaining battery power, the greater the first preset brightness; the smaller the remaining battery power, the smaller the first preset brightness. Thus, the standby time of the electronic device can be extended.
[0070] Step 305: After reducing the screen brightness of the display screen of the electronic device, when the electronic device is operated during the mirror screen projection process, the electronic device increases the screen brightness of the display screen of the electronic device.
[0071] When the electronic device is operated during the mirror screen projection process, the electronic device determines the operation object of the operation on the electronic device. When the operation object is the display screen of the electronic device, the electronic device increases the screen brightness of the display screen of the electronic device.
[0072] In a possible implementation, the step for the electronic device to increase the screen brightness of the display screen of the electronic device can be: The electronic device increases the screen brightness of the display screen of the electronic device to a third brightness, and the third brightness is any brightness greater than the current screen brightness. For example, the current screen brightness is the first brightness (the lowest brightness), and the third brightness is the average brightness of the lowest brightness and the highest brightness (the medium brightness); Please continue to refer to Figure 5, the electronic device increases the screen brightness of the display screen of the electronic device to medium brightness. Alternatively, the third brightness is the brightness obtained by increasing the first brightness by a second preset brightness. Alternatively, the third brightness is the screen brightness before reducing the screen brightness of the display screen of the electronic device, so as to realize that during the mirror screen projection process, when the user operates the display screen of the electronic device, the brightness of the display screen of the electronic device is restored to the original brightness before the reduction, thus facilitating the user to operate the electronic device.
[0073] The operation object can also be a control device; correspondingly, when the operation object is a control device, the electronic device keeps the screen brightness of the display screen of the electronic device unchanged, and the control device is used to establish a short-distance communication connection with the electronic device and operate the electronic device through the short-distance communication connection. For example, the control device is a Bluetooth device that establishes a Bluetooth communication connection with the electronic device, so that when the electronic device can be controlled by the Bluetooth device, the display screen of the electronic device can continue to be in a low-brightness state, thereby further saving the power consumption of the electronic device.
[0074] For example, when the electronic device displays a conference PPT, the user can operate the electronic device through the Bluetooth device to make the conference PPT turn the page, and the screen brightness of the display screen of the electronic device continues to remain at the lowest brightness.
[0075] The operation object can also be an external device of the electronic device, and the external device can be a keyboard or a mouse, etc.; when the object is an external device, the electronic device increases the screen brightness of the display screen of the electronic device, thus facilitating the user to operate the electronic device.
[0076] Step 306: After increasing the screen brightness of the display screen of the electronic device, the electronic device re-determines the duration of continuous non-operation of the electronic device.
[0077] After increasing the screen brightness of the display screen of the electronic device, the electronic device determines the time when the electronic device was last operated during the mirror screen projection process, and based on the current time and the time when it was last operated, determines the duration of continuous non-operation of the electronic device.
[0078] When the duration reaches the preset duration, step 307 is executed; when the duration does not reach the preset duration, continue to wait until the duration of non-operation of the electronic device during the mirror screen projection process reaches the preset duration, and then step 307 is executed.
[0079] Step 307: When the duration reaches the preset duration, the electronic device reduces the screen brightness of the display screen of the electronic device again.
[0080] The steps for the electronic device to further lower the screen brightness of the display screen of the electronic device may be as follows: The electronic device adjusts the brightness adjustment mode of the electronic device from the first adjustment mode to the second adjustment mode. The first brightness adjustment mode is a mode of automatically adjusting the screen brightness based on the ambient brightness, and the second adjustment mode is a mode of canceling the automatic adjustment of the screen brightness based on the ambient brightness; In the second adjustment mode, the screen brightness of the display screen of the electronic device is lowered to a first brightness, and the first brightness is the lowest brightness supported by the display screen of the electronic device; For example, please continue to refer to Figure 5 , the electronic device further lowers the brightness of the display screen of the electronic device to the lowest brightness. Or, the electronic device lowers the screen brightness of the display screen of the electronic device by a first preset brightness.
[0081] It should be noted that steps 305-307 are periodically executed during the mirroring screen projection process; and when the electronic device finishes projecting the screen to the display device, step 308 is executed.
[0082] Step 308: When the electronic device finishes projecting the screen to the display device, the electronic device increases the screen brightness of the display screen of the electronic device.
[0083] The end of screen projection means that the screen projection channel is disconnected or an end instruction is received. In the case where the screen projection channel is a wired screen projection channel, the disconnection of the screen projection channel means that the data cable between the electronic device and the display device is disconnected; For example, the output interface of the electronic device is disconnected from one end of the data cable; Or, the input interface of the display device is disconnected from the other end of the data cable.
[0084] The brightness modes of the display screen of the electronic device include a first adjustment mode and a second adjustment mode. The first adjustment mode is a mode of automatically adjusting the screen brightness based on the ambient brightness; The second adjustment mode is a mode of canceling the automatic adjustment of the screen brightness based on the ambient brightness. Correspondingly, in the case where the brightness mode of the electronic device is the second brightness mode, when the electronic device finishes projecting the screen to the display device, the steps for the electronic device to increase the screen brightness of the display screen of the electronic device may be as follows: When the electronic device finishes projecting the screen to the display device, the electronic device restores the screen brightness of the display screen of the electronic device to a second brightness, and the second brightness is the brightness of the display screen of the electronic device before projecting the screen to the display device; For example, please continue to refer to Figure 5 , the electronic device restores the screen brightness of the display screen of the electronic device to the second brightness.
[0085] When the brightness mode of the electronic device is the first brightness mode, when the electronic device finishes mirroring to the display device, the steps for the electronic device to increase the screen brightness of the display screen of the electronic device can be: when the electronic device finishes mirroring to the display device, determine the ambient brightness of the environment where the electronic device is located, determine the screen brightness that matches the ambient brightness, and adjust the screen brightness of the display screen of the electronic device to the determined screen brightness.
[0086] Since the display screen of the electronic device is always on after the electronic device establishes a mirroring channel with the display device, it will cause relatively high power consumption of the electronic device. In the embodiments of the present application, when the mirroring mode of the electronic device is the first mirroring mode, when the duration of continuous non-operation of the electronic device during the mirroring process reaches a preset duration, the screen brightness of the display screen of the electronic device is automatically reduced, thereby reducing the power consumption of the electronic device. When the user operates the electronic device, the electronic device increases the screen brightness of the display screen, thereby facilitating the user's operation.
[0087] Please refer to Figure 6 , which shows a flowchart of a mirroring processing method provided by an exemplary embodiment of the present application. The method may include the following steps:
[0088] Step 601: When the electronic device establishes a mirroring channel with the display device, the electronic device determines mode recognition information. The mode recognition information is used to determine the mirroring mode. The mirroring channel is used to mirror the screen content of the display screen of the electronic device to the display device, and after the electronic device establishes a mirroring channel with the display device, the display screen of the electronic device remains on.
[0089] The mode recognition information includes at least one of mirroring content, mode indication information, and external control information. The mirroring content is the content that the electronic device mirrors to the display device in real time. The mode indication information is sent by the display device through the mirroring channel, and the mode indication information is used to indicate the mirroring mode. The external control information is used to indicate whether the electronic device is connected to an external expansion device.
[0090] The mode recognition information further includes at least one of the remaining battery power of the electronic device, the historical mirroring mode, the ambient brightness of the environment where the electronic device is located, the charging state of the electronic device, and mirroring scenario information. The mirroring scenario information is used to indicate the mirroring scenario. For example, the mirroring scenario information includes a meeting scenario, a movie-watching and drama-chasing scenario, a classroom teaching scenario, or a commercial promotion scenario, etc.
[0091] Step 602: The electronic device determines the mirroring mode of the electronic device based on the mode recognition information.
[0092] The electronic device determines the mirroring mode of the electronic device based on the mode recognition information, which can be implemented by at least one of the following methods, including:
[0093] In the first implementation manner, the pattern recognition information includes the screen mirroring content. Correspondingly, the steps for the electronic device to determine the screen mirroring mode of the electronic device based on the pattern recognition information can be: The electronic device predicts the number of times the electronic device is operated during the screen mirroring process based on the screen mirroring content; when the number of operations is less than the preset number of times, it is determined that the screen mirroring mode of the electronic device is the first screen mirroring mode; when the number of operations is not less than the preset number of times, it is determined that the screen mirroring mode of the electronic device is the second screen mirroring mode.
[0094] For example, the screen mirroring content is a video. Since the electronic device does not need to be frequently operated during the video playback, when mirroring the video, the screen mirroring mode is determined to be the first screen mirroring mode. Another example is that the screen mirroring content is a game. Since the electronic device needs to be frequently operated during the game play, when mirroring the game, the screen mirroring scenario is determined to be the second screen mirroring mode.
[0095] In the embodiments of the present application, determining the screen mirroring mode based on the screen mirroring content can implement selecting a screen mirroring mode adapted to the screen mirroring content.
[0096] In the second implementation manner, the pattern recognition information includes the mode indication information sent by the display device through the screen mirroring channel. Correspondingly, the steps for the electronic device to determine the screen mirroring mode of the electronic device based on the pattern recognition information can be: When the electronic device enables the reverse control function and the screen mirroring mode indicated by the mode indication information is the first screen mirroring mode, the electronic device determines that the screen mirroring mode of the electronic device is the first screen mirroring mode. The reverse control function refers to the function of the display device controlling the electronic device; when the electronic device enables the reverse control function and the screen mirroring mode indicated by the mode indication information is the second screen mirroring mode, the electronic device determines that the screen mirroring mode of the electronic device is the second screen mirroring mode.
[0097] In the embodiments of the present application, the display device can reversely control the electronic device and indicate the screen mirroring mode of the electronic device, which improves the flexibility of mode control during the screen mirroring process.
[0098] In the third implementation manner, the pattern recognition information includes the external control information of the electronic device, and the external control information is used to indicate whether the electronic device is connected to an external expansion device. Correspondingly, the steps for the electronic device to determine the screen mirroring mode of the electronic device based on the pattern recognition information can be: When the external expansion information is used to indicate that the electronic device is connected to an external control device, the electronic device determines that the screen mirroring mode of the electronic device is the first screen mirroring mode; when the external expansion information is used to indicate that the electronic device is not connected to an external control device, the electronic device determines that the screen mirroring mode of the electronic device is the second screen mirroring mode.
[0099] When the electronic device is connected to an external control device, the user can control the electronic device through an external expansion device. In this case, the screen mirroring mode is set to the first screen mirroring mode to save the power consumption of the electronic device. When the device is not connected to an external control device, the user needs to control the electronic device by operating the electronic device. In this case, the screen mirroring mode is set to the second screen mirroring mode to facilitate the user's operation of the electronic device.
[0100] The fourth implementation method: The mode decision information includes the remaining power of the electronic device. When the remaining power is less than the preset power, the electronic device determines the screen mirroring mode as the first screen mirroring mode; when the remaining power is less than the preset power, the electronic device determines the screen mirroring mode as the second screen mirroring mode.
[0101] In the embodiments of the present application, when the remaining power of the electronic device is relatively high, the second screen mirroring mode can be used for screen mirroring, so as to keep the display screen of the electronic device in a high brightness state, thereby facilitating the user's operation of the electronic device; when the remaining power of the electronic device is relatively low, the first screen mirroring mode can be used for screen mirroring, so that when the electronic device has not been operated for a long time, the screen state of the electronic device is in a low brightness state, thereby saving the power consumption of the electronic device.
[0102] The fifth implementation method: The mode decision information includes the historical screen mirroring mode of the electronic device. When the historical screen mirroring mode is the first screen mirroring mode, the electronic device determines the screen mirroring mode as the first screen mirroring mode; when the historical screen mirroring mode is the second screen mirroring mode, the electronic device determines the screen mirroring mode as the second screen mirroring mode.
[0103] When the historical screen mirroring mode of the electronic device includes multiple screen mirroring modes, for example, when the historical screen mirroring mode of the electronic device includes both the first screen mirroring mode and the second screen mirroring mode, the electronic device can determine the screen mirroring mode as the first screen mirroring mode; or, the electronic device respectively determines the usage frequency of the first screen mirroring mode and the usage frequency of the second screen mirroring mode. When the usage frequency of the first screen mirroring mode is not less than the usage frequency of the second screen mirroring mode, it determines the screen mirroring mode as the first screen mirroring mode; when the usage frequency of the first screen mirroring mode is less than the usage frequency of the second screen mirroring mode, it determines the screen mirroring mode as the second screen mirroring mode. Or, the electronic device determines the previous screen mirroring mode of the electronic device based on the historical screen mirroring mode; when the previous screen mirroring mode is the first screen mirroring mode, it determines the screen mirroring mode as the first screen mirroring mode; when the previous screen mirroring mode is the second screen mirroring mode, it determines the screen mirroring mode as the second screen mirroring mode.
[0104] In the embodiments of the present application, the screen mirroring mode is determined based on the historical screen mirroring mode of the electronic device, so that the screen mirroring mode that the user likes to use can be determined, and the accuracy of determining the screen mirroring mode is improved.
[0105] The sixth implementation method: The mode decision information includes the ambient brightness of the environment where the electronic device is located. When the ambient brightness is higher than the third preset brightness, the electronic device determines that the screen mirroring mode is the first screen mirroring mode; when the ambient brightness is not higher than the third preset brightness, the electronic device determines that the screen mirroring mode is the second screen mirroring mode.
[0106] In the embodiments of the present application, when the ambient brightness is relatively high, the high brightness state of the screen of the electronic device may have less impact on the user's viewing of the display device. On the contrary, when the ambient brightness is relatively low, the high brightness state of the screen of the electronic device has a greater impact on the user's viewing of the display device. Therefore, automatically determining the screen mirroring mode based on the ambient brightness can ensure that the user is not affected by the screen brightness of the electronic device when viewing the display device.
[0107] The seventh implementation method: The mode decision information includes the charging state of the electronic device. When the charging state is not charging, the electronic device determines that the screen mirroring mode is the first screen mirroring mode; when the charging state is charging, the electronic device determines that the screen mirroring mode is the second screen mirroring mode.
[0108] In the embodiments of the present application, when the electronic device is in the charging state, the high brightness state of the display screen of the electronic device has less impact on the standby time of the electronic device; while when the electronic device is in the non-charging state, the high brightness state of the display screen of the electronic device has a greater impact on the standby time of the electronic device. At this time, using the first screen mirroring mode can save the power consumption of the electronic device.
[0109] The eighth implementation method: The mode decision information includes screen mirroring scenario information. The electronic device determines the screen mirroring mode adapted to the screen mirroring scenario information based on the screen mirroring scenario information, and determines the screen mirroring mode adapted to the screen mirroring scenario information as the screen mirroring mode of the electronic device.
[0110] In a possible implementation method, different screen mirroring scenario information corresponds to different screen mirroring modes; correspondingly, the step of the electronic device determining the screen mirroring mode adapted to the screen mirroring scenario information based on the screen mirroring scenario information may be: The electronic device determines the screen mirroring mode adapted to the screen mirroring scenario information from the screen mirroring scenario information and the screen mirroring mode. For example, the commercial promotion scenario and the movie and TV drama viewing correspond to the first screen mirroring mode, and the classroom teaching scenario and the meeting scenario correspond to the second screen mirroring scenario.
[0111] In another possible implementation, the electronic device predicts the number of operations of the electronic device during the mirror screen projection process based on the screen projection scenario information; when the number of operations of the electronic device is less than the preset number, the screen projection mode is determined to be the first screen projection mode; when the number of operations of the electronic device is not less than the preset number, the screen projection mode is determined to be the second screen projection mode. For example, the electronic device stores a prediction model, and the prediction model is used to predict the number of operations of the electronic device during the mirror screen projection process; correspondingly, the step of the electronic device predicting the number of operations of the electronic device during the mirror screen projection process based on the screen projection scenario information can be: the electronic device inputs the screen projection scenario information into the prediction model and outputs the number of operations during the mirror screen projection process.
[0112] In the embodiments of the present application, the screen projection mode is automatically determined based on the screen projection scenario information, so that the screen projection mode suitable for the current screen projection scenario can be determined.
[0113] It should be noted that when the mode decision information includes at least two of the above information, at least two of the information can be used to determine the screen projection mode; for example, the mode decision information includes the remaining battery power and the charging state of the electronic device; then when the remaining battery power is less than the preset power and the charging state is not charging, the electronic device determines the screen projection mode to be the first screen projection mode, and when the remaining battery power is not less than the preset power or the charging electronic device is charging, the screen projection mode is determined to be the second screen projection mode.
[0114] Step 603: When the screen projection mode is the first screen projection mode, the electronic device determines the duration of no operation. The first screen projection mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the mirror screen projection process.
[0115] In some embodiments, this step is the same as step 303 and will not be elaborated here.
[0116] Step 604: When the duration reaches the preset duration, the electronic device reduces the screen brightness of the display screen of the electronic device during the mirror screen projection process.
[0117] In some embodiments, this step is the same as step 304 and will not be elaborated here.
[0118] Step 605: After reducing the screen brightness of the display screen of the electronic device, when the electronic device is operated during the mirror screen projection process, the screen brightness of the display screen of the electronic device is increased.
[0119] In some embodiments, this step is the same as step 305 and will not be elaborated here.
[0120] Step 606: After increasing the screen brightness of the display screen of the electronic device, the electronic device re-determines the duration of no operation.
[0121] In some embodiments, this step is the same as step 306, and will not be elaborated here.
[0122] Step 607: When the duration reaches the preset duration, the electronic device reduces the screen brightness of the display screen of the electronic device again.
[0123] In some embodiments, this step is the same as step 307, and will not be elaborated here.
[0124] Step 608: When the screen mirroring from the electronic device to the display device ends, the electronic device increases the screen brightness of the display screen of the electronic device.
[0125] In some embodiments, this step is the same as step 308, and will not be elaborated here.
[0126] Since the display screen of the electronic device remains on after the electronic device establishes a screen mirroring channel with the display device, the power consumption of the electronic device is relatively high. In the embodiments of the present application, when the screen mirroring mode of the electronic device is the first screen mirroring mode, when the duration of continuous inactivity of the electronic device during the mirror screen mirroring reaches the preset duration, the screen brightness of the display screen of the electronic device is automatically reduced, thereby reducing the power consumption of the electronic device. When the user operates the electronic device, the electronic device increases the screen brightness of the display screen, thus facilitating the user's operation. Moreover, the user manually selects the screen mirroring mode, which can ensure that the screen mirroring mode of the electronic device meets the user's needs.
[0127] Please refer to Figure 7 , which shows a flowchart of a screen mirroring processing method provided by an exemplary embodiment of the present application. The method may include the following steps:
[0128] Step 701: When there is a screen mirroring channel established between the electronic device and the display device, the electronic device determines mode recognition information. The screen mirroring channel is used to mirror the screen content of the display screen of the electronic device to the display device, and after the electronic device establishes a screen mirroring channel with the display device, the display screen of the electronic device remains on.
[0129] In some embodiments, this step is the same as step 301 or 601, and will not be elaborated here.
[0130] Step 702: The electronic device determines the screen mirroring mode of the electronic device based on the mode recognition information.
[0131] In some embodiments, this step is the same as step 302 or 602, and will not be elaborated here.
[0132] Step 703: When the screen mirroring mode is the first screen mirroring mode and the continuous non - operation duration of the electronic device during the screen mirroring process reaches a preset duration, the electronic device reduces the screen brightness of the display screen of the electronic device. The first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the screen mirroring process.
[0133] In some embodiments, this step can be implemented through Steps 303 - 304, which will not be elaborated here.
[0134] Step 704: In response to a mode - switching instruction, the electronic device switches the screen mirroring mode from the first screen mirroring mode to the second screen mirroring mode. The second screen mirroring mode is a mode in which the screen brightness remains unchanged during the screen mirroring process.
[0135] In a possible implementation, the electronic device displays a mode - switching option; the mode - switching option is used to switch the screen mirroring mode of the electronic device. In response to the mode - switching option being triggered, it is determined that a mode - switching instruction is received. Among them, the mode - switching option can be displayed in the status bar of the electronic device; or, the mode - switching option is displayed in the current interface of the electronic device.
[0136] In the embodiments of the present application, by displaying the mode - switching option, the user can trigger the switching of the screen mirroring mode of the electronic device by triggering the mode - switching option, thereby facilitating the user to switch the screen mirroring mode of the electronic device.
[0137] In another possible implementation, during the screen mirroring process, the electronic device periodically obtains mode recognition information. When the mode indicated by the mode recognition information changes, it is determined that a mode - switching instruction is received.
[0138] In the embodiments of the present application, during the screen mirroring process, the electronic device can freely switch the screen mirroring mode, so as to be able to switch to a screen mirroring mode suitable for the current screen mirroring scenario.
[0139] Step 705: The electronic device adjusts the screen brightness of the display screen of the electronic device to the second brightness and keeps the screen brightness of the display screen of the electronic device unchanged during the screen mirroring process. The second brightness is the brightness of the display screen of the electronic device before projecting the screen to the display device.
[0140] Since the display screen of the electronic device remains lit all the time after the electronic device establishes a screen mirroring channel with the display device, the power consumption of the electronic device is relatively high. In the embodiments of the present application, when the screen mirroring mode of the electronic device is the first screen mirroring mode, when the duration of continuous inactivity of the electronic device during the screen mirroring process reaches a preset duration, the screen brightness of the display screen of the electronic device is automatically reduced, thereby reducing the power consumption of the electronic device. When the user operates the electronic device, the electronic device increases the screen brightness of the display screen to facilitate user operation. Moreover, the electronic device automatically determines the screen mirroring mode, which can improve the intelligence of screen mirroring mode determination.
[0141] Please refer to Figure 8 , which shows the structural block diagram of a screen mirroring processing device provided by an exemplary embodiment of the present application. The device includes:
[0142] A first determination module 801, configured to determine the screen mirroring mode of the electronic device based on mode recognition information when a screen mirroring channel is established between the electronic device and the display device. The mode recognition information is information for recognizing the screen mirroring mode. The screen mirroring channel is used to mirror the screen content of the display screen of the electronic device to the display device, and after the electronic device establishes the screen mirroring channel with the display device, the display screen of the electronic device remains lit.
[0143] A reduction module 802, configured to reduce the screen brightness of the display screen of the electronic device when the screen mirroring mode is the first screen mirroring mode and the duration of continuous inactivity of the electronic device during the screen mirroring process reaches a preset duration. The first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the screen mirroring process.
[0144] In a possible implementation manner, the mode recognition information is mode selection information. The first determination module 801 is configured to display the mode selection information, where the mode selection information includes mode information of at least two candidate screen mirroring modes. In response to the mode information of the first screen mirroring mode among the at least two candidate screen mirroring modes being triggered, it is determined that the screen mirroring mode of the electronic device is the first screen mirroring mode.
[0145] In another possible implementation manner, the device further includes:
[0146] A second determination module, configured to determine that the screen mirroring mode is the second screen mirroring mode in response to the mode information of the second screen mirroring mode among the at least two candidate screen mirroring modes being triggered.
[0147] A first maintaining module, configured to keep the screen brightness of the display screen of the electronic device unchanged during the screen mirroring process in the second screen mirroring mode.
[0148] In another possible implementation, the pattern recognition information includes the screen mirroring content, and the first determination module 801 is configured to predict the number of times the electronic device is operated during the screen mirroring process based on the screen mirroring content; in a case where the number of times of operation is less than a preset number of times, determine that the screen mirroring mode of the electronic device is the first screen mirroring mode.
[0149] In another possible implementation, the pattern recognition information includes the mode indication information sent by the display device through the screen mirroring channel; the first determination module 801 is configured to determine that the screen mirroring mode of the electronic device is the first screen mirroring mode in a case where the electronic device enables the reverse control function and the screen mirroring mode indicated by the mode indication information is the first screen mirroring mode, and the reverse control function refers to a function of controlling the electronic device by the display device.
[0150] In another possible implementation, the pattern recognition information includes the external control information of the electronic device, and the external control information is used to indicate whether the electronic device is connected to an external expansion device; the first determination module 801 is configured to determine that the screen mirroring mode of the electronic device is the first screen mirroring mode in a case where the external expansion information is used to indicate that the electronic device is connected to an external control device.
[0151] In another possible implementation, the reduction module 803 is configured to adjust the brightness adjustment mode of the electronic device from a first adjustment mode to a second adjustment mode, where the first brightness adjustment mode is a mode of automatically adjusting the screen brightness based on the ambient brightness, and the second adjustment mode is a mode of canceling the automatic adjustment of the screen brightness based on the ambient brightness; in the second adjustment mode, reduce the screen brightness of the display screen of the electronic device to a first brightness, and the first brightness is the lowest brightness supported by the display screen of the electronic device.
[0152] In another possible implementation, the apparatus further includes:
[0153] An increase module, configured to, after reducing the screen brightness of the display screen of the electronic device, increase the screen brightness of the display screen of the electronic device when the electronic device is operated during the screen mirroring process.
[0154] In another possible implementation, the increase module is configured to, when the electronic device is operated during the screen mirroring process, determine the operation object of the electronic device being operated; in a case where the operation object is the display screen of the electronic device, increase the screen brightness of the display screen of the electronic device.
[0155] In another possible implementation, the apparatus further includes:
[0156] A second holding module, configured to keep the screen brightness of the display screen of the electronic device unchanged when the operation object is an external control device, where the external control device is used to establish a communication connection with the electronic device and control the electronic device through the communication connection.
[0157] In another possible implementation manner, the device further includes:
[0158] A third determination module, configured to re-determine the duration of continuous non-operation of the electronic device after increasing the screen brightness of the display screen of the electronic device;
[0159] The decreasing module 803 is configured to, when the duration reaches the preset duration, decrease the screen brightness of the display screen of the electronic device again.
[0160] In another possible implementation manner, the device further includes:
[0161] A switching module, configured to, in response to a mode switching instruction, switch the screen mirroring mode of the electronic device from the first screen mirroring mode to a second screen mirroring mode, where the second screen mirroring mode is a mode in which the screen brightness remains unchanged during the screen mirroring process;
[0162] An adjustment module, configured to adjust the screen brightness of the display screen of the electronic device to a second brightness and keep the screen brightness of the display screen of the electronic device unchanged during the screen mirroring process, where the second brightness is the brightness of the display screen of the electronic device before mirroring the screen to the display device.
[0163] In another possible implementation manner, the device further includes:
[0164] An establishment module, configured to, when the electronic device is connected to the display device through a data cable, establish the screen mirroring channel with the display device through the data cable;
[0165] A screen mirroring module, configured to obtain the screen content of the display screen of the electronic device, mirror the screen content to the display device through the screen mirroring channel, and display the screen content by the display device.
[0166] In another possible implementation manner, the device further includes:
[0167] A first restoration module, configured to, when the screen mirroring of the electronic device to the display device ends, restore the screen brightness of the display screen of the electronic device to the second brightness, where the second brightness is the brightness of the display screen of the electronic device before mirroring the screen to the display device; or,
[0168] A second recovery module, configured to determine the ambient brightness of the environment where the electronic device is located when the screen mirroring from the electronic device to the display device ends, determine the screen brightness matching the ambient brightness, and adjust the screen brightness of the display screen of the electronic device to the determined screen brightness.
[0169] Since the display screen of the electronic device remains on all the time after the electronic device establishes a screen mirroring channel with the display device, the power consumption of the electronic device will be relatively high. In the embodiment of the present application, when the screen mirroring mode of the electronic device is the first screen mirroring mode, when the duration of continuous inactivity of the electronic device during the mirror screen mirroring reaches a preset duration, the screen brightness of the display screen of the electronic device is automatically reduced, thereby reducing the power consumption of the electronic device.
[0170] It should be noted that when the screen mirroring processing device provided in the above embodiment performs screen mirroring processing, only the above-mentioned functional modules are used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the screen mirroring processing device provided in the above embodiment and the screen mirroring processing method embodiment belong to the same concept, and the specific implementation process can be found in the method embodiment, which will not be elaborated here.
[0171] See Figure 9 , Figure 9 is a schematic structural diagram of an electronic device 900 provided by an exemplary embodiment of the present application. The electronic device 900 may further include one or more of the following components: a processor 910, a memory 920, and a display screen 930.
[0172] The processor 910 connects various parts within the entire electronic device 900 using various interfaces and circuits. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 920, and by invoking the data stored in the memory 920, it performs various functions of the electronic device 900 and processes data. Optionally, the processor 910 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 910 can integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for the rendering and drawing of the content to be displayed on the display screen 930; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 910 and can be implemented separately through a computer program product.
[0173] The memory 920 can include random access memory (RAM) and can also include read-only memory (ROM). Optionally, the memory 920 includes a non-transitory computer-readable storage medium. The memory 920 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 920 can include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area can store data created according to the use of the electronic device 900 (such as audio data, phone book), etc.
[0174] The display screen 930 is a display component for displaying a user interface. Optionally, the display screen 930 is a display screen with a touch function. Through the touch function, the user can perform touch operations on the display screen 930 using any suitable object such as a finger or a stylus.
[0175] The display screen 930 is usually arranged on the front panel of the electronic device 900. The display screen 930 can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The display screen 930 can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.
[0176] In addition, those skilled in the art can understand that the structure of the electronic device 900 shown in the above drawings does not constitute a limitation on the electronic device 900, and the electronic device 900 may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device 900 also includes a wireless fidelity (WiFi) module, an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Bluetooth module, a power supply, and other components, which are not described in detail here.
[0177] An embodiment of the present application provides a computer-readable storage medium, which stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the screen projection processing method as described in the above embodiment.
[0178] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the screen projection processing method as described in the above embodiment.
[0179] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0180] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A screen mirroring processing method, characterized in that, The method includes: When a screen mirroring channel is established between the electronic device and the display device, based on the mode recognition information, determine the screen mirroring mode of the electronic device. The mode recognition information is information for recognizing the screen mirroring mode. The screen mirroring channel is used to mirror the screen content of the display screen of the electronic device to the display device. After the electronic device establishes the screen mirroring channel with the display device, the display screen of the electronic device remains lit. When the screen mirroring mode is the first screen mirroring mode and the continuous non-operation duration of the electronic device during the mirror screen mirroring process reaches a preset duration, reduce the screen brightness of the display screen of the electronic device. The first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the mirror screen mirroring process.
2. The method according to claim 1, characterized in that, The mode recognition information is mode selection information; The determining the screen mirroring mode of the electronic device based on the mode recognition information includes: Displaying mode selection information, where the mode selection information includes mode information of at least two candidate screen mirroring modes; In response to the mode information of the first screen mirroring mode among the at least two candidate screen mirroring modes being triggered, determine that the screen mirroring mode of the electronic device is the first screen mirroring mode.
3. The method according to claim 2, characterized in that, The method further includes: In response to the mode information of the second screen mirroring mode among the at least two candidate screen mirroring modes being triggered, determine that the screen mirroring mode is the second screen mirroring mode; In the second screen mirroring mode, keep the screen brightness of the display screen of the electronic device unchanged during the mirror screen mirroring process.
4. The method according to claim 1, wherein The mode recognition information includes the screen mirroring content; The determining the screen mirroring mode of the electronic device based on the mode recognition information includes: Based on the screen mirroring content, predict the number of operations on the electronic device during the mirror screen mirroring process; When the number of operations is less than the preset number, determine that the screen mirroring mode of the electronic device is the first screen mirroring mode.
5. The method according to claim 1, characterized in that The mode recognition information includes the mode indication information sent by the display device through the screen mirroring channel; The determining the screen mirroring mode of the electronic device based on the mode recognition information includes: When the electronic device enables the reverse control function and the screen mirroring mode indicated by the mode indication information is the first screen mirroring mode, determine that the screen mirroring mode of the electronic device is the first screen mirroring mode. The reverse control function is a function in which the display device controls the electronic device.
6. The method according to claim 1, characterized in that, The mode recognition information includes the external control information of the electronic device, and the external control information is used to indicate whether the electronic device is connected to an external expansion device; The determining the screen mirroring mode of the electronic device based on the mode recognition information includes: When the external expansion information is used to indicate that the electronic device is connected to an external control device, determine that the screen mirroring mode of the electronic device is the first screen mirroring mode.
7. The method according to any one of claims 1-6, characterized in that The reducing the screen brightness of the display screen of the electronic device includes: Adjust the brightness adjustment mode of the electronic device from the first adjustment mode to the second adjustment mode, where the first brightness adjustment mode is a mode of automatically adjusting the screen brightness based on the ambient brightness, and the second adjustment mode is a mode of canceling the automatic adjustment of the screen brightness based on the ambient brightness; In the second adjustment mode, lower the screen brightness of the display screen of the electronic device to a first brightness, where the first brightness is the lowest brightness supported by the display screen of the electronic device.
8. The method according to any one of claims 1-6, characterized in that, The method further includes: After lowering the screen brightness of the display screen of the electronic device, when the electronic device is operated during the mirror screen projection process, increase the screen brightness of the display screen of the electronic device.
9. The method according to claim 8, characterized in that, The step of increasing the screen brightness of the display screen of the electronic device when the electronic device is operated during the mirror screen projection process includes: When the electronic device is operated during the mirror screen projection process, determine the operation object of the operation of the electronic device; In the case where the operation object is the display screen of the electronic device, increase the screen brightness of the display screen of the electronic device.
10. The method according to claim 9, characterized in that, The method further includes: In the case where the operation object is an external control device, keep the screen brightness of the display screen of the electronic device unchanged, where the external control device is used to establish a communication connection with the electronic device and control the electronic device through the communication connection.
11. The method according to claim 8, characterized in that, The method further includes: After increasing the screen brightness of the display screen of the electronic device, re-determine the duration of continuous non-operation of the electronic device; When the duration reaches the preset duration, lower the screen brightness of the display screen of the electronic device again.
12. The method according to any one of claims 1-6, characterized in that, The method further includes: In response to a mode switching instruction, switch the screen projection mode of the electronic device from the first screen projection mode to the second screen projection mode, where the second screen projection mode is a mode of keeping the screen brightness unchanged during the mirror screen projection process; Adjust the screen brightness of the display screen of the electronic device to a second brightness, and keep the screen brightness of the display screen of the electronic device unchanged during the mirror screen projection process, where the second brightness is the brightness of the display screen of the electronic device before projecting to the display device.
13. The method according to any one of claims 1-6, characterized in that, The method further includes: When the projection of the electronic device to the display device ends, restore the screen brightness of the display screen of the electronic device to the second brightness, where the second brightness is the brightness of the display screen of the electronic device before projecting to the display device; or, When the projection of the electronic device to the display device ends, determine the ambient brightness of the environment where the electronic device is located, determine the screen brightness matching the ambient brightness, and adjust the screen brightness of the display screen of the electronic device to the determined screen brightness.
14. A screen mirroring processing device, characterized in that, The device includes: A first determination module, configured to determine a screen mirroring mode of the electronic device based on mode recognition information when a screen mirroring channel is established between the electronic device and a display device, where the mode recognition information is information for recognizing a screen mirroring mode, the screen mirroring channel is used to mirror the screen content of the display screen of the electronic device to the display device, and after the electronic device establishes the screen mirroring channel with the display device, the display screen of the electronic device remains lit; A reduction module, configured to reduce the screen brightness of the display screen of the electronic device when the screen mirroring mode is a first screen mirroring mode and the continuous non-operation duration of the electronic device during the screen mirroring process reaches a preset duration, where the first screen mirroring mode is a mode in which the screen brightness is automatically reduced when no operation on the electronic device is received during the screen mirroring process.
15. An electronic device, characterized in that, The electronic device includes a processor and a memory, and at least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the screen mirroring processing method according to any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the screen mirroring processing method according to any one of claims 1 to 13.
17. A computer program product, characterized in that, The computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium; the processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the screen mirroring processing method according to any one of claims 1 to 13.