CN106375823B - A kind of clock adjustment, device, terminal and multimedia synchronous play system - Google Patents

A kind of clock adjustment, device, terminal and multimedia synchronous play system Download PDF

Info

Publication number
CN106375823B
CN106375823B CN201610882865.4A CN201610882865A CN106375823B CN 106375823 B CN106375823 B CN 106375823B CN 201610882865 A CN201610882865 A CN 201610882865A CN 106375823 B CN106375823 B CN 106375823B
Authority
CN
China
Prior art keywords
regulated quantity
clock
regulation
total
default
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
CN201610882865.4A
Other languages
Chinese (zh)
Other versions
CN106375823A (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
Priority to CN201610882865.4A priority Critical patent/CN106375823B/en
Publication of CN106375823A publication Critical patent/CN106375823A/en
Application granted granted Critical
Publication of CN106375823B publication Critical patent/CN106375823B/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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4305Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/04Time compression or expansion
    • G10L21/055Time compression or expansion for synchronising with other signals, e.g. video signals
    • 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/4104Peripherals receiving signals from specially adapted client devices
    • 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
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • H04N21/4394Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Electric Clocks (AREA)

Abstract

The embodiments of the invention provide a kind of clock adjustment, device, terminal and multimedia synchronous play system;The embodiment of the present invention is used when playing multi-medium data, obtain the time error between system clock and reference clock, then, the regulation direction for determining to be adjusted in synchronism according to the time error, the system clock is repeatedly adjusted according to the regulation direction and default regulated quantity, to cause the time error as zero;The program plays multimedia synchronism between can improving multimedia play equipment.

Description

A kind of clock adjustment, device, terminal and multimedia synchronous play system
Technical field
The present invention relates to synchronous play-back technology field, and in particular to a kind of clock adjustment, device, terminal and multimedia Synchronous playing system.
Background technology
With the improvement of living standards, home audio-visual devices play important role in the life of people.Currently, will Multiple multimedia play equipments (for example, audio amplifier, player etc.) and control device are interconnected by wired or wireless network, A multimedia play system is formed, it is synchronous to play identical multimedia such as music, it has been widely used.
In above-mentioned multimedia play system, each multimedia play equipment has independent clock system.Each broadcasting Equipment plays multimedia according to the clock system of its own.However, each multimedia play equipment and reference device are (general For control device) clock system it is not always synchronous.Each playback equipment and reference device there may be each other The trickle time difference.When multiple multimedia play equipments play identical multimedia such as music, the above-mentioned trickle time difference causes respectively The playing progress rate of individual multimedia play equipment is inconsistent, thereby result in improve play between multimedia play equipment it is multimedia same Step property is than relatively low.
The content of the invention
The embodiment of the present invention provides a kind of clock adjustment, device, terminal and multimedia synchronous play system, Ke Yiti Multimedia synchronism is played between high multimedia play equipment.
The embodiment of the present invention provides a kind of clock adjustment, including:
When playing multi-medium data, the time error between system clock and reference clock is obtained;
The regulation direction for determining to be adjusted in synchronism according to the time error;
The system clock is repeatedly adjusted according to the regulation direction and default regulated quantity, to cause the time Error is zero.
Accordingly, the embodiment of the present invention also provides a kind of clock adjustment apparatus, including:
Acquiring unit, for when playing multi-medium data, obtaining the time error between system clock and reference clock;
Direction-determining unit, for the regulation direction for determining to be adjusted in synchronism according to the time error;
Adjustment unit, for repeatedly being adjusted to the system clock according to the regulation direction and default regulated quantity, To cause the time error as zero.
Accordingly, the embodiment of the present invention also provides a kind of terminal, including:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs the embodiment of the present invention and carries Any clock adjustment supplied.
Accordingly, the embodiment of the present invention additionally provides a kind of multimedia synchronous play system, including:Control device and at least One playback equipment;The control device is connected with the playback equipment;The playback equipment is used to perform the embodiment of the present invention Any clock adjustment provided.
The embodiment of the present invention is used when playing multi-medium data, and the time obtained between system clock and reference clock misses Difference, then, the regulation direction for determining to be adjusted in synchronism according to the time error, it is to this according to the regulation direction and default regulated quantity System clock is repeatedly adjusted, to cause the time error as zero.The program can with during multimedia to system clock Repeatedly adjusted, it is synchronous with reference clock to cause, and then multiple playback equipments synchronously play multimedia effect, phase For prior art, it can improve and play multimedia synchronism between multimedia play equipment.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the schematic flow sheet for the clock adjustment that the embodiment of the present invention one provides.
Fig. 2 is the schematic flow sheet for the clock adjustment that the embodiment of the present invention two provides.
Fig. 3 is the structural representation for the first clock adjustment apparatus that the embodiment of the present invention three provides.
Fig. 4 is the structural representation for second of clock adjustment apparatus that the embodiment of the present invention three provides.
Fig. 5 is the structural representation for the third clock adjustment apparatus that the embodiment of the present invention three provides.
Fig. 6 is the structural representation for the third clock adjustment apparatus that the embodiment of the present invention three provides.
Fig. 7 is the schematic diagram of a scenario for the multimedia synchronous play system that the embodiment of the present invention four provides.
Fig. 8 is the structural representation for the terminal that the embodiment of the present invention five provides.
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 describes.Obviously, described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing etc. (if present) is for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that this The object of sample description can exchange in the appropriate case.In addition, term " comprising " and " having " and their any deformation, meaning Figure is to cover non-exclusive include.For example, contain the process of series of steps, method or contain a series of modules or list The device of member, terminal, system are not necessarily limited to those steps or module or the unit clearly listed, and can also include unclear The step of ground is listed or module or unit, it can also include for intrinsic its of these processes, method, apparatus, terminal or system Its step or module or unit.
The embodiment of the present invention provides a kind of clock adjustment, device, terminal and multimedia synchronous play system, below will It is described in detail respectively.
Embodiment one
The clock adjustment apparatus, which will be described, from the angle of clock adjustment apparatus in the present embodiment can specifically integrate broadcasting In equipment, the playback equipment can be the playback equipments such as terminal (smart mobile phone, tablet personal computer etc.), audio amplifier.
A kind of clock adjustment, including:When playing multi-medium data, obtain between system clock and reference clock Time error, then, the regulation direction for determining to be adjusted in synchronism according to the time error, according to the regulation direction and default regulated quantity The system clock is repeatedly adjusted, to cause the time error as zero.
As shown in figure 1, the clock adjustment, idiographic flow can include:
101st, when playing multi-medium data, the time error between system clock and reference clock is obtained.
Wherein, the multi-medium data can be voice data, audio, video data etc..The voice data includes but is not limited to CD、WAV、MP3(Moving Picture Experts Group Audio Layer III)、WMA(Windows Media The voice data of form such as Audio).
The reference clock can be the system clock of reference device, and the reference device is the reference device synchronously played, than Such as, it can be control device or playback equipment.In actual applications, can be chosen according to the actual requirements from playback equipment One equipment is as reference device.
Specifically, step " obtaining the time error between system clock and reference clock " can include:
Obtain the reference device current the first system time;
Obtain itself current second system time;
According to second system time and the first system time, the time error between system clock and reference clock is obtained.
For example time difference between second system time and the first system time can be calculated, the time difference is Time error between system clock and reference clock;Time difference between the second system time and the first system time refers to Be that the second system time is subtracted into the time difference that the first system time obtains.
In other embodiments, the time difference of the first system time and second system time can be also obtained, i.e., by One system time subtracts the time difference obtained the second system time.
Wherein, the mode of the current system time of acquisition reference device can have a variety of, such as, reference device can be asked Send its current system time or reference device active push.
102nd, the regulation direction being adjusted in synchronism is determined according to the time error.
Wherein, regulation direction can include positive direction or negative direction, and positive direction regulation is to speed up system clock, losing side It is to slow down system clock to regulation.Can also be:Negative direction regulation is to speed up system clock, and positive direction regulation is when slowing down system Clock;It can specifically set according to the actual requirements.
Specifically, it is the time difference of itself current time and reference device current time in time error, positive direction is adjusted Section is to speed up system clock, and negative direction regulation is in the case of slowing down system clock, if time error is more than zero, determines same step The regulation direction of section is negative direction, that is, needs to slow down the system clock of itself;If time error is less than zero, it is determined that regulation direction is Positive direction, that is, need to accelerate the system clock of itself.
Alternatively, the present embodiment clock adjustment, can also be true according to the time error after time error is obtained Surely the total regulated quantity being adjusted in synchronism, total regulated quantity can be total step-length.
Wherein, total regulated quantity is the absolute value of time error, such as, when time error is 20ms, total regulated quantity is 20ms, when time error is -30ms, total regulated quantity is 30ms.
103rd, the system clock is repeatedly adjusted according to the regulation direction and default regulated quantity, to cause the time to miss Difference is zero.
Specifically, system clock can repeatedly be adjusted according to total regulated quantity, regulation direction and default regulated quantity.
Wherein, default regulated quantity can preset step section length, and it can set according to the actual requirements, such as, Ke Yiwei 10ms, 20ms, 1s etc..
In the present embodiment, can repeatedly it be adjusted with default regulated quantity and regulation direction so that total regulated quantity is zero, is entered And make it that the time error between system clock and reference clock is zero, reach clock synchronization.Specifically, step is " with according to total Regulated quantity, regulation direction and default regulated quantity are repeatedly adjusted to system clock, to cause the time error to be wrapped as zero " Include:
The system clock is adjusted according to the regulation direction and default regulated quantity;
Regulated quantity is preset according to this and updates total regulated quantity, total regulated quantity after being updated;
Whether total regulated quantity is less than default regulated quantity after judging renewal;
If not less than default regulated quantity, after preset time period, return to perform and adjusted according to the regulation direction with default The step of system clock is adjusted section amount.
Wherein preset time period can be preset according to the actual requirements, such as, 1s, 5s, 7s etc. can be given.Namely this The system clock is adjusted according to the regulation direction and default regulated quantity for each preset time period of embodiment method.Than Such as, after the not default regulated quantity of total regulated quantity after judging to update, timing can be started, when clocking value reaches preset duration, Then continue that system clock is adjusted.
Wherein, step " system clock is adjusted according to regulation direction and default regulated quantity " can include:According to tune Save direction and system clock is adjusted into a default regulated quantity.System clock is accelerated a default regulation step-length, such as accelerate 10ms etc..
For example time error is 15ms (now total step-length is 15ms), preset regulation step-length when being 5ms, can first according to Adjust direction and adjust a default regulation step-length 5ms, then, update total step-length, always step-length will subtract 5ms, now total step-length For 10ms, so again after adjusting three times, you can total step-length is adjusted into 0.
The integer for being possible to be not necessarily default regulated quantity in view of total regulated quantity in actual applications is accompanied, and such as total step-length is 7ms, it is 2ms to preset regulation step-length;Therefore, system clock may be asynchronous with reference clock after being adjusted to system clock, together The accuracy of step section is poor;In order to overcome the problem, the present embodiment to system clock after adjusting every time, after judging renewal Whether total regulated quantity is less than default regulated quantity, if being not less than, system clock is adjusted according to default regulated quantity, if small In then needing to redefine regulated quantity, then, system clock be adjusted according to the regulated quantity redefined.Namely step " system clock is repeatedly adjusted according to the regulation direction and default regulated quantity, to cause the time error may be used also as zero " With including:
When total regulated quantity is less than default regulated quantity after renewal, target regulated quantity is obtained according to total regulated quantity after the renewal;
Current system time clock is adjusted according to the target regulated quantity and the regulation direction.
For example total step-length is 7ms, when default regulation step-length is 2ms, after adjusting three times, total step-length is changed into 1ms, it is 2ms that it, which is less than default regulation step-length, at this point it is possible to determine that regulated quantity is 1ms according to total step-length 1ms, afterwards according to tune Section amount is that 1ms is adjusted to system clock, you can so that total step-length is 0, and then the time error between system clock is 0, is reached Clock is synchronous.
Alternatively, to save the accuracy of system resource and clock regulation, after total regulated quantity after being updated, sentence Whether total regulated quantity is less than before default regulated quantity after disconnected renewal, and the present embodiment method can include:
Whether total regulated quantity is zero after judging renewal;
The step of always whether regulated quantity is less than default regulated quantity after renewal judged if it is not, then performing;
If so, then terminate flow.
Alternatively, in order to save resource, it can be not zero in total regulated quantity and start multiple regulation mechanism system clock is entered Row is adjusted, and not starting multiple regulation mechanism when being not zero, system clock is adjusted;Namely the present embodiment adjusting method exists It is determined that after the total regulated quantity being adjusted in synchronism, the system clock is repeatedly adjusted according to the regulation direction and default regulated quantity Before, can also include:
Judge whether total regulated quantity is zero;If it is not, then start multiple regulation mechanism;
Now, step " is repeatedly adjusted according to the regulation direction, total regulated quantity and default regulated quantity to the system clock Section " can include:In the case where multiple regulation mechanism starts, according to the regulation direction, total regulated quantity and default regulated quantity The system clock is repeatedly adjusted.
Alternatively, it is contemplated that if multiple regulation mechanism is had been turned on before, and the larger i.e. total regulated quantity of history of total regulated quantity It is larger, do not adjust also and finish when currently obtaining the time error between system clock and reference clock, then at this point it is possible to according to The time error currently obtained come update multiple regulation mechanism it is current corresponding to regulation direction and total regulated quantity, afterwards can basis New regulation direction and total regulated quantity are repeatedly adjusted to system clock.Namely judging that total regulated quantity is not zero, start Before multiple regulation mechanism, the clock adjustment also includes:
Judge whether multiple regulation mechanism currently starts;
If not actuated, the step of starting multiple regulation mechanism is performed;
If starting, according to total regulated quantity and the regulation direction update respectively multiple regulation mechanism it is current corresponding to total tune Section amount and regulation direction.
For example, when this obtains the time error between system clock, multiple regulation mechanism is had been started up, and according to regulation Direction (such as negative direction), total regulated quantity (such as 10ms) and default regulated quantity (such as 2ms) are repeatedly adjusted to system clock;This When, if the cycle that clocking error obtains be 5ms, the cycle of clock regulation is 2ms, then next time acquisition system clock it Between time error when will to system clock adjust twice, total regulated quantity is changed into 6ms from 10ms.If obtain next time when Clock error is -5ms (can be using adjusted direction as positive direction, total regulated quantity is 5ms), then can be according to obtaining next time Total regulated quantity and regulation direction before clocking error renewal;Specifically, total regulated quantity before is changed into 5m from 6ms, adjusted Direction is changed into positive direction from negative direction.
From the foregoing, it will be observed that the embodiment of the present invention is used when playing multi-medium data, obtain system clock and reference clock it Between time error, then, the regulation direction for determining to be adjusted in synchronism according to the time error, according to the regulation direction and default adjust Section amount is repeatedly adjusted to the system clock, to cause the time error as zero.During the program can be with multimedia System clock is repeatedly adjusted, it is synchronous with reference clock to cause, and then multiple playback equipments synchronously play more matchmakers The effect of body, in terms of existing technologies, it can improve and play multimedia synchronism between multimedia play equipment.
Because the embodiment of the present invention is adjusted system clock to synchronous with reference clock by the way of repeatedly adjusting, avoid Disposably system clock is adjusted to the problem of synchronously causing the quality that multimedia exports relatively low with reference clock, improves more matchmakers The quality of body output;And it can also be mitigated by the way of repeatedly adjusting and play computing pressure of the output module for regulation.
In addition, the embodiment of the present invention using by the way of repeatedly adjusting can in order to during regulation find mistake regulation, And it can in time correct, improve the accuracy of clock regulation.
Embodiment two
According to the clock adjustment described by embodiment one, citing is described in further detail below.
In the present embodiment, carried out exemplified by playback equipment being integrated in by the clock adjustment apparatus described by embodiment one detailed Thin description.
As shown in Fig. 2 a kind of clock adjustment, idiographic flow are as follows:
201st, playback equipment obtains the time error between system clock and reference clock when playing multi-medium data.
Wherein, the multi-medium data can be voice data, audio, video data etc..The form of the voice data has more Kind, such as, MP3 format, WMA forms etc..
Specifically, when playback equipment obtains reference device current the first system time and itself current second system Between, then, according to second system time and the first system time, obtain the time error between system clock and reference clock. For example the first system time is 1:06, the second system time is 1:00, it is -6s that can now obtain time error.
202nd, playback equipment determines the regulation direction of synchronous adjustment and total regulated quantity according to time error.
Wherein, regulation direction can include positive direction or negative direction, and positive direction regulation is to speed up system clock, losing side It is to slow down system clock to regulation.Wherein, total regulated quantity is the absolute value of time error.
If time error is more than zero, it is determined that the regulation direction being adjusted in synchronism is negative direction, that is, need to slow down itself is System clock;If time error is less than zero, it is determined that regulation direction is positive direction, that is, need to accelerate the system clock of itself.Such as when Between error when being -6s, it may be determined that regulation direction is positive direction, and total regulated quantity is 6s.
203rd, playback equipment judges whether total regulated quantity is zero, if it is not, step 204 is then performed, if so, then performing step 210。
Specifically, when playback equipment judges that total regulated quantity is not zero, multiple regulation mechanism, i.e. freqency fine adjustment machine can be opened System, then, playback equipment can according to following steps (system clock is adjusted step 204- steps 209) so that when Between error be zero, reach clock synchronization.
Alternatively, playback equipment is judging that total regulated quantity is not zero, and before starting multiple regulation mechanism, can also include: Judge whether multiple regulation mechanism currently starts;If not actuated, the step of starting multiple regulation mechanism is performed;If starting, According to total regulated quantity and the regulation direction update respectively multiple regulation mechanism it is current corresponding to total regulated quantity and adjust direction.
After playback equipment can according to corresponding to multiple regulation mechanism is current total regulated quantity and when adjusting direction to system Clock is repeatedly adjusted, and the process repeatedly adjusted refers to step 204- steps 209.
204th, the system clock is adjusted according to the regulation direction and default regulated quantity for playback equipment.
System clock is adjusted a default regulated quantity by playback equipment according to regulation direction.System clock is such as set to accelerate one Default regulation step-length, such as accelerates 10ms.
, can be according to positive direction when default regulation step-length is 2ms, regulation direction is positive direction for example total step-length is 6ms 2ms is accelerated to system clock.
205th, playback equipment presets regulated quantity according to this and updates total regulated quantity, total regulated quantity after being updated.
Specifically, renewal process includes:Total regulated quantity is subtracted into default regulated quantity, total regulated quantity after being updated;As always Step-length is 6ms, and it is 2ms to preset regulation step-length;Total step-length is 4ms after renewal.
206th, whether total regulated quantity is zero after playback equipment judges renewal, if so, then terminating flow, if it is not, then performing step Rapid 207.
207th, whether total regulated quantity is less than default regulated quantity after playback equipment judges renewal, if it is not, step 208 is then performed, If so, then perform step 209.
For example total step-length is 4ms after renewal, now it is more than default regulation step-length 2ms, step 204 can be performed.
Again for example, total step-length is 3m after renewal, and when default regulation step-length is 4ms, total step-length is less than in advance after now updating If adjusting step-length, step 209 is performed.
208th, waited, and waited until after the first preset duration according to the first preset duration, returned and perform step 204。
Make a farfetched comparison, playback equipment starts waiting for and timing, when timing duration reaches the first preset duration, returns and performs step 204。
Wherein, the first preset duration can be set according to the actual requirements, such as, can be 1s, 2s, 5ms, 100ms etc..
209th, playback equipment obtains target regulated quantity according to total regulated quantity after the renewal, and according to the target regulated quantity and is somebody's turn to do Current system time clock is adjusted in regulation direction, so that it is zero to obtain currently total regulated quantity.
For example total step-length is 3m after renewal, when default regulation step-length is 4ms, regulated quantity can be redefined, now may be used To be defined as 1ms, then, system clock is adjusted according to the regulated quantity for adjusting direction before and redefining so that Current total regulated quantity is zero.
In the present embodiment, current system time clock is carried out according to the target regulated quantity and the regulation direction once or repeatedly Regulation so that current total regulated quantity is zero.The process repeatedly adjusted can include:
The system clock is adjusted according to the regulation direction and goal regulated quantity;
Current total regulated quantity, total regulated quantity after being updated are updated according to the target regulated quantity;
Whether total regulated quantity is zero after judging renewal;If so, then flow terminates, step is performed " according to this if it is not, then returning The system clock is adjusted regulation direction and goal regulated quantity ".
210th, playback equipment is waited according to the second preset duration, and after the second preset duration is waited, return is held Row step 201.
For example playback equipment starts waiting for and timing, when timing duration reaches the second preset duration, return and perform step 201。
Wherein, the second preset duration can be set according to the actual requirements, such as, can be 3s, 2s, 5ms, 100ms etc..
From the foregoing, it will be observed that the embodiment of the present invention uses playback equipment to obtain system clock and ginseng when playing multi-medium data The time error between clock is examined, then, the regulation direction for determining to be adjusted in synchronism according to the time error, according to the regulation direction The system clock is repeatedly adjusted with default regulated quantity, to cause the time error as zero.The program can be broadcast with multimedia System clock is repeatedly adjusted during putting, it is synchronous with reference clock to cause, and then multiple playback equipments are synchronous Play multimedia effect, in terms of existing technologies, can improve play between multimedia play equipment it is multimedia same Step property.
Due to playback equipment of the embodiment of the present invention by the way of repeatedly adjusting by system clock adjust to reference clock It is synchronous, avoid disposably adjusting system clock to the problem of synchronously causing the quality that multimedia exports relatively low with reference clock, Improve the quality of multimedia output;And it can also be mitigated by the way of repeatedly adjusting and play output module for regulation Computing pressure.
In addition, playback equipment of the embodiment of the present invention is using can be wrong in order to be found during regulation by the way of repeatedly adjusting Mistuning section, and can correct in time, improve the accuracy of clock regulation.
Embodiment three
In order to preferably implement above method, the embodiment of the present invention also provides a kind of clock adjustment apparatus, clock regulation Device can be integrated in playback equipment, and the playback equipment can be the equipment such as smart mobile phone, tablet personal computer, audio amplifier.
As shown in figure 3, clock adjustment apparatus 300 can include:Acquiring unit 301, direction-determining unit 302 and regulation Unit 303, it is as follows:
Acquiring unit 301, the time for when playing multi-medium data, obtaining between system clock and reference clock miss Difference;
Direction-determining unit 302, for the regulation direction for determining to be adjusted in synchronism according to the time error;
Adjustment unit 303, for repeatedly being adjusted to the system clock according to the regulation direction and default regulated quantity, with So that the time error is zero.
Alternatively, can also include with reference to figure 4, the present embodiment clock adjustment apparatus 300:Regulated quantity determining unit 304;
The regulated quantity determines single 304, and after obtaining time error in acquiring unit 301, adjustment unit 303 is to this Before clock of uniting repeatedly adjust, total regulated quantity of synchronous adjustment is determined according to the time error;
The adjustment unit 303, during specifically for according to the regulation direction, total regulated quantity and default regulated quantity to the system Clock is repeatedly adjusted.
Wherein, the present embodiment adjustment unit 303, with reference to figure 5, specifically include:
First regulator unit 3031, for being adjusted according to the regulation direction and default regulated quantity to the system clock Section;
Subelement 3032 is updated, updates total regulated quantity for presetting regulated quantity according to this, total regulated quantity after being updated;
Judgment sub-unit 3033, whether it is less than default regulated quantity for total regulated quantity after judging renewal;If not less than default Regulated quantity, then after preset time period, the first regulator unit 3031 of triggering is performed according to the regulation direction and default regulation The step of system clock is adjusted amount;
Subelement 3034 is obtained, for always regulated quantity to be less than default regulated quantity after the judgment sub-unit 3033 judges to update When, target regulated quantity is obtained according to total regulated quantity after the renewal;
Second regulator unit 3035, for being carried out according to the target regulated quantity and the regulation direction to current system time clock Regulation.
Alternatively, can also include with reference to figure 6, the clock adjustment apparatus 300 of the present embodiment:Regulated quantity judging unit
Regulated quantity judging unit 305, for after renewal subelement update always after regulated quantity, the judgment sub-unit Whether total regulated quantity is less than before default regulated quantity after judging renewal, and whether total regulated quantity is zero after judging renewal;
The judgment sub-unit 3033, for when total regulated quantity is not zero after regulated quantity judging unit 305 judges renewal, sentencing Whether total regulated quantity is less than default regulated quantity after disconnected renewal.
Alternatively, the present embodiment clock adjustment apparatus 300 can also include:Total amount judging unit;
The total amount judging unit, for regulated quantity determining unit 304 determine be adjusted in synchronism total regulated quantity after, the tune Before section unit 303 to the system clock repeatedly adjust according to the regulation direction, total regulated quantity and default regulated quantity, sentence Whether total regulated quantity of breaking is zero;
Now, adjustment unit 303 can be specifically used for:When total amount judging unit judges that total regulated quantity is not zero, root The system clock is repeatedly adjusted according to the regulation direction, total regulated quantity and default regulated quantity.
It when it is implemented, above unit can be realized as independent entity, can also be combined, be made Realized for same or several entities, the specific implementation of above unit can be found in embodiment of the method above, herein not Repeat again.
From the foregoing, it will be observed that the embodiment of the present invention using acquiring unit 301 when playing multi-medium data, obtain system clock and Time error between reference clock, then, the regulation for determining to be adjusted in synchronism according to the time error by direction-determining unit 302 Direction, the system clock is repeatedly adjusted according to the regulation direction and default regulated quantity by adjustment unit 303, to cause this Time error is zero.The program can be repeatedly to be adjusted, during causing and refer to during multimedia to system clock Clock is synchronous, and then multiple playback equipments synchronously play multimedia effect, in terms of existing technologies, can improve more Multimedia synchronism is played between apparatus for media playing.
Because the embodiment of the present invention is adjusted system clock to synchronous with reference clock by the way of repeatedly adjusting, avoid Disposably system clock is adjusted to the problem of synchronously causing the quality that multimedia exports relatively low with reference clock, improves more matchmakers The quality of body output;And it can also be mitigated by the way of repeatedly adjusting and play computing pressure of the output module for regulation.
In addition, the embodiment of the present invention using by the way of repeatedly adjusting can in order to during regulation find mistake regulation, And it can in time correct, improve the accuracy of clock regulation.
Example IV
According to the clock adjustment described by embodiment one and two, citing is described in further detail below.
In the present embodiment, will enter so that clock adjustment apparatus described by embodiment one and two is integrated in slave as an example Row is described in detail.
The embodiments of the invention provide a kind of multimedia synchronous play system, can include:Control device and at least one Playback equipment;The control device is connected with the playback equipment and (such as passes through network connection);The playback equipment is used to perform Any clock adjustment that above-described embodiment provides.
Wherein, control device can be used as main control device, and playback equipment can be used as slave.
With reference to figure 7, a kind of multimedia synchronous play system is present embodiments provided, including:Source device 10, main control device 20th, at least one slave 30;Can mutually it be interconnected by network between the source device 10, main control device 20, slave 30 Connect.
Wherein, main control device 20 is used to control slave, and it can be terminal, such as mobile phone, tablet personal computer, the master control Equipment can also be playback equipment, such as, the playback equipment such as audio amplifier;The present embodiment will be carried out so that main control device 20 is terminal as an example Explanation.
The slave 30 can be the playback equipment for being controlled by main control device 20, and the slave can be audio amplifier, tool There are the playback equipments such as the terminal of playing function.
Wherein, source device 10 is used to provide multi-medium data to be played, and it can be with network equipments such as servers.
Before synchronously multimedia is played, the present embodiment can choose an equipment as same from multiple slaves 30 The reference device played is walked, in synchronous playing process, when the clock of all slaves is by the system with the reference device Clock preserves synchronous.For example a slave conduct can be chosen from multiple slaves 30 by main control device 20 and synchronously broadcast The reference device put, then, the mark of reference device is sent to each slave.
It should be noted that:If when media data of the main control device 20 in addition to distributing media data also received from status hair During broadcasting, the main control device 20 is also slave.At this point it is possible to it is that equipment is broadcast in reference to choose main control device 20.
The flow of multimedia is as follows:
Source device 10 sends multi-medium data to main control device 20;Main control device 20 is packed to multi-medium data, is obtained To multiple media data packets;Main control device 20 sends media data packet to each slave 30;The buffered media of slave 30 Packet and the media data packet for playing caching.
Slave 30 is during media data packet is played, when detecting the system of its own system clock and reference device Time error between clock.
Slave 30 determines the regulation direction of synchronous adjustment and total regulated quantity according to time error.The basis of slave 30 Regulation direction, total regulated quantity and the default regulated quantity are repeatedly adjusted to the system clock, during causing described Between error be zero.
Wherein, the process that slave 30 is repeatedly adjusted to system clock, it may be referred to broadcasting in embodiment two and set The standby process repeatedly adjusted, for example with reference to step 203- steps 209, here is omitted.
From the foregoing, it will be observed that the embodiment of the present invention using slave 30 when playing multi-medium data, obtain system clock and Time error between reference clock, then, the regulation direction for determining to be adjusted in synchronism according to the time error, according to the regulation side The system clock is repeatedly adjusted to default regulated quantity, to cause the time error as zero.The program can be with multimedia System clock is repeatedly adjusted in playing process, it is synchronous with reference clock to cause, and then multiple playback equipments are same Step plays multimedia effect, in terms of existing technologies, can improve play between multimedia play equipment it is multimedia Synchronism.
Because slave of the embodiment of the present invention 30 is when system clock is adjusted to reference by the way of repeatedly adjusting Clock is synchronous, avoids disposably adjusting system clock that quality that multimedia exports is relatively low to ask to synchronously causing with reference clock Topic, improve the quality of multimedia output;And it can also be mitigated by the way of repeatedly adjusting and play output module for adjusting The computing pressure of section.
Embodiment five
The embodiment of the present invention also provides a kind of terminal, as shown in figure 8, the terminal 500 can include radio frequency (RF, Radio Frequency) circuit 501, include memory 502, the input block of one or more computer-readable recording mediums 503rd, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507th, the part such as one or the processor 508 of more than one processing core and power supply 509 is included.People in the art Member it is appreciated that in Fig. 8 the terminal structure that shows not structure paired terminal restriction, can include more more or less than illustrating Part, either combine some parts or different parts arrangement.
Radio circuit 501 can be used for receive and send messages, or in communication process signal reception and transmission, especially, by base station Downlink information receive after, transfer to one or more than one processor 508 handled;In addition, sent up data are related to To base station.Generally, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibrations Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..In addition, radio circuit 501 can also pass through radio communication and network Communicated with other equipment.The radio communication can use any communication standard or agreement, including but not limited to global system for mobile telecommunications System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 stores Line program code.Application program can form various functions module.Processor 508 is stored in answering for memory 502 by operation With program, so as to perform various function application and data processing.Memory 502 can mainly include storing program area and storage number According to area, wherein, storing program area can storage program area, (for example sound plays work(to the application program needed at least one function Energy, image player function etc.) etc.;Storage data field can store according to terminal use created data (such as voice data, Phone directory etc.) etc..In addition, memory 502 can include high-speed random access memory, non-volatile memories can also be included Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide the access of processor 508 and input block 503 to memory 502.
Input block 503 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.Specifically Ground, input block 503 can include fingerprint recognition module.In certain embodiments, input block 503 can also include touch-sensitive table Face.Touch sensitive surface, also referred to as touch display screen or Trackpad, collect user on or near it touch operation (such as User uses the operations of any suitable object or annex on touch sensitive surface or near touch sensitive surface such as finger, stylus), and Corresponding attachment means are driven according to formula set in advance.Optionally, touch sensitive surface may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinates, then give processor 508, and the order sent of reception processing device 508 and can be performed.Furthermore, it is possible to using electricity The polytypes such as resistive, condenser type, infrared ray and surface acoustic wave realize touch sensitive surface.Except touch sensitive surface, input block 503 Other input equipments can also be included.Specifically, other input equipments can include but is not limited to physical keyboard, function key (ratio Such as volume control button, switch key), trace ball, mouse, the one or more in action bars etc..
Display unit 504 can be used for display by user input information or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display Unit 504 may include display panel.Optionally, can use liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further , touch sensitive surface can cover display panel, after touch sensitive surface detects the touch operation on or near it, send processing to Device 508 is followed by subsequent processing device 508 and provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although in fig. 8, touch sensitive surface realizes input and input with display panel is the part independent as two Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realize input and output function.
Terminal may also include at least one sensor 505, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity transducer can close display panel and/or the back of the body when terminal is moved in one's ear Light.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axles) acceleration Size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal Gyroscope, barometer, hygrometer, thermometer, the other sensors such as infrared ray sensor, will not be repeated here.
Voicefrequency circuit 506 can provide the COBBAIF between user and terminal by loudspeaker, microphone.Voicefrequency circuit The voice data received can be converted into electric signal by 506, be transferred to loudspeaker, and voice signal output is converted to by loudspeaker; On the other hand, the voice signal of collection is converted to electric signal by microphone, and audio number is converted to after being received by voicefrequency circuit 506 According to then after voice data output processor 508 is handled, through radio circuit 501 to be sent to such as another terminal, or by sound Frequency data output is to memory 502 further to handle.Voicefrequency circuit 506 is also possible that earphone jack, to provide peripheral hardware The communication of earphone and terminal.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and terminal can be helped by wireless fidelity module 507 User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband internet and accessed. Although Fig. 8 shows wireless fidelity module 507, but it is understood that, it is simultaneously not belonging to must be configured into for terminal, completely may be used To be omitted as needed in the essential scope for do not change invention.
Processor 508 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to Cross operation or perform the application program being stored in memory 502, and call the data being stored in memory 502, perform The various functions and processing data of terminal, so as to carry out integral monitoring to terminal.Optionally, processor 508 may include one or Multiple processing cores;Preferably, processor 508 can integrate application processor and modem processor, wherein, application processor Main processing operating system, user interface and application program etc., modem processor mainly handles radio communication.It is appreciated that , above-mentioned modem processor can not also be integrated into processor 508.
Terminal also includes the power supply 509 (such as battery) to all parts power supply.Preferably, power supply can pass through power supply pipe Reason system and processor 508 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 509 can also include one or more direct current or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 8, terminal can also include camera, bluetooth module etc., will not be repeated here.
Specifically in the present embodiment, the processor 508 in terminal can be according to following instruction, will be one or more Executable program code corresponding to the process of application program is loaded into memory 502, and is stored in by processor 508 to run Application program in memory 502, so as to realize various functions:
When playing multi-medium data, the time error between system clock and reference clock is obtained, then, during according to this Between error determine be adjusted in synchronism regulation direction, the system clock is repeatedly adjusted according to the regulation direction and default regulated quantity Section, to cause the time error as zero.
Processor 508 also realizes function:After time error is obtained, before to the system clock repeatedly adjust The total regulated quantity for determining to be adjusted in synchronism according to the time error;
Now, the system clock is repeatedly adjusted according to the regulation direction and default regulated quantity, including:According to Regulation direction, total regulated quantity and the default regulated quantity are repeatedly adjusted to the system clock.
Wherein, the system clock is carried out according to regulation direction, total regulated quantity and the default regulated quantity multiple Regulation, including:
The system clock is adjusted according to the regulation direction and default regulated quantity;
Total regulated quantity, total regulated quantity after being updated are updated according to the default regulated quantity;
Whether total regulated quantity is less than default regulated quantity after judging renewal;
If not less than regulated quantity is preset, after preset time period, return and perform according to the regulation direction and preset The step of system clock is adjusted regulated quantity.
Processor 508 also realizes function:When total regulated quantity is less than default regulated quantity after renewal, according to total after the renewal Regulated quantity obtains target regulated quantity;
Current system time clock is adjusted according to the target regulated quantity and the regulation direction.
Processor 508 also realizes function:After total regulated quantity after being updated, whether total regulated quantity is small after judging renewal Before default regulated quantity, whether total regulated quantity is zero after judging renewal;
The step of always whether regulated quantity is less than default regulated quantity after renewal judged if it is not, then performing.
Processor 508 also realizes function:It is determined that after the total regulated quantity being adjusted in synchronism, direction, institute are adjusted according to described State total regulated quantity and default regulated quantity to the system clock carry out repeatedly adjust before, judge it is described always regulated quantity whether be Zero;
The system clock is entered according to regulation direction, total regulated quantity and the default regulated quantity if it is not, then performing The step of row is repeatedly adjusted.
Aforesaid operations for details, reference can be made to embodiment of the method above, will not be repeated here.
From the foregoing, it will be observed that the embodiments of the invention provide a kind of terminal, the terminal obtains system when playing multi-medium data Time error between clock and reference clock, then, the regulation direction for determining to be adjusted in synchronism according to the time error, according to this Regulation direction and default regulated quantity are repeatedly adjusted to the system clock, to cause the time error as zero.The program can be with System clock is repeatedly adjusted during multimedia, it is synchronous with reference clock to cause, and then multiple broadcastings Equipment synchronously plays multimedia effect, and in terms of existing technologies, broadcasting is more between can improving multimedia play equipment The synchronism of media.
Because the embodiment of the present invention is adjusted system clock to synchronous with reference clock by the way of repeatedly adjusting, avoid Disposably system clock is adjusted to the problem of synchronously causing the quality that multimedia exports relatively low with reference clock, improves more matchmakers The quality of body output;And it can also be mitigated by the way of repeatedly adjusting and play computing pressure of the output module for regulation.
In addition, the embodiment of the present invention using by the way of repeatedly adjusting can in order to during regulation find mistake regulation, And it can in time correct, improve the accuracy of clock regulation.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are by program the hardware of correlation can be instructed to complete, and the program can be stored in computer-readable storage medium In matter, storage medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of clock adjustment, device, terminal and the multimedia synchronous provided above the embodiment of the present invention plays System is described in detail, and specific case used herein is set forth to the principle and embodiment of the present invention, with The explanation of upper embodiment is only intended to help the method and its core concept for understanding the present invention;Meanwhile for the technology of this area Personnel, according to the thought of the present invention, there will be changes in specific embodiments and applications, in summary, this theory Bright book content should not be construed as limiting the invention.

Claims (9)

  1. A kind of 1. clock adjustment, it is characterised in that the playback equipment suitable for multimedia synchronous play system, including:
    When playing multi-medium data, when obtaining reference device current the first system time and itself current second system Between;
    The time difference between the second system time and the first system time is calculated, obtains its own system clock and ginseng The time error between clock is examined, the reference clock is the system clock of the reference device, and the time error is described Time difference;
    According to the time error determine be adjusted in synchronism regulation direction and total regulated quantity, it is described regulation direction include positive direction or Person's negative direction, total regulated quantity are the absolute value of the time error;
    When total regulated quantity is not zero, whether judgement currently has been turned on multiple regulation mechanism;
    If not starting multiple regulation mechanism, start multiple regulation mechanism, according to the regulation direction, total regulated quantity and Default regulated quantity is repeatedly adjusted to the system clock, to cause total regulated quantity as zero, and then causes the time Error is zero, wherein, the default regulated quantity is less than total regulated quantity;
    If having been turned on multiple regulation mechanism, the repeatedly regulation is updated according to total regulated quantity and the regulation direction respectively Total regulated quantity corresponding to mechanism is current and regulation direction;According to total regulated quantity and tune after renewal corresponding to the repeatedly regulation mechanism Section direction is repeatedly adjusted to system clock, to cause total regulated quantity as zero, and then make it that the time error is zero;
    Wherein, the system clock is repeatedly adjusted according to regulation direction, total regulated quantity and the default regulated quantity, Including:The system clock is adjusted according to the regulation direction and default regulated quantity;
    Total regulated quantity, total regulated quantity after being updated are updated according to the default regulated quantity;
    Whether total regulated quantity is less than default regulated quantity after judging renewal;
    If not less than default regulated quantity, after preset time period, return and perform according to the regulation direction and default regulation The step of system clock is adjusted amount.
  2. 2. clock adjustment as claimed in claim 1, it is characterised in that according to the regulation direction and default regulated quantity pair The system clock is repeatedly adjusted, in addition to:
    When total regulated quantity is less than default regulated quantity after renewal, target regulated quantity is obtained according to total regulated quantity after the renewal;
    Current system time clock is adjusted according to the target regulated quantity and the regulation direction.
  3. 3. clock adjustment as claimed in claim 1 or 2, it is characterised in that after total regulated quantity after being updated, sentence Whether total regulated quantity is less than before default regulated quantity after disconnected renewal, and the clock adjustment also includes:
    Whether total regulated quantity is zero after judging renewal;
    The step of always whether regulated quantity is less than default regulated quantity after renewal judged if it is not, then performing.
  4. A kind of 4. clock adjustment apparatus, it is characterised in that the playback equipment suitable for multimedia synchronous play system, including:
    Acquiring unit, for when playing multi-medium data, obtain the reference device current the first system time and itself works as The preceding second system time;The time difference between the second system time and the first system time is calculated, is obtained certainly Time error between body system clock and reference clock, the reference clock is the system clock of the reference device, described Time error is the time difference;
    Regulated quantity determining unit, for the total regulated quantity for determining to be adjusted in synchronism according to the time error, total regulated quantity is The absolute value of the time error;
    Direction-determining unit, for the regulation direction for determining to be adjusted in synchronism according to the time error, the regulation direction includes Positive direction or negative direction;
    Judging unit, for when total regulated quantity is not zero, whether judgement currently to have been turned on multiple regulation mechanism;
    Adjustment unit, for when the judging unit is judged without multiple regulation mechanism is started, starting multiple regulation mechanism, root The system clock is repeatedly adjusted according to regulation direction, total regulated quantity and the default regulated quantity, it is described to cause Total regulated quantity is zero, and then make it that the time error is zero, wherein, the default regulated quantity is less than total regulated quantity;
    Updating block, for when the judging unit judges to have been turned on multiple regulation mechanism, according to total regulated quantity and institute State regulation direction and update the current corresponding total regulated quantity of the repeatedly regulation mechanism and regulation direction respectively;Repeatedly adjusted according to described Total regulated quantity and regulation direction are repeatedly adjusted to system clock after being updated corresponding to section mechanism, to cause total regulated quantity It is zero, and then make it that the time error is zero;
    Wherein, the adjustment unit, is specifically included:
    First regulator unit, for when the judging unit is judged without multiple regulation mechanism is started, starting repeatedly regulation During mechanism, start multiple regulation mechanism, the system clock is adjusted according to the regulation direction and default regulated quantity;
    Update subelement, for when the judging unit judge without start multiple regulation mechanism when, and described first regulation After the system clock is adjusted subelement, total regulated quantity is updated according to the default regulated quantity, updated Total regulated quantity afterwards;
    Judgment sub-unit, whether it is less than default regulated quantity for total regulated quantity after judging renewal;If being not less than default regulated quantity, After preset time period, the first regulator unit of triggering is performed according to the regulation direction and default regulated quantity to the system The step of clock is adjusted.
  5. 5. clock adjustment apparatus as claimed in claim 4, it is characterised in that the adjustment unit, in addition to:
    Subelement is obtained, for when total regulated quantity is less than default regulated quantity after the judgment sub-unit judges renewal, according to institute Total regulated quantity obtains target regulated quantity after stating renewal;
    Second regulator unit, for being adjusted according to the target regulated quantity and the regulation direction to current system time clock Section.
  6. 6. the clock adjustment apparatus as described in claim 4 or 5, it is characterised in that also include:
    Regulated quantity judging unit, for after total regulated quantity after renewal subelement is updated, the judgment sub-unit to judge Whether total regulated quantity is less than before default regulated quantity after renewal, and whether total regulated quantity is zero after judging renewal;
    The judgment sub-unit, for when total regulated quantity is not zero after regulated quantity judging unit judges renewal, after judging renewal Whether total regulated quantity is less than default regulated quantity.
  7. A kind of 7. terminal, it is characterised in that including:
    It is stored with the memory of executable program;
    The processor coupled with the memory;
    The processor calls the executable program stored in the memory, performs such as claim 1 to claim 3 Method described in any one.
  8. A kind of 8. multimedia synchronous play system, it is characterised in that including:Control device and at least one playback equipment;It is described Control device is connected with the playback equipment;The playback equipment is used to perform such as any one of claim 1 to claim 3 institute The method stated.
  9. 9. a kind of computer-readable recording medium, it stores the computer program for clock regulation, wherein, the computer journey Sequence causes computer to perform the method as described in claim 1.
CN201610882865.4A 2016-10-08 2016-10-08 A kind of clock adjustment, device, terminal and multimedia synchronous play system Active CN106375823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610882865.4A CN106375823B (en) 2016-10-08 2016-10-08 A kind of clock adjustment, device, terminal and multimedia synchronous play system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610882865.4A CN106375823B (en) 2016-10-08 2016-10-08 A kind of clock adjustment, device, terminal and multimedia synchronous play system

Publications (2)

Publication Number Publication Date
CN106375823A CN106375823A (en) 2017-02-01
CN106375823B true CN106375823B (en) 2018-03-27

Family

ID=57895048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610882865.4A Active CN106375823B (en) 2016-10-08 2016-10-08 A kind of clock adjustment, device, terminal and multimedia synchronous play system

Country Status (1)

Country Link
CN (1) CN106375823B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055242A (en) * 2020-09-02 2020-12-08 中国第一汽车股份有限公司 Video synchronous playing method, device, system and storage medium
CN116722867B (en) * 2023-08-09 2024-03-29 芯潮流(珠海)科技有限公司 Clock adjusting circuit and high-speed photoelectric receiving and transmitting chip using same

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574887A (en) * 2003-06-12 2005-02-02 日本电气株式会社 Media synchronizing system and service providing method for using the same
CN1579059A (en) * 2001-09-04 2005-02-09 诺基亚有限公司 Method and apparatus for reducing synchronization delay in packet-based voice terminals
CN1835597A (en) * 2005-03-17 2006-09-20 华为技术有限公司 Method and device of regulating program reference clock
CN1988667A (en) * 2006-12-07 2007-06-27 中兴通讯股份有限公司 Clock synchronizing method in broadcast network
CN101039145A (en) * 2007-03-30 2007-09-19 华为技术有限公司 Method and apparatus for realizing clock
CN101202613A (en) * 2006-12-11 2008-06-18 中兴通讯股份有限公司 Terminal for clock synchronising
CN102611918A (en) * 2012-03-28 2012-07-25 深圳市普乐方文化科技有限公司 Synchronous video playing control system and method
CN104618737A (en) * 2013-11-01 2015-05-13 深圳中兴力维技术有限公司 Streaming media system clock slow synchronization method and streaming media system clock slow synchronization device
CN105872261A (en) * 2016-06-15 2016-08-17 维沃移动通信有限公司 Audio playing method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3985682B2 (en) * 2003-01-17 2007-10-03 ソニー株式会社 Information distribution system, terminal device, schedule transmission device, display information transmission device, and information distribution method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1579059A (en) * 2001-09-04 2005-02-09 诺基亚有限公司 Method and apparatus for reducing synchronization delay in packet-based voice terminals
CN1574887A (en) * 2003-06-12 2005-02-02 日本电气株式会社 Media synchronizing system and service providing method for using the same
CN1835597A (en) * 2005-03-17 2006-09-20 华为技术有限公司 Method and device of regulating program reference clock
CN1988667A (en) * 2006-12-07 2007-06-27 中兴通讯股份有限公司 Clock synchronizing method in broadcast network
CN101202613A (en) * 2006-12-11 2008-06-18 中兴通讯股份有限公司 Terminal for clock synchronising
CN101039145A (en) * 2007-03-30 2007-09-19 华为技术有限公司 Method and apparatus for realizing clock
CN102611918A (en) * 2012-03-28 2012-07-25 深圳市普乐方文化科技有限公司 Synchronous video playing control system and method
CN104618737A (en) * 2013-11-01 2015-05-13 深圳中兴力维技术有限公司 Streaming media system clock slow synchronization method and streaming media system clock slow synchronization device
CN105872261A (en) * 2016-06-15 2016-08-17 维沃移动通信有限公司 Audio playing method and mobile terminal

Also Published As

Publication number Publication date
CN106375823A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN106373600B (en) A kind of audio sync player method, device, system and terminal
CN106341713B (en) A kind of multimedia synchronous plays method, apparatus, system and terminal
EP3306865A1 (en) Communication message sending method and device
CN106411448B (en) Control method for playing back, device and terminal
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN103530115B (en) Application program display method and device and terminal equipment
CN103561400B (en) Method for initiating communication, device thereof and mobile terminal
CN103365419A (en) Method and device for triggering alarm clock control command
CN103294442B (en) A kind of method of playing alert tones, device and terminal device
CN104461597A (en) Starting control method and device for application program
CN106652981B (en) BPM detection method and device
CN106646440A (en) Drop height detection method and drop height detection device
CN106452643B (en) Control method for playing back, device, terminal and play system
CN105049591A (en) Method and device for processing incoming call
CN105045372A (en) Method and equipment controlling wearable device
CN105185401A (en) Method and device for synchronizing multi-media file list
CN106411447B (en) Control method for playing back, device and terminal
CN106375823B (en) A kind of clock adjustment, device, terminal and multimedia synchronous play system
CN106205657B (en) A kind of lyric display method and device
CN103533411A (en) Method and device for controlling motion of selection cursor
CN105391870A (en) Timing reminding method and device
CN106255146B (en) A kind of electricity-saving control method of terminal, device and terminal
CN106454421B (en) A kind of clock adjustment, device, terminal and multimedia synchronous play system
CN106454420B (en) A kind of clock synchronizing method and device
CN106375824B (en) A kind of clock adjustment, device, terminal and multimedia synchronous play system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for 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

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.

CP01 Change in the name or title of a patent holder