CN107770569A - Multimedia synchronous broadcast method, apparatus and system - Google Patents

Multimedia synchronous broadcast method, apparatus and system Download PDF

Info

Publication number
CN107770569A
CN107770569A CN201610687195.0A CN201610687195A CN107770569A CN 107770569 A CN107770569 A CN 107770569A CN 201610687195 A CN201610687195 A CN 201610687195A CN 107770569 A CN107770569 A CN 107770569A
Authority
CN
China
Prior art keywords
time
server
multimedia
local zone
playing 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.)
Pending
Application number
CN201610687195.0A
Other languages
Chinese (zh)
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.)
Beijing Photon Interactive Technology Co Ltd
Original Assignee
Beijing Photon Interactive Technology Co 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 Beijing Photon Interactive Technology Co Ltd filed Critical Beijing Photon Interactive Technology Co Ltd
Priority to CN201610687195.0A priority Critical patent/CN107770569A/en
Publication of CN107770569A publication Critical patent/CN107770569A/en
Pending legal-status Critical Current

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/242Synchronization processes, e.g. processing of PCR [Program Clock References]
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention provides a kind of multimedia synchronous broadcast method, apparatus and system.This method includes:Obtain the time difference of the server time of local zone time and server;The play instruction that the reception server is sent, play instruction include playing mark and the first broadcasting initial time corresponding with server time;According to time difference and the first broadcasting initial time, acquisition is corresponding with local zone time locally to play initial time, and multimedia is played according to broadcasting mark when local zone time reaches local broadcasting initial time.Method provided by the invention is based on local zone time starting reproduction time corresponding to server time control multimedia, even if the time that each multimedia simultaneously playing device is reached due to network delay is different, it still is able to ensure that each device plays initial time corresponding to server time first and synchronously played, prior art is solved due to the synchronous playback problem of equipment end can not be ensured dependent on network fluency, improves the precision and Consumer's Experience of multimedia synchronous broadcasting.

Description

Multimedia synchronous broadcast method, apparatus and system
Technical field
The present embodiments relate to multimedia field, more particularly to a kind of multimedia synchronous broadcast method, device And system.
Background technology
With the development and popularization of various intelligent terminals and express network, between the equipment based on network transmission interaction and Data sharing technology is also widely used.Wherein, synchronous play of video and audio is also answered under increasing occasion With, such as virtual reality cinema, multimedia teaching, multimedia conferencing and some On-the-spot Interaction activities etc..
At present, existing multimedia synchronous broadcast method is all uniformly to send signal by server to some time point To all devices, these equipment are then allowed to be brought into operation together after signal is received, so as to realize multimedia synchronous broadcasting.
Fluency of the multimedia synchronous broadcast method of prior art too dependent on network.Synchronizer generally passes through net Network is connected with server, and under the more occasion of synchronizer, current network may can't afford so big network communication Flow, equipment component even armamentarium is caused to have huge network delay so that synchronous effect is had a greatly reduced quality or even failure, root Originally it can not ensure that the synchronous message that starts can reach equipment end simultaneously, so as to which each synchronizer can not synchronously play multimedia.
The content of the invention
The present invention provides a kind of multimedia synchronous broadcast method, apparatus and system, solve prior art due to dependent on The fluency of network and synchronous the problem of playing that equipment end can not be ensured, be effectively ensured between multiple equipment can realize it is more The synchronous broadcasting of media.
The first aspect of the present invention provides a kind of multimedia synchronous broadcast method, including:
Obtain the time difference of the server time of local zone time and server;
The play instruction that the server is sent is received, the play instruction includes corresponding with the multimedia being locally stored Mark is played, and corresponding with the server time first plays initial time;
Initial time is played according to the time difference and described first, acquisition is corresponding with the local zone time locally to play Initial time, and when local zone time reaches the local broadcasting initial time, more matchmakers are played according to the mark that plays Body.
Further, the time difference of the server time for obtaining local zone time and server specifically includes,
Being sent to the server includes very first time stamp t1 first message, and the very first time stamp t1 is described in transmission Local zone time corresponding to first message;
Receive the server is sent include very first time stamp t1, the second timestamp t2 and the 3rd timestamp t3 second Message, the second timestamp t2 are that the server receives server time corresponding to the first message, the described 3rd Timestamp t3 is that server sends server time corresponding to second message;
It is the 4th timestamp t4 that record, which receives local zone time corresponding to second message,;
T1, the second timestamp t2, the 3rd timestamp t3 and the 4th time are stabbed according to the very first time T4 is stabbed, obtains the time difference Δ t=[(t2-t1)+(t3-t4)]/2 of the local zone time and the server time;
It is described according to the time difference and it is described first play initial time, obtain it is corresponding with the local zone time local Initial time is played to specifically include:
Initial time is locally played according to equation below acquisition is corresponding with the local zone time:
Local broadcasting initial time=first plays initial time-time difference Δ t.
Further, after the time difference for the server time for obtaining local zone time and server, in addition to:
Test post is sent to the server, the test post includes the local zone time for sending the test post And the time difference, so that the server determines any of following information according to the test post:Described in transmission The server time of play instruction, the server time for sending the play instruction and the first starting reproduction time.
Further, methods described also includes,
Receive the request message that the server is sent at interval of the scheduled time;
Response message is sent to the server according to the request message, so that the server disappears according to the response Breath judges whether multimedia simultaneously playing device is connected with the server corresponding to the local zone time.
The second aspect of the present invention provides a kind of multimedia simultaneously playing device, including:
First acquisition module, the time difference of the server time for obtaining local zone time and server;
Receiving module, the play instruction sent for receiving the server, the play instruction are included with being locally stored Multimedia corresponding to play mark, and it is corresponding with the server time first play initial time;
Second acquisition module, for playing initial time according to the time difference and described first, obtain and the local Initial time is locally played corresponding to time;
Playing module, for when local zone time reaches the local broadcasting initial time, being broadcast according to the broadcasting mark Put the multimedia.
Further, first acquisition module is specifically used for:
Being sent to the server includes very first time stamp t1 first message, and the very first time stamp t1 is described in transmission Local zone time corresponding to first message;
Receive the server is sent include very first time stamp t1, the second timestamp t2 and the 3rd timestamp t3 second Message, the second timestamp t2 are that the server receives server time corresponding to the first message, the described 3rd Timestamp t3 is that server sends server time corresponding to second message;
It is the 4th timestamp t4 that record, which receives local zone time corresponding to second message,;
T1, the second timestamp t2, the 3rd timestamp t3 and the 4th time are stabbed according to the very first time T4 is stabbed, obtains the time difference Δ t=[(t2-t1)+(t3-t4)]/2 of the local zone time and the server time;
Second acquisition module is specifically used for:
Initial time is locally played according to equation below acquisition is corresponding with the local zone time:
Local broadcasting initial time=first plays initial time-time difference Δ t.
Further, described device also includes sending module, and the sending module, which is used to send to the server, to be tested Message, the test post includes sending the local zone time of the test post and the time difference, so that the service Device determines any of following information according to the test post:Send the server time of the play instruction, send institute State the server time of play instruction and the first starting reproduction time.
Further, described device also includes processing module, and the processing module is used for:
Receive the request message that the server is sent at interval of the scheduled time;
Response message is sent to the server according to the request message, so that the server disappears according to the response Breath judges whether multimedia simultaneously playing device is connected with the server corresponding to the local zone time.
The third aspect of the present invention provides a kind of multimedia synchronous playing system, including as described above multimedia same Walk playing device and the server.
Further, the system includes multiple multimedia simultaneously playing devices;
The corresponding broadcasting mark identical multimedia stored at least two multimedia simultaneously playing devices Content differ.
The multimedia synchronous broadcast method that the present embodiment provides, the time of local zone time and server time is obtained first Difference, then according to the time difference and it is corresponding with server time it is multimedia first play initial time, it is determined that with it is local when Between it is corresponding it is local play initial time, and local zone time reach it is local play initial time when, played according to mark is played Multimedia.Because this method is to originate reproduction time based on local zone time corresponding to server time control multimedia, even if by The time difference of each multimedia simultaneously playing device is reached in network delay, still is able to ensure each multimedia synchronous broadcasting Device plays initial time corresponding to server time first and synchronously played, and solves prior art due to dependent on network Fluency and synchronous the problem of playing that equipment end can not be ensured, the precision of multimedia synchronous broadcasting is improved, so as to improve Consumer's Experience.
Brief description of the drawings
Figure 1A is the schematic diagram of multimedia synchronous playing system provided by the invention;
Figure 1B is the flow chart of multimedia synchronous broadcast method embodiment provided by the invention;
Fig. 2 is the flow chart of the further supplementary notes of multimedia synchronous broadcast method embodiment shown in Figure 1B;
Fig. 3 is the structural representation of multimedia simultaneously playing device embodiment provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another multimedia simultaneously playing device embodiment provided by the invention;
Fig. 5 is the structural representation of multimedia synchronous playing system embodiment provided by the invention.
Embodiment
The embodiment of technical solution of the present invention is described in detail below in conjunction with accompanying drawing.Following examples are only used for Clearly illustrate technical scheme, therefore be intended only as example, and the protection of the present invention can not be limited with this Scope.It should be noted that unless otherwise indicated, technical term or scientific terminology used in this application should be institute of the present invention The ordinary meaning that category art personnel are understood.
Below, exemplary illustration is done to the multimedia synchronous playing system of the present invention first.
Multimedia synchronous playing system provided in an embodiment of the present invention is for example applied in virtual reality movie theatre, the system Including server and at least one multimedia simultaneously playing device.For example, as shown in Figure 1A, multimedia synchronous broadcasting System includes server 110 and at least two simultaneously playing device, and at least two simultaneously playing device includes simultaneously playing device 111 and simultaneously playing device 112, simultaneously playing device 111 be arranged in VR (Virtual Reality, virtual reality) glasses, Simultaneously playing device 112 is arranged in the sound system of movie theatre.Corresponding broadcasting is stored with the simultaneously playing device 111 to be identified as The multimedia of " S ", content are《Kung Fu Panda》Video, corresponding broadcasting is equally stored with simultaneously playing device 112 and is identified as The multimedia of " S ", content are《Kung Fu Panda》Audio, it is necessary to which both synchronous play can ensure the same of audio & video Step, seen to make the user of each wearing VR glasses《Kung Fu Panda》Video with audio be all synchronous.
Each multimedia simultaneously playing device is connected with server 110 respectively, can be that wireless connection can also be had Line connects.
By taking simultaneously playing device 111 as an example, illustrate how simultaneously playing device 111 obtains local zone time and server The time difference of time.Simultaneously playing device 111 sends the first message for including very first time stamp t1, currently, clothes to server 110 The business device time is 8:00:00, then the local zone time of simultaneously playing device 111 is 8:01:00, the local of simultaneously playing device 112 Time is 8:02:00, in an initial condition, simultaneously playing device 111,112 does not know server time.
It is 8 to record t1:01:00, it is assumed that the data sent from simultaneously playing device 111 need transmission to get to take for 1 second Business device 110, then the server time that server 110 receives the first message is 8:00:01, the second timestamp t2 of record is 8: 00:01, server 110 returns to the second message according to the first message.Assuming that the server that the second message is sent from server 110 Time is 8:01:01, record this 8:01:01 is the 3rd timestamp t3, and the transmission time of the second message is also 1 second, then second disappears The local zone time that breath reaches simultaneously playing device 111 is 8:02:02, it is designated as the 4th timestamp t4.
Obtained according to equation below the server time of local zone time and the server 110 of simultaneously playing device 111 when Between poor Δ t=[(t2-t1)+(t3-t4)]/2=-1 point.
Next, in the same fashion, simultaneously playing device 112 obtains the server of local zone time and server 110 Time difference Δ t=[(t2-t1)+(t3-t4)]/2=-2 of time points.
In summary, fast 1 minute poorer than the server time of server 110 of the local zone time of simultaneously playing device 111, together Walk the local zone time of playing device 112 2 minutes faster than the server time of server 110.
Above acquisition process can be carried out when system is initially debugged, and can also be carried out before multimedia is played every time, It can specifically be selected according to being actually needed.
Server 110 sends play instruction to simultaneously playing device 111 and simultaneously playing device 112, in play instruction Initial time 8 is played with mark " S " and corresponding with server time first is played:30.
Next, simultaneously playing device 111 and simultaneously playing device 112 are broadcast according to each acquired time difference and first Initial time is put, determines locally to play initial time corresponding to local zone time according to equation below:Local broadcasting initial time= First plays initial time-time difference Δ t.
Then understand, the local initial time that plays of simultaneously playing device 111 is 8:31:00, the sheet of simultaneously playing device 112 It is 8 that ground, which plays initial time,:32:00, so ensure that what each user was seen《Kung Fu Panda》Video be with audio Synchronous.
Figure 1B is the flow chart of multimedia synchronous broadcast method embodiment provided by the invention, and the present embodiment is above-mentioned more The multimedia synchronous broadcast method of a multimedia simultaneously playing device in the synchronous playing system of media, executive agent are Multimedia simultaneously playing device, the simultaneously playing device can be arranged on computer, mobile phone, tablet personal computer, VR equipment etc. and set In standby.As shown in Figure 1B, this method includes:
S101:Obtain the time difference of the server time of local zone time and server.
The problem of due to region and equipment itself, on distinct device the shown time be possible to different.Wherein, it is local Time is the time shown in the equipment where multimedia simultaneously playing device, and server time is shown on server Time.When there is multiple multimedia simultaneously playing devices to be connected with server, each multimedia simultaneously playing device difference Obtain the time difference of its local zone time and server time.And for each multimedia simultaneously playing device, its local Time and the time difference of server time are fixed value, are not influenceed by network delay.
For example, simultaneously playing device can obtain local zone time and server time simultaneously, according to local zone time and Server time determines both time difference, can also use certainly other manner obtain local zone time and server time when Between it is poor, will not be repeated here.
S102:The play instruction that the reception server is sent, play instruction include broadcast corresponding with the multimedia being locally stored Mark is put, and corresponding with server time first plays initial time.
In the present embodiment, broadcasting mark is corresponding with the multimedia that multimedia simultaneously playing device is locally stored, and this is broadcast Put and be identified as being obtained ahead of time and store in the server, broadcasting mark can include letter, numeral and letter and numeral Combination etc..For example, it can be obtained when multimedia simultaneously playing device downloads multimedia resource corresponding with multimedia resource Broadcasting mark, or input into server by input equipment to play corresponding to multimedia resource and identifies etc., specifically no longer Repeat.
This first broadcasting initial time be:Using server time as standard, the multimedia fills in multimedia synchronous play The time commenced play out in putting.
S103:Initial time is played according to time difference and first, when obtaining locally broadcasting starting corresponding with local zone time Between, and when local zone time reaches local broadcasting initial time, multimedia is played according to playing to identify.
In the present embodiment, when there is multiple multimedia simultaneously playing devices, due to each multimedia synchronous broadcasting Device needs to play out multimedia in same the first reproduction time based on server time, and each multimedia synchronization The local zone time of playing device may be different, therefore play initial time, each more matchmakers according to the time difference obtained and first The simultaneously playing device of body, which can obtain, plays that initial time is corresponding locally plays initial time with first, and in more matchmakers When the local zone time of the simultaneously playing device of body reaches the local broadcasting initial time of the multimedia simultaneously playing device, play Corresponding multimedia.That is, when synchronously playing a multimedia, server needs to send play instruction in advance to synchronously broadcasting Device is put, and simultaneously playing device is converted to the first broadcasting initial time by the time difference obtained when locally playing starting Between.So, for each simultaneously playing device, it can be commenced play out in the same time and play the more of mark corresponding to same Media, realize the multimedia synchronous broadcasting between more simultaneously playing devices.
The multimedia being locally stored in the present embodiment is to download in advance and be stored in multimedia simultaneously playing device sheet The multimedia on ground, audio, picture, ordinary video and panoramic video etc. can be included.Due to the possibility that is locally stored not only There is a multimedia, it is necessary to be identified with being played in play instruction at local Dui after the play instruction of server transmission is received Corresponding multimedia scans for, if searching corresponding multimedia, performs follow-up step;If corresponding to not searching Multimedia, then any response or push prompt message is not made to user.
In the present embodiment, when multimedia simultaneously playing device receives local corresponding to the play instruction of server transmission Between earlier than local play initial time.In general, in order to ensure simultaneously playing device receive server transmission broadcasting refer to Local zone time corresponding to order plays initial time earlier than with local, it might even be possible to which 1 day in advance or several hours are by play instruction It is sent to simultaneously playing device.
In the present embodiment, server sends play instruction in advance needs time span in advance to need to be more than by server To the propagation delay time of multimedia simultaneously playing device, so as to ensure multimedia simultaneously playing device receive play instruction be Before playing initial time arrival, that is, receive local zone time corresponding to the play instruction of server transmission and played earlier than with local Begin the time, therefore server time could be based on and control corresponding local zone time starting reproduction time in each device, ensure each more The simultaneously playing device of media plays initial time corresponding to server time first and synchronously played.
For example, before play instruction is sent, server obtains transmission of the server to each multimedia simultaneously playing device Time delay, and the propagation delay time of each device according to acquisition, it is determined that sending play instruction needs time span in advance, make in advance Time span is more than the propagation delay time by server to each multimedia simultaneously playing device, each multimedia same so as to ensure Walk playing device can play initial time synchronously broadcasting multimedia corresponding to server time first.
For example, it can ensure that simultaneously playing device receives the play instruction of server transmission in the following manner Corresponding local zone time plays initial time earlier than with local.Due to network it sometimes appear that being delayed, in order to ensure that server connects The local zone time of the play instruction received plays initial time earlier than local, alternatively, after S101, in addition to:
Test post is sent to server, the test post includes sending local zone time and the time of the test post Difference, so that server determines any of following information according to the test post:Send server time, the hair of play instruction Send the server time and the first starting reproduction time of play instruction.
It is assumed that the local zone time that test post is sent from simultaneously playing device is 7:02, it is corresponding, during current server Between be 7:00, the server time that test post reaches server is 7:03, time difference -2 of the server in test post Minute, can get test post the propagation delay time by simultaneously playing device to server be 1 minute, it is assumed that by server to The propagation delay time of simultaneously playing device is equal to the propagation delay time by simultaneously playing device to server, then can according to the propagation delay time To further determine that the server time for sending play instruction.That is, if clothes of the first starting reproduction time with sending play instruction Business the device time difference be it is fixed, such as first starting reproduction time corresponding to server time to be later than transmission play instruction Server time half an hour, or first starting reproduction time corresponding to server time be it is fixed, then can root Determine to send the server time of play instruction according to the propagation delay time of above-mentioned test post.
It is, of course, also possible to according to the propagation delay time of test post, dynamic adjustment send play instruction server time and First starting reproduction time.It can specifically will not be repeated here according to selection is actually needed.
It is, of course, also possible to server is set to know the biography by server to multimedia simultaneously playing device otherwise Defeated time delay.
Alternatively, if simultaneously playing device identifies that the local zone time for receiving play instruction is later than local broadcasting starting Between, then according to current local zone time and local lead time value between playing initial time, then from the multimedia time difference Away from commencing play out multimedia at value.
That is, if the propagation delay time of server to a certain multimedia simultaneously playing device is long so that receives service Local zone time corresponding to the play instruction that device is sent has been later than and local broadcasting initial time, then can be current originally by calculating The ground time is later than the local lead time value for playing initial time, the multimedia simultaneously playing device directly from it is multimedia certain One moment commenced play out, and the moment is above-mentioned lead time value, was transmitted the delayed broadcasting content that is delayed so as to skip, directly Connect the content just played this moment from other devices and commence play out the multimedia, to ensure that the equipment is synchronous with other equipment.Tool Body, if lead time value is 5 minutes, from multimedia 5th minute commenced play out the multimedia, with other synchronous broadcastings Device keeps the synchronism played.
Alternatively, the multimedia synchronous broadcast method of the present embodiment also includes,
The request message that the reception server is sent at interval of the scheduled time;
Response message is sent to server according to request message, so that server judges local zone time pair according to response message Whether the multimedia simultaneously playing device answered is connected with server.
The preset time of the present embodiment can be set according to being actually needed, such as the scheduled time is 1 second;And server Whether multimedia simultaneously playing device and server according to corresponding to response message judges local zone time are connected specifically can be with To judge that simultaneously playing device is connected with server if server receives the response message in a certain predetermined time interval Connect, be otherwise judged as being not connected with, wherein the predetermined time interval can be set as 5 seconds.
In the present embodiment, in order to realize it is synchronous play, it is necessary to ensure multimedia simultaneously playing device and server it Between be continuously connected with.Heartbeat mechanism is used in the present embodiment, i.e. server fills at interval of the scheduled time to multimedia synchronous play Put and send predetermined request message, and the response message that multimedia simultaneously playing device returns according to the request message, if clothes Business device receives the response message in a certain predetermined time interval, and server then judges the simultaneously playing device of present multimedia It is connected with server, if server does not receive the response message in the predetermined time interval, illustrates that synchronous play fills Put and broken down between server, it is already off.Judge that multimedia synchronous play fills by heartbeat mechanism in the present embodiment The connection status with server is put, server end in a certain predetermined time interval according to whether receive multimedia synchronous broadcasting The response message that device is sent judges whether multimedia simultaneously playing device is in connection status with it, and is only sentencing The disconnected multimedia simultaneously playing device is in connection status, when needing to send play instruction, just to the multimedia synchronization Playing device is sent, and without being sent to the simultaneously playing device disconnected, so as to save server resource, also ensure that same Step playing device can receive the play instruction of server transmission, and then ensure multimedia synchronous broadcasting.
In the present embodiment, multimedia simultaneously playing device can use Socket (socket) communication protocol with server It is attached.When multimedia simultaneously playing device disconnects with server, then simultaneously playing device sends to server and connected Request is connect to establish connection.Certainly, if being once not connected with successfully, at interval of reconnection is again attempted to for a period of time, to guarantee Enough play instructions for receiving server transmission in real time, and then ensure multimedia synchronous broadcasting.
In the present embodiment, server sends predetermined request message to multimedia simultaneously playing device and synchronous play fills Any information can not be carried by putting the response message of return, naturally it is also possible to carry specific information.
For example, above-mentioned test post can be carried in the response message that simultaneously playing device returns, the test post Include sending local zone time and the time difference of test post, so that server is determined in following information according to test post It is any:The server time for sending play instruction, the server time and the first starting reproduction time that send play instruction.Clothes Business device according to the test post carried in the response message can get test post by simultaneously playing device to server Propagation delay time, it is assumed that be equal to the transmission by simultaneously playing device to server by the propagation delay time of server to simultaneously playing device Time delay, that is, obtain by the propagation delay time of server to the simultaneously playing device, and during according to the transmission of each device got Prolong, it is determined that sending play instruction needs time span in advance, time span in advance is more than by server to each more matchmakers The propagation delay time of the simultaneously playing device of body, so as to ensure that each multimedia simultaneously playing device can be in server time pair First answered plays initial time and synchronously plays multimedia.Because server synchronous played at interval of the scheduled time to multimedia The predetermined request message of device transmission, and the response message that multimedia simultaneously playing device returns according to the request message, and Response message carries test post, then server, can also be in real time while judging that simultaneously playing device is in connection status Acquisition each device between propagation delay time, so as to dynamically adjust send play instruction need in advance time span, with Tackle the sychronisation that is connected with server and the situation of propagation delay time real-time change caused by reason such as increase.
For another example, server sends predetermined request message to multimedia simultaneously playing device and simultaneously playing device returns Response message can use NTP (Network Time Protocol) agreement.It is specific as follows:
Server sends the request message for including the 5th timestamp t5 to simultaneously playing device, and the 5th timestamp t5 is service Device sends server time corresponding to request message;
After simultaneously playing device receives request message, being sent to server includes the 5th timestamp t5, the 6th timestamp T6 and the 7th timestamp t7 response message, the 6th timestamp t6 are that simultaneously playing device is received corresponding to request message locally Time, the 7th timestamp t7 are that simultaneously playing device sends local zone time corresponding to response message;
It is the 8th timestamp t8 that server record, which receives server time corresponding to response message,;
According to the 5th timestamp t5, the 6th timestamp t6, the 7th timestamp t7 and the 8th timestamp t8, propagation delay time is obtained θ=[(t6-t5)+(t8-t7)]/2.
Its principle is as follows:Assuming that time difference Δ t=server time-local zone time, and assume by simultaneously playing device to The unidirectional transmission time delay of server equal with the unidirectional transmission time delay by server to simultaneously playing device is θ, works as server When sending request message to simultaneously playing device, server time t5, now local zone time is t5- Δ t, is filled when synchronously playing Put when receiving request message, now local zone time is t6=t5- Δ t+ θ;When simultaneously playing device sends response to server Local zone time during message is t7, and now corresponding server time is t7+ Δ t, and server receives pair of response message The server time answered is t8=t7+ Δ t+ θ, can be tried to achieve by above-mentioned two equation:θ=[(t6-t5)+(t8-t7)]/2.
By the combination of heart-beat protocol and Network Time Protocol, server is judging simultaneously playing device and server connection state While, also obtain the propagation delay time between the simultaneously playing device and server.Server then can be every according to what is got The propagation delay time of one device, it is determined that sending play instruction needs time span in advance, time span in advance is set to be more than by taking Device be engaged in the propagation delay time of each multimedia simultaneously playing device, so as to ensure that each multimedia simultaneously playing device can Initial time, which is played, corresponding to server time first synchronously plays multimedia.Due to server at interval of the scheduled time to more The simultaneously playing device of media sends predetermined request message, and multimedia simultaneously playing device returns according to the request message Response message, then server while judging that simultaneously playing device is in connection status, can also obtain in real time with respectively Propagation delay time between device, so as to dynamically adjust the time span for sending play instruction and needing to shift to an earlier date, to tackle and service The sychronisation of device connection such as increases at the situation of propagation delay time real-time change caused by reason.
The multimedia synchronous broadcast method that the present embodiment provides, the time of local zone time and server time is obtained first Difference, then according to the time difference and it is corresponding with server time it is multimedia first play initial time, it is determined that with it is local when Between it is corresponding it is local play initial time, and local zone time reach it is local play initial time when, played according to mark is played Multimedia.Because the method for the present embodiment is when being played based on local zone time starting corresponding to server time control multimedia Between, even if the time for reaching each multimedia simultaneously playing device due to network delay is different, it still is able to ensure each multimedia Simultaneously playing device corresponding to server time first play initial time synchronously play, solve prior art due to according to Synchronous the problem of playing of equipment end can not be ensured in the fluency of network by relying, and improve the precision of multimedia synchronous broadcasting, So as to improve Consumer's Experience.
The present embodiment is to the further supplementary notes of S101 in above-described embodiment as shown in Fig. 2 obtaining local zone time and clothes The time difference of the server time of business device specifically includes:
S201:Being sent to server includes very first time stamp t1 first message, and very first time stamp t1 disappears to send first Local zone time corresponding to breath.
In the present embodiment, timestamp t1 is carried in the first message sent to server, and timestamp t1 is more matchmakers The simultaneously playing device of body sends corresponding local zone time during the first message.
S202:The of what the reception server was sent include very first time stamp t1, the second timestamp t2 and the 3rd timestamp t3 Two message, the second timestamp t2 are that server receives server time corresponding to first message, and the 3rd timestamp t3 is service Device sends server time corresponding to the second message.
In the present embodiment, record receives corresponding server time during first message after server receives first message For the second timestamp t2, and need to carry very first time stamp t1, the when sending the second message to multimedia simultaneously playing device Two timestamp t2 and the 3rd timestamp t3, wherein when the 3rd timestamp t3 is server corresponding to server the second message of transmission Between.Second message of the present embodiment can be the response message for first message.
S203:It is the 4th timestamp t4 that record, which receives local zone time corresponding to the second message,.
In the present embodiment, for multimedia simultaneously playing device when receiving the second message, record receives the second message When corresponding local zone time be the 4th timestamp t4.And have recorded in the second message the very first time stamp t1, the second timestamp t2 and 3rd timestamp t3, even if multimedia simultaneously playing device does not record very first time stamp t1 when sending first message locally, It can also directly be obtained from the second message, and then the loss of data can be avoided.
S204:T1, the second timestamp t2, the 3rd timestamp t3 and the 4th timestamp t4 are stabbed according to the very first time, obtain this Time difference Δ t=server time-local zone time of ground time and server time=[(t2-t1)+(t3-t4)]/2.
In the present embodiment, local zone time and clothes are obtained using the method for NTP (Network Time Protocol) agreement The time difference of the server time of business device, the precision of the time difference of acquisition is higher, can meet the multimedia need synchronously played Ask.Its principle is as follows:
Assuming that time difference Δ t=server time-local zone time, and assume by simultaneously playing device to the unidirectional of server Propagation delay time equal with the unidirectional transmission time delay by server to simultaneously playing device is θ, when simultaneously playing device is to service When device sends first message, local zone time t1, now server time is t1+ Δ t, when server receives first message When, now server time is t2=t1+ Δ t+ θ;It is t3 when the time that server sends the second message, now corresponding local Time is t3- Δ t, and the time that simultaneously playing device receives the second message is t4=t3- Δ t+ θ, passes through above-mentioned two etc. Formula can try to achieve:Δ t=[(t2-t1)+(t3-t4)]/2.
In addition, after the time difference of local zone time and server time is obtained, will be stored in playing device the time difference, and Local zone time is not modified, when allowing for each simultaneously playing device may be not intended to or not allow to change local Between, for example, local zone time is the time for being different from server place time zone, or user is voluntarily provided with a time;Or Server time may not also be the current standard time.Therefore, the multimedia synchronous broadcast method of the present embodiment is not right Local zone time synchronizes with server time, avoids user and also needs to adjust local zone time again after finishing playing It is whole, great convenience is brought to user, improves Consumer's Experience.
Due in the present embodiment, time difference Δ t=server time-local zone time of acquisition, therefore, corresponding S103 It is middle that initial time is played according to time difference and first, obtain the initial time that locally plays corresponding with local zone time and specifically include:
Initial time is locally played according to equation below acquisition is corresponding with local zone time:
Local broadcasting initial time=first plays initial time-time difference Δ t.
In the present embodiment, if it is assumed that time difference Δ t '=local zone time-server time, then can similarly obtain Δ t '= [(t1-t2)+(t4-t3)]/2, then corresponding now locally broadcasting initial time=first plays initial time+time difference Δ t’。
Certainly, the method for obtaining the time difference of the server time of local zone time and server is not limited in above-mentioned side Method, such as PTP (Precision Time Protocol) agreement can also be used, or by measurement by server to broadcasting The One Way Delay of device simultaneously receives the message by server transmission one comprising the message and acquisition playing device for sending timestamp Timestamp, to obtain the time difference, within protection scope of the present invention.In addition, multimedia simultaneously playing device can be with The time difference of multiple local zone time and server time is obtained, to improve time difference precision, multimedia is synchronously broadcast so as to improve Spermiation degree.
Alternatively, when local zone time reaches local broadcasting initial time, multimedia is played according to broadcasting mark and specifically wrapped Include:When local zone time reaches local broadcasting initial time, suspend the playing task currently performed, and play multimedia.
In the present embodiment, if the simultaneously playing device of present multimedia is playing a multimedia, and clothes be have received During another play instruction of business device, then when local zone time reaches and locally plays initial time corresponding to the play instruction, pause The playing task currently performed, and switch and perform new playing task, play multimedia corresponding to the play instruction.Certainly, when The multimedia finishes, then can switch back into the playing task being suspended, and continues executing with, make it is multimedia broadcasting continue into OK, to ensure the continuity of multimedia.In addition, if the simultaneously playing device of present multimedia does not have playing task, The user waiting prompts such as picture or word, or display count down information etc. can be passed through.
Fig. 3 is the structure chart of multimedia simultaneously playing device embodiment provided by the invention, and the present embodiment provides more The simultaneously playing device of media can be specifically used for the multimedia synchronous broadcast method for performing above-described embodiment.As shown in figure 3, The multimedia simultaneously playing device of the present embodiment, including:First acquisition module 11, receiving module 12, the second acquisition module 13 With playing module 14.
Wherein, the first acquisition module 11 is used for the time difference for obtaining the server time of local zone time and server;Receive Module 12 is used for the play instruction that the reception server is sent, and play instruction includes play corresponding with the multimedia being locally stored and marked Know, and corresponding with server time first plays initial time;Second acquisition module 13 is used for according to time difference and first Initial time is played, acquisition is corresponding with local zone time locally to play initial time;Playing module 14 is used to arrive in local zone time During up to local broadcasting initial time, multimedia is played according to playing to identify.
The multimedia simultaneously playing device that the present embodiment provides is used to perform the embodiment of the method shown in earlier figures 1B Technical scheme, its implementing principle and technical effect is similar, and here is omitted.
The present embodiment provide multimedia simultaneously playing device, first by the first acquisition module 11 obtain local zone time with The time difference of server time, the play instruction sent by the reception server of receiving module 12, the play instruction include and local Mark is played corresponding to the multimedia of storage, and corresponding with server time first plays initial time;Then second obtain Modulus block 13 according to the time difference and it is corresponding with server time it is multimedia first play initial time, it is determined that with it is local when Between it is corresponding it is local play initial time, and local zone time reach it is local play initial time when, by the basis of playing module 14 Play mark and play multimedia.Because the device of the present embodiment is based on local zone time corresponding to server time control multimedia Reproduction time is originated, even if the time for reaching each multimedia simultaneously playing device due to network delay is different, still is able to protect Demonstrate,prove each multimedia simultaneously playing device and play initial time synchronously broadcasting corresponding to server time first, solve existing Technology can not ensure synchronous the problem of playing of equipment end due to the fluency dependent on network, improve multimedia synchronous broadcast The precision put, so as to improve Consumer's Experience.
In another embodiment, the first acquisition module 11 is specifically used for:
Being sent to server includes very first time stamp t1 first message, and very first time stamp t1 is corresponding to send first message Local zone time;
Second including very first time stamp t1, the second timestamp t2 and the 3rd timestamp t3 that the reception server is sent disappears Breath, the second timestamp t2 are that server receives server time corresponding to first message, and the 3rd timestamp t3 sends out for server Send server time corresponding to the second message;
It is the 4th timestamp t4 that record, which receives local zone time corresponding to the second message,;
T1, the second timestamp t2, the 3rd timestamp t3 and the 4th timestamp t4 are stabbed according to the very first time, obtain local zone time With time difference Δ t=server time-local zone time=[(t2-t1)+(t3-t4)]/2 of server time;
In the present embodiment, the first acquisition module 11 is obtained using the method for NTP (Network Time Protocol) agreement The time difference of the server time of local zone time and server is taken, the precision of the time difference of acquisition is higher, can meet multimedia The demand synchronously played.First acquisition module 11 of the present embodiment is used for the skill for performing the embodiment of the method shown in earlier figures 2 Art scheme, its implementing principle and technical effect is similar, and here is omitted.
Because in the present embodiment, time difference Δ t=server time-local zone time of acquisition, therefore, second obtains mould Block 13 is specifically used for:
Initial time is locally played according to equation below acquisition is corresponding with local zone time:
Local broadcasting initial time=first plays initial time-time difference Δ t.
In the present embodiment, if it is assumed that time difference Δ t '=local zone time-server time, then can similarly obtain Δ t '= [(t1-t2)+(t4-t3)]/2, then corresponding now locally broadcasting initial time=first plays initial time+time difference Δ t’。
Certainly, the first acquisition module 11 obtains the method for the time difference of the server time of local zone time and server not Be only limitted to the above method, such as PTP (Precision Time Protocol) agreement can also be used, or by measurement by Server is played and filled to the One Way Delay of playing device and the message for including transmission timestamp by server transmission one and acquisition The timestamp for receiving the message is put, to obtain the time difference, within protection scope of the present invention.In addition, the first acquisition module 11 can repeatedly obtain the time difference of local zone time and server time, multimedia so as to improve to improve time difference precision It is synchronous to play precision.
In another embodiment, multimedia simultaneously playing device also includes sending module;
Sending module is used to send test post to server, and test post includes the local zone time for sending test post And the time difference, so that server determines any of following information according to test post:Send the server of play instruction Time, the server time for sending play instruction and the first starting reproduction time.
In the present embodiment, server sends play instruction in advance needs time span in advance to need to be more than by server It is when playing starting so as to ensure that receiving module 12 receives play instruction to the propagation delay time of multimedia simultaneously playing device Between reach before, i.e., receiving module 12 receives local zone time corresponding to the play instruction of server transmission and played earlier than with local Begin the time, therefore server time could be based on and control corresponding local zone time starting reproduction time in each device, ensure each more The simultaneously playing device of media plays initial time corresponding to server time first and synchronously played.
For example, before play instruction is sent, server obtains transmission of the server to each multimedia simultaneously playing device Time delay, and the propagation delay time of each device according to acquisition, it is determined that sending play instruction needs time span in advance, make in advance Time span is more than the propagation delay time by server to each multimedia simultaneously playing device, each multimedia same so as to ensure Walk playing device can play initial time synchronously broadcasting multimedia corresponding to server time first.
By sending test post to server, the test post includes transmission test and disappeared sending module in the present embodiment The local zone time of breath and the local zone time got and the time difference of server time,
Server understands the propagation delay time by simultaneously playing device to server of test post according to the test post, false If the propagation delay time by simultaneously playing device to server is equal to by the propagation delay time of server to simultaneously playing device, then by this Propagation delay time determines any of following information:Send the server time of play instruction, send the server of play instruction Time and the first starting reproduction time.That is, if the difference of server time of the first starting reproduction time with sending play instruction It is fixed, such as server time corresponding to the first starting reproduction time will be later than the server time for sending play instruction Half an hour, or first starting reproduction time corresponding to server time be it is fixed, then can be according to above-mentioned test post Propagation delay time determine send play instruction server time.
It is, of course, also possible to according to the propagation delay time of test post, dynamic adjustment send play instruction server time and First starting reproduction time.It can specifically will not be repeated here according to selection is actually needed.
Alternatively, if simultaneously playing device identifies that the local zone time for receiving play instruction is later than local broadcasting starting Between, then according to current local zone time and local lead time value between playing initial time, then playing module 14 is from more matchmakers Multimedia is commenced play out at the lead time value of body.
That is, if the propagation delay time of server to a certain multimedia simultaneously playing device is long so that receiving module 12 Local zone time corresponding to receiving the play instruction of server transmission has been later than plays initial time with local, then can pass through Calculate current local time and be later than the local lead time value for playing initial time, the playing module 14 directly from it is multimedia certain One moment commenced play out, and the moment is above-mentioned lead time value, was transmitted the delayed broadcasting content that is delayed so as to skip, directly The content just played this moment from other devices commences play out the multimedia, to ensure that the equipment is synchronous with other equipment.Specifically Ground, if lead time value be 5 minutes, playing module 14 commenced play out the multimedia from multimedia 5th minute, with it is other Simultaneously playing device keeps the synchronism played.
Further improvement of the present embodiment to above-mentioned multimedia simultaneously playing device embodiment is as shown in figure 4, this implementation The multimedia simultaneously playing device that example provides also includes processing module 15, and the processing module 15 is used for:
The request message that the reception server is sent at interval of the scheduled time;
Response message is sent to server according to request message, so that server judges local zone time pair according to response message Whether the multimedia simultaneously playing device answered is connected with server.
The preset time of the present embodiment can be set according to being actually needed, such as the scheduled time is 1 second;And server Whether multimedia simultaneously playing device and server according to corresponding to response message judges local zone time are connected specifically can be with To judge that simultaneously playing device is connected with server if server receives the response message in a certain predetermined time interval Connect, be otherwise judged as being not connected with, wherein the predetermined time interval can be set as 5 seconds.
In the present embodiment, in order to realize it is synchronous play, it is necessary to ensure multimedia simultaneously playing device and server it Between be continuously connected with.Heartbeat mechanism is used in the present embodiment, i.e. server fills at interval of the scheduled time to multimedia synchronous play The processing module 15 put sends predetermined request message, and the processing module 15 of multimedia simultaneously playing device is according to the request The response message that message returns, if server receives the response message in a certain predetermined time interval, server then judges The simultaneously playing device of present multimedia is connected with server, is answered if server does not receive this in the predetermined time interval Message is answered, then illustrates to break down between simultaneously playing device and server, it is already off.Pass through heartbeat mechanism in the present embodiment Judge the connection status of multimedia simultaneously playing device and server, server end is according to whether in a certain predetermined time interval Response message that multimedia simultaneously playing device processing module 15 sends inside is received to judge multimedia simultaneously playing device Whether with it is in connection status, and is only judging that the multimedia simultaneously playing device is in connection status, works as needs When sending play instruction, just sent to the multimedia simultaneously playing device, without being sent out to the simultaneously playing device disconnected Send, so as to save server resource, also ensure that simultaneously playing device can receive the play instruction of server transmission, and then Ensure multimedia synchronous broadcasting.
In the present embodiment, server sends predetermined request message to the processing module 15 of multimedia simultaneously playing device And the response message that the processing module 15 of simultaneously playing device returns can not carry any information, naturally it is also possible to carry specific Information.
Disappear for example, above-mentioned test can be carried in the response message that the processing module 15 of simultaneously playing device returns Breath, the test post includes sending local zone time and the time difference of test post, so that server is true according to test post Any of fixed following information:Send the server time of play instruction, send the server time and first of play instruction Originate reproduction time.Server according to the test post carried in the response message can get test post by synchronously playing Propagation delay time of the device to server, it is assumed that be equal to by the propagation delay time of server to simultaneously playing device by simultaneously playing device To the propagation delay time of server, that is, obtain by the propagation delay time of server to the simultaneously playing device, and it is every according to what is got The propagation delay time of one device, it is determined that sending play instruction needs time span in advance, time span in advance is set to be more than by taking Device be engaged in the propagation delay time of each multimedia simultaneously playing device, so as to ensure that each multimedia simultaneously playing device can Initial time, which is played, corresponding to server time first synchronously plays multimedia.Due to server at interval of the scheduled time to more The simultaneously playing device of media sends predetermined request message, and the processing module 15 of multimedia simultaneously playing device is according to this The response message that request message returns, and response message carries test post, then server is judging that simultaneously playing device is in While connection status, the propagation delay time between each device can also be obtained in real time, played so as to dynamically adjust to send Instruction needs time span in advance, and the propagation delay times caused by reason such as the sychronisation being connected with reply with server increases are real Shi Bianhua situation.
For another example, server sends predetermined request message and synchronization to the processing module 15 of multimedia simultaneously playing device The response message that the processing module 15 of playing device returns can use NTP (Network Time Protocol) agreement.Specifically It is as follows:
Server is sent to the processing module 15 of simultaneously playing device includes the 5th timestamp t5 request message, when the 5th Between stab t5 be server send request message corresponding to server time;
After the processing module 15 of simultaneously playing device receives request message, being sent to server includes the 5th timestamp T5, the 6th timestamp t6 and the 7th timestamp t7 response message, the 6th timestamp t6 are the processing module of simultaneously playing device 15 receive local zone time corresponding to request message, and the 7th timestamp t7 is that the processing module 15 of simultaneously playing device sends response Local zone time corresponding to message;
It is the 8th timestamp t8 that server record, which receives server time corresponding to response message,;
According to the 5th timestamp t5, the 6th timestamp t6, the 7th timestamp t7 and the 8th timestamp t8, propagation delay time is obtained θ=[(t6-t5)+(t8-t7)]/2.
Its principle is as follows:Assuming that time difference Δ t=server time-local zone time, and assume by simultaneously playing device to The unidirectional transmission time delay of server equal with the unidirectional transmission time delay by server to simultaneously playing device is θ, works as server When sending request message to the processing module 15 of simultaneously playing device, server time t5, now local zone time is t5- Δ t, When the processing module 15 of simultaneously playing device receives request message, now local zone time is t6=t5- Δ t+ θ;Work as synchronization The processing module 15 of playing device to server send response message when local zone time be t7, now corresponding server time For t7+ Δ t, and the corresponding server time that server receives response message is t8=t7+ Δ t+ θ, passes through above-mentioned two Equation can try to achieve:θ=[(t6-t5)+(t8-t7)]/2.
By the combination of heart-beat protocol and Network Time Protocol, server is judging simultaneously playing device and server connection state While, also obtain the propagation delay time between the simultaneously playing device and server.Server then can be every according to what is got The propagation delay time of one device, it is determined that sending play instruction needs time span in advance, time span in advance is set to be more than by taking Device be engaged in the propagation delay time of each multimedia simultaneously playing device, so as to ensure that each multimedia simultaneously playing device can Initial time, which is played, corresponding to server time first synchronously plays multimedia.Because server is at interval of first scheduled time Predetermined request message is sent to multimedia simultaneously playing device, and multimedia simultaneously playing device is according to the request message The response message of return, then while server judges that simultaneously playing device is in connection status, can also obtain in real time with Propagation delay time between each device, so as to dynamically adjust the time span for sending play instruction and needing to shift to an earlier date, to tackle and take The sychronisation of business device connection such as increases at the situation of propagation delay time real-time change caused by reason.
Further, multimedia simultaneously playing device can use Socket (socket) with server in the present embodiment Communication protocol is attached.When multimedia simultaneously playing device disconnects with server, then the processing of simultaneously playing device Module 15 sends connection request to establish connection to server.Certainly, if being once not connected with successfully, at interval of for a period of time again Secondary trial reconnection, to guarantee to receive the play instruction of server transmission in real time, and then ensure multimedia synchronously to broadcast Put.
As the further improvement of above-mentioned multimedia simultaneously playing device embodiment, playing module 14 specifically also can use In:When local zone time reaches local broadcasting initial time, suspend the playing task currently performed, and play multimedia.At this In embodiment, if the playing module 14 of the simultaneously playing device of present multimedia is playing a multimedia, and clothes are have received During another play instruction of business device, then when local zone time reaches and locally plays initial time corresponding to the play instruction, play Module 14 suspends the playing task currently performed, and switches and perform new playing task, plays more matchmakers corresponding to the play instruction Body.Certainly, when the multimedia finishes, then playing module 14 can switch back into the playing task being suspended, and continue executing with, Continue multimedia broadcasting, to ensure the continuity of multimedia.If the in addition, synchronous broadcasting of present multimedia Device does not have playing task, then can pass through the user waiting prompts such as picture or word, or display count down information etc..
Fig. 5 is the structure chart of multimedia synchronous playing system embodiment provided by the invention, as shown in figure 5, this implementation The multimedia synchronous playing system that example provides, including above-mentioned multimedia simultaneously playing device 21 and server 20.
Wherein, multimedia simultaneously playing device 21 is connected with server 20, for performing above-mentioned multimedia synchronously broadcast The method in embodiment of the method is put, here is omitted.
Multimedia synchronous playing system provided by the invention, because the system of the present embodiment is to be based on server time control Local zone time corresponding to multimedia processed originates reproduction time, even if being filled because network delay reaches each multimedia synchronous play The time put is different, still is able to ensure each multimedia simultaneously playing device when corresponding to server time first plays starting Between synchronously play, can not ensure that the synchronous of equipment end plays so as to solving prior art due to the fluency dependent on network The problem of, the precision that multimedia synchronous plays is improved, so as to improve Consumer's Experience.
As further improvement of this embodiment, the system includes multiple above-mentioned multimedia simultaneously playing devices;
The corresponding broadcasting mark identical stored at least two multimedia simultaneously playing devices is multimedia interior Appearance differs.
In the present embodiment, different multimedias, but corresponding phase can be stored in different multimedia simultaneously playing devices Same broadcasting mark, that is, respond identical play instruction.Such as one section of video is stored in multimedia simultaneously playing device A, should Played corresponding to video and be identified as " 1 ", and a section audio is stored in multimedia simultaneously playing device B, broadcast corresponding to the audio It is also " 1 " to put mark, when the broadcasting mark " 1 " and corresponding with server time first that includes for receiving server transmission plays The play instruction of initial time, then multimedia simultaneously playing device A and multimedia simultaneously playing device B is synchronous respectively plays Video corresponding with playing mark " 1 " and audio on the device.For another example, the present embodiment can apply to VR cinemas, VR experience The occasion of more people's interactions such as shop, wherein broadcasting video synchronous with more VR equipment rooms of server connection (such as panoramic video, 3D Film etc.), and another computer being connected with server then synchronously playing audio frequency and controls synchronization action etc. of somatosensory device. Multimedia synchronous playing system in the present embodiment on different multimedia simultaneously playing devices by synchronously playing not Same content of multimedia, each device is set to play respective function, Each performs its own functions, there is provided more preferable Consumer's Experience, also can in addition Save system resource.Certainly, the multimedia synchronous playing system of the present embodiment is not limited in above-mentioned occasion, equally can also Applied to multimedia teaching, multimedia conferencing and some On-the-spot Interaction activities etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description With the specific work process of system, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed methods, devices and systems, can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.With reference to The step of method disclosed in the embodiment of the present invention, can be embodied directly in hardware processor and perform completion, or with processor Hardware and software module combination perform completion.Functional module in device embodiment is stored in a storage medium, including Some instructions to cause a computer equipment (can be personal computer, server, or network equipment etc.) or processing Device performs the part steps of each embodiment methods described of the present invention.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (10)

  1. A kind of 1. multimedia synchronous broadcast method, it is characterised in that including:
    Obtain the time difference of the server time of local zone time and server;
    The play instruction that the server is sent is received, the play instruction includes play corresponding with the multimedia being locally stored Mark, and the first broadcasting initial time corresponding with the server time;
    Initial time is played according to the time difference and described first, locally play corresponding with the local zone time is obtained and originates Time, and when local zone time reaches the local broadcasting initial time, the multimedia is played according to the mark that plays.
  2. 2. according to the method for claim 1, it is characterised in that the server time for obtaining local zone time and server Time difference specifically include,
    Being sent to the server includes very first time stamp t1 first message, and the very first time stamp t1 is transmission described first Local zone time corresponding to message;
    Second including very first time stamp t1, the second timestamp t2 and the 3rd timestamp t3 that the server is sent is received to disappear Breath, the second timestamp t2 are that the server receives server time corresponding to the first message, when the described 3rd Between to stab t3 be that server sends server time corresponding to second message;
    It is the 4th timestamp t4 that record, which receives local zone time corresponding to second message,;
    T1, the second timestamp t2, the 3rd timestamp t3 and the 4th timestamp t4 are stabbed according to the very first time, Obtain the time difference Δ t=[(t2-t1)+(t3-t4)]/2 of the local zone time and the server time;
    It is described according to the time difference and described first plays initial time, obtain and corresponding with the local zone time locally play Initial time specifically includes:
    Initial time is locally played according to equation below acquisition is corresponding with the local zone time:
    Local broadcasting initial time=first plays initial time-time difference Δ t.
  3. 3. according to the method for claim 1, it is characterised in that obtaining the server time of local zone time and server After time difference, in addition to:
    To the server send test post, the test post include the local zone time for sending the test post and The time difference, so that the server determines any of following information according to the test post:Send the broadcasting The server time of instruction, the server time for sending the play instruction and the first starting reproduction time.
  4. 4. according to the method described in any one in claim 1-3, it is characterised in that also include,
    Receive the request message that the server is sent at interval of the scheduled time;
    Response message is sent to the server according to the request message, so that the server is sentenced according to the response message Whether the multimedia simultaneously playing device corresponding to the local zone time that breaks is connected with the server.
  5. A kind of 5. multimedia simultaneously playing device, it is characterised in that including:
    First acquisition module, the time difference of the server time for obtaining local zone time and server;
    Receiving module, the play instruction sent for receiving the server, the play instruction include be locally stored it is more Mark is played corresponding to media, and corresponding with the server time first plays initial time;
    Second acquisition module, for playing initial time according to the time difference and described first, obtain and the local zone time Corresponding local broadcasting initial time;
    Playing module, for when local zone time reaches the local broadcasting initial time, institute to be played according to the mark that plays State multimedia.
  6. 6. device according to claim 5, it is characterised in that first acquisition module is specifically used for:
    Being sent to the server includes very first time stamp t1 first message, and the very first time stamp t1 is transmission described first Local zone time corresponding to message;
    Second including very first time stamp t1, the second timestamp t2 and the 3rd timestamp t3 that the server is sent is received to disappear Breath, the second timestamp t2 are that the server receives server time corresponding to the first message, when the described 3rd Between to stab t3 be that server sends server time corresponding to second message;
    It is the 4th timestamp t4 that record, which receives local zone time corresponding to second message,;
    T1, the second timestamp t2, the 3rd timestamp t3 and the 4th timestamp t4 are stabbed according to the very first time, Obtain the time difference Δ t=[(t2-t1)+(t3-t4)]/2 of the local zone time and the server time;
    Second acquisition module is specifically used for:
    Initial time is locally played according to equation below acquisition is corresponding with the local zone time:
    Local broadcasting initial time=first plays initial time-time difference Δ t.
  7. 7. device according to claim 5, it is characterised in that also including sending module;
    The sending module is used to send test post to the server, and the test post includes the transmission test and disappeared The local zone time of breath and the time difference, so that the server determines any in following information according to the test post Kind:The server time of the play instruction, the server time of the transmission play instruction and first starting is sent to broadcast Put the time.
  8. 8. according to the device described in any one in claim 5-7, it is characterised in that also including processing module, the processing Module is used for:
    Receive the request message that the server is sent at interval of the scheduled time;
    Response message is sent to the server according to the request message, so that the server is sentenced according to the response message Whether the multimedia simultaneously playing device corresponding to the local zone time that breaks is connected with the server.
  9. 9. a kind of multimedia synchronous playing system, it is characterised in that including more matchmakers as described in claim 5-8 any one The simultaneously playing device of body and the server.
  10. 10. system according to claim 9, it is characterised in that the system includes multiple described multimedia synchronously broadcast Put device;
    The corresponding broadcasting mark identical stored at least two multimedia simultaneously playing devices is multimedia interior Appearance differs.
CN201610687195.0A 2016-08-18 2016-08-18 Multimedia synchronous broadcast method, apparatus and system Pending CN107770569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610687195.0A CN107770569A (en) 2016-08-18 2016-08-18 Multimedia synchronous broadcast method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610687195.0A CN107770569A (en) 2016-08-18 2016-08-18 Multimedia synchronous broadcast method, apparatus and system

Publications (1)

Publication Number Publication Date
CN107770569A true CN107770569A (en) 2018-03-06

Family

ID=61262880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610687195.0A Pending CN107770569A (en) 2016-08-18 2016-08-18 Multimedia synchronous broadcast method, apparatus and system

Country Status (1)

Country Link
CN (1) CN107770569A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388245A (en) * 2018-11-06 2019-02-26 杭州炽橙文创科技有限公司 A kind of shared resource real-time interaction system of virtual reality applications
CN110446079A (en) * 2019-07-03 2019-11-12 北京达佳互联信息技术有限公司 Obtain method, apparatus, electronic equipment and the storage medium of viewing duration
CN110784747A (en) * 2019-12-06 2020-02-11 成都新潮传媒集团有限公司 Synchronous playing method of advertisement player
CN111372112A (en) * 2018-12-26 2020-07-03 华为技术有限公司 Method, device and system for synchronously displaying videos
CN113179441A (en) * 2021-03-26 2021-07-27 卡莱特云科技股份有限公司 Synchronous playing method, device, system and computer equipment
CN114374453A (en) * 2021-11-17 2022-04-19 伟乐视讯科技股份有限公司 Emergency broadcast multi-terminal audio synchronization method and emergency broadcast system
CN115515004A (en) * 2022-11-04 2022-12-23 之江实验室 Multi-screen control system based on Android

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100124404A1 (en) * 2008-11-14 2010-05-20 Sang Wook Park Multimedia playing system and method for playing multimedia using the same
CN104581190A (en) * 2014-12-29 2015-04-29 上海智物信息技术有限公司 Multi-screen synchronization method and system
CN105530698A (en) * 2015-12-17 2016-04-27 Tcl通力电子(惠州)有限公司 Time synchronization method and system among wireless devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100124404A1 (en) * 2008-11-14 2010-05-20 Sang Wook Park Multimedia playing system and method for playing multimedia using the same
CN104581190A (en) * 2014-12-29 2015-04-29 上海智物信息技术有限公司 Multi-screen synchronization method and system
CN105530698A (en) * 2015-12-17 2016-04-27 Tcl通力电子(惠州)有限公司 Time synchronization method and system among wireless devices

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388245A (en) * 2018-11-06 2019-02-26 杭州炽橙文创科技有限公司 A kind of shared resource real-time interaction system of virtual reality applications
CN111372112A (en) * 2018-12-26 2020-07-03 华为技术有限公司 Method, device and system for synchronously displaying videos
CN111372112B (en) * 2018-12-26 2022-06-07 华为技术有限公司 Method, device and system for synchronously displaying videos
US11868674B2 (en) 2018-12-26 2024-01-09 Huawei Technologies Co., Ltd. Method, apparatus and system for video synchronous display
CN110446079A (en) * 2019-07-03 2019-11-12 北京达佳互联信息技术有限公司 Obtain method, apparatus, electronic equipment and the storage medium of viewing duration
CN110784747A (en) * 2019-12-06 2020-02-11 成都新潮传媒集团有限公司 Synchronous playing method of advertisement player
CN113179441A (en) * 2021-03-26 2021-07-27 卡莱特云科技股份有限公司 Synchronous playing method, device, system and computer equipment
CN114374453A (en) * 2021-11-17 2022-04-19 伟乐视讯科技股份有限公司 Emergency broadcast multi-terminal audio synchronization method and emergency broadcast system
CN114374453B (en) * 2021-11-17 2024-01-12 伟乐视讯科技股份有限公司 Emergency broadcasting multi-terminal audio synchronization method and emergency broadcasting system
CN115515004A (en) * 2022-11-04 2022-12-23 之江实验室 Multi-screen control system based on Android

Similar Documents

Publication Publication Date Title
CN107770569A (en) Multimedia synchronous broadcast method, apparatus and system
CN104052562B (en) Method and apparatus for allowing playback devices to perform synchronized playback of streaming content
CN103209360B (en) A kind of shared method and apparatus of multi-party video
CN104703036B (en) A kind of method, apparatus and system of synchronized multimedia file playback progress
CN110166788B (en) Information synchronous playing method, device and storage medium
CN105933375B (en) Method and device for monitoring microphone connection session and server
CN106303648A (en) A kind of method and device synchronizing to play multi-medium data
KR20140066641A (en) Server, multimedia apparatus, and control method of thereof
CN104467928B (en) A kind of method and apparatus to cooperate between terminal device
KR101974325B1 (en) METHOD AND APPARATUS FOR TRIGGING INTERACTIVE APPLICATIONS
CN103491317B (en) Three-dimensional figure and image multi-screen synchronous broadcasting method, device and system
US20220261217A1 (en) Audio data processing method, server, and storage medium
CN106303679A (en) Media play controlling method and media play client
CN106303672A (en) A kind of synchronous broadcast method based on recorded broadcast video and device
CN106331820B (en) Audio and video synchronization processing method and device
CN109040819A (en) Playback progress synchronous method, device, equipment and storage medium
CN116527977A (en) Sound and picture synchronization method and device, electronic equipment and readable storage medium
US20170180769A1 (en) Simultaneous experience of media
CN107948703B (en) Method and device for synchronizing playing progress
CN106303754A (en) A kind of audio data play method and device
CN112105005B (en) Method and device for controlling Bluetooth equipment to play
CN106454474B (en) Multimedia synchronous plays method, apparatus and system
CN108282720B (en) Audio data stream transmission method and device
CN108471547A (en) Media play switching method and server unit
CN108696762A (en) A kind of synchronous broadcast method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180306

RJ01 Rejection of invention patent application after publication