WO2018113530A1 - 移动终端播放视频时自动调整屏幕色温的方法及系统 - Google Patents
移动终端播放视频时自动调整屏幕色温的方法及系统 Download PDFInfo
- Publication number
- WO2018113530A1 WO2018113530A1 PCT/CN2017/115034 CN2017115034W WO2018113530A1 WO 2018113530 A1 WO2018113530 A1 WO 2018113530A1 CN 2017115034 W CN2017115034 W CN 2017115034W WO 2018113530 A1 WO2018113530 A1 WO 2018113530A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mobile terminal
- video
- color temperature
- screen
- playing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/73—Colour balance circuits, e.g. white balance circuits or colour temperature control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
Definitions
- the present invention relates to the field of mobile terminal technologies, and in particular, to a method and system for automatically adjusting a screen color temperature when a mobile terminal plays a video.
- mobile terminals such as mobile phones, computers and smart watches, have become an indispensable tool in people's daily life and learning, and are closely related to people's lives.
- the present invention aims to provide a method and system for automatically adjusting the color temperature of a screen when a mobile terminal plays a video, which aims to solve the problem that the mobile terminal can only manually perform color temperature adjustment in the prior art, and cannot automatically play during video playback. Adjust the color temperature of the screen.
- a method for automatically adjusting a screen color temperature when a mobile terminal plays a video wherein:
- Step A detecting whether the mobile terminal starts playing a video; wherein, setting a first interval time of detection, detecting, every other first interval time, whether the mobile terminal starts playing a video;
- Step B when the mobile terminal starts playing the video, controlling the mobile terminal to gradually lower the screen color temperature to the predetermined screen color temperature;
- Step D detecting whether the mobile terminal stops playing the video; wherein, setting the detected second interval time, detecting, every other second interval time, whether the mobile terminal stops playing the video;
- Step E When the mobile terminal stops playing the video, the mobile terminal is controlled to gradually adjust the screen color temperature to the original color temperature.
- the first interval time is 0.1S.
- the second interval time is 0.1S.
- the present invention provides a method for automatically adjusting a screen color temperature when a mobile terminal plays a video, which includes:
- Step A detecting whether the mobile terminal starts playing a video
- Step B When the mobile terminal starts playing the video, the mobile terminal is controlled to lower the screen color temperature to a predetermined screen color temperature.
- the step B further includes:
- Step D detecting whether the mobile terminal stops playing the video
- Step E When the mobile terminal stops playing the video, the mobile terminal is controlled to adjust the screen color temperature to the original color temperature.
- the step A specifically includes:
- A1 query the state of the client by calling the MediaPlayerService of the Framework
- A2. Determine whether the mobile terminal starts playing the video.
- the step B specifically includes:
- the step D specifically includes:
- D1 query the state of the client by calling the MediaPlayerService of the Framework
- the step E specifically includes:
- the Color Management that controls the mobile terminal adjusts the color temperature of the screen, and gradually adjusts the color temperature of the screen to the color temperature before starting the video playback.
- the present invention also provides a system for automatically adjusting a screen color temperature when a mobile terminal plays a video, which includes:
- a video play detection module configured to detect whether the mobile terminal starts playing a video
- the color temperature lowering control module is configured to control the mobile terminal to lower the screen color temperature to a predetermined screen color temperature when the mobile terminal starts playing the video.
- the system for automatically adjusting the color temperature of the screen when the mobile terminal plays the video further includes:
- a video stop detection module configured to detect whether the mobile terminal stops playing video
- the color temperature adjustment control module is configured to control the mobile terminal to adjust the screen color temperature to the original color temperature when the mobile terminal stops playing the video.
- the video play detection module is configured with a first interval for detecting, and the video play detection module is configured to detect, at every other first interval time, whether the mobile terminal starts playing video.
- the first interval time is set to 0.1S.
- the video stop detection module is pre-set with a second interval for detecting, and the video stop detection module is configured to detect whether the mobile terminal stops playing video every other second interval time.
- the second interval time is set to 0.1S.
- the video play detection module specifically includes:
- the video play detection unit is configured to query the status of the client by calling the MediaPlayerService of the Framework;
- the video playing determining unit is configured to determine whether the mobile terminal starts playing the video.
- the color temperature reduction control module specifically includes:
- a current color temperature storage unit configured to store a current screen color temperature when the mobile terminal starts playing a video
- the color temperature down control unit is used to control the color management of the mobile terminal to adjust the screen color temperature, and gradually lower the screen color temperature to the predetermined screen color temperature.
- a video stop determining unit configured to determine whether the mobile terminal stops playing the video
- the color temperature adjustment control unit is configured to control the color temperature of the screen to adjust the color temperature of the screen when the mobile terminal stops playing the video, and gradually adjust the color temperature of the screen to the color temperature before starting the video.
- the present invention provides a method and system for automatically adjusting a screen color temperature when a mobile terminal plays a video.
- the method includes: detecting whether the mobile terminal is playing a video; and when the mobile terminal plays the video, controlling the mobile terminal to lower the screen color temperature to Schedule the screen color temperature.
- the invention can control the mobile terminal to automatically lower the screen color temperature when the mobile terminal plays the video, thereby achieving the purpose of reducing eye fatigue and protecting vision.
- FIG. 1 is a flow chart of a preferred embodiment of a method for automatically adjusting a screen color temperature when a mobile terminal plays a video according to the present invention
- FIG. 2 is a functional block diagram of a preferred embodiment of a system for automatically adjusting a screen color temperature when a mobile terminal plays a video according to the present invention.
- FIG. 1 is a flowchart of a first preferred embodiment of a method for automatically adjusting a screen color temperature when a mobile terminal plays a video according to the present invention.
- a mobile terminal provides a video when playing a video.
- a method of automatically adjusting the color temperature of a screen including the following steps:
- Step S100 detecting whether the mobile terminal starts playing a video
- the invention can automatically lower the screen color temperature when the mobile terminal starts playing the video, even if the user forgets to manually adjust the screen color temperature when watching the video.
- the invention can also reduce the damage of the watching video to the eyes.
- the invention can detect whether the mobile terminal starts playing the video, and when the mobile terminal starts playing the video, automatically lowers the screen color temperature to reduce the damage to the human eye.
- the first interval time of the detection is first set, and then the mobile terminal detects whether the mobile terminal starts playing video every other one of the first interval times. For example, if the first interval time is set to 0.1S, the mobile is detected.
- the detection interval of whether the terminal starts playing the video is 0.1S, that is, the mobile terminal starts to play the video every 0.1S.
- Step S200 when the mobile terminal starts playing a video, controlling the mobile terminal to lower the screen color temperature to a predetermined screen color temperature;
- the present invention can automatically control the mobile terminal to lower the screen color temperature to a predetermined screen color temperature when the mobile terminal starts to play the video, where the predetermined screen color temperature is the screen color temperature of the predetermined playing video, and the predetermined video playing screen
- the color temperature can be set in the mobile terminal in advance.
- the color temperature of the screen of the mobile terminal ranges from 3000k to 10000k.
- the screen color temperature of the predetermined broadcast video is 5000K
- the screen temperature of the mobile terminal is When the setting is 8000K, the screen color temperature of the predetermined playing video is 6000K, and the user can also modify the screen color temperature of the predetermined playing video according to his own situation.
- the mobile terminal automatically The screen color temperature is lowered to the screen color temperature of the predetermined play video.
- the method further includes:
- Step S400 detecting whether the mobile terminal stops playing the video
- Step S500 When the mobile terminal stops playing the video, the mobile terminal is controlled to adjust the screen color temperature to the original color temperature.
- the invention After detecting that the mobile terminal starts playing the video and lowers the screen color temperature, the invention further detects whether the mobile terminal stops playing the video, and controls the mobile terminal when the mobile terminal stops playing the video.
- the end adjusts the screen color temperature to the original color temperature, and the screen of the mobile terminal can be restored to the screen color temperature before watching the video without the user manually adjusting.
- the second interval time of the detection is first set, and then the mobile terminal stops detecting whether the video stops playing the video every other second interval time. For example, if the second interval time is set to 0.1 S, the mobile is detected.
- the detection interval of whether the terminal stops playing video is 0.1S, that is, whether the mobile terminal stops playing video every 0.1S.
- step S100 specifically includes:
- playing video is generally implemented by calling the MediaPlayerService of the Framework, that is, the IMediaPlayer interface is created by the MediaPlayerService to implement video playback control, and the MediaPlayerService is internally created and maintained one after another.
- the Client class object is used as the server side BnMediaPlayer of IMediaPlayer, and the internal MediaPlayerBase class member mPlayer implements the methods of the IMediaPlayer interface.
- the MediaPlayerService calls the MediaPlayerService::Client::isPlaying member function to query each method by traversing the internal Client object array. Whether the client is in the playing state, so this logic can be used as a method for the MediaPlayerService to determine whether the mobile phone is playing a video, and the method name can be isPlayingVideo.
- step S200 specifically includes:
- S220 Control the color management of the mobile terminal to adjust the color temperature of the screen, and gradually decrease the color temperature of the screen to a predetermined screen color temperature.
- the invention saves the color temperature of the current screen when detecting that the mobile terminal starts playing the video, and then adjusts the color temperature of the screen by controlling Color Management of the mobile terminal, and gradually lowers the color temperature of the screen.
- the display system of the mobile phone hardware platform generally has a chip dedicated to display processing. It is called the MDP (Mobile Display Processor) on the Qualcomm platform.
- the display frame needs to be sent from the specified memory location to the LCD through the MIPI DSI.
- there is also a function of post-processing the display frame one of which is Color Management, which can enhance the color of the display frame, adjust the hue, saturation, brightness, etc., and color temperature combined with the display.
- the Calibration is used for subsequent color temperature adjustment.
- the corresponding SDK is ColorManager, and the java class name is com.qti.snapdragon.sdk.display.ColorManager.
- This java class can be called to adjust the color temperature of the display.
- the mobile terminal starts playing the video, save the current screen color temperature, and call the Color Management class named com.qti.snapdragon.sdk.display.ColorManager to gradually lower the screen color temperature to the predetermined time.
- Screen color temperature The adjustment of the color temperature of the invention is a gradual adjustment, so that the human eye has a process of gradually adapting. If the color temperature of the screen is suddenly lowered or raised a lot, the human eye will have a strong stimulation, and the pupil of the human eye will zoom rapidly. Inflicts damage on the human eye.
- step S400 specifically includes:
- step S110 the principle of calling the mediaPlayerService of the framework to query the state of the client is as described in step S110.
- the step S400 in the present invention after calling the MediaPlayerService of the framework to query the state of the client, determines whether the mobile terminal stops playing the video.
- step S500 specifically includes:
- the Color Management that controls the mobile terminal adjusts the color temperature of the screen, and gradually adjusts the color temperature of the screen to the color temperature before the video is started to be played.
- step S220 the principle of adjusting the color temperature of the screen by the color management of the mobile terminal is as described in step S220, and is not described herein.
- step 510 of the present invention after controlling the color management of the mobile terminal to adjust the color temperature of the screen, the color temperature of the screen is gradually changed. Adjusting to the color temperature before starting the video playback, the adjustment of the color temperature of the present invention is a gradual adjustment, giving the human eye an adaptive process, as described in step S220.
- the present invention further provides a system for automatically adjusting a screen color temperature when a mobile terminal plays a video.
- FIG. 2 is a function of a system for automatically adjusting a screen color temperature when a mobile terminal of the present invention plays a video. Block diagram.
- the system includes:
- the video play detection module 100 is configured to detect whether the mobile terminal starts playing a video; specifically as described above;
- the color temperature down control module 200 is configured to control the mobile terminal to lower the screen color temperature to a predetermined screen color temperature when the mobile terminal starts playing the video; as described above.
- the system for automatically adjusting the color temperature of the screen when the mobile terminal plays the video wherein the method further includes:
- a video stop detection module configured to detect whether the mobile terminal stops playing video; as described above;
- the color temperature adjustment control module is configured to control the mobile terminal to adjust the screen color temperature to the original color temperature when the mobile terminal stops playing the video; as described above.
- the video playback detection module specifically includes:
- a video playback detecting unit configured to query a status of the video client by calling a MediaPlayerService of the framework; specifically as described above;
- the video playing determining unit is configured to determine whether the mobile terminal starts playing a video; specifically as described above.
- the color temperature lowering control module specifically includes:
- a current color temperature storage unit configured to store a current screen color temperature when the mobile terminal starts playing a video; specifically as described above;
- the color temperature lowering control unit is configured to control the color management of the mobile terminal to adjust the screen color temperature, and gradually lower the screen color temperature to the predetermined screen; as described above.
- the system for automatically adjusting the color temperature of the screen when the mobile terminal plays the video wherein the method further includes:
- the video stop determination unit is configured to determine whether the mobile terminal stops playing the video; as described above.
- the color temperature adjustment control unit is configured to control the color temperature of the screen to adjust the color temperature of the screen when the mobile terminal stops playing the video, and gradually adjust the color temperature of the screen to the color temperature before starting the video playback; as described above.
- the present invention discloses a method and system for automatically adjusting a screen color temperature when a mobile terminal plays a video.
- the method includes: Step A, detecting whether the mobile terminal starts playing a video; Step B, when the mobile terminal starts playing a video
- Step A detecting whether the mobile terminal starts playing a video
- Step B when the mobile terminal starts playing a video
- the screen color temperature is lowered to a predetermined screen color temperature.
- the invention can control the mobile terminal to automatically screen the screen when the mobile terminal plays the video
- the color temperature is lowered to achieve the purpose of reducing eye fatigue and protecting vision.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Processing Of Color Television Signals (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
一种移动终端播放视频时自动调整屏幕色温的方法及系统,方法包括:步骤A,检测移动终端是否在播放视频;步骤B,当移动终端在播放视频时,控制移动终端将屏幕色温调低至预定屏幕色温。能在移动终端播放视频时,自动控制移动终端将屏幕色温调低,达到减小人眼疲劳,保护视力的目的。
Description
本发明涉及移动终端技术领域,尤其涉及一种移动终端播放视频时自动调整屏幕色温的方法及系统。
随着社会的进步和经济的发展,移动终端,例如手机、电脑及智能手表等,已成为人们日常生活和学习工作中必不可少的工具,与人们的生活息息相关。
现在绝大多数用户都有用手机看视频的习惯,而且经常是一看就是好几个小时,就连小孩都整天抱着手机或平板电脑,长时间观看视频,对眼睛伤害极大,会导致用眼疲劳,甚至直接损伤人眼黄斑区,造成不可逆的伤害,尤其在夜间对着刺眼的屏幕,长时间下来必然会损坏眼睛健康,而且屏幕的蓝光更会对睡眠产生消极的影响,使人没有睡意,影响睡眠质量,损害身体健康。
虽然目前也有手机可以调节屏幕的色温,但一般都是手动调节,使用起来极不方便,如果忘记进行色温调剂,便会造成用眼疲劳。
因此,针对上述缺陷,现有技术还有待于改进和发展。
发明内容
鉴于现有技术的不足,本发明的目的在于提供一种移动终端播放视频时自动调整屏幕色温的方法及系统,旨在解决现有技术中移动终端只能手动进行色温调节,不能在视频播放时自动调节屏幕色温的问题。
为解决上述技术问题,本发明采用的技术方案如下:
一种移动终端播放视频时自动调整屏幕色温的方法,其中,包括:
步骤A,检测移动终端是否开始播放视频;其中,设定检测的第一间隔时间,每隔一个所述第一间隔时间检测一次移动终端是否开始播放视频;
步骤B,当移动终端开始播放视频时,控制移动终端将屏幕色温逐渐调低至预定屏幕色温;
步骤D,检测移动终端是否停止播放视频;其中,设定检测的第二间隔时间,每隔一个所述第二间隔时间检测一次移动终端是否停止播放视频;
步骤E,当移动终端停止播放视频时,控制移动终端将屏幕色温逐渐调整至原色温。
其中,所述第一间隔时间为0.1S。
其中,所述第二间隔时间为0.1S。
在另一个技术方案中,本发明提供了一种移动终端播放视频时自动调整屏幕色温的方法,其中,包括:
步骤A,检测移动终端是否开始播放视频;
步骤B,当移动终端开始播放视频时,控制移动终端将屏幕色温调低至预定屏幕色温。
其中,所述步骤B之后还包括:
步骤D,检测移动终端是否停止播放视频;
步骤E,当移动终端停止播放视频时,控制移动终端调整屏幕色温至原色温。
其中,所述步骤A具体包括:
A1、通过调用Framework的MediaPlayerService查询客户端的状态;
A2、判断移动终端是否开始播放视频。
其中,所述步骤B具体包括:
B1、当移动终端开始播放视频时,储存当前屏幕色温;
B2、控制移动终端的Color Management对屏幕色温进行调整,逐渐调低屏幕色温至预定屏幕色温。
其中,所述步骤D具体包括:
D1、通过调用Framework的MediaPlayerService查询客户端的状态;
D2、判断移动终端是否停止播放视频;
所述步骤E具体包括:
E1、当移动终端停止播放视频时,控制移动终端的Color Management对屏幕色温进行调整,逐渐将屏幕色温调至开始播放视频之前的色温。
本发明还提供了一种移动终端播放视频时自动调整屏幕色温的系统,其中,包括:
视频播放检测模块,用于检测移动终端是否开始播放视频;
色温调低控制模块,用于当移动终端开始播放视频时,控制移动终端将屏幕色温调低至预定屏幕色温。
其中,所述移动终端播放视频时自动调整屏幕色温的系统还包括:
视频停止检测模块,用于检测移动终端是否停止播放视频;
色温调高控制模块,用于当移动终端停止播放视频时,控制移动终端调整屏幕色温至原色温。
其中,所述视频播放检测模块中预设有进行检测的第一间隔时间,所述视频播放检测模块配置为每隔一个所述第一间隔时间检测一次移动终端是否开始播放视频。
其中,所述第一间隔时间设置为0.1S。
其中,所述视频停止检测模块中预设有进行检测的第二间隔时间,所述视频停止检测模块配置为每隔一个所述第二间隔时间检测一次移动终端是否停止播放视频。
其中,所述第二间隔时间设置为0.1S。
其中,所述视频播放检测模块具体包括:
视频播放检测单元,用于通过调用Framework的MediaPlayerService查询客户端的状态;
视频播放判断单元,用于判断移动终端是否开始播放视频。
其中,所述色温调低控制模块具体包括:
当前色温储存单元,用于当移动终端开始播放视频时,储存当前屏幕色温;
色温调低控制单元,用于控制移动终端的Color Management对屏幕色温进行调整,逐渐调低屏幕色温至预定屏幕色温。
其中,还包括:
视频停止判断单元,用于判断移动终端是否停止播放视频;
色温调高控制单元,用于当移动终端停止播放视频时,控制移动终端的Color Management对屏幕色温进行调整,逐渐将屏幕色温调至开始播放视频之前的色温。
本发明提供了一种移动终端播放视频时自动调整屏幕色温的方法及系统,所述方法包括:检测移动终端是否在播放视频;当移动终端在播放视频时,控制移动终端将屏幕色温调低至预定屏幕色温。本发明能在移动终端播放视频时,控制移动终端自动将屏幕色温调低,达到减小人眼疲劳,保护视力的目的。
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为本发明的移动终端播放视频时自动调整屏幕色温的方法较佳实施例的流程图;
图2为本发明的移动终端播放视频时自动调整屏幕色温的系统较佳实施例的功能原理框图。
以下将配合附图及实施例来详细说明本申请的实施方式,藉此对本申请如何应用技术手段来解决技术问题并达成技术功效的实现过程能充分理解并据以实施。
请参阅图1,图1是本发明移动终端播放视频时自动调整屏幕色温的方法第一较佳实施例的流程图,如图1所示,本发明实施例提供的一种移动终端播放视频时自动调整屏幕色温的方法,包括以下步骤:
步骤S100,检测移动终端是否开始播放视频;
现在绝大多数用户都有用使用移动终端观看视频的习惯,而且经常是一看就是好几个小时,对眼睛伤害极大,长时间下来必然会损坏眼睛健康,而且屏幕的蓝光更会对睡眠产生消极的影响,使人没有睡意,影响睡眠质量,虽然可以调节屏幕的色温,但一般都是手动调节,使用起来极不方便,而且观看视频一般都会看得比较入迷,尤其是观看自己喜欢的电视剧,从而没有意识到屏幕亮光太强对眼睛的伤害,等视屏观看完才发现眼睛胀痛,本发明可以在移动终端开始播放视频时自动调低屏幕色温,即使用户忘记在观看视频时手动调节屏幕色温,也可以减轻观看视频对眼睛的伤害,本发明可检测移动终端是否开始播放视频,当移动终端开始播放视频时,自动调低屏幕色温,减少对人眼的伤害。优选的,首先设定检测的第一间隔时间,然后每隔一个所述第一间隔时间检测一次移动终端是否开始播放视频,例如,将所述第一间隔时间设定为0.1S,则检测移动终端是否开始播放视频的检测时间间隔为0.1S,即每隔0.1S检测一次移动终端是否开始播放视频。
步骤S200,当移动终端开始播放视频时,控制移动终端将屏幕色温调低至预定屏幕色温;
具体的,本发明当检测到移动终端开始播放视频时,可自动控制移动终端将屏幕色温调低至预定屏幕色温,所述预定屏幕色温即预定播放视频的屏幕色温,所述预定播放视频的屏幕色温可预先在移动终端中设置,一般移动终端屏幕色温的范围为3000k~10000k,优选的,当移动终端屏幕色温设置为6500K时,所述预定播放视频的屏幕色温为5000K,当移动终端屏幕色温设置为8000K时,所述预定播放视频的屏幕色温为6000K,用户也可以根据自己的情况对所述预定播放视频的屏幕色温进行修改设置,当检测到移动终端开始播放视频时,移动终端自动将屏幕色温调低至所述预定播放视频的屏幕色温。
进一步地,所述步骤S200之后还包括:
步骤S400、检测移动终端是否停止播放视频;
步骤S500、当移动终端停止播放视频时,控制移动终端调整屏幕色温至原色温。
本发明在检测到移动终端开始播放视频调低屏幕色温之后,进一步检测移动终端是否停止播放视频,当移动终端停止播放视频时,控制移动终
端调整屏幕色温至原色温,无需用户手动进行调节即可使移动终端的屏幕恢复至观看视频之前的屏幕色温。优选的,首先设定检测的第二间隔时间,然后每隔一个所述第二间隔时间检测一次移动终端是否停止播放视频,例如,将所述第二间隔时间设定为0.1S,则检测移动终端是否停止播放视频的检测时间间隔为0.1S,即每隔0.1S检测一次移动终端是否停止播放视频。
进一步地,所述步骤S100具体包括:
S110,通过调用Framework的MediaPlayerService查询客户端的状态;
S120,判断移动终端是否开始播放视频。
具体在实施例中,以安卓手机为例,我们知道播放视频一般都通过调用Framework的MediaPlayerService来实现,即通过MediaPlayerService创建IMediaPlayer接口来实现视频播放的控制,而MediaPlayerService则在内部创建并维护一个又一个的Client类对象做为IMediaPlayer的服务端BnMediaPlayer,并由其内部的MediaPlayerBase类成员mPlayer来实现IMediaPlayer接口的各方法,MediaPlayerService通过遍历内部Client对象数组,调用MediaPlayerService::Client::isPlaying成员函数来查询每个客户端是否处于播放状态,如此可利用此逻辑作为MediaPlayerService判断手机是否在播放视频的一个方法,方法名称可为isPlayingVideo。
进一步地,所述步骤S200具体包括:
S210,当移动终端开始播放视频时,储存当前屏幕色温;
S220,控制移动终端的Color Management对屏幕色温进行调整,逐渐调低屏幕色温至预定屏幕色温。
本发明在检测到移动终端开始播放视频时,储存当前屏幕的色温,然后在控制移动终端的Color Management对屏幕色温进行调整,逐渐调低屏幕色温。目前手机硬件平台的显示系统一般都有一个专门负责显示处理的芯片,在Qualcomm平台称之为MDP(Mobile Display Processor),此芯片除了将屏幕需要显示帧从指定的内存位置通过MIPI DSI送给LCD显示外,还有对显示帧进行后处理的功能,其中一项便是Color Management,即可以对显示帧的颜色进行增强处理,对色调、饱和度、亮度等进行调整,以及结合显示屏做色温的Calibration以做后续的色温调整,对应的SDK为ColorManager,java类名为com.qti.snapdragon.sdk.display.ColorManager,即
可调用此java类来调整显示的色温,当移动终端开始播放视频时,储存当前屏幕色温,调用Color Management类名为com.qti.snapdragon.sdk.display.ColorManager的java逐渐调低屏幕色温至预定屏幕色温。本发明对色温的调整是逐渐的调整,这样可使人眼有个渐渐适应的过程,如果突然把屏幕色温调低或调高很多,会对人眼产生强烈的刺激,人眼瞳孔迅速缩放,对人眼造成伤害。
进一步地,所述步骤S400具体包括:
S410、通过调用Framework的MediaPlayerService查询客户端的状态;
S420、判断移动终端是否停止播放视频。
具体的,调用Framework的MediaPlayerService查询客户端的状态的原理如步骤S110,所述,在此不作赘述,本发明步骤S400中调用Framework的MediaPlayerService查询客户端的状态之后判断移动终端是否停止播放视频。
进一步的,所述步骤S500具体包括:
S510、当移动终端停止播放视频时,控制移动终端的Color Management对屏幕色温进行调整,逐渐将屏幕色温调至开始播放视频之前的色温。
具体的,控制移动终端的Color Management对屏幕色温进行调整的原理如步骤S220所述,在此不作赘述,本发明步骤510中,控制移动终端的Color Management对屏幕色温进行调整之后,逐渐将屏幕色温调至开始播放视频之前的色温,本发明对色温的调整是逐渐的调整,给人眼一个适应的过程,具体如步骤S220所述。
基于上述实施例,本发明还提供一种移动终端播放视频时自动调整屏幕色温的系统,请参阅图2,图2是本发明移动终端播放视频时自动调整屏幕色温的系统较佳实施例的功能原理框图。
如图2所示,所述系统包括:
视频播放检测模块100,用于检测移动终端是否开始播放视频;具体如上所述;
色温调低控制模块200,用于当移动终端开始播放视频时,控制移动终端将屏幕色温调低至预定屏幕色温;具体如上所述。
进一步的,所述移动终端播放视频时自动调整屏幕色温的系统,其中,还包括:
视频停止检测模块,用于检测移动终端是否停止播放视频;具体如上所述;
色温调高控制模块,用于当移动终端停止播放视频时,控制移动终端调整屏幕色温至原色温;具体如上所述。
进一步的,所述移动终端播放视频时自动调整屏幕色温的系统,其中,所述视频播放检测模块具体包括:
视频播放检测单元,用于通过调用Framework的MediaPlayerService查询视频客户端的状态;具体如上所述;
视频播放判断单元,用于判断移动终端是否开始播放视频;具体如上所述。
进一步的,所述移动终端播放视频时自动调整屏幕色温的系统,其中,所述色温调低控制模块具体包括:
当前色温储存单元,用于当移动终端开始播放视频时,储存当前屏幕色温;具体如上所述;
色温调低控制单元,用于控制移动终端的Color Management对屏幕色温进行调整,逐渐调低屏幕色温至预定屏幕;具体如上所述。
进一步的,所述移动终端播放视频时自动调整屏幕色温的系统,其中,还包括:
视频停止判断单元,用于判断移动终端是否停止播放视频;具体如上所述。
色温调高控制单元,用于当移动终端停止播放视频时,控制移动终端的Color Management对屏幕色温进行调整,逐渐将屏幕色温调至开始播放视频之前的色温;具体如上所述。
综上所述,本发明公开了一种移动终端播放视频时自动调整屏幕色温的方法及系统,所述方法包括:步骤A,检测移动终端是否开始播放视频;步骤B,当移动终端开始播放视频时,控制移动终端将屏幕色温调低至预定屏幕色温。本发明能在移动终端播放视频时,控制移动终端自动将屏幕
色温调低,达到减小人眼疲劳,保护视力的目的。
以上内容仅为本发明的较佳实施例,并非是对本发明做任何形式上的限制。虽然本发明已以较佳实施例揭露如上,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰,得到等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的保护范围内。
Claims (20)
- 一种移动终端播放视频时自动调整屏幕色温的方法,其中,包括:步骤A,检测移动终端是否开始播放视频;其中,设定检测的第一间隔时间,每隔一个所述第一间隔时间检测一次移动终端是否开始播放视频;步骤B,当移动终端开始播放视频时,控制移动终端将屏幕色温逐渐调低至预定屏幕色温;步骤D,检测移动终端是否停止播放视频;其中,设定检测的第二间隔时间,每隔一个所述第二间隔时间检测一次移动终端是否停止播放视频;步骤E,当移动终端停止播放视频时,控制移动终端将屏幕色温逐渐调整至原色温。
- 根据权利要求1所述的移动终端播放视频时自动调整屏幕色温的方法,其中,所述第一间隔时间为0.1S。
- 根据权利要求1所述的移动终端播放视频时自动调整屏幕色温的方法,其中,所述第二间隔时间为0.1S。
- 根据权利要求1所述的移动终端播放视频时自动调整屏幕色温的方法,其中,所述步骤A具体包括:A1、通过调用Framework的MediaPlayerService查询客户端的状态;A2、判断移动终端是否开始播放视频。
- 根据权利要求1所述的移动终端播放视频时自动调整屏幕色温的方法,其中,所述步骤B具体包括:B1、当移动终端开始播放视频时,储存当前屏幕色温;B2、控制移动终端的Color Management对屏幕色温进行调整,逐渐调低屏幕色温至预定屏幕色温。
- 根据权利要求1所述的移动终端播放视频时自动调整屏幕色温的方法,其中,所述步骤D具体包括:D1、通过调用Framework的MediaPlayerService查询客户端的状态;D2、判断移动终端是否停止播放视频;所述步骤E具体包括:E1、当移动终端停止播放视频时,控制移动终端的Color Management对屏幕色温进行调整,逐渐将屏幕色温调至开始播放视频之前的色温。
- 一种移动终端播放视频时自动调整屏幕色温的方法,其中,包括:步骤A,检测移动终端是否开始播放视频;步骤B,当移动终端开始播放视频时,控制移动终端将屏幕色温调低至预定屏幕色温。
- 根据权利要求7所述的移动终端播放视频时自动调整屏幕色温的方法,其中,所述步骤B之后还包括:步骤D,检测移动终端是否停止播放视频;步骤E,当移动终端停止播放视频时,控制移动终端调整屏幕色温至原色温。
- 根据权利要求7所述的移动终端播放视频时自动调整屏幕色温的方法,其中,所述步骤A具体包括:A1、通过调用Framework的MediaPlayerService查询客户端的状态;A2、判断移动终端是否开始播放视频。
- 根据权利要求7所述的移动终端播放视频时自动调整屏幕色温的方法,其中,所述步骤B具体包括:B1、当移动终端开始播放视频时,储存当前屏幕色温;B2、控制移动终端的Color Management对屏幕色温进行调整,逐渐调低屏幕色温至预定屏幕色温。
- 根据权利要求8所述的移动终端播放视频时自动调整屏幕色温的方法,其中,所述步骤D具体包括:D1、通过调用Framework的MediaPlayerService查询客户端的状态;D2、判断移动终端是否停止播放视频;所述步骤E具体包括:E1、当移动终端停止播放视频时,控制移动终端的Color Management对屏幕色温进行调整,逐渐将屏幕色温调至开始播放视频之前的色温。
- 一种移动终端播放视频时自动调整屏幕色温的系统,其中,包括:视频播放检测模块,用于检测移动终端是否开始播放视频;色温调低控制模块,用于当移动终端开始播放视频时,控制移动终端将屏幕色温调低到预定屏幕色温。
- 根据权利要求12所述的移动终端播放视频时自动调整屏幕色温的系统,其中,还包括:视频停止检测模块,用于检测移动终端是否停止播放视频;色温调高控制模块,用于当移动终端停止播放视频时,控制移动终端调整屏幕色温至原色温。
- 根据权利要求12所述的移动终端播放视频时自动调整屏幕色温的系统,其中,所述视频播放检测模块中预设有进行检测的第一间隔时间,所述视频播放检测模块配置为每隔一个所述第一间隔时间检测一次移动终端是否开始播放视频。
- 根据权利要求14所述的移动终端播放视频时自动调整屏幕色温的系统,其中,所述第一间隔时间设置为0.1S。
- 根据权利要求13所述的移动终端播放视频时自动调整屏幕色温的系统,其中,所述视频停止检测模块中预设有进行检测的第二间隔时间,所述视频停止检测模块配置为每隔一个所述第二间隔时间检测一次移动终端是否停止播放视频。
- 根据权利要求16所述的移动终端播放视频时自动调整屏幕色温的系统,其中,所述第二间隔时间设置为0.1S。
- 根据权利要求12所述的移动终端播放视频时自动调整屏幕色温的系统,其中,所述视频播放检测模块具体包括:视频播放检测单元,用于通过调用Framework的MediaPlayerService查询客户端的状态;视频播放判断单元,用于判断移动终端是否开始播放视频。
- 根据权利要求12所述的移动终端播放视频时自动调整屏幕色温的系统,其中,所述色温调低控制模块具体包括:当前色温储存单元,用于当移动终端开始播放视频时,储存当前屏幕色温;色温调低控制单元,用于控制移动终端的Color Management对屏幕色温进行调整,逐渐调低屏幕色温至预定屏幕色温。
- 根据权利要求13所述的移动终端播放视频时自动调整屏幕色温的系统,其中,还包括:视频停止判断单元,用于判断移动终端是否停止播放视频;色温调高控制单元,用于当移动终端停止播放视频时,控制移动终端的Color Management对屏幕色温进行调整,逐渐将屏幕色温调至开始播放视频之前的色温。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611199718.3A CN106603853A (zh) | 2016-12-22 | 2016-12-22 | 移动终端播放视频时自动调整屏幕色温的方法及系统 |
| CN201611199718.3 | 2016-12-22 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018113530A1 true WO2018113530A1 (zh) | 2018-06-28 |
Family
ID=58600774
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/115034 Ceased WO2018113530A1 (zh) | 2016-12-22 | 2017-12-07 | 移动终端播放视频时自动调整屏幕色温的方法及系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106603853A (zh) |
| WO (1) | WO2018113530A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117198176A (zh) * | 2023-09-08 | 2023-12-08 | 深圳市圆周检测技术有限公司 | 一种显示器色温检测方法、系统和可读存储介质 |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106603853A (zh) * | 2016-12-22 | 2017-04-26 | 惠州Tcl移动通信有限公司 | 移动终端播放视频时自动调整屏幕色温的方法及系统 |
| CN110572595B (zh) * | 2019-08-28 | 2022-08-30 | 深圳Tcl数字技术有限公司 | 激光电视的调整方法、激光电视及可读存储介质 |
| CN111294655B (zh) * | 2020-02-20 | 2021-10-22 | 深圳创维-Rgb电子有限公司 | Hdr片源播放方法、装置及存储介质 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6172719B1 (en) * | 1996-12-24 | 2001-01-09 | Lg Electronics, Inc. | Automatic color temperature control device for video appliance |
| CN102479032A (zh) * | 2010-11-26 | 2012-05-30 | 腾讯科技(深圳)有限公司 | 一种观看ipad视频时背景的调节方法、系统及ipad视频播放器 |
| CN105848003A (zh) * | 2016-03-29 | 2016-08-10 | 乐视控股(北京)有限公司 | 一种适用于显示屏的护眼方法及装置 |
| CN105957498A (zh) * | 2016-06-28 | 2016-09-21 | 广东欧珀移动通信有限公司 | 屏幕色温的控制方法和装置 |
| CN106210892A (zh) * | 2016-07-29 | 2016-12-07 | 深圳前海茂佳软件科技有限公司 | 电视控制方法及装置 |
| CN106249880A (zh) * | 2016-07-21 | 2016-12-21 | 广东欧珀移动通信有限公司 | 控制方法及控制装置 |
| CN106603853A (zh) * | 2016-12-22 | 2017-04-26 | 惠州Tcl移动通信有限公司 | 移动终端播放视频时自动调整屏幕色温的方法及系统 |
-
2016
- 2016-12-22 CN CN201611199718.3A patent/CN106603853A/zh active Pending
-
2017
- 2017-12-07 WO PCT/CN2017/115034 patent/WO2018113530A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6172719B1 (en) * | 1996-12-24 | 2001-01-09 | Lg Electronics, Inc. | Automatic color temperature control device for video appliance |
| CN102479032A (zh) * | 2010-11-26 | 2012-05-30 | 腾讯科技(深圳)有限公司 | 一种观看ipad视频时背景的调节方法、系统及ipad视频播放器 |
| CN105848003A (zh) * | 2016-03-29 | 2016-08-10 | 乐视控股(北京)有限公司 | 一种适用于显示屏的护眼方法及装置 |
| CN105957498A (zh) * | 2016-06-28 | 2016-09-21 | 广东欧珀移动通信有限公司 | 屏幕色温的控制方法和装置 |
| CN106249880A (zh) * | 2016-07-21 | 2016-12-21 | 广东欧珀移动通信有限公司 | 控制方法及控制装置 |
| CN106210892A (zh) * | 2016-07-29 | 2016-12-07 | 深圳前海茂佳软件科技有限公司 | 电视控制方法及装置 |
| CN106603853A (zh) * | 2016-12-22 | 2017-04-26 | 惠州Tcl移动通信有限公司 | 移动终端播放视频时自动调整屏幕色温的方法及系统 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117198176A (zh) * | 2023-09-08 | 2023-12-08 | 深圳市圆周检测技术有限公司 | 一种显示器色温检测方法、系统和可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106603853A (zh) | 2017-04-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103680465B (zh) | 视疲劳的检测及缓解方法 | |
| RU2704719C1 (ru) | Способ и устройство управления дисплеем, электронное устройство и машиночитаемый носитель данных | |
| WO2018113530A1 (zh) | 移动终端播放视频时自动调整屏幕色温的方法及系统 | |
| CN104934014B (zh) | 视力保护方法及装置 | |
| CN105788564A (zh) | 一种自动调节屏幕显示的方法及系统 | |
| CN111565289A (zh) | 一种调节屏幕亮度和色温的方法、终端及存储介质 | |
| WO2015096617A1 (zh) | 图像质量调整方法及系统 | |
| CN104110787B (zh) | 一种空调器的控制方法和控制系统 | |
| CN112086075B (zh) | 屏幕显示参数调节方法、装置及存储介质 | |
| TW201517010A (zh) | 電子裝置及其螢幕控制方法 | |
| CN111667798A (zh) | 一种屏幕调节方法及装置 | |
| EP3840367B1 (en) | Television and backlight control method therefor, control device, and readable storage medium | |
| CN107045417A (zh) | 屏幕色温调节方法、装置及其设备 | |
| CN107517368A (zh) | 终端色温调节方法及装置 | |
| US12190848B2 (en) | Systems and methods for adjusting light emitted from a display | |
| CN106339198B (zh) | 一种通过环境音量自动调节电子设备音量的方法及系统 | |
| CN103514828A (zh) | 根据光线的色温变化调节界面显示的装置、方法和终端 | |
| CN110675839A (zh) | 一种屏幕调节方法、电子设备及相关装置 | |
| CN107491162A (zh) | 显示屏状态调整方法、显示屏状态调整装置及终端 | |
| CN105278809A (zh) | 阅读提醒方法及装置 | |
| CN105657186A (zh) | 音量控制方法及装置 | |
| WO2016045525A1 (zh) | 终端状态的处理方法及装置 | |
| CN103702050A (zh) | 电视及其音量调整方法 | |
| CN110602330A (zh) | 来电响应方法、设备及计算机可读存储介质 | |
| CN108154865A (zh) | 调节屏幕色温的方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17885408 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17885408 Country of ref document: EP Kind code of ref document: A1 |