CN107181506A - The method and bluetooth earphone of a kind of control terminal playing resource - Google Patents
The method and bluetooth earphone of a kind of control terminal playing resource Download PDFInfo
- Publication number
- CN107181506A CN107181506A CN201710240929.5A CN201710240929A CN107181506A CN 107181506 A CN107181506 A CN 107181506A CN 201710240929 A CN201710240929 A CN 201710240929A CN 107181506 A CN107181506 A CN 107181506A
- Authority
- CN
- China
- Prior art keywords
- time delay
- bluetooth earphone
- terminal
- time
- delay
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000004044 response Effects 0.000 claims abstract description 82
- 238000012546 transfer Methods 0.000 claims abstract description 47
- 230000005611 electricity Effects 0.000 claims description 76
- 230000005540 biological transmission Effects 0.000 claims description 53
- 238000001514 detection method Methods 0.000 claims description 23
- 241001062009 Indigofera Species 0.000 claims description 8
- 230000002035 prolonged effect Effects 0.000 claims 1
- 230000015654 memory Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000001934 delay Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000003860 storage Methods 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000005303 weighing Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/72—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- 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/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of method of control terminal playing resource and bluetooth earphone, wherein, a kind of method of control terminal playing resource, if by detect with terminal successful connection, obtain the first time delay and the second time delay;Wherein, first time delay is used to identify the data transfer delay duration between the terminal and bluetooth earphone, and second time delay is used to identify the data transfer delay duration in bluetooth earphone between the first bluetooth earphone and the second bluetooth earphone;Formulated according to first time delay and second time delay for merging the response policy for controlling the terminal works;The response policy is sent to the terminal;Wherein, if the terminal detects the control instruction for controlling the resource to be played, the control instruction is responded according to the response policy.Eliminate the phenomenon of data transfer delay between bluetooth earphone and terminal.
Description
Technical field
The invention belongs to the method and bluetooth earphone of electronic technology field, more particularly to a kind of control terminal playing resource.
Background technology
With people's life and work ground tempo increase, mobile phone terminal have become people in social activity, it is in work and raw
Product all indispensable in work.When people's using terminal carries out doings, the unique convenience of bluetooth earphone makes its wide
It is welcome.Although existing bluetooth earphone can be passed by increasing the modes such as delay circuit with the data between reduction and terminal
Defeated time delay, but be due to that the Bluetooth communication modules that different terminals is used are different, so as to cause different terminals and indigo plant
The length of data propagation delay time between tooth earphone is also different, therefore, can not be from by increasing the modes such as delay circuit
The problem of fundamentally solving the transmission delay existed between bluetooth earphone and terminal.
The content of the invention
The embodiment of the present invention provides the method and bluetooth earphone of a kind of control terminal playing resource, eliminate bluetooth earphone with
The phenomenon of data transfer delay between terminal.
In a first aspect, the embodiments of the invention provide a kind of method of control terminal playing resource, for control and bluetooth
The connected terminal plays resource of earphone, methods described includes:
If detect with terminal successful connection, obtain the first time delay and the second time delay;Wherein, described first
Time delay is used to identify the data transfer delay duration between the terminal and bluetooth earphone, and second time delay is used for
Identify the data transfer delay duration between the first bluetooth earphone and the second bluetooth earphone in bluetooth earphone;
Formulated according to first time delay and second time delay and merge the control terminal works for matching somebody with somebody
Response policy;
The response policy is sent to the terminal;Wherein, if the terminal detect for control it is described to be played
The control instruction of resource, then respond according to the response policy to the control instruction.
On the other hand, a kind of bluetooth earphone of the embodiment of the present invention, the terminal for controlling to be connected with the bluetooth earphone is broadcast
Resource is put, the bluetooth earphone includes:
Acquiring unit, if for detect with terminal successful connection, obtain the first time delay and the second time delay;
Wherein, first time delay is used to identifying data transfer delay duration between the terminal and bluetooth earphone, and described the
Two time delays were used to identify the data transfer delay duration in bluetooth earphone between the first bluetooth earphone and the second bluetooth earphone;
Policy making unit, merges for being formulated according to first time delay and second time delay for matching somebody with somebody
Control the response policy of the terminal works;
Transmitting element, for the response policy to be sent into the terminal;Wherein, if the terminal is detected for controlling
The control instruction of the resource to be played is made, then the control instruction is responded according to the response policy.
In such scheme, if by detect with terminal successful connection, obtain the first time delay with second delay when
Between;Wherein, first time delay is used to identify the data transfer delay duration between the terminal and bluetooth earphone, described
When second time delay was used to identify the data transfer delay between the first bluetooth earphone and the second bluetooth earphone in bluetooth earphone
It is long;Formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy;The response policy is sent to the terminal;Wherein, if the terminal is detected for controlling the resource to be played
Control instruction, then the control instruction is responded according to the response policy.Eliminate between bluetooth earphone and terminal
The phenomenon of data transfer delay.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of the method for control terminal playing resource provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram of the method for control terminal playing resource that another embodiment of the present invention is provided;
Fig. 3 is a kind of schematic block diagram of bluetooth earphone provided in an embodiment of the present invention;
Fig. 4 is a kind of bluetooth earphone schematic block diagram that another embodiment of the present invention is provided;
Fig. 5 is the corresponding relation figure of target audio timestamp and image timestamp in the embodiment of the present invention;
Fig. 6 is a kind of bluetooth earphone schematic block diagram that yet another embodiment of the invention is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated
Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application programs, demonstration
Application programs, word-processing application program, website create application programs, disk imprinting application programs, electricity
Sub-table application programs, game application program, telephony application program, videoconference application program, electricity
Application programs, photo management application are supported in sub- mail applications program, instant messaging applications program, exercise
Program program, digital camera application program program, digital camera application programs, web-browsing application programs, numeral
Music player application program program and/or video frequency player application programs.
The various application programs that can be performed in terminal can use at least one of such as touch sensitive surface
Public physical user-interface device.It can adjust and/or change between application programs and/or in corresponding application programs program
Become the corresponding information shown in the one or more functions and terminal of touch sensitive surface.So, the public physics frame of terminal
Structure (for example, touch sensitive surface) can support the various application programs with user interface directly perceived and transparent for a user
Program.
Fig. 1 is referred to, Fig. 1 is a kind of exemplary flow of the method for control terminal playing resource provided in an embodiment of the present invention
Figure.The executive agent of the method for control terminal playing resource is bluetooth earphone in the present embodiment.As shown in figure 1, control terminal is broadcast
The method for putting resource may comprise steps of:
S101:If detect with terminal successful connection, obtain the first time delay and the second time delay.Wherein, institute
Stating for the first time delay is used to identify the data transfer delay duration between the terminal and bluetooth earphone, during second delay
Between be used to identify data transfer delay duration in bluetooth earphone between the first bluetooth earphone and the second bluetooth earphone.
If bluetooth earphone detect with terminal successful connection, obtain the first time delay and the second time delay.
In step S101, bluetooth earphone with carrying out data transmission after terminal successful connection, wherein, bluetooth earphone and terminal
Between data transfer can include:First transmission mode and the second transmission mode;First transmission mode be terminal simultaneously with indigo plant
The second bluetooth earphone in the first bluetooth earphone and bluetooth earphone in tooth earphone carries out data transmission;Second transmission mode is
Terminal carries out data transmission with the first bluetooth earphone in bluetooth earphone, the first bluetooth earphone and bluetooth earphone in bluetooth earphone
In the second bluetooth earphone carry out data transmission.
The opportunity with terminal successful connection is detected as bluetooth earphone, following two fields can be included but are not limited to
Scape.
Scene one:
When bluetooth earphone is started shooting, attachable bluetooth equipment around it is scanned by control terminal, by bluetooth ear
Machine sends handshake request signal, and then realizes the wireless connection between terminal and bluetooth earphone.
Scene two:
The bluetooth connector matched in bluetooth earphone component with bluetooth earphone is carried out after wired connection with terminal, has connected indigo plant
Data transmission link between tooth earphone and terminal, and then realize the wireless connection between terminal and bluetooth earphone.
It should be noted that when the data-transmission mode between terminal and the bluetooth earphone is the first transmission mode,
Data propagation delay time in bluetooth earphone between the first bluetooth earphone and the second bluetooth earphone is 0, i.e. the second time delay
Equal to 0.When the data-transmission mode between terminal and the bluetooth earphone is the second transmission mode, first is blue in bluetooth earphone
Data propagation delay time between tooth earphone and the second bluetooth earphone is more than 0, i.e. the second time delay more than 0.
It is understood that when the data-transmission mode between terminal and the bluetooth earphone is the first transmission mode or the
During two transmission modes, the data propagation delay time between terminal and bluetooth earphone is all higher than 0.
S102:Formulated according to first time delay and second time delay and merge the control terminal for matching somebody with somebody
The response policy of work.
Bluetooth earphone according to first time delay and second time delay formulate for merges control described in
The response policy of terminal works.
In step s 102, response policy is used to describe the job step that bluetooth earphone coordinates terminal plays resource, and
The opportunity of control terminal response control instruction.
It should be noted that because bluetooth module used in different terminals is different, thus bluetooth earphone from it is different
Terminal be connected when, the first time delay between bluetooth earphone and terminal is also different.
For example, the first time delay between first terminal and bluetooth earphone is T1, between second terminal and bluetooth earphone
The first time delay be T2.
Sent when the speed that data are sent between first terminal and bluetooth earphone is more than between second terminal and bluetooth earphone
During the speed of data, then T2<T1.When the speed that data are sent between first terminal and bluetooth earphone is less than second terminal and bluetooth
When the speed of data is sent between earphone, then T1<T2.
S103:The response policy is sent to the terminal.
Wherein, if the terminal detects the control instruction for controlling the resource to be played, according to the response
Strategy is responded to the control instruction.
The response policy is sent to the terminal by bluetooth earphone.If the terminal is detected for controlling described to wait to broadcast
The control instruction of resource is put, then the control instruction is responded according to the response policy.
In step s 103, during terminal carries out data transmission with bluetooth earphone, between terminal and bluetooth earphone
Data-transmission mode is different, and corresponding time delay and response policy are also different.
Control instruction for controlling the resource to be played, can be defeated by carrying out operation to the terminal by user
Enter or user is inputted by operating the button on bluetooth earphone or touching the modes such as screen.Wherein, control instruction can be with
Including broadcasting, pause, F.F., rewind, next, upper one first, volume adds or volume down.
It should be noted that when transmission mode is that terminal is simultaneously blue with the first bluetooth earphone in bluetooth earphone and second
Tooth earphone carry out data interaction when, between the first bluetooth earphone and the second bluetooth earphone be not present transmission delay, bluetooth earphone to
The response policy that the terminal is sent is without the concern for the first bluetooth earphone and the job order for the second bluetooth earphone being connected.
When transmission mode is that terminal carries out data transmission with the first bluetooth earphone in bluetooth earphone, and in bluetooth earphone
When carrying out data transmission between the second bluetooth earphone in the first bluetooth earphone and bluetooth earphone, the first bluetooth in bluetooth earphone
There is transmission delay, the response plan that bluetooth earphone is sent to the terminal between the second bluetooth earphone in earphone and bluetooth earphone
It slightly must take into consideration the job order of the first bluetooth earphone connected and the second bluetooth earphone being connected.
In such scheme, if by detect with terminal successful connection, obtain the first time delay with second delay when
Between;Wherein, first time delay is used to identify the data transfer delay duration between the terminal and bluetooth earphone, described
When second time delay was used to identify the data transfer delay between the first bluetooth earphone and the second bluetooth earphone in bluetooth earphone
It is long;Formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy;The response policy is sent to the terminal;Wherein, if the terminal is detected for controlling the resource to be played
Control instruction, then the control instruction is responded according to the response policy.Eliminate between bluetooth earphone and terminal
The phenomenon of data transfer delay.
Fig. 2 is referred to, Fig. 2 is a kind of signal of the method for control terminal playing resource that another embodiment of the present invention is provided
Flow chart.The executive agent of the method for control terminal playing resource is bluetooth earphone in the present embodiment.As shown in Fig. 2 control is eventually
The method of end playing resource may comprise steps of:
S201:If detect with terminal successful connection, obtain the first time delay and the second time delay.Wherein, institute
It is the data propagation delay time between terminal and bluetooth earphone to state for the first time delay, and second time delay is bluetooth ear
Data propagation delay time in machine between the first bluetooth earphone and the second bluetooth earphone.
In step s 201, bluetooth earphone is after terminal successful connection with carrying out data transmission, wherein, bluetooth earphone and terminal
Between data transfer can include:First transmission mode and the second transmission mode;First transmission mode be terminal simultaneously with indigo plant
The second bluetooth earphone in the first bluetooth earphone and bluetooth earphone in tooth earphone carries out data transmission;Second transmission mode is
Terminal carries out data transmission with the first bluetooth earphone in bluetooth earphone, the first bluetooth earphone and bluetooth earphone in bluetooth earphone
In the second bluetooth earphone carry out data transmission.
Step S201 is specifically included:Send for detecting the detection information of data transfer delay, and record to the terminal
Send the first time point of the detection information;The first feedback information that the terminal is returned according to the detection information is received,
To cause first bluetooth earphone to send first feedback information to second bluetooth earphone, and it is blue to receive described second
The second feedback information that tooth earphone is returned according to first feedback information;Record receives the second of first feedback information
Time point, the 3rd time point to second bluetooth earphone transmission, first feedback information, and receive second indigo plant
Tooth earphone returns to the 4th time point of second feedback information;Calculated according to the first time point and second time point
Obtain first time delay;Wherein, first time delay is equal to second time point and the first time point
0.5 times of difference, first time delay is equal to second time point with the difference of the first time point more than 0;According to
3rd time point calculates with the 4th time point and obtains second time delay;Wherein, second time delay
Equal to 0, or equal to 0.5 times of the 4th time point and the difference at the 3rd time point, the 4th time point with it is described
The difference at the 3rd time point is more than 0.
It should be noted that in all embodiments of the invention, when terminal simultaneously with the first bluetooth in bluetooth earphone
When earphone and the second bluetooth earphone carry out data transmission, the second time delay was equal to 0.
So that terminal carries out data transmission with the first bluetooth earphone and the second bluetooth earphone in bluetooth earphone simultaneously as an example, root
Obtaining the concrete technical scheme of the first time delay according to first time point and the calculating of the second time point can be:First bluetooth earphone
Detection information, the first feedback information that the first bluetooth earphone receiving terminal is returned according to detection information, the first indigo plant are sent to terminal
Tooth earphone record sends the first time point X of detection information, and record receives the second time point Y of the first feedback information, passed through
Calculating obtains the number that the first time delay was Z, i.e. (Y-X)/2=Z, i.e. the 0.5 of the difference of the second time point and first time point times
Value is equal to the first time delay Z.
It is understood that when terminal carries out data transmission with the first bluetooth earphone in bluetooth earphone, in bluetooth earphone
The first bluetooth earphone and bluetooth earphone in the second bluetooth earphone when carrying out data transmission, calculating obtained for the first time delay
Concrete scheme is identical with such scheme, and here is omitted.
Carried out data transmission with terminal with the first bluetooth earphone in bluetooth earphone, the first bluetooth earphone in bluetooth earphone
Exemplified by carrying out data transmission with the second bluetooth earphone in bluetooth earphone, calculated and obtained according to the 3rd time point and the 4th time point
The concrete technical scheme of second time delay can be:First bluetooth earphone sends detection information, the first bluetooth earphone to terminal
The first feedback information that receiving terminal is returned according to detection information, the first bluetooth earphone sends first to the second bluetooth earphone and fed back
Information, to cause the second bluetooth earphone to return to the second feedback information to the first bluetooth earphone according to the first feedback information, first is blue
Tooth earphone, which is recorded, to be sent the 3rd time point A of the first feedback information with receiving the second bluetooth earphone to the second bluetooth earphone and returns to the
4th time point B of two feedback informations, obtained for the second time delay for C, i.e. (B-A)/2=C, i.e. the 4th time point by calculating
And 0.5 times of numerical value of the difference at the 3rd time point is equal to the second time delay C.
S202:Formulated according to first time delay and second time delay and merge the control terminal for matching somebody with somebody
The response policy of work.
Bluetooth earphone according to first time delay and second time delay formulate for merges control described in
The response policy of terminal works.
In step S202, response policy is used to describe the job step that bluetooth earphone coordinates terminal plays resource, and
The opportunity of control terminal response control instruction.
Step S202 can specifically include:If second time delay be more than 0, calculate first time delay with
The second time delay sum, obtained for the 3rd time delay;If the terminal receives the control instruction, the end is made
End is waiting the 3rd time delay to respond the control instruction again, to cause first bluetooth earphone to wait described second
Time delay responds the control instruction again, and sends the control instruction to second bluetooth earphone, and causes described the
Two bluetooth earphones respond the control instruction when receiving the control instruction.If second time delay is equal to 0, make
Terminal is waiting first time delay to respond the control instruction again, to cause first bluetooth earphone to respond the control
System instruction, second bluetooth earphone responds the control instruction.
It should be noted that in the present embodiment, the control instruction is the control for controlling the resource to be played
Instruction.There is data transfer delay between 0, i.e. the first bluetooth earphone and the second bluetooth earphone when the second time delay was more than, be
The transmission or control entanglement of control instruction are avoided, when terminal receives control instruction, then makes terminal wait the 3rd delay
Time, response control was instructed again so that the first bluetooth earphone waited for the second response time, and response control is instructed again, the first bluetooth ear
Machine sends control instruction to the second bluetooth earphone, and causes the second bluetooth earphone when receiving control instruction directly in response to control
Instruction.
It is understood that not deposited between 0, i.e. the first bluetooth earphone and the second bluetooth earphone when the second time delay was equal to
Only existed for the first time delay between data transfer delay, i.e. terminal and bluetooth earphone.
As one embodiment of the present invention, if resource to be played is video flowing, step S202 can specifically include:If
Second time delay is more than 0, then calculates first time delay and the second time delay sum, obtain the 3rd and prolong
The slow time;If the terminal receives the control instruction, the terminal is made to obtain corresponding according to the 3rd time delay
Target audio timestamp and image timestamp, and the audio stream in video flowing, root are played according to the target audio timestamp
The video stream in video flowing is played according to the image timestamp;Wherein, the target audio timestamp and the image timestamp
Difference be equal to the 3rd time delay.If second time delay is equal to 0, the terminal is made according to first time delay
Corresponding target audio timestamp and image timestamp are obtained, and the sound in video flowing is played according to the target audio timestamp
Frequency is flowed, and the video stream in video flowing is played according to the image timestamp;Wherein, the target audio timestamp and the image
The difference of timestamp is equal to first time delay.
It should be noted that video flowing can include:Video flowing or many matchmakers of broadcasting during video calling in terminal system
Video flowing during body file.
Fig. 5 shows the corresponding relation figure of target audio timestamp and image timestamp in the embodiment of the present invention.Such as Fig. 5 institutes
Show, line segment L1 is the time shaft of audio stream, line segment L2 is the time shaft of video stream, wherein, the audio on the time shaft of audio stream
Image timestamp on timestamp and the time shaft of video stream is corresponded,
Before control instruction described in terminal response, terminal is made to obtain corresponding target audio according to the 3rd time delay
Timestamp and image timestamp, i.e., a certain moment before terminal plays video stream, terminal send audio stream to bluetooth earphone
Information so that when terminal commences play out video stream, the display picture of terminal is corresponding with the audio that bluetooth earphone is played.
As shown in figure 5, corresponding target audio time stamp T a and image time stamp T b are for example obtained, with the target audio time
Ta is corresponding with image time stamp T b plays out for stamp so that the sound corresponding to target audio time stamp T a is being transmitted to bluetooth ear
It is corresponding with the picture played in terminal during machine.Wherein, if second time delay is more than 0, the target audio timestamp
Ta and the image time stamp T b difference Δ T were equal to for the 3rd time delay.If second time delay is equal to 0, the mesh
Mark with phonetic symbols frequency time stamp T a and the image time stamp T b difference Δ T were equal to for the first time delay.
S204:If second time delay is more than 0, the difference between the first electricity and the second electricity is calculated, wherein,
First electricity is the electricity of second bluetooth earphone, and second electricity is the electricity of first bluetooth earphone.
If second time delay is more than 0, the first bluetooth earphone calculates the difference between the first electricity and the second electricity
Value, wherein, first electricity is the electricity of second bluetooth earphone, and second electricity is first bluetooth earphone
Electricity.
In step S204, the first information about power is used for the current residual electricity for describing the second earphone in bluetooth earphone,
Second electricity is used for the current residual electricity for describing the first earphone in bluetooth earphone.
Because second time delay is more than 0, therefore, there are data between the first bluetooth earphone and the second bluetooth earphone
The pattern carried out data transmission between transmission delay, i.e. bluetooth earphone and terminal is to enter line number between terminal and the first bluetooth earphone
According to transmission, carry out data transmission between the first bluetooth earphone and the second bluetooth earphone.Because the first bluetooth earphone was also needed to end
The data that end is sent are transferred to the second bluetooth earphone, therefore the electricity of the first bluetooth earphone consumption is more than disappearing for the second bluetooth earphone
The electricity of consumption.
It should be noted that in the present embodiment, the first bluetooth earphone is to obtain itself second by the real-time or cycle
Electricity, and the second bluetooth earphone the first electricity, and calculate the difference between the first electricity and the second electricity.
It is understood that being by other wireless biographies beyond bluetooth between the first bluetooth earphone and the second bluetooth earphone
Defeated mode carries out data transmission, wherein, other wireless transmission methods beyond bluetooth can be specifically infrared data transmission mode.
S205:If the difference is more than predetermined threshold value, reconnected with the terminal so that second earphone
As the first new earphone, first earphone is used as the second new earphone.
In step S205, predetermined threshold value, which is reconnected and realized for description triggering bluetooth earphone, uses electrical equalization
When, the electricity between the second earphone and the first earphone is poor.
It should be noted that in order that the first earphone in bluetooth earphone is balanced with the dump energy of the second earphone, when
The difference of the electricity of the electricity of second earphone and the first earphone is more than predetermined threshold value, then regard the second earphone as the first new ear
Machine, regard the first earphone as the second new earphone.I.e. when the set of headphones in bluetooth earphone electricity and main earphone electricity difference
Value is more than predetermined threshold value, then regard original main earphone as set of headphones as new set of headphones as new main earphone.
It is understood that the first new earphone carries out bluetooth connection with terminal, the data transfer between terminal is realized,
Carry out data transmission between the first stylish earphone and the second new earphone.
In such scheme, if by detect with terminal successful connection, obtain the first time delay with second delay when
Between;Wherein, first time delay is used to identify the data transfer delay duration between the terminal and bluetooth earphone, described
When second time delay was used to identify the data transfer delay between the first bluetooth earphone and the second bluetooth earphone in bluetooth earphone
It is long;Formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy;The response policy is sent to the terminal;Wherein, if the terminal is detected for controlling the resource to be played
Control instruction, then the control instruction is responded according to the response policy.Eliminate between bluetooth earphone and terminal
The phenomenon of data transfer delay.
If being more than 0 by second time delay, the difference between the first electricity and the second electricity is calculated, wherein,
First electricity is the electricity of second bluetooth earphone, and second electricity is the electricity of first bluetooth earphone;If
The difference is more than predetermined threshold value, then is reconnected with the terminal so that second earphone is used as the first new ear
Machine, first earphone is used as the second new earphone.The electricity for realizing the first earphone and the second earphone in bluetooth earphone is equal
Weighing apparatus control so that the work of bluetooth earphone becomes more reasonable and scientific.
It is a kind of schematic block diagram of bluetooth earphone provided in an embodiment of the present invention referring to Fig. 3.The bluetooth ear of the present embodiment
The each unit that machine 300 includes is used to perform each step in the corresponding embodiments of Fig. 1, specifically refers to Fig. 1 and Fig. 1 is corresponding
Associated description in embodiment, is not repeated herein.
The terminal 300 of the present embodiment includes:Acquiring unit 301, policy making unit 302 and transmitting element 303.Specifically
Ground:
Acquiring unit 301, if for detect with terminal successful connection, obtain the first time delay with second delay when
Between, and the first time delay and the second time delay are sent to policy making unit 302;Wherein, first time delay
For identifying the data transfer delay duration between the terminal and bluetooth earphone, second time delay is used to identify bluetooth
Data transfer delay duration in earphone between the first bluetooth earphone and the second bluetooth earphone.
If for example, acquiring unit 301 detect with terminal successful connection, obtain the first time delay with second delay when
Between, and the first time delay and the second time delay are sent to policy making unit 302;Wherein, first time delay
For the data propagation delay time between terminal and bluetooth earphone, second time delay is the first bluetooth ear in bluetooth earphone
Data propagation delay time between machine and the second bluetooth earphone.
Policy making unit 302, the first time delay and the second time delay for receiving the transmission of acquiring unit 301,
And formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy, and corresponding strategy is sent to transmitting element 303.
For example, policy making unit 302 receives the first time delay and the second time delay that acquiring unit 301 is sent,
And formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy, and response policy is sent to transmitting element 303.
Transmitting element 303, for receiving the response policy of the transmission of policy making unit 302, and the response policy is sent out
Give the terminal;Wherein, if the terminal detects the control instruction for controlling the resource to be played, according to described
Response policy is responded to the control instruction.
For example, transmitting element 303 is used for the response policy for receiving the transmission of policy making unit 302, and by the response plan
Slightly it is sent to the terminal;Wherein, if the terminal detects the control instruction for controlling the resource to be played, basis
The response policy is responded to the control instruction.
In such scheme, if by detect with terminal successful connection, obtain the first time delay with second delay when
Between;Wherein, first time delay is used to identify the data transfer delay duration between the terminal and bluetooth earphone, described
When second time delay was used to identify the data transfer delay between the first bluetooth earphone and the second bluetooth earphone in bluetooth earphone
It is long;Formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy;The response policy is sent to the terminal;Wherein, if the terminal is detected for controlling the resource to be played
Control instruction, then the control instruction is responded according to the response policy.Eliminate between bluetooth earphone and terminal
The phenomenon of data transfer delay.
It is a kind of schematic block diagram for bluetooth earphone that another embodiment of the present invention is provided referring to Fig. 4.The indigo plant of the present embodiment
The each unit that tooth earphone 400 includes is used to perform each step in the corresponding embodiments of Fig. 2, specifically refers to Fig. 2 and Fig. 2 pairs
Associated description in the embodiment answered, is not repeated herein.
The terminal 400 of the present embodiment includes:Acquiring unit 401, policy making unit 402, transmitting element 403, voltameter
Calculate unit 404 and connection unit 405.Specifically:
Acquiring unit 401, if for detect with terminal successful connection, obtain the first time delay with second delay when
Between, and the first time delay and the second time delay are sent to policy making unit 402;Wherein, first time delay
For identifying the data transfer delay duration between the terminal and bluetooth earphone, second time delay is used to identify bluetooth
Data transfer delay duration in earphone between the first bluetooth earphone and the second bluetooth earphone.
If for example, acquiring unit 401 detect with terminal successful connection, obtain the first time delay with second delay when
Between, and the first time delay and the second time delay are sent to policy making unit 402;Wherein, first time delay
For the data propagation delay time between terminal and bluetooth earphone, second time delay is the first bluetooth ear in bluetooth earphone
Data propagation delay time between machine and the second bluetooth earphone.
Further, acquiring unit 401 includes:First execution unit 4011, the second execution unit 4012, time point record
Unit 4013, the first computing unit 4014 and the second computing unit 4015.
First execution unit 4011, for sending the detection information for detecting data transfer delay to the terminal, and
Record sends the first time point of the detection information.
For example, the first execution unit 4011 sends the detection information for detecting data transfer delay to the terminal, and
Record sends the first time point of the detection information.
Second execution unit 4012, for receiving the first feedback information that the terminal is returned according to the detection information,
To cause first bluetooth earphone to send first feedback information to second bluetooth earphone, and it is blue to receive described second
The second feedback information that tooth earphone is returned according to first feedback information.
For example, the second execution unit 4012 receives the first feedback information that the terminal is returned according to the detection information,
To cause first bluetooth earphone to send first feedback information to second bluetooth earphone, and it is blue to receive described second
The second feedback information that tooth earphone is returned according to first feedback information.
Time point recording unit 4013, the second time point of first feedback information is received for recording, to described
Second bluetooth earphone sends the 3rd time point of first feedback information, and receives described in the second bluetooth earphone return
4th time point of the second feedback information.
For example, time point recording unit 4013, which is recorded, receives the second time point of first feedback information, to described
Second bluetooth earphone sends the 3rd time point of first feedback information, and receives described in the second bluetooth earphone return
4th time point of the second feedback information.
First computing unit 4014, described the is obtained for being calculated according to the first time point and second time point
One time delay;Wherein, first time delay is equal to the 0.5 of the difference of second time point and the first time point
Times, first time delay is equal to second time point and the difference of the first time point is more than 0.
For example, the first computing unit 4014 is calculated according to the first time point and second time point obtains described the
One time delay;Wherein, first time delay is equal to the 0.5 of the difference of second time point and the first time point
Times, first time delay is equal to second time point and the difference of the first time point is more than 0.
Second computing unit 4015, described the is obtained for being calculated according to the 3rd time point and the 4th time point
Two time delays;Wherein, second time delay is equal to 0, or equal to the 4th time point and the 3rd time point
0.5 times of difference, the difference at the 4th time point and the 3rd time point is more than 0.
For example, the second computing unit 4015 is calculated according to the 3rd time point and the 4th time point obtains described the
Two time delays;Wherein, second time delay is equal to 0, or equal to the 4th time point and the 3rd time point
0.5 times of difference, the difference at the 4th time point and the 3rd time point is more than 0.
Policy making unit 402, the first time delay and the second time delay for receiving the transmission of acquiring unit 401,
And formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy, and corresponding strategy is sent to transmitting element 403.
For example, policy making unit 402 receives the first time delay and the second time delay that acquiring unit 401 is sent,
And formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy, and response policy is sent to transmitting element 403.
Further, policy making unit 402 includes:3rd computing unit 4021, the first policy unit 4022 and
Two policy units 4023.
3rd computing unit 4021, if for second time delay be more than 0, calculate first time delay with
The second time delay sum, obtained for the 3rd time delay.
If for example, second time delay of the 3rd computing unit 4021 be more than 0, calculate first time delay with
The second time delay sum, obtained for the 3rd time delay.
First policy unit 4022, if receiving the control instruction for the terminal, makes the terminal in wait
3rd time delay responds the control instruction again, to cause first bluetooth earphone to wait second time delay
The control instruction is responded again, and sends the control instruction to second bluetooth earphone, and causes the second bluetooth ear
Machine responds the control instruction when receiving the control instruction.
If for example, the terminal of the first policy unit 4022 receives the control instruction, making the terminal in wait
3rd time delay responds the control instruction again, to cause first bluetooth earphone to wait second time delay
The control instruction is responded again, and sends the control instruction to second bluetooth earphone, and causes the second bluetooth ear
Machine responds the control instruction when receiving the control instruction.
Second policy unit 4023, if being equal to 0 for second time delay, makes terminal wait described first to prolong
The slow time responds the control instruction again, to cause first bluetooth earphone to respond the control instruction, second bluetooth
Control instruction described in earphone response.
If for example, second time delay of the second policy unit 4023 is equal to 0, making terminal wait described first to prolong
The slow time responds the control instruction again, to cause first bluetooth earphone to respond the control instruction, second bluetooth
Control instruction described in earphone response.
Further, if the resource to be played is video flowing, policy making unit 402 includes:4th computing unit
4024th, the 3rd policy unit 4025 and the 4th policy unit 4026.
4th computing unit 4024, if for second time delay be more than 0, calculate first time delay with
The second time delay sum, obtained for the 3rd time delay.
If for example, second time delay of the 4th computing unit 4024 be more than 0, calculate first time delay with
The second time delay sum, obtained for the 3rd time delay.
3rd policy unit 4025, if receiving the control instruction for the terminal, makes the terminal according to institute
The corresponding target audio timestamp of the 3rd time delay acquisition and image timestamp are stated, and is broadcast according to the target audio timestamp
The audio stream in video flowing is put, the video stream in video flowing is played according to the image timestamp;Wherein, during the target audio
Between stamp with the difference of the image timestamp equal to the 3rd time delay.
If for example, the terminal of the 3rd policy unit 4025 receives the control instruction, making the terminal according to institute
The corresponding target audio timestamp of the 3rd time delay acquisition and image timestamp are stated, and is broadcast according to the target audio timestamp
The audio stream in video flowing is put, the video stream in video flowing is played according to the image timestamp;Wherein, during the target audio
Between stamp with the difference of the image timestamp equal to the 3rd time delay.
4th policy unit 4026, if being equal to 0 for second time delay, makes the terminal according to described first
Time delay obtains corresponding target audio timestamp and image timestamp, and plays video according to the target audio timestamp
Audio stream in stream, the video stream in video flowing is played according to the image timestamp;Wherein, the target audio timestamp with
The difference of the image timestamp is equal to first time delay.
If for example, second time delay of the 4th policy unit 4026 is equal to 0, making the terminal according to described first
Time delay obtains corresponding target audio timestamp and image timestamp, and plays video according to the target audio timestamp
Audio stream in stream, the video stream in video flowing is played according to the image timestamp;Wherein, the target audio timestamp with
The difference of the image timestamp is equal to first time delay.
Transmitting element 403, for receiving the response policy of the transmission of policy making unit 402, and the response policy is sent out
Give the terminal;Wherein, if the terminal detects the control instruction for controlling the resource to be played, according to described
Response policy is responded to the control instruction.
For example, transmitting element 403 receives the response policy that policy making unit 402 is sent, and the response policy is sent out
Give the terminal;Wherein, if the terminal detects the control instruction for controlling the resource to be played, according to described
Response policy is responded to the control instruction.
Electricity computing unit 404, if being more than 0 for second time delay, calculates the first electricity and the second electricity
Between difference, wherein, first electricity is the electricity of second bluetooth earphone, and second electricity is described first blue
The electricity of tooth earphone.
If for example, second time delay of electricity computing unit 404 is more than 0, calculating the first electricity and the second electricity
Between difference, wherein, first electricity is the electricity of second bluetooth earphone, and second electricity is described first blue
The electricity of tooth earphone.
Connection unit 405, if being more than predetermined threshold value for the difference, is reconnected with the terminal so that
Second earphone is used as the second new earphone as the first new earphone, first earphone.
If for example, the difference of connection unit 405 is more than predetermined threshold value, being reconnected with the terminal so that
Second earphone is used as the second new earphone as the first new earphone, first earphone.
In such scheme, if by detect with terminal successful connection, obtain the first time delay with second delay when
Between;Wherein, first time delay is used to identify the data transfer delay duration between the terminal and bluetooth earphone, described
When second time delay was used to identify the data transfer delay between the first bluetooth earphone and the second bluetooth earphone in bluetooth earphone
It is long;Formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy;The response policy is sent to the terminal;Wherein, if the terminal is detected for controlling the resource to be played
Control instruction, then the control instruction is responded according to the response policy.Eliminate between bluetooth earphone and terminal
The phenomenon of data transfer delay.
If being more than 0 by second time delay, the difference between the first electricity and the second electricity is calculated, wherein,
First electricity is the electricity of second bluetooth earphone, and second electricity is the electricity of first bluetooth earphone;If
The difference is more than predetermined threshold value, then is reconnected with the terminal so that second earphone is used as the first new ear
Machine, first earphone is used as the second new earphone.The electricity for realizing the first earphone and the second earphone in bluetooth earphone is equal
Weighing apparatus control so that the work of bluetooth earphone becomes more reasonable and scientific.
It is a kind of bluetooth earphone schematic block diagram that yet another embodiment of the invention is provided referring to Fig. 6.This reality as shown in Figure 6
The bluetooth earphone 500 applied in example can include:One or more processors 501, one or more input equipments 502, one or
Multiple then output equipments 503 and one or more memories 504.Above-mentioned processor 501, then input equipment 502, output equipment
503 and memory 504 mutual communication is completed by communication bus 505.
Memory 504 is instructed for storage program.
The programmed instruction that processor 501 is used to be stored according to memory 504 performs following operate:
If processor 501 be used for detect with terminal successful connection, obtain the first time delay and the second time delay;
Wherein, first time delay is used to identifying data transfer delay duration between the terminal and bluetooth earphone, and described the
Two time delays were used to identify the data transfer delay duration in bluetooth earphone between the first bluetooth earphone and the second bluetooth earphone.
Processor 501 is additionally operable to be formulated according to first time delay and second time delay merges control for matching somebody with somebody
Make the response policy of the terminal works.
Processor 501 is additionally operable to the response policy being sent to the terminal;Wherein, it is used for if the terminal is detected
The control instruction of the resource to be played is controlled, then the control instruction is responded according to the response policy.
If processor 501 is additionally operable to second time delay more than 0, calculate between the first electricity and the second electricity
Difference;Wherein, first electricity is the electricity of second bluetooth earphone, and second electricity is first bluetooth earphone
Electricity.
If processor 501 is additionally operable to the difference more than predetermined threshold value, reconnected with the terminal so that institute
The second earphone is stated as the first new earphone, first earphone is used as the second new earphone.
Processor 501 is recorded specifically for being sent to the terminal for detecting the detection information of data transfer delay
Send the first time point of the detection information.
The first feedback information that processor 501 is returned specifically for the reception terminal according to the detection information, so that
Obtain first bluetooth earphone and send first feedback information to second bluetooth earphone, and receive the second bluetooth ear
The second feedback information that machine is returned according to first feedback information.
Processor 501 receives the second time point, blue to described second of first feedback information specifically for record
3rd time point of tooth earphone transmission first feedback information, and reception the second bluetooth earphone return described second are anti-
4th time point of feedforward information.
Processor 501 according to the first time point and second time point calculating specifically for obtaining described first and prolonging
The slow time;Wherein, first time delay is equal to 0.5 times of the difference of second time point and the first time point, institute
The difference for stating for the first time delay equal to second time point and the first time point is more than 0.
Processor 501 according to the 3rd time point and the 4th time point calculating specifically for obtaining described second and prolonging
The slow time;Wherein, second time delay is equal to 0, or equal to the difference at the 4th time point and the 3rd time point
0.5 times, the difference at the 4th time point and the 3rd time point is more than 0.
If processor 501 specifically for second time delay be more than 0, calculate first time delay with it is described
Second time delay sum, obtained for the 3rd time delay.
If processor 501 receives the control instruction specifically for the terminal, the terminal is made to wait described
3rd time delay responded the control instruction again, to cause first bluetooth earphone to wait second time delay to ring again
The control instruction is answered, and the control instruction is sent to second bluetooth earphone, and second bluetooth earphone is existed
The control instruction is responded when receiving the control instruction.
If processor 501 is equal to 0 specifically for second time delay, terminal is made when waiting first delay
Between respond the control instruction again, to cause first bluetooth earphone to respond the control instruction, second bluetooth earphone
Respond the control instruction.
If processor 501 specifically for second time delay be more than 0, calculate first time delay with it is described
Second time delay sum, obtained for the 3rd time delay.
If processor 501 receives the control instruction specifically for the terminal, the terminal is made according to described
Three time delays obtained corresponding target audio timestamp and image timestamp, and were regarded according to target audio timestamp broadcasting
Audio stream in frequency stream, the video stream in video flowing is played according to the image timestamp;Wherein, the target audio timestamp
And the difference of the image timestamp was equal to for the 3rd time delay.
If processor 501 is equal to 0 specifically for second time delay, the terminal is made according to the described first delay
Time obtains corresponding target audio timestamp and image timestamp, and is played according to the target audio timestamp in video flowing
Audio stream, according to the image timestamp play video flowing in video stream;Wherein, the target audio timestamp with it is described
The difference of image timestamp is equal to first time delay.
In such scheme, if by detect with terminal successful connection, obtain the first time delay with second delay when
Between;Wherein, first time delay is used to identify the data transfer delay duration between the terminal and bluetooth earphone, described
When second time delay was used to identify the data transfer delay between the first bluetooth earphone and the second bluetooth earphone in bluetooth earphone
It is long;Formulated according to first time delay and second time delay for merging the response for controlling the terminal works
Strategy;The response policy is sent to the terminal;Wherein, if the terminal is detected for controlling the resource to be played
Control instruction, then the control instruction is responded according to the response policy.Eliminate between bluetooth earphone and terminal
The phenomenon of data transfer delay.
It should be appreciated that in embodiments of the present invention, alleged processor 501 can be CPU (Central
Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application specific integrated circuit (application software lication Specific Integrated
Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other can
Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor
Or the processor can also be any conventional processor etc..
Input equipment 502 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint
Directional information), camera, microphone etc., then output equipment 503 can include display (LCD etc.), loudspeaker etc..
The memory 505 can include read-only storage and random access memory, and to processor 501 provide instruction and
Data.The a part of of memory 505 can also include nonvolatile RAM.For example, memory 505 can also be deposited
Store up the information of device type.
In the specific implementation, processor 501, input equipment 502, the output equipment 503 described in the embodiment of the present invention can
Perform described in the first embodiment and second embodiment of the method for control terminal playing resource provided in an embodiment of the present invention
Implementation, also can perform the embodiment of the present invention described by terminal implementation, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint bar of technical scheme
Part.Professional and technical personnel can realize described function to each specific application program using distinct methods, still
This realization is it is not considered that beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description
End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed bluetooth earphone and method, Ke Yitong
Other modes are crossed to realize.For example, device embodiment described above is only schematical, for example, stroke of the unit
Point, only a kind of division of logic function can have other dividing mode when actually realizing, such as multiple units or component can
To combine or be desirably integrated into another system, or some features can be ignored, or not perform.In addition, shown or discussed
Coupling each other or direct-coupling or communication connection can be by the INDIRECT COUPLING of some interfaces, device or unit or
Communication connection or electricity, mechanical or other forms are connected.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in bluetooth earphone of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
1. a kind of method of control terminal playing resource, for the terminal plays resource for controlling to be connected with bluetooth earphone, its feature
It is, methods described includes:
If detect with terminal successful connection, obtain the first time delay and the second time delay;Wherein, first delay
Time is used to identify the data transfer delay duration between the terminal and bluetooth earphone, and second time delay is used to identify
Data transfer delay duration in bluetooth earphone between the first bluetooth earphone and the second bluetooth earphone;
Formulated according to first time delay and second time delay for merging the sound for controlling the terminal works
Should strategy;
The response policy is sent to the terminal;Wherein, if the terminal is detected for controlling the resource to be played
Control instruction, then the control instruction is responded according to the response policy.
2. according to the method described in claim 1, it is characterised in that if described detect and terminal successful connection, it is determined that the
One time delay and the second time delay, including:
Sent to the terminal for detecting the detection information of data transfer delay, and record the first of the transmission detection information
Time point;
The first feedback information that the terminal is returned according to the detection information is received, to cause first bluetooth earphone to institute
State the second bluetooth earphone and send first feedback information, and receive second bluetooth earphone according to first feedback information
The second feedback information returned;
Record receives the second time point of first feedback information, sends first feedback to second bluetooth earphone
3rd time point of information, and receive the 4th time point that second bluetooth earphone returns to second feedback information;
Calculated according to the first time point and second time point and obtain first time delay;Wherein, described first
Time delay is equal to 0.5 times of the difference of second time point and the first time point, and first time delay is equal to institute
The difference for stating the second time point and the first time point is more than 0;
Calculated according to the 3rd time point and the 4th time point and obtain second time delay;Wherein, described second
Time delay is equal to 0, or equal to 0.5 times of the 4th time point and the difference at the 3rd time point, the 4th time
The difference at point and the 3rd time point is more than 0.
3. method according to claim 2, it is characterised in that described to be prolonged according to first time delay with described second
The slow time is formulated for the response policy with the merging control terminal works, including:
If second time delay is more than 0, first time delay and the second time delay sum are calculated, is obtained
3rd time delay;
If the terminal receives the control instruction, the terminal is made to be responded again in wait the 3rd time delay described
Control instruction, to cause first bluetooth earphone to wait second time delay to respond the control instruction again, and to institute
State the second bluetooth earphone and send the control instruction, and second bluetooth earphone is rung when receiving the control instruction
Answer the control instruction;
If second time delay is equal to 0, terminal is made to wait first time delay to respond the control instruction again,
To cause first bluetooth earphone to respond the control instruction, second bluetooth earphone responds the control instruction.
4. method according to claim 2, it is characterised in that described according to institute if the resource to be played is video flowing
Stated for the first time delay to formulate for the response policy for controlling the terminal works is merged, wrapping with second time delay
Include:
If second time delay is more than 0, first time delay and the second time delay sum are calculated, is obtained
3rd time delay;
If the terminal receives the control instruction, the terminal is made to obtain corresponding mesh according to the 3rd time delay
Audio time stamp and image timestamp are marked, and the audio stream in video flowing is played according to the target audio timestamp, according to institute
State the video stream in image timestamp broadcasting video flowing;Wherein, the difference of the target audio timestamp and the image timestamp
Equal to the 3rd time delay;
If second time delay is equal to 0, the terminal is made to obtain corresponding target sound according to first time delay
Frequency timestamp and image timestamp, and the audio stream in video flowing is played according to the target audio timestamp, according to the shadow
As timestamp plays the video stream in video flowing;Wherein, the difference of the target audio timestamp and the image timestamp is equal to
First time delay.
5. the method according to any one of Claims 1-4, it is characterised in that methods described also includes:
If second time delay is more than 0, the difference between the first electricity and the second electricity is calculated;Wherein, described first
Electricity is the electricity of second bluetooth earphone, and second electricity is the electricity of first bluetooth earphone;
If the difference is more than predetermined threshold value, reconnected with the terminal so that second earphone is as new
First earphone, first earphone is used as the second new earphone.
6. a kind of bluetooth earphone, for the terminal plays resource for controlling to be connected with the bluetooth earphone, it is characterised in that the indigo plant
Tooth earphone includes:
Acquiring unit, if for detect with terminal successful connection, obtain the first time delay and the second time delay;Its
In, first time delay is data propagation delay time between terminal and bluetooth earphone, and second time delay is
Data propagation delay time in bluetooth earphone between the first bluetooth earphone and the second bluetooth earphone;
Policy making unit, merges control for being formulated according to first time delay and second time delay for matching somebody with somebody
The response policy of the terminal works;
Transmitting element, for the response policy to be sent into the terminal;Wherein, if the terminal is detected for controlling institute
The control instruction of resource to be played is stated, then the control instruction is responded according to the response policy.
7. bluetooth earphone according to claim 6, it is characterised in that the acquiring unit includes:
First execution unit, for being sent to the terminal for detecting the detection information of data transfer delay, and records transmission
The first time point of the detection information;
Second execution unit, for receiving the first feedback information that the terminal is returned according to the detection information, to cause
State the first bluetooth earphone and send first feedback information to second bluetooth earphone, and receive the second bluetooth earphone root
The second feedback information returned according to first feedback information;
Time point recording unit, the second time point of first feedback information is received for recording, to second bluetooth
Earphone sends the 3rd time point of first feedback information, and receives the second bluetooth earphone return second feedback
4th time point of information;
First computing unit, when obtaining first delay for being calculated according to the first time point and second time point
Between;Wherein, first time delay is equal to 0.5 times of the difference of second time point and the first time point, and described the
One time delay was equal to second time point and the difference of the first time point is more than 0;
Second computing unit, when obtaining second delay for being calculated according to the 3rd time point and the 4th time point
Between;Wherein, second time delay is equal to 0, or equal to the 0.5 of the 4th time point and the difference at the 3rd time point
Times, the difference at the 4th time point and the 3rd time point is more than 0.
8. bluetooth earphone according to claim 7, it is characterised in that the policy making unit includes:
3rd computing unit, if being more than 0 for second time delay, calculates first time delay and described second
Time delay sum, obtained for the 3rd time delay;
First policy unit, if receiving the control instruction for the terminal, makes the terminal wait the described 3rd
Time delay responds the control instruction again, to cause first bluetooth earphone to wait second time delay to respond institute again
Control instruction is stated, and the control instruction is sent to second bluetooth earphone, and second bluetooth earphone is being received
The control instruction is responded during to the control instruction;
Second policy unit, if being equal to 0 for second time delay, makes terminal wait first time delay again
The control instruction is responded, to cause first bluetooth earphone to respond the control instruction, the second bluetooth earphone response
The control instruction.
9. bluetooth earphone according to claim 7, it is characterised in that if the resource to be played is video flowing, the plan
Slightly formulating unit includes:
4th computing unit, if being more than 0 for second time delay, calculates first time delay and described second
Time delay sum, obtained for the 3rd time delay;
3rd policy unit, if receiving the control instruction for the terminal, makes the terminal prolong according to the described 3rd
The slow time obtains corresponding target audio timestamp and image timestamp, and plays video flowing according to the target audio timestamp
In audio stream, according to the image timestamp play video flowing in video stream;Wherein, the target audio timestamp and institute
The difference for stating image timestamp was equal to for the 3rd time delay;
4th policy unit, if being equal to 0 for second time delay, makes the terminal according to first time delay
Corresponding target audio timestamp and image timestamp are obtained, and the sound in video flowing is played according to the target audio timestamp
Frequency is flowed, and the video stream in video flowing is played according to the image timestamp;Wherein, the target audio timestamp and the image
The difference of timestamp is equal to first time delay.
10. the bluetooth earphone according to any one of claim 6 to 9, it is characterised in that described
Electricity computing unit, if being more than 0 for second time delay, calculates the difference between the first electricity and the second electricity
Value, wherein, first electricity is the electricity of second bluetooth earphone, and second electricity is first bluetooth earphone
Electricity;
Connection unit, if being more than predetermined threshold value for the difference, is reconnected so that described second with the terminal
Earphone is used as the second new earphone as the first new earphone, first earphone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710240929.5A CN107181506A (en) | 2017-04-13 | 2017-04-13 | The method and bluetooth earphone of a kind of control terminal playing resource |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710240929.5A CN107181506A (en) | 2017-04-13 | 2017-04-13 | The method and bluetooth earphone of a kind of control terminal playing resource |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107181506A true CN107181506A (en) | 2017-09-19 |
Family
ID=59830923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710240929.5A Withdrawn CN107181506A (en) | 2017-04-13 | 2017-04-13 | The method and bluetooth earphone of a kind of control terminal playing resource |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107181506A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107743173A (en) * | 2017-10-10 | 2018-02-27 | 西安易朴通讯技术有限公司 | A kind of method and terminal of control device consumption electricity |
CN107820155A (en) * | 2017-11-08 | 2018-03-20 | 深圳市沃特沃德股份有限公司 | Control method, device and the wireless headset of wireless headset |
CN109104662A (en) * | 2018-08-28 | 2018-12-28 | Oppo广东移动通信有限公司 | Instruction executing method, operation response method, terminal and ear speaker device |
CN109144642A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Display control method, device, electronic equipment and storage medium |
CN110430104A (en) * | 2019-09-18 | 2019-11-08 | 北京云中融信网络科技有限公司 | Test method, device, storage medium and the electronic equipment of audio transmission delay |
CN111432304A (en) * | 2020-03-20 | 2020-07-17 | 江苏紫米电子技术有限公司 | Earphone control method, earphone control device, electronic equipment, earphone control system and storage medium |
US11240586B1 (en) | 2020-11-05 | 2022-02-01 | Shenzhen Goodix Technology Co Ltd. | Method, apparatus and device for synchronously playing audio |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2063662A2 (en) * | 2007-11-22 | 2009-05-27 | Samsung Electronics Co., Ltd. | Multimedia apparatus and synchronization method thereof |
CN102047592A (en) * | 2008-05-27 | 2011-05-04 | 索尼爱立信移动通讯有限公司 | Apparatus and methods for time synchronization of wireless audio data streams |
CN103905878A (en) * | 2014-03-13 | 2014-07-02 | 北京奇艺世纪科技有限公司 | Video data and audio data synchronized playing method and device and equipment |
CN104837046A (en) * | 2015-01-08 | 2015-08-12 | 腾讯科技(北京)有限公司 | Multi-media file processing method and device |
CN105357604A (en) * | 2014-04-30 | 2016-02-24 | 密克罗奇普技术公司 | Audio playing device with Bluetooth function and audio playing method |
-
2017
- 2017-04-13 CN CN201710240929.5A patent/CN107181506A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2063662A2 (en) * | 2007-11-22 | 2009-05-27 | Samsung Electronics Co., Ltd. | Multimedia apparatus and synchronization method thereof |
CN102047592A (en) * | 2008-05-27 | 2011-05-04 | 索尼爱立信移动通讯有限公司 | Apparatus and methods for time synchronization of wireless audio data streams |
CN103905878A (en) * | 2014-03-13 | 2014-07-02 | 北京奇艺世纪科技有限公司 | Video data and audio data synchronized playing method and device and equipment |
CN105357604A (en) * | 2014-04-30 | 2016-02-24 | 密克罗奇普技术公司 | Audio playing device with Bluetooth function and audio playing method |
CN104837046A (en) * | 2015-01-08 | 2015-08-12 | 腾讯科技(北京)有限公司 | Multi-media file processing method and device |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107743173A (en) * | 2017-10-10 | 2018-02-27 | 西安易朴通讯技术有限公司 | A kind of method and terminal of control device consumption electricity |
CN107820155A (en) * | 2017-11-08 | 2018-03-20 | 深圳市沃特沃德股份有限公司 | Control method, device and the wireless headset of wireless headset |
CN109144642A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Display control method, device, electronic equipment and storage medium |
CN109144642B (en) * | 2018-08-14 | 2022-02-18 | Oppo广东移动通信有限公司 | Display control method, display control device, electronic equipment and storage medium |
CN109104662A (en) * | 2018-08-28 | 2018-12-28 | Oppo广东移动通信有限公司 | Instruction executing method, operation response method, terminal and ear speaker device |
CN110430104A (en) * | 2019-09-18 | 2019-11-08 | 北京云中融信网络科技有限公司 | Test method, device, storage medium and the electronic equipment of audio transmission delay |
CN111432304A (en) * | 2020-03-20 | 2020-07-17 | 江苏紫米电子技术有限公司 | Earphone control method, earphone control device, electronic equipment, earphone control system and storage medium |
CN111432304B (en) * | 2020-03-20 | 2022-06-17 | 江苏紫米电子技术有限公司 | Earphone control method, earphone control device, electronic equipment, earphone control system and storage medium |
US11240586B1 (en) | 2020-11-05 | 2022-02-01 | Shenzhen Goodix Technology Co Ltd. | Method, apparatus and device for synchronously playing audio |
WO2022094835A1 (en) * | 2020-11-05 | 2022-05-12 | 深圳市汇顶科技股份有限公司 | Audio synchronization playback method, apparatus, device, and storage medium |
US11632617B2 (en) | 2020-11-05 | 2023-04-18 | Shenzhen GOODIX Technology Co., Ltd. | Method, apparatus and device for synchronously playing audio |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107181506A (en) | The method and bluetooth earphone of a kind of control terminal playing resource | |
CN111050203B (en) | Video processing method and device, video processing equipment and storage medium | |
WO2022179090A1 (en) | Live broadcast data processing method and apparatus | |
CN107967093A (en) | A kind of multistage text clone method and mobile terminal | |
CN108521521A (en) | volume adjusting method, mobile terminal and computer readable storage medium | |
CN106454139A (en) | Shooting method and mobile terminal | |
CN109086742A (en) | scene recognition method, scene recognition device and mobile terminal | |
CN107193598A (en) | One kind application startup method, mobile terminal and computer-readable recording medium | |
CN110134237A (en) | Interface control method and relevant device | |
CN107480001A (en) | System recovery method and device | |
CN110248245A (en) | A kind of video locating method, device, mobile terminal and storage medium | |
CN107888757A (en) | A kind of voice message processing method, terminal and computer-readable recording medium | |
CN107479806A (en) | The method and terminal of a kind of changing interface | |
CN110083486A (en) | The method, apparatus and recording medium interacted with exterior terminal | |
CN107547748A (en) | A kind of picture management method, terminal and computer-readable recording medium | |
CN110086941B (en) | Voice playing method and device and terminal equipment | |
CN108519847A (en) | A kind of record screen method and terminal | |
CN113038273B (en) | Video frame processing method and device, storage medium and electronic equipment | |
CN109889644A (en) | A kind of tone information listens to method and apparatus and storage medium | |
WO2024104081A1 (en) | Wallpaper display method and apparatus, and electronic device | |
CN107864295A (en) | Call control method, mobile terminal and computer-readable recording medium | |
CN106658232B (en) | The method and electric terminal of label editing | |
CN108182574A (en) | A kind of resource transfers method and relevant device | |
CN107872573A (en) | A kind of alarm clock setting method and terminal | |
CN110221806A (en) | The method and device of audio adjusting, display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170919 |