Detailed Description
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
The first embodiment is as follows:
in order to implement energy saving control on a terminal when the terminal is in a video processing state, this embodiment provides a terminal energy saving method, and please refer to fig. 1, which includes:
s101: detecting that the terminal is in a video processing state, and acquiring the current viewing requirement of a terminal user on a video;
s102: and when the obtained result is that the user does not need to check the video currently, switching the terminal from the bright screen state to the off screen state.
The scheme in this embodiment is mainly directed to implementing energy saving control when the terminal is in a video processing state, and in step S101, it is detected whether the terminal is in the video processing state, and if so, an energy saving control process is started. For the video processing state, a video recording state and a video playing state, etc. may be included. Specifically, the energy-saving process is realized, and the current viewing requirement of the terminal user on the video is obtained firstly.
Specifically, how to obtain the viewing requirement of the terminal user for the video is determined, and for the situation, the terminal may be in a video recording state, and for the situation, in the process of recording the video, sometimes the user fixes the terminal by using a bracket or other tools without always looking at the screen, so that the screen does not need to be always lighted and power is consumed. For a terminal in a video recording state, whether a user needs to check a video can be judged according to the moving state of the terminal. Referring to fig. 2, the specific process includes:
s201: detecting the moving state of the terminal;
s202: judging whether the standing time of the terminal reaches a preset time threshold, if so, judging that the user does not need to check the video currently; otherwise, the user is judged to be required to view the video currently.
In step S201, the movement condition of the terminal may be monitored by an acceleration sensor and/or a gyro sensor, and whether the terminal has acceleration is measured according to the acceleration sensor or the gyro sensor. The terminal may also be in a still state if there are some features that can completely coincide with each other. If the terminal is fixed on a support or other tools for video recording, there are often some stationary objects, such as buildings, trees, cars, etc., displayed in a view-finding frame of the terminal or captured in a picture; by comparing different pictures taken at two different points in time, it is highly likely that the terminal is being placed on a stand or other fixture if one of them can overlap completely.
Before the mobile status of the terminal is judged, a preset time threshold is often set, and the mobile status of the terminal at a certain time point or within a certain time period can be detected by adopting the above-mentioned manner in S201, but how long the time is reached, the screen display status of the terminal is switched depends on the first preset threshold. The specific value of the first preset threshold value can be flexibly set according to the user requirement. Then, after the mobile state of the terminal is detected, step S202 is executed to determine whether the standing time of the terminal reaches a preset time threshold, and if the standing time of the terminal reaches or exceeds the preset time threshold, it is determined that the user does not need to view the video currently; otherwise, the user is considered to be currently required to view the video.
In addition, the terminal may also be in a video playing state, at this time, the current viewing requirement of the terminal user may be determined according to the video playing content, and a specific process thereof, please refer to fig. 3, includes:
s301: acquiring keyword information of currently played content;
s302: and judging that the currently played content is worthless content according to the keyword information, and judging that the user does not need to view the video currently.
For a terminal in a video playing state, there may be useless content, such as advertisements, e.g., a head and a tail, in the playing content. For example, when a user plays a video using video playing software, there are often many advertisements before a feature film starts to be played, and these advertisements do not need to be viewed by the user. It can be defined as worthless content. When playing a video, step S301 is executed to obtain keyword information of the currently played content, for example, for an advertisement, words such as "skip advertisement", "count down", "know details", etc. are usually available on the video. Then, step S302 is executed, and it is determined that the current playing value is a non-value content according to the keyword information, and it is determined that the user does not need to view the video currently. For example, when words such as "skip advertisement", "count down", "know details", and the like are acquired, it is determined that the currently played content is an advertisement, and it is determined that the user does not currently need to view a video.
And when the obtained result is that the user does not need to view the video at present, executing the step S102, and switching the terminal from the bright screen state to the off screen state.
In one embodiment, in the screen-off state, the screen backlight is turned off, and the black background interface displays only the basic information and/or the state information of the video. For a terminal in a video recording state, the basic information may include information such as date, time, remaining power, and the like; the video status information may include video related information such as a recording duration of the video. For a terminal in a video playing state, the basic information may also include information such as date, time, remaining power, and the like; the status information of the video may include duration of the non-valuable content, etc., for example, if the non-valuable content is an advertisement, countdown information of the advertisement may be obtained and displayed in the screen-off state.
In one embodiment, after the terminal is switched from the on-screen state to the off-screen state, it is monitored whether the user initiates an operation on the terminal, for example, clicking or touching the screen, pressing a volume key, turning on or off a power switch, and the like. And if the user is detected to initiate operation aiming at the terminal, automatically switching the terminal from the screen-off state back to the screen-on state. For the terminal in the video playing state and switched to the screen-off state, the state switching can be controlled according to the duration of the non-valuable content, for example, when the non-valuable content is an advertisement, countdown information of the advertisement is acquired, and when the countdown reaches '0', the screen-off state is automatically switched back to the screen-on state. For the terminal in the video recording state and switched to the screen-off state, the state switching may also be controlled according to the moving condition, for example, after the terminal in the video recording state is switched to the screen-off state, it is detected that the standing time of the terminal exceeds a fixed threshold, and at this time, the terminal may also be switched back to the screen-on state. The fixed threshold may be equal to or different from the preset duration threshold.
By adopting the terminal energy-saving method in the embodiment, whether the user needs to check the screen or not is judged according to the video playing state of the user, and the screen is switched to the screen-off state when the user does not need to check the screen, so that the power consumption is reduced, and the energy conservation is realized.
Example two:
referring to fig. 4, the energy saving device for a terminal according to the present embodiment includes a determining module 41, where the determining module 41 detects that the terminal is in a video processing state, and obtains a current viewing requirement of a terminal user for a video; for the video processing state, a video recording state and a video playing state, etc. may be included. Specifically, the energy-saving process is realized, and the current viewing requirement of the terminal user on the video is obtained firstly. Specifically, how to obtain the viewing demand of the end user for the video depends on the situation. Firstly, for a terminal in a video recording state, whether a user needs to check a video can be judged according to the moving state of the terminal. The specific process comprises the following steps: the judging module 41 detects the moving condition of the terminal, judges whether the standing time of the terminal reaches a preset time threshold, and if so, judges that the user does not need to check the video currently; otherwise, the user is judged to be required to view the video currently.
The determination module 41 may monitor the movement status of the terminal through an acceleration sensor and/or a gyro sensor, and measure whether the terminal has acceleration according to the acceleration sensor or the gyro sensor. The terminal may also be in a still state if there are some features that can completely coincide with each other.
Before the mobile status of the terminal is judged, a preset time threshold is often set through the judging module 41, after the mobile status of the terminal is detected, the judging module 41 judges whether the standing time of the terminal reaches the preset time threshold, and if the standing time of the terminal reaches or exceeds the preset time threshold, the user does not need to check the video currently; otherwise, the user is considered to be currently required to view the video.
In addition, the terminal may also be in a video playing state, at this time, the determination module 41 may determine that the current viewing requirement of the terminal user is obtained according to the video playing content, and the determination module 41 first obtains the keyword information of the current playing content; and then if the currently played content is judged to be worthless content according to the keyword information, the user is considered not to need to view the video currently. For a terminal in a video playing state, there may be worthless content in the playing content, such as advertisements, e.g., a title and a trailer; for example, when a user plays a video by using video playing software, there are often many advertisements before a feature film starts to be played, and the advertisements do not need to be viewed by the user and can be defined as worthless content. When playing a video, step S301 is executed to obtain the keyword information of the currently played content, and the determining module 41 first obtains the keyword information of the currently played content, for example, for an advertisement, words such as "skip advertisement", "count down", "know details", etc. are usually found on the video, and these words are so-called "keyword information", and determines that the currently played value is a non-value content according to the keyword information, and determines that the user does not need to view the video currently.
The terminal energy saving device further comprises a state switching module 42, configured to switch the terminal from the on-screen state to the off-screen state when the obtained result is that the user does not need to view the video currently.
In an embodiment, the terminal energy saving device further includes a screen-off display module 43, when the terminal energy saving device is in a screen-off state, the screen backlight is turned off, and the display module 43 displays the basic information and/or the state information of the video on a black background interface. For a terminal in a video recording state, the basic information may include information such as date, time, remaining power, and the like; the video status information may include video related information such as a recording duration of the video. For a terminal in a video playing state, the basic information may also include information such as date, time, remaining power, and the like; the status information of the video may include the duration of the non-valuable content, for example, if the non-valuable content is an advertisement, countdown information for the advertisement may be obtained and displayed in the off-screen state.
In one embodiment, the terminal power saving device further includes a status switch-back module 44, and after switching the terminal from the bright screen state to the off screen state is completed, the status switch-back module 44 monitors whether the user initiates an operation on the terminal, for example, clicking or touching the screen, pressing a volume key, turning on/off a power switch, and the like. If it is detected that the user initiates an operation for the terminal, the back-switching module 44 automatically switches the terminal from the off-screen state back to the on-screen state. For a terminal in the video playing state and switched to the screen-off state, the state switching may also be controlled according to the duration of the non-valuable content, for example, when the non-valuable content is an advertisement, the countdown information of the advertisement is obtained, and when the countdown reaches "0", the screen-off state is automatically switched back to the screen-on state by the back-switching module 44. For a terminal in a video recording state and switched to a screen-off state, the state switching may also be controlled according to a moving condition, for example, after the terminal in the video recording state is switched to the screen-off state, it is detected that the standing time of the terminal exceeds a fixed threshold, and at this time, the back-switching module 44 may also switch the terminal back to the screen-on state. The fixed threshold may be equal to or different from the preset duration threshold.
This embodiment also protects a terminal, which includes the terminal energy saving device in this embodiment, and the terminal may be a PAD, a smart phone, a notebook computer, a PDA (Personal Digital Assistant), a GPS (Global Positioning System). The functions of the determination module 41, the state switching module 42 and the back-cut module 44 in the terminal energy saving device in this embodiment can be realized through the processing of the terminal, and the screen-off display module 43 can be realized through the display of the terminal.
The terminal energy saving device in this embodiment may be used to execute the terminal energy saving method in the first embodiment, and the terminal energy saving device and the terminal in this embodiment are described below with specific examples, please refer to fig. 5 and fig. 6, where fig. 5 is a flowchart of the terminal energy saving method in the first embodiment when the terminal in the video recording state is set up with the terminal energy saving device in this embodiment, fig. 6 is a screen display content when the terminal performing the steps in fig. 5 enters the screen-off state, and the steps specifically performed by the terminal include:
s501: starting a video recording function, and entering a bright screen video recording state;
s502: judging whether the mobile phone is moved within a certain time (such as 30 seconds); if yes, go to step S503; otherwise, go to step S502;
s503: switching the terminal from a bright screen state to a screen-off state;
in S503, the terminal enters a screen-off state, in which the backlight of the terminal screen is automatically turned off, and at this time, the black background interface only displays information of date, time and video recording time, and the user can view the interface information at any time.
S504: judging whether the screen has touch operation (such as double-click); if yes, go to step S505; otherwise, go to step S507;
s505: switching the terminal from the screen-off state to the screen-on state;
s506: judging whether the recorded video is stored or not, if so, ending the energy-saving process; otherwise, go to step S502;
s507: continuing to display the screen off state, and executing step S504.
Fig. 7 is a flowchart of a terminal in a video recording state when the terminal in the present embodiment is provided with the terminal power saving device, in the first embodiment, a terminal power saving method is executed, and fig. 8 is a screen display content when the terminal executing steps in fig. 7 enters a screen-off state, where the steps executed by the terminal specifically include:
s701: entering a video player, and selecting to open a certain episode for playing;
s702: judging whether an advertisement exists in play of the episode or not; if yes, go to step S703; otherwise, executing step S702;
by extracting the keyword information of the leader advertising interface, the keyword information comprises: word information such as "count down", "skip advertisement", "know details", etc.
S703: switching the terminal from a bright screen state to a screen-off state;
in S703, the terminal enters a screen-off state, in which the backlight of the terminal screen is automatically turned off, and at this time, the black background interface only displays the date, time, and advertisement countdown information, and the user can view the interface information at any time.
S704: judging whether the advertisement countdown is finished or not; if yes, go to step S706; otherwise, go to step S705;
s705: judging whether the screen has touch operation (such as double-click) at the moment; if yes, go to step S706; otherwise, go to step S707;
s706: switching the terminal from the screen-off state to the screen-on state, and ending the energy-saving process;
s707: continuing to display the screen off state, executing step S704.
In this example, the mobile terminal may determine whether to switch the terminal back to the bright screen state according to whether the advertisement countdown is finished or not, or may determine whether to switch the terminal back to the bright screen state according to whether the screen has a touch operation (e.g., double-click); it should be understood that, in the above process, although it is determined whether the advertisement countdown is finished first, it is determined whether the screen has a touch operation at this time; however, in the specific use process, the two judgment methods belong to parallel independent judgment modes, and the two judgment methods do not have strict sequence requirements.
By adopting the terminal energy-saving device and the terminal in the embodiment, the screen state switching can be automatically realized according to the user requirements, the use by the user is facilitated, the power consumption is reduced, and the energy conservation is realized.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented in program code executable by a computing device, such that they may be stored on a computer storage medium (ROM/RAM, magnetic disk, optical disk) and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.