CN106454474B - Multimedia synchronous plays method, apparatus and system - Google Patents
Multimedia synchronous plays method, apparatus and system Download PDFInfo
- Publication number
- CN106454474B CN106454474B CN201610882870.5A CN201610882870A CN106454474B CN 106454474 B CN106454474 B CN 106454474B CN 201610882870 A CN201610882870 A CN 201610882870A CN 106454474 B CN106454474 B CN 106454474B
- Authority
- CN
- China
- Prior art keywords
- played
- slave
- echelon
- main control
- control device
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/4302—Content synchronisation processes, e.g. decoder synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/43615—Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of multimedia synchronous to play method, apparatus and system, the method comprise the steps that the present invention passes through the playout-delay amount according to multiple slaves relative to main control device, priority division is carried out to the multiple slave, obtain the priority of slave, to multiple data setting numbers to be played, obtain the number of the data to be played, according to the number of the priority of the slave and the data to be played, the multiple data buffer storage to be played to the multiple slave and is played out, it is played simultaneously with realizing, to multiple data to be played of the slave caching reference numeral of different priorities, mitigate the operation pressure of main control device, reduce the occupancy to network bandwidth, optimize whole network environment, make to be played simultaneously more smooth and stablize, promote user experience.
Description
Technical field
Method, apparatus is played the present invention relates to multimedia play technology field more particularly to a kind of multimedia synchronous and is
System.
Background technique
More playback equipments (such as mobile phone, computer, speaker, all kinds of players etc.) pass through wired or wireless network technical battery
It connects, forms a multimedia synchronous play system, identical audio, video or picture is played simultaneously, has been widely used.
By taking multimedia synchronous play system as an example, wherein how to realize being played simultaneously for more playback equipments, make the sound between multiple devices
Perhaps picture delay is small as far as possible to guarantee user's sense of hearing or visual consistent, this is the pass that more equipment are played simultaneously for sound
Key technology.
For example, realizing in more playback equipments being played simultaneously, main control device and other each slave are being carried out together
When step plays, time synchronization is first carried out generally before being played simultaneously, then main control device is sending multi-medium data packet to subordinate
The play time of flag data packet in the packet before equipment, the play time and system that slave passes through matched data packet
Time synchronizes broadcasting.However, main control device should play multimedia during synchronizing broadcasting, again into
The packing and transmission of row multi-medium data packet, if need to transmit overabundance of data when be easy to cause network blockage, and make master control
The computational burden of equipment aggravates, and is easy to appear video or audio frequency delay plays or the situation of Caton, cause described more to broadcast
It puts equipment and cannot achieve and be played simultaneously, influence user experience.Therefore it needs to be further improved.
Summary of the invention
The purpose of the present invention is to provide a kind of multimedia synchronous to play method, apparatus and system, it is intended to solve existing skill
It is be easy to cause network blockage when the overabundance of data that need to be transmitted in multimedia synchronous play system present in art by main control device, and
So that the computational burden of main control device aggravates, causes the more playback equipments cannot achieve and be played simultaneously, poor user experience
Technical problem.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
A kind of multimedia synchronous broadcasting method, which comprises
Playout-delay amount according to multiple slaves relative to main control device carries out the multiple slave preferential
Grade divides, and obtains the priority of slave;
To multiple data setting numbers to be played in the main control device, the number of the data to be played is obtained;
According to the number of the priority of the slave and the data to be played, the multiple data to be played are delayed
It deposits to the multiple slave;
It plays the multiple data to be played and realizes being played simultaneously between the multiple slave and main control device.
In order to solve the above technical problems, the embodiment of the present invention also the following technical schemes are provided:
A kind of multimedia synchronous broadcasting device, described device include:
Division module, for the playout-delay amount according to multiple slaves relative to main control device, to it is the multiple from
Belong to equipment and carry out priority division, obtains the priority of slave;
Number setup module, for multiple data to be played setting numbers in the main control device, obtain it is described to
The number of played data;
Cache module will be described more for according to the priority of the slave and the number of the data to be played
A data buffer storage to be played is to the multiple slave;
Module is played simultaneously, realizes the multiple slave and main control device for playing the multiple data to be played
Between be played simultaneously.
In order to solve the above technical problems, the embodiment of the present invention also the following technical schemes are provided:
A kind of multimedia synchronous play system, including source device, main control device and at least one slave, wherein
The main control device establishes connection by network and the source device and the slave, and the main control device is for receiving institute
The multi-medium data of source device transmission is stated, and for the multi-medium data received to be synchronized to the slave, the system
System is realized using any of the above-described method.
Compared with the existing technology, the present invention is by the playout-delay amount according to multiple slaves relative to main control device,
Priority division is carried out to the multiple slave, the priority of slave is obtained, to multiple in the main control device
Data to be played setting number, obtains the number of the data to be played, according to the priority of the slave and it is described to
The number of played data plays the multiple data buffer storage to be played to the multiple slave the multiple to be played
Data realize being played simultaneously between the multiple slave and main control device, to the slave caching pair of different priorities
The multiple data to be played that should be numbered alleviate the operation pressure of main control device, reduce the occupancy to network bandwidth, and optimization is entire
Network environment avoids network blockage, so that multimedia be played simultaneously more smooth and stablize, promotes user experience.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made
And other beneficial effects are apparent.
Fig. 1 is the flow diagram that a kind of multimedia synchronous that first embodiment of the invention provides plays method.
Fig. 2 is the flow diagram that a kind of multimedia synchronous that second embodiment of the invention provides plays method.
Fig. 3 is the structural schematic diagram that a kind of multimedia synchronous that third embodiment of the invention provides plays device.
Fig. 4 is another structural schematic diagram that a kind of multimedia synchronous that third embodiment of the invention provides plays device.
Fig. 5 is a kind of running environment schematic diagram for multimedia synchronous play system that fourth embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.It is understood that described herein, the specific embodiments are only for explaining the present invention, rather than to limit of the invention
It is fixed.It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing and not all knot
Structure.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
Every other embodiment, shall fall within the protection scope of the present invention.
Term " first ", " second " and " third " in the present invention etc. are for distinguishing different objects, rather than for retouching
State particular order.In addition, term " includes " and " having " and their any deformations, it is intended that cover and non-exclusive include.
Such as contain a series of steps or units process, method, system, product or equipment be not limited to listed step or
Unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these process, methods, produce
The other step or units of product or equipment inherently.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
A kind of multimedia synchronous provided in an embodiment of the present invention plays the executing subject of method, can be the embodiment of the present invention
A kind of multimedia synchronous provided plays device, or is integrated with the multimedia synchronous and plays the mobile terminal of device (for example
Desktop computer, notebook, palm PC, tablet computer, smart television, smart phone, intelligent sound box or with playing function
Wearable device etc.), the multimedia synchronous is played device and can be realized by the way of hardware or software.
It is understood that method described in the present embodiment can be applied to intelligent playback equipment or multimedia synchronous
In play system.Preferably, the multimedia synchronous play system generally comprises source device and multiple playback equipments.Wherein, institute
State may include main control device and at least one slave in multiple playback equipments.Wherein, the source device can be used for
Multiple playback equipments provide multi-medium data, so that multiple playback equipments synchronize broadcasting;Or the source device can be used
Multi-medium data, the multimedia number that the main control device will receive again are provided in the main control device into the playback equipment
According to the slave being synchronized in the playback equipment, to realize that multimedia synchronous plays.
First embodiment
Referring to Fig. 1, Fig. 1 is the process signal that a kind of multimedia synchronous that first embodiment of the invention provides plays method
Figure.The described method includes:
Step S101, the playout-delay amount according to multiple slaves relative to main control device, sets the multiple subordinate
It is standby to carry out priority division, obtain the priority of slave.
It is understood that the main description object of method described in the present embodiment is in multimedia synchronous play system
The broadcasting group being made of multiple playback equipments.In broadcasting group, multiple playback equipments pass through wire transmission mode or wireless biography
Defeated mode establishes connection, forms a private network environment.Wherein, the wireless transmission method can be infrared, bluetooth, WiFi
(Wireless Fidelity, Wireless LAN), hot spot networks etc..The private network environment may be coupled to one or
The multiple routers of person, then connect by router with internet, so that one or more broadcasting in private network environment is set
It is standby directly to access internet or source device, to obtain multimedia resource.
It wherein, may include main control device and at least one slave in the multiple playback equipment.Under normal circumstances,
Main control device in the playback equipment can be equipped with the application program for controlling the multimedia synchronous play system
APP can be managed the playback equipment in system by the application APP, including be arranged and adjust equipment, creation
Playlist, acquisition multimedia resource, control broadcast state etc..
Wherein, the main control device can be notebook, palm PC, tablet computer, smart phone etc., and the subordinate is set
Standby can be smart phone, intelligent sound box, smart television, multimedia screen etc..
It is understood that the playout-delay amount can be by obtaining multiple slaves respectively between main control device
Space length or wireless signal strength or network transfer delay or equipment scheme type or synchronous error grade
It data and does not obtain after being calculated etc..The playout-delay amount can be indicated with the time, for example some playout-delay amount is 5
Millisecond.It can also be indicated with including the data packet number of equivalent broadcasting period, for example it includes 1 that some retardation, which is 5,
Millisecond plays the data packet of period.
Preferably, can playout-delay amount sequence from small to large according to multiple slaves relative to main control device,
Priority division is carried out to the multiple slave, obtains the priority of slave, wherein the subordinate of each priority is set
The playout-delay amount of a standby corresponding identical numerical value.
For example, slave A is x milliseconds relative to the playout-delay amount of main control device M, slave B and slave E
Playout-delay amount relative to main control device M is y milliseconds, the broadcasting of slave C and slave D relative to main control device M
Retardation is z milliseconds, and x < y < z;Then the multiple slave is classified: the first priority includes slave A, the
Two priority include slave B and slave E, and third priority includes slave C and slave D.
Step S102 obtains the data to be played to multiple data setting numbers to be played in the main control device
Number.
Preferably, multiple data to be played in the main control device can be arranged according to the sequencing of broadcasting and compiles
Number, obtain the number of the data to be played.
It is understood that the media that single or multiple multimedia file to be played in the main control device is formed
Multiple data to be played that stream obtains after being packaged set the multiple data to be played according still further to the sequencing of broadcasting
Number is set, the number of the data to be played is obtained.For example the Media Stream is repackaged into according to the equivalent broadcasting period and is contained
There is equivalent to play multiple data to be played of period.
For example, the first priority (slave A) is x milliseconds relative to the playout-delay amount of main control device M, second is preferential
Grade (slave B and slave E) is y milliseconds relative to the playout-delay amount of main control device M, and (subordinate is set third priority
Standby C and slave D) it relative to the playout-delay amount of main control device M is z milliseconds, more matchmakers to be played in the main control device
Body file be include m milliseconds of Media Stream, and x < y < z < m;According to 1 millisecond to be packaged unit, the Media Stream is packaged as m
A data to be played, each data packet to be played contain 1 millisecond of played data, and according to the sequencing of broadcasting to the m
A data setting number to be played, the number for obtaining the data to be played is 1 to m.
Step S103, according to the number of the priority of the slave and the data to be played, by it is the multiple to
Played data is cached to the multiple slave.
It is understood that due to, there are playout-delay amount, principal and subordinate being caused to set between each slave and main control device
There are nonsynchronous situations between standby, then, then can be in order to realize being played simultaneously between each slave and main control device
According to the number of the priority of the slave and the data to be played, by the multiple data buffer storage to be played to described
Multiple slaves will need the data to be played being played simultaneously to fulfil caching ahead of schedule, so that right before synchronizing broadcasting
Slave is answered to start to play out from the data to be played of reference numeral when playing.
For example, according to the number of the priority of the slave and the data to be played, by number x+1 to number m
Multiple data buffer storages to be played into the first priority (slave A);By multiple numbers to be played of number y+1 to number m
According to caching into the second priority (slave B and slave E);Multiple data to be played of number z+1 to number m are delayed
It deposits into third priority (slave C and slave D).
Step S104, the multiple data to be played of broadcasting are realized same between the multiple slave and main control device
Step plays.
For example, multimedia synchronous play system start play when, main control device M start from number be 1 data to be played
Start to play.Since the main control device M numbering the data to be played for being x+1 to the first priority (slave A) simultaneously
Send multiple data to be played in the main control device, the main control device M since number be y+1 data to be played to
Second priority (slave B and slave E) sends multiple data to be played in the main control device, and the master control is set
Since standby M send the master control to third priority (slave C and slave D) numbering the data to be played for being z+1
Multiple data to be played in equipment.When main control device M is played to the data to be played that number is x+1, the slave A
It is played since numbering the data to be played for being x+1, while the slave A and the main control device M are being played to y+1
Data to be played before complete adjusting is played simultaneously.When the main control device M and the slave A are played to y+1's
When data to be played, since the slave B and slave E play numbering the data to be played for being y+1, while described
Slave B and E and the main control device M complete that adjusting is played simultaneously before the data to be played for being played to z+1.Work as institute
State main control device M and when described slave A, B and E are played to the data to be played of z+1, the slave C and subordinate
Since equipment D play numbering the data to be played for being z+1.It finally realizes same between all slave and main control device
Step plays.
The present embodiment is by the playout-delay amount according to multiple slaves relative to main control device, to the multiple subordinate
Equipment carries out priority division, obtains the priority of slave, and multiple data to be played in the main control device are arranged
Number, obtains the number of the data to be played, according to the number of the priority of the slave and the data to be played,
By the multiple data buffer storage to be played to the multiple slave, it is the multiple to play the multiple data realization to be played
Being played simultaneously between slave and main control device caches the multiple wait broadcast of reference numeral to the slave of different priorities
Data are put, the operation pressure of main control device is alleviated, reduce the occupancy to network bandwidth, optimizes whole network environment, avoids net
Network blocking promotes user experience so that multimedia be played simultaneously more smooth and stablize.
Second embodiment
Referring to Figure 2 together, Fig. 2 is that a kind of multimedia synchronous that second embodiment of the invention provides plays the process of method
Schematic diagram.The described method includes:
Step S201, the playout-delay amount sequence from small to large according to multiple slaves relative to main control device are right
The multiple slave carries out echelon's division, obtains echelon corresponding to the slave, wherein the echelon includes the
One echelon and second echelon.
It is understood that the first echelon and second echelon are for distinguishing different objects, rather than quantity is limited,
The echelon also may include the first, the second to N echelon.
It is understood that the playout-delay amount can be by obtaining multiple slaves respectively between main control device
Space length or wireless signal strength or network transfer delay or equipment scheme type or synchronous error grade
It data and does not obtain after being calculated etc..The playout-delay amount can be indicated with the time, for example some playout-delay amount is 5
Millisecond.It can also be indicated with including the data packet number of equivalent broadcasting period, for example it includes 1 that some retardation, which is 5,
Millisecond plays the data packet of period.
For example, slave A, slave B and slave E are a milli relative to the playout-delay amount of main control device M
Second, slave C and slave D are b milliseconds relative to the playout-delay amount of main control device M, and a <b;It then will be the multiple
Slave carries out echelon's division: the first echelon includes that slave A, slave B and slave E, second echelon include
Slave C and slave D.
Step S202 obtains the data to be played to multiple data setting numbers to be played in the main control device
Number.
Preferably, multiple data to be played in the main control device can be arranged according to the sequencing of broadcasting and compiles
Number, obtain the number of the data to be played.
It is understood that the media that single or multiple multimedia file to be played in the main control device is formed
Multiple data to be played that stream obtains after being packaged set the multiple data to be played according still further to the sequencing of broadcasting
Number is set, the number of the data to be played is obtained.For example the Media Stream is repackaged into according to the equivalent broadcasting period and is contained
There is equivalent to play multiple data to be played of period.
For example, the first echelon (slave A, slave B and slave E) prolongs relative to the broadcasting of main control device M
Amount is a milliseconds late, and second echelon (slave C and slave D) is b milliseconds relative to the playout-delay amount of main control device M,
In the main control device multimedia file to be played be include m milliseconds of Media Stream, and a <b < m;It is packing according to 1 millisecond
The Media Stream is packaged as m data to be played by unit, and each data packet to be played contains 1 millisecond of played data, and according to
According to the sequencing of broadcasting to the m data setting numbers to be played, the number of the data to be played, number 1 are obtained
To m, wherein 1 is Base Serial Number, m is the last one number.
Step S203, according to the number of the priority of the slave and the data to be played, by it is the multiple to
Played data is cached to the multiple slave.
Preferably, the step S203 can be realized by step S2031 and step S2032, specifically:
Step S2031, by the multiple data buffer storage to be played of the first caching number to the last one number to described
Multiple slaves corresponding to the first echelon, wherein the first caching number is that Base Serial Number adds the first echelon and institute
State number corresponding to the playout-delay amount between main control device.
For example, by multiple data buffer storages to be played of number a+1 to number m, to the first echelon, (slave A, subordinate are set
Standby B and slave E) in;Wherein number a+1 is first echelon's caching number.
Step S2032, extremely by the multiple data buffer storage to be played of the second caching number to the last one number
Slave in the second echelon, wherein the second caching number is that the Base Serial Number adds the second echelon and institute
State number corresponding to the playout-delay amount between main control device.
For example, by multiple data buffer storages to be played of number b+1 to number m, to second echelon, (slave C and subordinate are set
Standby D) in;Wherein number b+1 is second echelon's caching number.
Step S204 play the multiple data to be played realize it is same between the multiple slave and main control device
Step plays.
Preferably, the step S204 can be realized by step S2041 and step S2042, specifically:
Step S2041 realizes the adjusting that slave and the main control device in the first echelon are played simultaneously.
It is understood that main control device starts from Base Serial Number pair when multimedia synchronous play system starts to play
The data to be played answered start to play, according to the time course of broadcasting, when the main control device is played to the first caching number pair
When the data to be played answered, controls the slave in the first echelon and start to play multiple data to be played of its caching, and is same
When communicated with main control device synchronize broadcasting adjust.
Preferably, the slave in the first echelon should be played to the second caching number pair in the process of being played simultaneously
The adjusting being played simultaneously with the main control device is realized before the data to be played answered.
For example, after multimedia synchronous play system starts broadcasting, main control device M start be from Base Serial Number 1 it is to be played
Data start to play.When main control device M is played to the data to be played that the first caching number is a+1, control in the first echelon
Slave (slave A, slave B and slave E) since number be a+1 data to be played play, and
It is communicated simultaneously with main control device and synchronizes broadcasting adjusting.Slave and the main control device M in the first echelon
It completes that adjusting is played simultaneously before being played to the data to be played that the second caching number is b+1.
Step S2042 numbers corresponding number to be played when the slave in the first echelon is played to the second caching
According to when, control multiple data to be played that the slave in second echelon starts to play its caching, realize the second echelon
Interior slave is played simultaneously with the main control device.
It is understood that according to the time course of broadcasting, when the slave in the first echelon is played to second
When caching numbers corresponding data to be played, controls the slave in second echelon and start to play the multiple to be played of its caching
Data, and communicated with main control device synchronize broadcasting adjusting simultaneously.
Preferably, the slave in the second echelon should be played to next caching number in the process of being played simultaneously
The adjusting being played simultaneously with the main control device is realized before corresponding data to be played.
For example, when the slave in main control device M and the first echelon be played to the second caching number be b+1 to
When played data, controlling the slave (slave C and slave D) in second echelon from numbering is the to be played of b+1
Data start to play, and communicate with main control device synchronize broadcasting adjusting simultaneously.Slave in the second echelon
With the main control device M be played to it is next deposit the corresponding data to be played of number before complete that adjusting is played simultaneously.Finally
Realize being played simultaneously between all slave and main control device.
The present embodiment is by the playout-delay amount according to multiple slaves relative to main control device, to the multiple subordinate
Equipment carries out echelon's division, echelon corresponding to the slave is obtained, to multiple numbers to be played in the main control device
It is numbered according to setting, obtains the number of the data to be played, according to the echelon of the slave and the data to be played
The multiple data buffer storage to be played to the multiple slave is played the multiple data to be played and realizes institute by number
Being played simultaneously between multiple slaves and main control device is stated, the multiple of reference numeral are cached to the slave of different echelons
Data to be played, being played simultaneously before completing a upper echelon and main control device before next echelon starts to be played simultaneously
It adjusts, alleviates the operation pressure of main control device, reduce the occupancy to network bandwidth, optimize whole network environment, avoid network
Blocking promotes user experience so that multimedia be played simultaneously more smooth and stablize.
3rd embodiment
Referring to Fig. 3, Fig. 3 is the structural representation that a kind of multimedia synchronous that third embodiment of the invention provides plays device
Figure.The multimedia synchronous plays device 30 and includes division module 31, number setup module 32, cache module 33, and synchronizes
Playing module 34.
Wherein, the division module 31 is right for the playout-delay amount according to multiple slaves relative to main control device
The multiple slave carries out priority division, obtains the priority of slave.
It is understood that the playout-delay amount can be by obtaining multiple slaves respectively between main control device
Space length or wireless signal strength or network transfer delay or equipment scheme type or synchronous error grade
It data and does not obtain after being calculated etc..The playout-delay amount can be indicated with the time, for example some playout-delay amount is 5
Millisecond.It can also be indicated with including the data packet number of equivalent broadcasting period, for example it includes 1 that some retardation, which is 5,
Millisecond plays the data packet of period.
Preferably, the division module 31 can according to multiple slaves relative to main control device playout-delay amount from
It is small to arrive big sequence, priority division is carried out to the multiple slave, obtains the priority of slave, wherein each
The playout-delay amount of the corresponding identical numerical value of the slave of type.
The number setup module 32, for obtaining to multiple data setting numbers to be played in the main control device
The number of the data to be played.
Preferably, the number setup module 32 is to multiple data to be played in the main control device according to the elder generation of broadcasting
Sequence setting number afterwards, obtains the number of the data to be played.
It is understood that the media that single or multiple multimedia file to be played in the main control device is formed
Multiple data to be played that stream obtains after being packaged, the number setup module 32 is according to the sequencing of broadcasting to described
Multiple data setting numbers to be played, obtain the number of the data to be played.For example the period is played to the matchmaker according to equivalent
Body stream is repackaged into multiple data to be played that the period is played containing equivalent.
The cache module 33, for inciting somebody to action according to the priority of the slave and the number of the data to be played
The multiple data buffer storage to be played is to the multiple slave.
It is understood that due to, there are playout-delay amount, principal and subordinate being caused to set between each slave and main control device
There are nonsynchronous situations between standby, then in order to realize being played simultaneously between each slave and main control device, then described
Cache module 33 can be according to the priority of the slave and the number of the data to be played, will be the multiple to be played
Data buffer storage is complete in advance by the data to be played for needing to be played simultaneously before synchronizing broadcasting to the multiple slave
At caching, so that corresponding slave starts to play out from the data to be played of reference numeral when playing.
It is described that module 34 is played simultaneously, the multiple slave and master are realized for playing the multiple data to be played
Being played simultaneously between control equipment.
Referring to Figure 4 together, Fig. 4 is that a kind of multimedia synchronous that third embodiment of the invention provides plays the another of device
Structural schematic diagram.It includes division module 31 that the multimedia synchronous, which plays device 30, number setup module 32, cache module 33,
And module 34 is played simultaneously.
Wherein, the division module 31, for according to multiple slaves relative to main control device playout-delay amount from
It is small to arrive big sequence, echelon's division is carried out to the multiple slave, obtains echelon corresponding to the slave,
In, the echelon includes the first echelon and second echelon.
It is understood that the first echelon and second echelon are for distinguishing different objects, rather than quantity is limited,
The echelon also may include the first, the second to N echelon.
It is understood that the playout-delay amount can be by obtaining multiple slaves respectively between main control device
Space length or wireless signal strength or network transfer delay or equipment scheme type or synchronous error grade
It data and does not obtain after being calculated etc..The playout-delay amount can be indicated with the time, for example some playout-delay amount is 5
Millisecond.It can also be indicated with including the data packet number of equivalent broadcasting period, for example it includes 1 that some retardation, which is 5,
Millisecond plays the data packet of period.
The number setup module 32, for obtaining to multiple data setting numbers to be played in the main control device
The number of the data to be played.
Preferably, the number setup module 32 is to multiple data to be played in the main control device according to the elder generation of broadcasting
Sequence setting number afterwards, obtains the number of the data to be played.
It is understood that the media that single or multiple multimedia file to be played in the main control device is formed
Multiple data to be played that stream obtains after being packaged, the number setup module 32 is according to the sequencing of broadcasting to described
Multiple data setting numbers to be played, obtain the number of the data to be played.For example the period is played to the matchmaker according to equivalent
Body stream is repackaged into multiple data to be played that the period is played containing equivalent.
The cache module 33 further includes the first cache unit 331 and the second cache unit 332.
Wherein, first cache unit 331, for by first caching number to the last one number it is the multiple to
Played data is cached to multiple slaves corresponding to the first echelon, wherein the first caching number is Base Serial Number
Add number corresponding to the playout-delay amount between the first echelon and the main control device.
Second cache unit 332, for by second caching number to it is described the last one number it is the multiple to
Played data is cached to the slave in the second echelon, wherein the second caching number is that the Base Serial Number adds institute
State number corresponding to the playout-delay amount between second echelon and the main control device.
The module 34 that is played simultaneously further includes adjusting unit 341 and broadcast unit 342.
It is understood that being not construed as limiting to the calling sequence of the adjusting unit 341 and the broadcast unit 342.
Wherein, the adjusting unit 341, for realizing in the first echelon slave and the main control device it is same
Walk the adjusting played.
It is understood that the broadcast unit 344 controls master control and sets when multimedia synchronous play system starts to play
It is standby to start to play since the corresponding data to be played of Base Serial Number, according to the time course of broadcasting, when the main control device is broadcast
When being put into the first caching corresponding data to be played of number, the slave that the broadcast unit 344 controls in the first echelon is opened
Begin to play its multiple data to be played cached, and is communicated with main control device synchronize broadcasting adjusting simultaneously.
Preferably, the slave for adjusting unit 341 in the first echelon is played to the second caching number pair
The adjusting being played simultaneously with the main control device is realized before the data to be played answered.
The broadcast unit 342, for being corresponded to when the slave in the first echelon is played to the second caching number
Data to be played when, control multiple data to be played that the slave in second echelon starts to play its caching, realize institute
State being played simultaneously for slave in second echelon and the main control device.
It is understood that according to the time course of broadcasting, when the slave in the first echelon is played to second
When caching numbers corresponding data to be played, the slave that the broadcast unit 342 controls in second echelon starts to play it
Multiple data to be played of caching, and communicated with main control device synchronize broadcasting adjusting simultaneously.
Preferably, the slave for adjusting unit 342 in the second echelon is played to next caching number
The adjusting being played simultaneously with the main control device is realized before corresponding data to be played.
Fourth embodiment
Referring to Fig. 5, Fig. 5 is a kind of running environment for multimedia synchronous play system that fourth embodiment of the invention provides
Schematic diagram.Multimedia synchronous play system as described in this embodiment, including source device 100, main control device 200 and at least
One slave 300.Wherein, the main control device 200 and at least one slave 300 belong to playback equipment.Its
In, the main control device 200 establishes connection by network and the source device 100 and the slave 300, and the subordinate is set
Standby 300 establish connection by network and the source device 100.Wherein, the source device 100 can be by network to multiple broadcastings
Equipment (such as main control device 200 and at least one slave 300) provide multi-medium data so that main control device 200 with
And at least one slave 300 synchronizes broadcasting;Or the main control device 200 is sent out for receiving the source device 100
The multi-medium data sent, and for the multi-medium data received to be synchronized to the slave 300, to realize that multimedia is same
Step plays.Likewise, the slave 300 can be anti-to the main control device 200 or the source device 100 by network
Present synchronizing information;The main control device 200 can be by network to the 100 feedback synchronization information of source device.The multimedia
Synchronous playing system can execute a kind of multimedia synchronous that first embodiment of the invention and second embodiment provide and play method
Described in implementation, also can be performed third embodiment of the invention provide a kind of multimedia synchronous play device in is retouched
The implementation stated, details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In the embodiment of the present invention, the multimedia synchronous plays one of device and foregoing embodiments multimedia synchronous broadcast
The method of putting belongs to same design, and the multimedia synchronous broadcasting method reality can be run by playing in the multimedia synchronous on device
Either offer method in example is applied, specific implementation process is detailed in the multimedia synchronous and plays embodiment of the method, herein no longer
It repeats.
It should be noted that this field common test personnel can for multimedia synchronous broadcasting method of the present invention
It is that can pass through computer to understand all or part of the process for realizing that multimedia synchronous described in the embodiment of the present invention plays method
Program is completed to control relevant hardware, and the computer program can be stored in a computer-readable storage medium, such as
It is stored in the memory of terminal, and is executed by least one processor in the terminal, in the process of implementation may include such as institute
State the process that multimedia synchronous plays the embodiment of method.Wherein, the storage medium can be magnetic disk, CD, read-only storage
Device (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the multimedia synchronous of the embodiment of the present invention plays device, each functional module be can integrate at one
It handles in chip, is also possible to modules and physically exists alone, a mould can also be integrated in two or more modules
In block.Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module.
It, can also be with if the integrated module is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
It is provided for the embodiments of the invention that a kind of multimedia synchronous plays method, apparatus and system has carried out in detail above
It introduces, used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments
It is merely used to help understand technical solution of the present invention and its core concept;Those skilled in the art should understand that: its
It is still possible to modify the technical solutions described in the foregoing embodiments, or part of technical characteristic is equal
Replacement;And these are modified or replaceed, the technical solution for various embodiments of the present invention that it does not separate the essence of the corresponding technical solution
Range.
Claims (6)
1. a kind of multimedia synchronous plays method, which is characterized in that the described method includes:
Playout-delay amount according to multiple slaves relative to main control device carries out priority to the multiple slave and draws
Point, obtain the priority of slave, comprising: according to multiple slaves relative to main control device playout-delay amount from it is small to
Big sequence carries out echelon's division to the multiple slave, obtains echelon corresponding to the slave, wherein institute
Stating echelon includes the first echelon and second echelon;
To multiple data setting numbers to be played in the main control device, the number of the data to be played is obtained;
According to the number of the priority of the slave and the data to be played, extremely by the multiple data buffer storage to be played
The multiple slave, comprising: extremely by the multiple data buffer storage to be played of the first caching number to the last one number
Multiple slaves corresponding to the first echelon, wherein the first caching number is that Base Serial Number adds the first echelon
Number corresponding to playout-delay amount between the main control device;By the second caching number to the last one number
Slave in the multiple data buffer storage to be played to the second echelon, wherein the second caching number is described rises
The number that begins adds number corresponding to the playout-delay amount between the second echelon and the main control device;
It plays the multiple data to be played and realizes being played simultaneously between the multiple slave and main control device, comprising:
When the slave in the first echelon, which is played to the second caching, numbers corresponding data to be played, control in second echelon
Slave start to play multiple data to be played of its caching, realize the slave in the second echelon and the master
Control equipment is played simultaneously.
2. multimedia synchronous according to claim 1 plays method, which is characterized in that the subordinate in the first echelon
Device plays are numbered to the second caching before corresponding data to be played, further includes:
Realize the adjusting that slave and the main control device in the first echelon are played simultaneously.
3. a kind of multimedia synchronous plays device, which is characterized in that described device includes:
Division module sets the multiple subordinate for the playout-delay amount according to multiple slaves relative to main control device
It is standby to carry out priority division, obtain the priority of slave;Specifically for according to multiple slaves relative to main control device
Playout-delay amount sequence from small to large, echelon's division is carried out to the multiple slave, obtains the slave institute
Corresponding echelon, wherein the echelon includes the first echelon and second echelon;
Number setup module, for obtaining described to be played to multiple data setting numbers to be played in the main control device
The number of data;
Cache module, for according to the priority of the slave and the number of the data to be played, by it is the multiple to
Played data is cached to the multiple slave;
Module is played simultaneously, is realized between the multiple slave and main control device for playing the multiple data to be played
Be played simultaneously;
Wherein, the cache module, further includes:
First cache unit, for caching the multiple data buffer storage to be played numbered to the last one number to institute for first
The slave in the first echelon is stated, wherein the first caching number is that Base Serial Number adds the first echelon and the master control
Number corresponding to playout-delay amount between equipment;
Second cache unit, for numbering the second caching to the multiple data buffer storage to be played of the last one number
To the slave in the second echelon, wherein the second caching number be the Base Serial Number add the second echelon with
Number corresponding to playout-delay amount between the main control device;
It is described that module is played simultaneously, further includes:
Broadcast unit, for numbering corresponding data to be played when the slave in the first echelon is played to the second caching
When, it controls the slave in second echelon and starts to play multiple data to be played of its caching, realize in the second echelon
Slave and the main control device be played simultaneously.
4. multimedia synchronous according to claim 3 plays device, which is characterized in that it is described that module is played simultaneously, also wrap
It includes:
Unit is adjusted, the adjusting being played simultaneously for realizing the slave in the first echelon with the main control device.
5. a kind of multimedia synchronous play system, which is characterized in that set including source device, main control device and at least one subordinate
It is standby, wherein the main control device establishes connection by network and the source device and the slave, and the main control device is used
It is set in the multi-medium data for receiving the source device transmission, and for the multi-medium data received to be synchronized to the subordinate
Standby, the system is realized using the described in any item methods of claim 1 to 2.
6. a kind of storage medium, is stored with computer program, wherein the computer program makes computer execute such as right
It is required that 1 to 2 described in any item methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610882870.5A CN106454474B (en) | 2016-10-08 | 2016-10-08 | Multimedia synchronous plays method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610882870.5A CN106454474B (en) | 2016-10-08 | 2016-10-08 | Multimedia synchronous plays method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106454474A CN106454474A (en) | 2017-02-22 |
CN106454474B true CN106454474B (en) | 2019-08-06 |
Family
ID=58173147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610882870.5A Active CN106454474B (en) | 2016-10-08 | 2016-10-08 | Multimedia synchronous plays method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106454474B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108540829B (en) * | 2018-04-12 | 2021-07-23 | 海信视像科技股份有限公司 | Synchronous playing method, system and terminal for multi-playing device |
CN111277883B (en) * | 2020-02-13 | 2022-05-20 | 京东方科技集团股份有限公司 | Playing method, terminal and playing system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1314762A (en) * | 2000-03-17 | 2001-09-26 | 索尼公司 | Data transmission method and data transmission system |
US6760316B1 (en) * | 1998-10-30 | 2004-07-06 | Broadcom Corporation | Method and apparatus for the synchronization of multiple cable modem termination system devices |
CN1719894A (en) * | 2005-06-15 | 2006-01-11 | 北京交通大学 | Method for implementing video request program under cover network multicasting |
CN102067550A (en) * | 2007-10-23 | 2011-05-18 | 皇家Kpn公司 | Method and system for synchronizing a group of end-terminals |
CN102714708A (en) * | 2010-02-12 | 2012-10-03 | 汤姆森特许公司 | Method for synchronized content playback |
CN103797810A (en) * | 2011-09-13 | 2014-05-14 | 高通股份有限公司 | Synchronized wireless display devices |
CN105847926A (en) * | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | Multimedia data synchronous playing method and device |
-
2016
- 2016-10-08 CN CN201610882870.5A patent/CN106454474B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6760316B1 (en) * | 1998-10-30 | 2004-07-06 | Broadcom Corporation | Method and apparatus for the synchronization of multiple cable modem termination system devices |
CN1314762A (en) * | 2000-03-17 | 2001-09-26 | 索尼公司 | Data transmission method and data transmission system |
CN1719894A (en) * | 2005-06-15 | 2006-01-11 | 北京交通大学 | Method for implementing video request program under cover network multicasting |
CN102067550A (en) * | 2007-10-23 | 2011-05-18 | 皇家Kpn公司 | Method and system for synchronizing a group of end-terminals |
CN102714708A (en) * | 2010-02-12 | 2012-10-03 | 汤姆森特许公司 | Method for synchronized content playback |
CN103797810A (en) * | 2011-09-13 | 2014-05-14 | 高通股份有限公司 | Synchronized wireless display devices |
CN105847926A (en) * | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | Multimedia data synchronous playing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106454474A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103338204B (en) | A kind of audio synchronization output method and system | |
US11403063B2 (en) | Fast-resume audio playback | |
US20230085977A1 (en) | Providing a Multi-Channel and a Multi-Zone Audio Environment | |
US11848972B2 (en) | Multi-device audio streaming system with synchronization | |
CN104584567B (en) | Audio forwarding device and corresponding method | |
CN108353239A (en) | Wireless audio synchronizes | |
CN106488289B (en) | Audio sync playback method, apparatus and system | |
US9813829B2 (en) | Audio synchronization among playback devices using offset information | |
US8233648B2 (en) | Ad-hoc adaptive wireless mobile sound system | |
CN106878920B (en) | Data forwarding method, its device, bluetooth equipment and audio frequency transmission method | |
CN104867513B (en) | A kind of control method for playing back and equipment | |
US10856018B2 (en) | Clock synchronization techniques including modification of sample rate conversion | |
CN106303648A (en) | A kind of method and device synchronizing to play multi-medium data | |
CN109089130A (en) | A kind of method and apparatus for the timestamp adjusting live video | |
CN110503984A (en) | Playback method, equipment and the system of wireless audio playback equipment | |
EP3147730B1 (en) | Sound box parameter configuration method, mobile terminal, server, and system | |
CN107733745A (en) | A kind of synchronous music player method and play system based on WIFI agreements | |
CN107040848A (en) | Synchronization parameter transmission method, device and the equipment of AVDTP agreements | |
CN107995503A (en) | Audio and video playing method and apparatus | |
CN109819303A (en) | Data output method and relevant device | |
CN106454474B (en) | Multimedia synchronous plays method, apparatus and system | |
CN104867507B (en) | The method and apparatus for playing audio file | |
CN110166723A (en) | It is a kind of to record the audio and video synchronization method in shielding, electronic equipment, storage medium | |
CN112105005B (en) | Method and device for controlling Bluetooth equipment to play | |
CN105282659B (en) | Control method, control device and the speaker with control device of speaker |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |