CN105744325B - Audio and video playing control method and audio and video playing control device - Google Patents

Audio and video playing control method and audio and video playing control device Download PDF

Info

Publication number
CN105744325B
CN105744325B CN201610065195.7A CN201610065195A CN105744325B CN 105744325 B CN105744325 B CN 105744325B CN 201610065195 A CN201610065195 A CN 201610065195A CN 105744325 B CN105744325 B CN 105744325B
Authority
CN
China
Prior art keywords
earphone
audio
distance
video
light intensity
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.)
Active
Application number
CN201610065195.7A
Other languages
Chinese (zh)
Other versions
CN105744325A (en
Inventor
白立朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN105744325A publication Critical patent/CN105744325A/en
Application granted granted Critical
Publication of CN105744325B publication Critical patent/CN105744325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/4222Remote control device emulator integrated into a non-television apparatus, e.g. a PDA, media center or smart toy

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Stereophonic System (AREA)
  • Telephone Function (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Receiver Circuits (AREA)

Abstract

The present invention provides a kind of audio and video playing control method, for carrying out audio and video playing control to playback terminal by earphone comprising:Earphone is obtained at a distance from adjacent barrier;According to earphone at a distance from adjacent barrier, the ambient light intensity on the inside of earphone is obtained;And according to the ambient light intensity on the inside of earphone, operation is played out to the audio and video in playback terminal.The present invention also provides a kind of audio and video playing control devices.The audio and video playing control method and audio and video playing control device of the present invention can accurately identify user's use state, to improve the audio and video playing efficiency of playback terminal by obtaining ambient light intensity of the earphone at a distance from adjacent barrier, on the inside of earphone.

Description

Audio and video playing control method and audio and video playing control device
Technical field
The present invention relates to the communications field more particularly to a kind of audio and video playing control method and audio and video playing control dresses It sets.
Background technology
Currently, when the intelligent mobile terminals such as user's mobile phone, tablet computer listen to music, watch video, need by manual Mode control the broadcasting and stopping of music or video.Such as when user wants to stop listening to music, not only need to take down earphone, but also need It operates player and stops music, this operating process is relatively complicated.
Therefore, some patents by range sensor test earphone with close at a distance from barrier, when the distance detected When close, illustrate that earphone is worn, then playback terminal plays music, video.It, will but in such cases, when people removes earphone When earphone is placed in desktop, earphone that range sensor detects with close at a distance from barrier also can be close, therefore be easy to cause Erroneous judgement.
Invention content
The embodiment of the present invention provides a kind of audio and video playing control method that playback terminal audio and video playing efficiency can be improved And audio and video playing control device, it can not be accurate to solve existing audio and video playing control method and audio and video playing control device Identify user's use state, the technical problem for causing the audio and video playing efficiency of playback terminal more low.
The embodiment of the present invention provides a kind of audio and video playing control method, is regarded to playback terminal progress sound for passing through earphone Frequency plays control comprising:
Earphone is obtained at a distance from adjacent barrier;
According to earphone at a distance from adjacent barrier, the ambient light intensity on the inside of earphone is obtained;And
According to the ambient light intensity on the inside of earphone, operation is played out to the audio and video in playback terminal.
The embodiment of the present invention also provides a kind of audio and video playing control device, for carrying out sound to playback terminal by earphone Video playing controls comprising:
First apart from acquisition module, for obtaining earphone at a distance from adjacent barrier;
Ambient light intensity acquisition module, at a distance from adjacent barrier, obtaining the environment on the inside of earphone according to earphone Luminous intensity;
Audio and video playing module, for according to the ambient light intensity on the inside of earphone, being carried out to the audio and video in playback terminal Play operation.
Audio and video playing control method compared to the prior art and audio and video playing control device, audio and video of the invention Control method for playing back and audio and video playing control device are by obtaining environment of the earphone at a distance from adjacent barrier, on the inside of earphone Luminous intensity controls the broadcasting of playback terminal audio and video, to improve the audio and video of playback terminal to identify user's use state Playing efficiency, user's use can not be accurately identified by solving existing audio and video playing control method and audio and video playing control device State, the technical problem for causing the audio and video playing efficiency of playback terminal more low.
Description of the drawings
Fig. 1 is the flow chart of the first preferred embodiment of the audio and video playing control method of the present invention;
Fig. 2 is the flow chart of the second preferred embodiment of the audio and video playing control method of the present invention;
Fig. 3 is the structure chart of the first preferred embodiment of the audio and video playing control device of the present invention;
Fig. 4 is the structure chart of the second preferred embodiment of the audio and video playing control device of the present invention;
Fig. 5 is the two of the structure chart of the second preferred embodiment of the audio and video playing control device of the present invention;
Fig. 6 is the structure of the audio and video playing module of the second preferred embodiment of the audio and video playing control device of the present invention Figure;
Fig. 7 is the three of the structure chart of the second preferred embodiment of the audio and video playing control device of the present invention;
Fig. 8 is the audio and video playing control method of the present invention and the scene of the specific embodiment of audio and video playing control device Schematic diagram.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without making creative work Example, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a kind of audio and video playing control method and audio and video playing control devices, will divide below It is not described in detail.Various electronic equipments can be used to be implemented for the audio and video playing control method of the present invention, which sets Standby including but not limited to personal computer, server computer, hand-held or laptop devices, mobile device (such as a number Word assistant, media player etc.), multicomputer system, consumer electronic devices, minicomputer, mainframe computer including The distributed computing environment, etc. of above-mentioned arbitrary system or equipment.But the electronic equipment is preferably intelligent mobile terminal, to improve The audio and video playing efficiency of intelligent mobile terminal.
First embodiment
Fig. 1 is please referred to, Fig. 1 is the flow chart of the first preferred embodiment of the audio and video playing control method of the present invention.It should Method is used to carry out audio and video playing control to playback terminal by earphone, wherein the playback terminal can be mobile phone, it is tablet, a People's computer, laptop etc. have storage unit, are equipped with microprocessor and have the Intelligent mobile equipment of operational capability, This is not especially limited.
The range sensor for test earphone and adjacent barrier distance is provided on the earphone of this preferred embodiment, with And the light sensor in human ear whether is worn on for test earphone.In order to improve the sensitive of test earphone and human ear distance The side that human ear is faced in earphone should be arranged in degree, the range sensor.When user listens to audio and video, which should locate In dull thread state or decreased light state, which is preferably provided at the side that earphone faces human ear.
The audio and video playing control method of this preferred embodiment includes:
Step S101 obtains earphone at a distance from adjacent barrier;
Step S102 obtains the ambient light intensity on the inside of earphone according to earphone at a distance from adjacent barrier;
Step S103 plays out operation according to the ambient light intensity on the inside of earphone to the audio and video in playback terminal.
The following detailed description of the detailed process of each step of the audio and video playing control method of this preferred embodiment.
In step S101, playback terminal obtains earphone at a distance from adjacent barrier.Wherein, earphone can be various types of Type, such as PlayGear Stealth by pronunciation unit plug among earhole, for another example entire phonation unit (Lian Ermian) can be completely by auricle The cover aural headphone covered, enumerates and is not especially limited herein.Adjacent barrier refers to the object close to earphone, such as sets earphone In desktop, then earphone, is such as placed on books by the desktop, that is, adjacent barrier, then books, that is, the adjacent barrier.Earphone and neighbour Obtaining for nearly obstacle distance can emit especially short light pulse by range sensor, and measure this light pulse from being emitted to By the adjacent barrier reflected time, the distance between earphone and adjacent barrier are calculated by surveying time interval.Together When can also be measured using other methods, enumerate and be not especially limited herein.Then continue at step S102.
In step s 102, playback terminal is according to the distance between the earphone and adjacent barrier obtained in step S101, In the case where the distance of acquisition is smaller than pre-determined distance, then by the light sensor or other methods on earphone, obtain earphone The ambient light intensity of inside is enumerated and is not especially limited herein.Wherein, different types of earphone, the pre-determined distance being correspondingly arranged Also different.For example, due to PlayGear Stealth usually close, the PlayGear Stealth setting with a distance from ear than cover aural headphone Pre-determined distance also can be smaller than cover aural headphone.The setting of specific pre-determined distance is set according to actual conditions, the present embodiment It is not especially limited.Then continue at step S103.
In step s 103, as the ambient light intensity on the inside of the earphone that is obtained in step S102 is less than default light intensity, then right Audio and video in playback terminal play out operation.Wherein, it presets light intensity according to actual conditions to be arranged, the present embodiment is not made specifically It limits.Since range sensor cannot differentiate the identity of adjacent barrier, step S102 is such as only relied on whether to judge user Using earphone, the audio and video playing inefficiency of playback terminal frequently can lead to.Then, on this basis, the present invention is implemented The case where side towards human ear is in dull thread or decreased light when example combines earphone to use, passes through further sentencing for step S103 Not, the audio and video playing efficiency of playback terminal is improved.
Being broadcast to playback terminal progress audio and video for the audio and video playing control method of this preferred embodiment is completed in this way Put the process of control.
The audio and video playing control method of this preferred embodiment is by obtaining earphone at a distance from adjacent barrier, in earphone The ambient light intensity of side, to identify user's use state, to improve the audio and video playing efficiency of playback terminal.
Second embodiment
Fig. 2 is please referred to, Fig. 2 is the flow chart of the second preferred embodiment of the audio and video playing control method of the present invention.It should Method be used for by earphone to playback terminal carry out audio and video playing control, wherein the playback terminal can be mobile phone, tablet, PC, laptop etc., have storage unit, are equipped with microprocessor and the intelligent mobile with operational capability is set It is standby, this is not especially limited.
The range sensor for test earphone and adjacent barrier distance is provided on the earphone of this preferred embodiment, with And the light sensor in human ear whether is worn on for test earphone.In order to improve the sensitive of test earphone and human ear distance The side that human ear is faced in earphone should be arranged in degree, the range sensor.When user listens to audio and video, which should locate In dull thread state or decreased light state, which is preferably provided at the side that earphone faces human ear.
The audio and video playing control method of this preferred embodiment includes:
Step S201 obtains earphone at a distance from adjacent barrier;
Step S202, judges whether earphone is less than or equal to pre-determined distance at a distance from adjacent barrier;
Step S203 then obtains the ring on the inside of earphone if earphone is less than or equal to pre-determined distance at a distance from adjacent barrier Border luminous intensity;
Step S204, judges whether the ambient light intensity on the inside of earphone is less than or equal to default light intensity;
Step S205 then regards the sound in playback terminal if the ambient light intensity on the inside of earphone is less than or equal to default light intensity Frequency plays out operation;
Step S206, as earphone is more than the ambient light intensity on the inside of pre-determined distance or earphone at a distance from adjacent barrier More than default light intensity, then stop the broadcasting of audio and video in playback terminal.
The following detailed description of the detailed process of each step of the audio and video playing control method of this preferred embodiment.
In step s 201, playback terminal obtains earphone at a distance from adjacent barrier.Wherein, earphone can be various types of Type, such as PlayGear Stealth by pronunciation unit plug among earhole, for another example entire phonation unit (Lian Ermian) can be completely by auricle The cover aural headphone covered, enumerates and is not especially limited herein.Adjacent barrier refers to the object close to earphone, such as sets earphone In desktop, then earphone, is such as placed on books by the desktop, that is, adjacent barrier, then books, that is, the adjacent barrier.Earphone and neighbour Obtaining for nearly obstacle distance can emit especially short light pulse by range sensor, and measure this light pulse from being emitted to By the adjacent barrier reflected time, the distance between earphone and adjacent barrier are calculated by surveying time interval.Together When can also be measured using other methods, enumerate and be not especially limited herein.It then continues in step S202.
In step S202, playback terminal judges whether earphone is less than or equal to pre-determined distance at a distance from adjacent barrier. If earphone is less than or equal to pre-determined distance at a distance from adjacent barrier, it is transferred to step S203;As earphone and adjacent barrier away from From more than pre-determined distance, it is transferred to step S206.
In step S203, playback terminal according to the distance between the earphone and adjacent barrier obtained in step S201, In the case where the distance of acquisition is smaller than pre-determined distance, then by the light sensor or other methods on earphone, obtain earphone The ambient light intensity of inside is enumerated and is not especially limited herein.Wherein, different types of earphone, the pre-determined distance being correspondingly arranged Also different.For example, due to PlayGear Stealth usually close, the PlayGear Stealth setting with a distance from ear than cover aural headphone Pre-determined distance also can be smaller than cover aural headphone.The setting of specific pre-determined distance is set according to actual conditions, the present embodiment It is not especially limited.Then continue at step S204.
In step S204, playback terminal judges whether the ambient light intensity on the inside of earphone is less than or equal to default light intensity.Such as Ambient light intensity on the inside of earphone is less than or equal to default light intensity, is transferred to step S205;As the ambient light intensity on the inside of earphone is more than Default light intensity, is transferred to step S206.
It is if the ambient light intensity on the inside of the earphone that is obtained in step S204 is less than default light intensity, then right in step S205 Audio and video in playback terminal play out operation.Wherein, it presets light intensity according to actual conditions to be arranged, the present embodiment is not made specifically It limits.Since range sensor cannot differentiate the identity of adjacent barrier, step S202 is such as only relied on whether to judge user Using earphone, the audio and video playing inefficiency of playback terminal frequently can lead to.Then, on this basis, the present invention is implemented The case where side towards human ear is in dull thread or decreased light when example combines earphone to use, passes through further sentencing for step S204 Not, the audio and video playing efficiency of playback terminal is improved.
In step S206, as earphone is more than the ambient light on the inside of pre-determined distance or earphone at a distance from adjacent barrier Intensity is more than default light intensity, this two kinds of situations show that user is not listening to music using earphone or watching video, therefore stop broadcasting Put the broadcasting of audio and video in terminal.
The audio and video playing to playback terminal of the audio and video playing control method of this preferred embodiment is completed in this way The process controlled.
Preferably, step S201 be can obtain earphone and adjacent barrier apart from the case where.But when earphone is in hanging Or other are obtained less than earphone at a distance from adjacent barrier when can't detect the situation of adjacent barrier too far because of barrier, It can be handled at this time by following steps.
Judge whether to obtain earphone in setting time at a distance from adjacent barrier.As obtained in setting time earphone with The distance of adjacent barrier can then be transferred to step S202;As earphone has not been obtained in setting time at a distance from adjacent barrier, Then judge that the distance of earphone and adjacent barrier is excessive, stops the broadcasting of audio and video in playback terminal.
Preferably, audio and video playing step can be following below scheme in step S205.Playback terminal obtains nearest one first The playing progress rate of secondary audio and video playing.Then according to the playing progress rate of the last audio and video playing, to the sound in playback terminal Video plays out operation.For example, it if the playing progress rate of the last music is the song that certain head is not finished, broadcasts Terminal is put to continue to play the last song not finished;If the playing progress rate of the last music is the song that certain head has been broadcast, Then playback terminal plays the next track of head songs.
Preferably, audio and video playing control method of the invention can also include the following steps.Playback terminal judges to play Whether terminal connect with earphone.Wherein, according to the difference of earphone sound source signal transmission mode, the connection side of playback terminal and earphone Formula can be both connected by conducting wire, can also pass through the connections such as bluetooth, infrared ray.It enumerates and is not especially limited herein.Such as playback terminal It is connect with earphone, playback terminal obtains earphone at a distance from adjacent barrier by light sensor;As playback terminal not with ear Machine connects, then playback terminal stops playing audio-video.It, directly will connection in this way when user wants to stop viewing video or listen to music The earphone of mobile phone pulls out the broadcasting that can stop video or music.
On the basis of first preferred embodiment, the audio and video playing control method of this preferred embodiment is further by obtaining Ambient light intensity of the earphone at a distance from adjacent barrier, on the inside of earphone is taken, to identify user's use state, to further carry The high audio and video playing efficiency of playback terminal.
3rd embodiment
Fig. 3 is please referred to, Fig. 3 is the structure chart of the first preferred embodiment of the audio and video playing control device of the present invention.It should Device is used to carry out audio and video playing control to playback terminal by earphone, wherein the playback terminal can be mobile phone, it is tablet, a People's computer, laptop etc. have storage unit, are equipped with microprocessor and have the Intelligent mobile equipment of operational capability, This is not especially limited.
The range sensor for test earphone and adjacent barrier distance is provided on the earphone of this preferred embodiment, with And the light sensor in human ear whether is worn on for test earphone.In order to improve the sensitive of test earphone and human ear distance The side that human ear is faced in earphone should be arranged in degree, the range sensor.When user listens to audio and video, which should locate In dull thread state or decreased light state, which is preferably provided at the side that earphone faces human ear.
The audio and video playing control device 30 of this preferred embodiment includes first apart from acquisition module 301, ambient light intensity Acquisition module 302 and audio and video playing module 303.First is used to obtain earphone and adjacent barrier apart from acquisition module 301 Distance;Ambient light intensity acquisition module 302 is used to according to earphone at a distance from adjacent barrier, obtain the environment on the inside of earphone Luminous intensity;Audio and video playing module 303 is used to, according to the ambient light intensity on the inside of earphone, carry out the audio and video in playback terminal Play operation.
When in use, calling first is apart from acquisition module first for the audio and video playing control device 30 of this preferred embodiment 301 obtain earphone at a distance from adjacent barrier.Wherein, earphone can be various types, such as by pronunciation unit plug earhole it In PlayGear Stealth, the cover aural headphone that for another example entire phonation unit (Lian Ermian) can completely cover auricle enumerates herein It is not especially limited.Adjacent barrier refers to the object close to earphone, and earphone is such as placed in desktop, then the i.e. neighbouring obstacle of the desktop Earphone is such as placed on books by object, then books, that is, the adjacent barrier.Earphone and the acquisition of adjacent barrier distance can pass through Range sensor emits especially short light pulse, and measures this light pulse from when being emitted to reflected by adjacent barrier Between, calculate the distance between earphone and adjacent barrier by surveying time interval.Other methods can also be used to carry out simultaneously It measures, enumerates and be not especially limited herein.Subsequent transfer environment luminous intensity acquisition module 302.
Earphone and the adjacent barrier that ambient light intensity acquisition module 302 is obtained according to first apart from acquisition module 301 it Between distance, in the case where the distance of acquisition is smaller than pre-determined distance, then by the light sensor or other methods on earphone, The ambient light intensity on the inside of earphone is obtained, enumerates and is not especially limited herein.Wherein, different types of earphone, is correspondingly arranged Pre-determined distance is also different.For example, due to PlayGear Stealth usually than cover aural headphone with a distance from ear close, ear type The pre-determined distance of earphone setting also can be smaller than cover aural headphone.The setting of specific pre-determined distance is set according to actual conditions, The present embodiment is not especially limited.Then call audio and video playing module 303.
The ambient light intensity on the inside of earphone obtained such as ambient light intensity acquisition module 302 is less than default light intensity, then sound regards Frequency playing module 303 plays out operation to the audio and video in playback terminal.Wherein, light intensity is preset according to actual conditions to be arranged, The present embodiment is not especially limited.Since range sensor cannot differentiate the identity of adjacent barrier, such as only judge user Whether using earphone, the audio and video playing inefficiency of playback terminal frequently can lead to.Then, on this basis, of the invention The case where side towards human ear is in dull thread or decreased light when embodiment combination earphone uses, by calling audio and video playing Module 303 further differentiates, improves the audio and video playing efficiency of playback terminal.
Being broadcast to playback terminal progress audio and video for the audio and video playing control device of this preferred embodiment is completed in this way Put the process of control.
The audio and video playing control device of this preferred embodiment is by obtaining earphone at a distance from adjacent barrier, in earphone The ambient light intensity of side, to identify user's use state, to improve the audio and video playing efficiency of playback terminal.
Fourth embodiment
Fig. 4 is please referred to, Fig. 4 is the structure chart of the second preferred embodiment of the audio and video playing control device of the present invention.It should Device be used for by earphone to playback terminal carry out audio and video playing control, wherein the playback terminal can be mobile phone, tablet, PC, laptop etc., have storage unit, are equipped with microprocessor and the intelligent mobile with operational capability is set It is standby, this is not especially limited.
The range sensor for test earphone and adjacent barrier distance is provided on the earphone of this preferred embodiment, with And the light sensor in human ear whether is worn on for test earphone.In order to improve the sensitive of test earphone and human ear distance The side that human ear is faced in earphone should be arranged in degree, the range sensor.When user listens to audio and video, which should locate In dull thread state or decreased light state, which is preferably provided at the side that earphone faces human ear.
The audio and video playing control device 40 of this preferred embodiment includes first apart from acquisition module 401, ambient light intensity Acquisition module 402 and audio and video playing module 403.Wherein, ambient light intensity acquisition module 402 includes Distance Judgment submodule 4021, ambient light acquisition submodule 4022 and first stops playing module 4023.Audio and video playing module 403 includes environmental light intensity It spends judging submodule 4031, first and plays the stopping broadcasting submodule 4033 of submodule 4032 and second.
On the basis of first preferred embodiment, mould has been carried out to the audio and video playing control device 40 of this preferred embodiment Block refines.Whether Distance Judgment submodule 4021 is less than or equal to pre-determined distance for judging earphone at a distance from adjacent barrier; When ambient light acquisition submodule 4022 is used to be less than or equal at a distance from adjacent barrier in earphone pre-determined distance, obtain in earphone The ambient light intensity of side;First, which stops playing module 4023, is used to be more than pre-determined distance at a distance from adjacent barrier in earphone When, stop the broadcasting of audio and video in playback terminal;Ambient light intensity judging submodule 4031 is used to judge the environment on the inside of earphone Whether luminous intensity is less than or equal to default light intensity;First play submodule 4032 on the inside of earphone ambient light intensity be less than etc. When default light intensity, operation is played out to the audio and video in playback terminal;Second stops playing submodule 4033 in ear When ambient light intensity on the inside of machine is more than default light intensity, stop the broadcasting of audio and video in playback terminal.
Please refer to Fig. 5, Fig. 5 be the second preferred embodiment of the audio and video playing control device of the present invention structure chart it Two.The audio and video playing control device 40 of this preferred embodiment further includes that distance obtains judgment module 501 and stops playing module 502.Distance obtains judgment module 501 for judging whether to obtain earphone in setting time at a distance from adjacent barrier;Stop Playing module 502 is for when earphone having not been obtained in setting time at a distance from adjacent barrier, stopping the playback terminal The broadcasting of middle audio and video.
Fig. 6 is please referred to, Fig. 6 is the audio and video playing of the second preferred embodiment of the audio and video playing control device of the present invention The structure chart of module.The audio and video playing module 403 includes that playing progress rate acquisition submodule 601 and second plays submodule 602. Playing progress rate acquisition submodule 601 is used to obtain the playing progress rate of the last audio and video playing;Second, which plays submodule 602, uses In the playing progress rate according to the last audio and video playing, operation is played out to the audio and video in the playback terminal.
Please refer to Fig. 7, Fig. 7 be the second preferred embodiment of the audio and video playing control device of the present invention structure chart it Three.The audio and video playing control device 40 of this preferred embodiment further includes connection judgment module 701, second distance acquisition module 702 and break module 703.Connection judgment module 701 is for judging whether playback terminal connect with the earphone;Second distance obtains Modulus block 702 is used for when playback terminal is connect with earphone, obtains earphone at a distance from adjacent barrier;Break the use of module 703 In in playback terminal and not connected earphone, stop the broadcasting of audio and video in playback terminal.
When in use, first first obtains earphone and neighbouring barrier to audio and video playing control device 40 apart from acquisition module 401 Hinder the distance of object.Wherein, earphone can be various types, such as PlayGear Stealth by pronunciation unit plug among earhole, for another example The cover aural headphone that entire phonation unit (Lian Ermian) can completely cover auricle, enumerates and is not especially limited herein.Neighbouring barrier It refers to the object close to earphone to hinder object, and earphone is such as placed in desktop, then desktop, that is, the adjacent barrier, is such as placed in books by earphone On, then books, that is, the adjacent barrier.The acquisition of earphone and adjacent barrier distance can be emitted special by range sensor Short light pulse, and measure this light pulse from being emitted to by the adjacent barrier reflected time, by survey time interval come Calculate the distance between earphone and adjacent barrier.It can also be measured simultaneously using other methods, enumerate herein and do not make to have Body limits.Distance Judgment submodule 4021 in subsequent transfer environment luminous intensity acquisition module 402.
Then, Distance Judgment submodule 4021 judge earphone whether be less than or equal at a distance from adjacent barrier it is default away from From.If earphone is more than pre-determined distance at a distance from adjacent barrier, first in transfer environment luminous intensity acquisition module 402 stops Playing module 4023;As earphone is less than or equal to pre-determined distance, transfer environment luminous intensity acquisition module at a distance from adjacent barrier Ambient light acquisition submodule 4022 in 402.
The distance between the earphone obtained apart from acquisition module 401 according to first and adjacent barrier, in the distance of acquisition In the case of pre-determined distance, first is called to stop the broadcasting that playing module 4023 stops audio and video in playback terminal.
The distance between the earphone obtained apart from acquisition module 401 according to first and adjacent barrier, in the distance of acquisition In the case of smaller than pre-determined distance, transfer environment light acquisition submodule 4022 obtains the ambient light intensity on the inside of earphone.It can lead to The light sensor or other methods on earphone are crossed, the ambient light intensity on the inside of earphone is obtained, enumerates and be not especially limited herein. Wherein, different types of earphone, the pre-determined distance being correspondingly arranged are also different.For example, since PlayGear Stealth is usually than cover Aural headphone is close with a distance from ear, therefore the pre-determined distance of PlayGear Stealth setting also can be smaller than cover aural headphone.It is specific default The setting of distance is set according to actual conditions, and the present embodiment is not especially limited.Then call audio and video playing module 403 In ambient light intensity judging submodule 4031.
Then, it is default to judge whether the ambient light intensity on the inside of earphone is less than or equal to for ambient light intensity judging submodule 4031 Light intensity.If the ambient light intensity on the inside of earphone is less than or equal to default light intensity, first in audio and video playing module 403 is called to play Submodule 4032;If the ambient light intensity on the inside of earphone is more than default light intensity, second in audio and video playing module 403 is called to stop Only play submodule 4033.
As the second stopping plays submodule 4033.Ambient light intensity on the inside of the earphone of acquisition is less than default light intensity, then and the One broadcasting submodule 4032 plays out operation to the audio and video in playback terminal.Wherein, light intensity is preset to be set according to actual conditions It sets, the present embodiment is not especially limited.Since range sensor cannot differentiate the identity of adjacent barrier, such as only rely on away from Whether user is judged using earphone from judging submodule 4021, and the audio and video playing efficiency that frequently can lead to playback terminal is low Under.Then, on this basis, the side towards human ear is in dull thread or decreased light when combination of embodiment of the present invention earphone uses The case where, by the further differentiation of ambient light intensity judging submodule 4031, improve the audio and video playing effect of playback terminal Rate.
If the ambient light intensity on the inside of earphone is more than default light intensity, show that user is not regarded being listened to music or watched using earphone Frequently, therefore second is called to stop playing the broadcasting that submodule 4033 stops audio and video in playback terminal.
The audio and video playing to playback terminal of the audio and video playing control device of this preferred embodiment is completed in this way The process controlled.
Preferably, it in the case where earphone can be obtained with adjacent barrier distance, can be obtained with transfer environment luminous intensity Module 402 obtains earphone and adjacent barrier distance.But work as earphone in hanging or other are because barrier can't detect neighbour too far When the situation of nearly barrier, obtain less than earphone at a distance from adjacent barrier.Distance can be called to obtain judgment module at this time 501 judge whether to obtain earphone in setting time at a distance from adjacent barrier.As obtained in setting time earphone with it is neighbouring The distance of barrier, then transfer environment luminous intensity acquisition module 402;As earphone and adjacent barrier have not been obtained in setting time Distance then judges that the distance of earphone and adjacent barrier is excessive, calls and stops audio and video in the stopping playback terminal of playing module 502 Broadcasting.
Preferably, call the detailed process of 403 progress audio and video playing of audio and video playing module can be as follows.It calls first The playing progress rate of the last audio and video playing of playing progress rate acquisition submodule 601.Then second is called to play submodule 602 According to the playing progress rate for the last audio and video playing that playing progress rate acquisition submodule 601 obtains, the sound in playback terminal is regarded Frequency plays out operation.For example, it if the playing progress rate of the last music is the song that certain head is not finished, plays Terminal continues to play the last song not finished;If the playing progress rate of the last music is the song that certain head has been broadcast, Playback terminal plays the next track of head songs.
Preferably, audio and video playing control device 40 of the invention is in use, can also be that connection judgment module 701 judges Whether playback terminal connect with earphone.Wherein, according to the difference of earphone sound source signal transmission mode, the company of playback terminal and earphone Connecing mode can be both connected by conducting wire, can also pass through the connections such as bluetooth, infrared ray.It enumerates and is not especially limited herein.As played Terminal is connect with earphone, then calls second distance acquisition module 702 by light sensor, obtains earphone and adjacent barrier Distance;If playback terminal is not connect with earphone, then calls and break module 703 to playback terminal stopping playing audio-video.In this way when User wants to stop viewing video or when listening to music, and broadcasting for video or music can be stopped by directly pulling out the earphone for connecting mobile phone It puts.
On the basis of first preferred embodiment, the audio and video playing control device of this preferred embodiment is further by obtaining Ambient light intensity of the earphone at a distance from adjacent barrier, on the inside of earphone is taken, to identify user's use state, to further carry The high audio and video playing efficiency of playback terminal.
5th embodiment
Fig. 8 is the audio and video playing control method of the present invention and the scene of the specific embodiment of audio and video playing control device Schematic diagram.
In S801, user opens the music player on mobile phone, and mobile phone is detected and do not connect with earphone at this time, therefore hand Machine will not play music.
In S802, headset plug is inserted into handset earphone jack by user, and mobile phone, which detects, is connected to earphone, starts to obtain Earphone is at a distance from adjacent barrier.At this point, adjacent barrier is human hand, and since human hand is close at a distance from earphone, hand Machine starts to obtain the ambient light intensity on the inside of earphone.Since the ambient light on the inside of earphone is not dark enough, so mobile phone still will not at this time Play music.
In S803, earphone is put into ear by user, and earphone and ear are apart from close at this time, and are in dark light ring Border, therefore mobile phone judges that the user has done the preparation of pleasing to the ear song, starts to play the song in music player.
In S804, when user is not desired to listen to music, earphone is removed from ear.Mobile phone detects the light on the inside of earphone It is brighter, to judge that user is not listening to music, so stop song being played on.
So i.e. complete this specific embodiment audio and video playing control method and audio and video playing control device to broadcasting Put the process that the audio and video playing of terminal is controlled.
The audio and video playing control method and audio and video playing control device of the present invention is by obtaining earphone and neighbouring obstacle Ambient light intensity on the inside of the distance of object, earphone controls the broadcasting of playback terminal audio and video to identify user's use state, from And the audio and video playing efficiency of playback terminal is improved, solve existing audio and video playing control method and audio and video playing control Device can not accurately identify user's use state, the technical problem for causing the audio and video playing efficiency of playback terminal more low.
Each functional unit in the embodiment of the present invention can be integrated in a processing module, can also be each unit list Solely be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module both may be used The form of hardware is realized, can also be realized in the form of software function module.If the integrated module is with software function The form of module is realized and when sold or used as an independent product, can also be stored in a computer-readable storage and be situated between In matter.Storage medium mentioned above can be read-only memory, disk or CD etc..Above-mentioned each device or system, can be with Execute the method in correlation method embodiment.
In conclusion although the present invention is disclosed above with preferred embodiment, above preferred embodiment is not to limit The system present invention, those skilled in the art can make various changes and profit without departing from the spirit and scope of the present invention Decorations, therefore protection scope of the present invention is subject to the range that claim defines.

Claims (7)

1. a kind of audio and video playing control method, for carrying out audio and video playing control, feature to playback terminal by earphone It is, the audio and video playing control method includes:
The earphone is obtained at a distance from adjacent barrier;
According to the earphone at a distance from adjacent barrier, the ambient light intensity on the inside of the earphone is obtained;Including:Described in judgement Whether earphone is less than or equal to pre-determined distance at a distance from adjacent barrier;Such as described earphone is less than at a distance from adjacent barrier In pre-determined distance, then the ambient light intensity on the inside of the earphone is obtained;As the earphone is more than in advance at a distance from adjacent barrier If distance, then stop the broadcasting of audio and video in the playback terminal;
According to the ambient light intensity on the inside of the earphone, operation is played out to the audio and video in the playback terminal, including:Sentence Whether the ambient light intensity on the inside of the disconnected earphone is less than or equal to default light intensity;As the ambient light intensity on the inside of the earphone is less than Equal to default light intensity, then operation is played out to the audio and video in the playback terminal;Such as the environmental light intensity on the inside of the earphone Degree is more than default light intensity, then stops the broadcasting of audio and video in the playback terminal.
2. audio and video playing control method according to claim 1, which is characterized in that further include:
Judge whether to obtain earphone in setting time at a distance from adjacent barrier;
Earphone such as has not been obtained in setting time at a distance from adjacent barrier, then stops audio and video in the playback terminal It plays.
3. audio and video playing control method according to claim 1, which is characterized in that described in the playback terminal Audio and video play out the step of operation and include:
Obtain the playing progress rate of the last audio and video playing;
According to the playing progress rate of the last audio and video playing, behaviour is played out to the audio and video in the playback terminal Make.
4. audio and video playing control method according to claim 1, which is characterized in that further include:
Judge whether the playback terminal connect with the earphone;
If the playback terminal is connect with the earphone, then the earphone is obtained at a distance from adjacent barrier;
If the playback terminal is not connected with the earphone, then stop the broadcasting of audio and video in the playback terminal.
5. a kind of audio and video playing control device, for carrying out audio and video playing control, feature to playback terminal by earphone It is, the audio and video playing control device includes:
First apart from acquisition module, for obtaining the earphone at a distance from adjacent barrier;
Ambient light intensity acquisition module, at a distance from adjacent barrier, being obtained on the inside of the earphone according to the earphone Ambient light intensity;
Audio and video playing module is used for according to the ambient light intensity on the inside of the earphone, to the audio and video in the playback terminal Play out operation;
Wherein, the ambient light intensity acquisition module includes:
Whether Distance Judgment submodule is less than or equal to pre-determined distance for judging the earphone at a distance from adjacent barrier;
Ambient light acquisition submodule, for when the earphone is less than or equal to pre-determined distance at a distance from adjacent barrier, obtaining Ambient light intensity on the inside of the earphone;
First stops playing submodule, for being more than pre-determined distance at a distance from adjacent barrier in the earphone, then stops institute State the broadcasting of audio and video in playback terminal;
The audio and video playing module includes:
Ambient light intensity judging submodule, for judging whether the ambient light intensity on the inside of the earphone is less than or equal to default light By force;
First plays submodule, when being less than or equal to default light intensity for the ambient light intensity on the inside of the earphone, is broadcast to described It puts the audio and video in terminal and plays out operation;
Second stops playing submodule, when being more than default light intensity for the ambient light intensity on the inside of the earphone, described in stopping The broadcasting of audio and video in playback terminal.
6. audio and video playing control device according to claim 5, which is characterized in that the audio and video playing module packet It includes:
Playing progress rate acquisition submodule, the playing progress rate for obtaining the last audio and video playing;
Second plays submodule, for the playing progress rate according to the last audio and video playing, in the playback terminal Audio and video play out operation.
7. a kind of storage medium, is stored with computer program, wherein the computer program makes computer execute such as right It is required that 1 to 4 any one of them method.
CN201610065195.7A 2015-11-04 2016-01-29 Audio and video playing control method and audio and video playing control device Active CN105744325B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2015208831094 2015-11-04
CN201520883109 2015-11-04

Publications (2)

Publication Number Publication Date
CN105744325A CN105744325A (en) 2016-07-06
CN105744325B true CN105744325B (en) 2018-07-27

Family

ID=56247034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610065195.7A Active CN105744325B (en) 2015-11-04 2016-01-29 Audio and video playing control method and audio and video playing control device

Country Status (1)

Country Link
CN (1) CN105744325B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645587A (en) * 2016-07-21 2018-01-30 联想移动通信科技有限公司 One kind receives calls control method and bluetooth earphone
CN107633853B (en) * 2017-08-03 2020-07-03 广东小天才科技有限公司 Control method for playing audio and video files and user terminal
CN107613387A (en) * 2017-10-12 2018-01-19 广东小天才科技有限公司 Method, apparatus, playback equipment and the storage medium that control data plays
CN108055606B (en) * 2017-12-11 2019-12-24 联想(北京)有限公司 Information prompting method of electronic equipment and electronic equipment
CN108955758B (en) * 2018-04-26 2021-04-09 Oppo广东移动通信有限公司 Wearable device wearing detection method and related product
CN113992985B (en) * 2021-10-25 2024-03-08 上海艾为电子技术股份有限公司 Intelligent playing method and intelligent playing device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001478A (en) * 2006-01-09 2007-07-18 英业达股份有限公司 Earphone device capable of reducing power consumption
US20090131124A1 (en) * 2007-11-20 2009-05-21 Broadcom Corporation Wireless earpiece determining proximity to user and operation based thereon
CN102149033A (en) * 2010-10-28 2011-08-10 华为终端有限公司 Earphone processing method and user equipment
CN102630070A (en) * 2012-04-24 2012-08-08 天津三星电子有限公司 Sound play control method and sound play device
CN103024193A (en) * 2012-12-25 2013-04-03 北京百度网讯科技有限公司 Mobile terminal and play control method and play control device for same
CN202998416U (en) * 2012-12-26 2013-06-12 广东欧珀移动通信有限公司 Earphone and terminal equipment controlling audio playing through the earphone
CN103051997A (en) * 2012-12-26 2013-04-17 广东欧珀移动通信有限公司 Earphone, and terminal equipment and method for controlling audio presentation through earphone
CN203827475U (en) * 2014-03-19 2014-09-10 林廷育 Device for controlling on or off of radio-frequency video audio signals by utilizing human body induction
CN203933897U (en) * 2014-03-28 2014-11-05 捷音特科技股份有限公司 Infrared earphone

Also Published As

Publication number Publication date
CN105744325A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN105744325B (en) Audio and video playing control method and audio and video playing control device
CN104484150B (en) Method, device and a kind of terminal that a kind of audio is played
US7931537B2 (en) Voice input in a multimedia console environment
US9338540B2 (en) Device control based on worn headphone detection
US9402124B2 (en) Method for controlling terminal device and the smart terminal device thereof
US10219100B2 (en) Determining proximity for devices interacting with media devices
US9628880B2 (en) Wooden or other dielectric capacitive touch interface and loudspeaker having same
US10111020B1 (en) Systems and methods for initiating action based on audio output device
EP3669531A1 (en) Remote control with presence sensor
US20130345842A1 (en) Earphone removal detection
EP2605498B1 (en) Earphone connection detecting system and mobile device for supporting the system
US20180122373A1 (en) Reception of audio commands
KR20160045463A (en) Electronic device and method for controlling audio input/output
CN106302997B (en) Output control method, electronic equipment and system
CN104267924A (en) Mobile terminal and audio processing method thereof
CN106303816B (en) Information control method and electronic equipment
WO2022033176A1 (en) Audio play control method and apparatus, and electronic device and storage medium
CN105657612A (en) Audio and video play method and system, headset and mobile terminal
CN108024128A (en) Control method, device, terminal device and the storage medium that Bluetooth music plays
CN109040896B (en) Earphone and distance detection access method
CN101783656A (en) Loudness control method, module and device of stereo system
CN104967932A (en) Earphone use prompting method and apparatus and smart terminal
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
US10129382B2 (en) Electronic device and method for controlling electronic device using headset
US20150326969A1 (en) Multimedia playing system and sound channel control method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: Guangdong Opel Mobile Communications Co., Ltd.