WO2015131550A1 - 一种控制播放器进入睡眠模式的方法、装置及终端设备 - Google Patents
一种控制播放器进入睡眠模式的方法、装置及终端设备 Download PDFInfo
- Publication number
- WO2015131550A1 WO2015131550A1 PCT/CN2014/091306 CN2014091306W WO2015131550A1 WO 2015131550 A1 WO2015131550 A1 WO 2015131550A1 CN 2014091306 W CN2014091306 W CN 2014091306W WO 2015131550 A1 WO2015131550 A1 WO 2015131550A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- player
- state
- determining
- sleep mode
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
- H04W52/0254—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3231—Monitoring the presence, absence or movement of users
-
- 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/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
-
- 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/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to the field of communications, and in particular, to a method, device, and terminal device for controlling a player to enter a sleep mode.
- the automatic closing function of the player in the mobile phone is mainly embodied in the setting module of the sleep mode of the music player and the radio, and the related settings of the following sleep modes are completed:
- timing off/sleep time setting When using the player, pre-open the player's timing off/sleep time setting, turn on the sleep mode function; 2. Set the timing/sleep time, set the time, music (video) player / The radio will automatically turn off after this time (can be set to 10min, 20min, 30min, 60min, 90min).
- the sleep mode/timed shutdown reminder function of the player in the mobile phone is mainly used in the music player and the radio module to complete the following settings of the sleep mode or the timing function:
- the module can use this function; 2. Set a specific time, in the music player can be 0 ⁇ 90min any time, by dragging the bar to set the sleep mode time point; The time for the timer to be turned off in the radio is 10min, 20min, 30min, 60min, 90min, the user can set this time according to his own situation; 3. After setting the sleep time, when the multimedia is used at that time, it will automatically Exit and turn off the sound.
- the working method is as follows: Before using these multimedia, if you want to use the sleep mode or the timed shutdown function, you need to enter the settings of the relevant module, turn on the sleep mode function, and manually set the time point of the sleep mode you need, when multimedia After playing to this point in time, it will automatically close and exit, enter sleep mode, without any prompt; if the user does not open and set, the function will not be reflected;
- the sleep mode is not intelligent enough.
- these sleep mode functions provided in the mobile phone require the user to open and set in advance in order to use this function, which is not intelligent enough. If the user forgets to turn on this function before falling asleep, and listens to fall asleep, then this function will not work, the music will play until the user is woken up, and then manually shut down; 2. The user experience is poor. If the user sets a time point, but does not fall asleep or is still busy with other things, when the sleep time is up, the multimedia will automatically quit, without any prompt interface, causing inconvenience to the user.
- embodiments of the present invention are expected to provide a method, device, and terminal device for controlling a player to enter a sleep mode.
- An embodiment of the present invention provides a method for controlling a player to enter a sleep mode, which is applied to a terminal having a player, including:
- the player of the terminal is turned off.
- determining whether the player of the terminal is in a playing state comprises:
- the current of the terminal speaker port or the earphone socket end is detected. If the detected current is higher than the threshold value, it is determined that the working state of the player of the terminal is the playing state.
- the determining whether the terminal is in a static state when the player is in a playing state includes:
- the determining whether the terminal is in a static state when the player is in a playing state includes:
- Detecting an acceleration of the gravity sensor of the terminal if the detected acceleration is zero, detecting whether the touch screen of the terminal is touched, and if detecting that the touch screen of the terminal is not touched, determining that the terminal is stationary State; otherwise, it is determined that the terminal is not in a resting state.
- the embodiment of the invention further provides a device for controlling a player to enter a sleep mode, which is applied to a terminal having a player, comprising:
- the first determining module is configured to determine whether the player of the terminal is in a playing state
- the second judging module is configured to determine, according to the judgment result of the first judging module, whether the terminal is in a resting state when the player is in a playing state;
- the third determining module is configured to: according to the determination result of the second determining module, after the terminal is in a static state, and the static state continues for a preset time, a prompt signal is sent, and the terminal is determined again Being in a resting state;
- And closing the module configured to close the player of the terminal when the terminal is still in a static state according to the determination result of the third determining module.
- the first determining module is further configured to: detect a terminal speaker port or a headphone jack The current of the terminal, if the detected current is higher than the threshold, determines that the working state of the player of the terminal is the playing state.
- the second determining module is further configured to: detect an acceleration of the gravity sensor of the terminal, and if the detected acceleration is zero, determine that the terminal is in a resting state; otherwise, determine that the terminal is not in the Resting state.
- the second determining module is further configured to: detect an acceleration of the gravity sensor of the terminal, and if the detected acceleration is zero, detect whether the touch screen of the terminal is touched, and if the terminal touch screen is detected If it is not touched, it is determined that the terminal is in a resting state; otherwise, it is determined that the terminal is not in a resting state.
- an embodiment of the present invention further provides a terminal device, having a player, including the foregoing apparatus for controlling a player to enter a sleep mode.
- Embodiments of the present invention also provide a computer readable storage medium, the storage medium comprising a set of computer executable instructions for performing the above method of controlling a player to enter a sleep mode.
- a prompt signal is sent to obtain the user's response, and the answer signal is still not answered after the end of the prompting signal.
- the player of the terminal is closed, and the method for controlling the player to enter the sleep mode does not require the user to perform preset settings, and the terminal such as the mobile phone can automatically recognize the state of the terminal, thereby automatically turning on the sleep mode and using the mobile phone with the user. Come for more convenience.
- FIG. 1 is a flow chart showing a method for controlling a player to enter a sleep mode in an embodiment of the present invention
- FIG. 2 is a block diagram showing an apparatus for controlling a player to enter a sleep mode in an embodiment of the present invention
- FIG. 3 is a flow chart showing the control of the player entering the sleep mode in the embodiment of the present invention.
- the embodiment of the present invention provides a method, a device, and a terminal device for controlling a player to enter a sleep mode, in order to solve the problem that a mobile phone player needs to be preset in advance to enter a sleep mode.
- an embodiment of the present invention provides a method for controlling a player to enter a sleep mode, which is applied to a terminal having a player, including:
- Step S11 determining whether the player of the terminal is in a playing state
- Step S12 determining, when the player is in a playing state, whether the terminal is in a resting state
- Step S13 If the terminal is in a static state, and the static state continues for a preset time, a prompt signal is sent, and it is determined again whether the terminal is in a resting state;
- Step S14 If the terminal is still in the resting state, the player of the terminal is closed.
- the step of determining whether the player of the terminal is in a playing state includes:
- the current of the terminal speaker port or the earphone socket end is detected. If the detected current is higher than the threshold value, it is determined that the working state of the player of the terminal is the playing state.
- the threshold value is zero, that is, if the detected current value is not zero, it can be determined that the terminal player is in the playing state.
- the step of determining whether the terminal is in a resting state includes:
- the step of determining whether the terminal is in a resting state may also include the following steps:
- Detecting an acceleration of the gravity sensor of the terminal if the detected acceleration is zero, detecting whether the touch screen of the terminal is touched, and if detecting that the touch screen of the terminal is not touched, determining that the terminal is stationary State; otherwise, it is determined that the terminal is not in a resting state.
- the terminal such as the mobile phone can automatically recognize the state of the terminal, thereby automatically turning on the sleep mode, and bringing more convenience to the user using the mobile phone.
- the present invention further provides an apparatus for controlling a player to enter a sleep mode, which is applied to a terminal having a player, including:
- the first determining module 21 is configured to determine whether the player of the terminal is in a playing state
- the second determining module 22 is configured to determine, according to the determination result of the first determining module, whether the terminal is in a resting state when the player is in a playing state;
- the third determining module 23 is configured to, according to the determination result of the second determining module, after the terminal is in a resting state, and the resting state continues for a preset time, issue a prompt signal, and determine the terminal again. Whether it is in a resting state;
- the closing module 24 is configured to close the player of the terminal when the terminal is still in the resting state according to the determination result of the third determining module.
- the first determining module 21 is further configured to:
- the current of the terminal speaker port or the earphone socket end is detected. If the detected current is higher than the threshold value, it is determined that the working state of the player of the terminal is the playing state.
- the second determining module 22 is further configured to:
- the second determining module 22 is further configured to:
- Detecting an acceleration of the gravity sensor of the terminal if the detected acceleration is zero, detecting whether the touch screen of the terminal is touched, and if detecting that the touch screen of the terminal is not touched, Then, it is determined that the terminal is in a resting state; otherwise, it is determined that the terminal is not in a resting state.
- the first determining module 21, the second determining module 22, the third determining module 23, and the closing module 24 may be a central processing unit (CPU) of the device that controls the player to enter the sleep mode.
- CPU central processing unit
- a processor MPU, Micro Processing Unit
- DSP digital signal processor
- FPGA Field-Programmable Gate Array
- the embodiment of the present invention further provides a terminal device, including a player, including the foregoing device for controlling a player to enter a sleep mode, and the terminal device may be a mobile phone, an ipad, or the like.
- the player enters the sleep mode control process:
- the condition status of the mobile phone includes: the mobile phone playing state and the mobile phone standing state.
- these two conditions are prerequisites for entering the sleep mode; if the mobile phone fails to satisfy one of the two conditions, the mobile phone returns to the original playing state and cannot enter the sleep mode; when two condition states are reached;
- the mobile phone emits a vibration or a beep, it indicates that the sleep time is up; if the user still wants to continue playing when he is still asleep, he can change the position of the mobile phone by touching the mobile phone, and break one of the conditional states, without going to sleep. Mode; when the user is asleep when the mobile phone is vibrating, it will not answer.
- the two conditions are met, the mobile phone enters the sleep mode, and the player automatically turns off.
- the method, device and terminal device for controlling the player to enter the sleep mode determine whether the terminal player is in the playing state, and if the player is in the playing state, the terminal is also in the standing state, and the resting state continues for the preset time. After that, a prompt signal is sent to the user's response, and after the prompt signal ends, there is still no response, then the player of the terminal is turned off, and the method for controlling the player to enter the sleep mode does not require the user to preset, the mobile phone, etc.
- the terminal can automatically recognize the state of the terminal, thereby automatically turning on the sleep mode, and bringing more convenience to the user using the mobile phone.
- the embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for executing the control player provided by the above embodiment The way to enter sleep mode.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
本发明提供了一种控制播放器进入睡眠模式的方法、装置及终端设备,应用于一具有播放器的终端,其中该方法包括:判断所述终端的播放器是否处于播放状态;在所述播放器处于播放状态时,判断所述终端是否处于静置状态;若所述终端处于静置状态,且所述静置状态持续预设时间后,发出提示信号,并再次判断所述终端是否处于静置状态;若所述终端仍处于静置状态,则关闭所述终端的播放器。
Description
本发明涉及通信领域,特别涉及一种控制播放器进入睡眠模式的方法、装置及终端设备。
随着智能技术在手机上面的推广和应用,手机已经不单单是一种通信的工具,它的应用已经涉及到人们生活和工作的各个方面,如社交、购物、信息查询等等,它已经成为人们生活和工作中必不可少的多媒体工具。
虽然手机功能越来越强大,但在很多场合下,人们仍希望自己的手机更加人性化,更加智能化。很多人现在都喜欢在闲暇休息的时候通过手机来听音乐,听广播,伴随着轻快温馨的音乐,人们的身心得到放松,自然慢慢进入梦乡。但是用户在睡眠中时,手机还在播放着音乐或广播,这就造成手机电量的浪费,很有可能在用户醒来后需要使用手机的时候,手机因电量耗尽而无法使用,而且长时间的听音乐对耳膜也会产生较大伤害。
目前手机中的关于播放器的自动关闭功能,主要体现在音乐播放器和收音机的睡眠模式的设置模块中,完成以下睡眠模式的相关设置:
1.在使用播放器的时候,预先打开播放器的定时关闭/睡眠时间的设置,开启睡眠模式功能;2.设定定时/睡眠的时间,设置好这个时间后,音乐(视频)播放器/收音机会在这个时间之后自动关闭(可以设置为10min,20min,30min,60min,90min)。
目前手机中的播放器的睡眠模式/定时关机提醒功能,主要是在音乐播放器和收音机模块中有使用到,完成以下睡眠模式或者定时功能的相关设置:
1.打开睡眠模式的开关,该模块才能使用这个功能;2.设定一个具体时间,在音乐播放器中可以是0~90min的任何时间,通过拖动条来设置睡眠模式的时间点;在收音机中定时关闭的时间分别为10min,20min,30min,60min,90min,用户可以根据自己的情况来设置这个时间;3.设定好睡眠时间后,当多媒体使用到那个时间点之后,将会自动退出,关闭声音。
工作方式如下:用户在使用这些多媒体之前,如果想使用睡眠模式或者定时关机的功能,需要进入到相关模块的设置,开启睡眠模式的功能,并手动设置自己需要的睡眠模式的时间点,当多媒体播放到这个时间点之后,则会自动关闭退出,进入睡眠模式,没有任何提示;如果用户没有进行开启和设置,该功能则不会体现;
目前这些多媒体中所提供的睡眠模式的功能都是要通过人为的提前开启和设置,才能使用这个功能,这种定时关闭的方式有以下的缺点:1.睡眠模式不够智能化。目前手机中所提供的这些睡眠模式功能,都是需要用户去提前开启和设置,才能使用这个功能,不够智能化。如果用户在睡着之前忘记去开启这个功能,听着就睡着了,那么这个功能也就失效了,音乐就会一直播放,直到用户被吵醒,然后手动关闭;2.用户体验差。如果用户设置了一个时间点,但并未睡着或者还在忙于其他的事情,等睡眠时间点到了,多媒体便自动退出了,没有任何的提示界面,给用户带来不便。
发明内容
为解决现有存在的技术问题,本发明实施例期望提供一种控制播放器进入睡眠模式的方法、装置及终端设备。
本发明实施例提供了一种控制播放器进入睡眠模式的方法,应用于具有播放器的终端,包括:
判断所述终端的播放器是否处于播放状态;
在所述播放器处于播放状态时,判断所述终端是否处于静置状态;
若所述终端处于静置状态,且所述静置状态持续预设时间后,发出提示信号,并再次判断所述终端是否处于静置状态;
若所述终端仍处于静置状态,则关闭所述终端的播放器。
其中,判断所述终端的播放器是否处于播放状态,包括:
检测终端扬声器端口或耳机插口端的电流,若检测到的所述电流高于门限值,则判定所述终端的播放器的工作状态为播放状态。
其中,在所述播放器处于播放状态时,判断所述终端是否处于静置状态,包括:
检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
其中,在所述播放器处于播放状态时,判断所述终端是否处于静置状态,包括:
检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则检测所述终端的触摸屏是否被触摸,若检测到所述终端触摸屏未被触摸,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
本发明实施例还提供了一种控制播放器进入睡眠模式的装置,应用于具有播放器的终端,包括:
第一判断模块,配置为判断所述终端的播放器是否处于播放状态;
第二判断模块,配置为根据所述第一判断模块的判断结果,在所述播放器处于播放状态时,判断所述终端是否处于静置状态;
第三判断模块,配置为根据所述第二判断模块的判断结果,在所述终端处于静置状态,且所述静置状态持续预设时间后,发出提示信号,并再次判断所述终端是否处于静置状态;
关闭模块,配置为根据所述第三判断模块的判断结果,在所述终端仍处于静置状态时,关闭所述终端的播放器。
其中,所述第一判断模块还配置为:检测终端扬声器端口或耳机插口
端的电流,若检测到的所述电流高于门限值,则判定所述终端的播放器的工作状态为播放状态。
其中,所述第二判断模块还配置为:检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
其中,所述第二判断模块还配置为:检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则检测所述终端的触摸屏是否被触摸,若检测到所述终端触摸屏未被触摸,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
此外,本发明实施例还提供了一种终端设备,具有播放器,包括上述的控制播放器进入睡眠模式的装置。
本发明实施例还提供了一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行上述控制播放器进入睡眠模式的方法。
本发明实施例的上述技术方案的有益效果如下:
上述方案中,当判断终端播放器处于播放状态,同时终端也处于静置状态,且静置状态持续预设时间后,发出提示信号,以求使用者的应答,提示信号结束后,仍无应答,则关闭所述终端的播放器,该控制播放器进入睡眠模式的方法,不需要用户进行预先设置,手机等终端可以自动辨识终端所处的状态,从而自动打开睡眠模式,给用户使用手机带来更多的便利。
图1表示本发明实施例中控制播放器进入睡眠模式的方法流程图;
图2表示本发明实施例中控制播放器进入睡眠模式的装置框图;
图3表示本发明实施例中播放器进入睡眠模式的控制流程图。
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。
本发明实施例针对目前手机播放器需要用户预先设置才能进入睡眠模式的问题,提供了一种控制播放器进入睡眠模式的方法、装置及终端设备。
如图1所示,本发明实施例提供了一种控制播放器进入睡眠模式的方法,应用于具有播放器的终端,包括:
步骤S11:判断所述终端的播放器是否处于播放状态;
步骤S12:在所述播放器处于播放状态时,判断所述终端是否处于静置状态;
步骤S13:若所述终端处于静置状态,且所述静置状态持续预设时间后,发出提示信号,并再次判断所述终端是否处于静置状态;
步骤S14:若所述终端仍处于静置状态,则关闭所述终端的播放器。
其中,判断所述终端的播放器是否处于播放状态的步骤包括:
检测终端扬声器端口或耳机插口端的电流,若检测到的所述电流高于门限值,则判定终端的播放器的工作状态为播放状态。本实施例中该门限值为零,即若检测到的电流值不为零,则可以判定终端播放器处于播放状态。
在所述播放器处于播放状态时,判断所述终端是否处于静置状态的步骤包括:
检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
以手机为例,实际生活中,在正常使用手机播放功能下,使用者对手机的操作频率是很高的,播放器在工作的同时,使用者也可以对手机进行其他的操作(上网,聊天等)。只有手机位置没有任何改变的情况下,才有
很大可能判断为手机进入需要休眠模式。因此,在所述播放器处于播放状态时,判断所述终端是否处于静置状态的步骤也可以包括如下步骤:
检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则检测所述终端的触摸屏是否被触摸,若检测到所述终端触摸屏未被触摸,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
上述方案中,不需要用户进行预先设置,手机等终端可以自动辨识终端所处的状态,从而自动打开睡眠模式,给用户使用手机带来更多的便利。
如图2所示,本发明还提供了一种控制播放器进入睡眠模式的装置,应用于具有播放器的终端,包括:
第一判断模块21,配置为判断所述终端的播放器是否处于播放状态;
第二判断模块22,配置为根据所述第一判断模块的判断结果,在所述播放器处于播放状态时,判断所述终端是否处于静置状态;
第三判断模块23,配置为根据所述第二判断模块的判断结果,在所述终端处于静置状态,且所述静置状态持续预设时间后,发出提示信号,并再次判断所述终端是否处于静置状态;
关闭模块24,配置为根据所述第三判断模块的判断结果,在所述终端仍处于静置状态时,关闭所述终端的播放器。
所述第一判断模块21还配置为:
检测终端扬声器端口或耳机插口端的电流,若检测到的所述电流高于门限值,则判定所述终端的播放器的工作状态为播放状态。
所述第二判断模块22还配置为:
检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
所述第二判断模块22还配置为:
检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则检测所述终端的触摸屏是否被触摸,若检测到所述终端触摸屏未被触摸,
则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
需要说明的是,上述第一判断模块21、第二判断模块22、第三判断模块23和关闭模块24可以由控制播放器进入睡眠模式的装置的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)实现。
此外,本发明实施例还提供了一种终端设备,具有播放器,包括上述的控制播放器进入睡眠模式的装置,该终端设备可以为手机、ipad等。
如图3所示,播放器进入睡眠模式的控制流程:
仍以手机为例,手机的条件状态包括:手机播放状态和手机静置状态。当手机满足两个条件状态,这两个条件是是否进入睡眠模式的先决条件;如果手机未能满足这两个条件之一,均返回原始播放状态,无法进入睡眠模式;当达到两个条件状态时,手机发出震动或提示音,提示睡眠时间到了;若用户当时还没有睡着还想继续播放时,则可以通过触碰手机,使手机位置发生改变,打破条件状态之一,则无需进入睡眠模式;当手机发出震动的时候用户已经睡着,则不会应答,此时满足两个条件状态,手机进入睡眠模式,播放器自动关闭。
上述发明实施例的控制播放器进入睡眠模式的方法、装置及终端设备,通过判断终端播放器是否处于播放状态,若为播放状态,同时终端也处于静置状态,且静置状态持续预设时间后,发出提示信号,以求使用者的应答,提示信号结束后,仍无应答,则关闭所述终端的播放器,该控制播放器进入睡眠模式的方法,不需要用户进行预先设置,手机等终端可以自动辨识终端所处的状态,从而自动打开睡眠模式,给用户使用手机带来更多的便利。
本发明实施例还提供了一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行上述实施例提供的控制播放器
进入睡眠模式的方法。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改
进和润饰,这些改进和润饰也应视为本发明的保护范围。
Claims (10)
- 一种控制播放器进入睡眠模式的方法,应用于具有播放器的终端,包括:判断所述终端的播放器是否处于播放状态;在所述播放器处于播放状态时,判断所述终端是否处于静置状态;若所述终端处于静置状态,且所述静置状态持续预设时间后,发出提示信号,并再次判断所述终端是否处于静置状态;若所述终端仍处于静置状态,则关闭所述终端的播放器。
- 根据权利要求1所述的方法,其中,判断所述终端的播放器是否处于播放状态,包括:检测终端扬声器端口或耳机插口端的电流,若检测到的所述电流高于门限值,则判定所述终端的播放器的工作状态为播放状态。
- 根据权利要求1所述的方法,其中,在所述播放器处于播放状态时,判断所述终端是否处于静置状态,包括:检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
- 根据权利要求1所述的方法,其中,在所述播放器处于播放状态时,判断所述终端是否处于静置状态,包括:检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则检测所述终端的触摸屏是否被触摸,若检测到所述终端的触摸屏未被触摸,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
- 一种控制播放器进入睡眠模式的装置,应用于具有播放器的终端,包括:第一判断模块,配置为判断所述终端的播放器是否处于播放状态;第二判断模块,配置为根据所述第一判断模块的判断结果,在所述播放器处于播放状态时,判断所述终端是否处于静置状态;第三判断模块,配置为根据所述第二判断模块的判断结果,在所述终端处于静置状态,且所述静置状态持续预设时间后,发出提示信号,并再次判断所述终端是否处于静置状态;关闭模块,配置为根据所述第三判断模块的判断结果,在所述终端仍处于静置状态时,关闭所述终端的播放器。
- 根据权利要求5所述的装置,其中,所述第一判断模块还配置为:检测终端扬声器端口或耳机插口端的电流,若检测到的所述电流高于门限值,则判定所述终端的播放器的工作状态为播放状态。
- 根据权利要求5所述的装置,其中,所述第二判断模块配置为:检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
- 根据权利要求5所述的装置,其中,所述第二判断模块配置为:检测所述终端的重力传感器的加速度,若检测到的所述加速度为零,则检测所述终端的触摸屏是否被触摸,若检测到所述终端触摸屏未被触摸,则判定所述终端处于静置状态;否则,判定所述终端不处于静置状态。
- 一种终端设备,具有播放器,包括:如权利要求5至8任一项所述的控制播放器进入睡眠模式的装置。
- 一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行权利要求1至4任一项所述的控制播放器进入睡眠模式的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410484415.0 | 2014-09-19 | ||
CN201410484415.0A CN105430152A (zh) | 2014-09-19 | 2014-09-19 | 一种控制播放器进入睡眠模式的方法、装置及终端设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015131550A1 true WO2015131550A1 (zh) | 2015-09-11 |
Family
ID=54054435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/091306 WO2015131550A1 (zh) | 2014-09-19 | 2014-11-17 | 一种控制播放器进入睡眠模式的方法、装置及终端设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105430152A (zh) |
WO (1) | WO2015131550A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109743447A (zh) * | 2018-12-26 | 2019-05-10 | 努比亚技术有限公司 | 终端控制方法、终端及计算机可读存储介质 |
CN113173176A (zh) * | 2021-04-09 | 2021-07-27 | 浙江吉利控股集团有限公司 | 一种整车静态电流数据处理方法、装置、系统及终端 |
CN113242352A (zh) * | 2021-03-30 | 2021-08-10 | 上海闻泰电子科技有限公司 | 一种音乐播放程序的关闭方法、装置及计算机设备 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933539B (zh) * | 2016-06-22 | 2019-12-06 | 北京小米移动软件有限公司 | 音频播放的控制方法、装置及终端 |
CN107087078A (zh) * | 2017-06-19 | 2017-08-22 | 上海展扬通信技术有限公司 | 收音机控制方法、装置及终端设备 |
CN107452410A (zh) * | 2017-08-31 | 2017-12-08 | 陈海枝 | 一种用于儿童玩具的wifi音频播放方法及装置 |
CN107708187A (zh) * | 2017-09-12 | 2018-02-16 | 北京小米移动软件有限公司 | 睡眠模式的控制方法及装置 |
CN108961855B (zh) * | 2018-05-04 | 2021-02-19 | 何战涛 | 一种便携式早教设备及其使用方法 |
CN110035304B (zh) * | 2019-03-08 | 2021-06-01 | 佛山市云米电器科技有限公司 | 一种应用于多空间的视频进度智能跟随播放方法及系统 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101287300A (zh) * | 2007-04-12 | 2008-10-15 | 鸿富锦精密工业(深圳)有限公司 | 音频设备及播放装置以及控制自动关闭该音频设备的方法 |
CN102065350A (zh) * | 2010-11-01 | 2011-05-18 | 中兴通讯股份有限公司 | 一种智能控制多媒体播放的方法、系统及耳机 |
US8074086B1 (en) * | 2006-12-11 | 2011-12-06 | Cypress Semiconductor Corporation | Circuit and method for dynamic in-rush current control in a power management circuit |
CN103440753A (zh) * | 2013-08-19 | 2013-12-11 | 深圳先进技术研究院 | 一种多媒体播放器的自动关闭系统及方法 |
CN103531214A (zh) * | 2013-10-18 | 2014-01-22 | 深圳市金立通信设备有限公司 | 一种室内设备的控制方法及控制装置 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635769A (zh) * | 2009-08-20 | 2010-01-27 | 深圳华为通信技术有限公司 | 防跌落方法及用户设备 |
-
2014
- 2014-09-19 CN CN201410484415.0A patent/CN105430152A/zh active Pending
- 2014-11-17 WO PCT/CN2014/091306 patent/WO2015131550A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8074086B1 (en) * | 2006-12-11 | 2011-12-06 | Cypress Semiconductor Corporation | Circuit and method for dynamic in-rush current control in a power management circuit |
CN101287300A (zh) * | 2007-04-12 | 2008-10-15 | 鸿富锦精密工业(深圳)有限公司 | 音频设备及播放装置以及控制自动关闭该音频设备的方法 |
CN102065350A (zh) * | 2010-11-01 | 2011-05-18 | 中兴通讯股份有限公司 | 一种智能控制多媒体播放的方法、系统及耳机 |
CN103440753A (zh) * | 2013-08-19 | 2013-12-11 | 深圳先进技术研究院 | 一种多媒体播放器的自动关闭系统及方法 |
CN103531214A (zh) * | 2013-10-18 | 2014-01-22 | 深圳市金立通信设备有限公司 | 一种室内设备的控制方法及控制装置 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109743447A (zh) * | 2018-12-26 | 2019-05-10 | 努比亚技术有限公司 | 终端控制方法、终端及计算机可读存储介质 |
CN109743447B (zh) * | 2018-12-26 | 2020-10-30 | 努比亚技术有限公司 | 终端控制方法、终端及计算机可读存储介质 |
CN113242352A (zh) * | 2021-03-30 | 2021-08-10 | 上海闻泰电子科技有限公司 | 一种音乐播放程序的关闭方法、装置及计算机设备 |
CN113173176A (zh) * | 2021-04-09 | 2021-07-27 | 浙江吉利控股集团有限公司 | 一种整车静态电流数据处理方法、装置、系统及终端 |
Also Published As
Publication number | Publication date |
---|---|
CN105430152A (zh) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015131550A1 (zh) | 一种控制播放器进入睡眠模式的方法、装置及终端设备 | |
US11662974B2 (en) | Mechanism for retrieval of previously captured audio | |
WO2019007245A1 (zh) | 一种处理方法、控制方法、识别方法及其装置和电子设备 | |
US20160180851A1 (en) | Systems and Methods for Continual Speech Recognition and Detection in Mobile Computing Devices | |
JP6285664B2 (ja) | 情報表示のための低電力感知装置及び方法 | |
WO2013123863A1 (zh) | 一种休眠方法、唤醒方法和移动终端设备 | |
WO2014183529A1 (zh) | 切换移动终端通话模式的方法、装置及存储介质 | |
WO2014086238A1 (zh) | 语音后台控制方法及移动终端 | |
WO2016078214A1 (zh) | 终端处理方法、装置及计算机存储介质 | |
CN104378485A (zh) | 调节音量的方法和装置 | |
JP6186518B2 (ja) | 音声通話プロンプト方法、装置、プログラム及び記録媒体 | |
US11178280B2 (en) | Input during conversational session | |
WO2016054903A1 (zh) | 终端音频控制方法、装置、终端及计算机存储介质 | |
WO2017032012A1 (zh) | 一种音量调节方法及用户终端 | |
WO2019174487A1 (zh) | 设备的唤醒方法、装置及电子设备 | |
US20120033533A1 (en) | Electronic device with alarm mode and alarm method thereof | |
WO2017166604A1 (zh) | 一种音乐控制方法和终端、电子设备及存储介质 | |
WO2017148270A1 (zh) | 一种音量控制方法和装置、及终端 | |
WO2014154077A1 (zh) | 一种结束通话的方法、装置及移动终端 | |
CN105450844A (zh) | 一种移动终端闹钟的控制方法和装置 | |
WO2021128405A1 (zh) | 一种tws耳机及其降低耳机能耗的方法、装置和介质 | |
TW201423587A (zh) | 被叫提示系統及方法 | |
US10129382B2 (en) | Electronic device and method for controlling electronic device using headset | |
TWI719026B (zh) | 使用控制方法、系統及電子設備 | |
CN104572007A (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: 14884297 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: 14884297 Country of ref document: EP Kind code of ref document: A1 |