[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107809685B - A kind of method and apparatus that multiple terminals is played simultaneously - Google Patents

A kind of method and apparatus that multiple terminals is played simultaneously Download PDF

Info

Publication number
CN107809685B
CN107809685B CN201711071333.3A CN201711071333A CN107809685B CN 107809685 B CN107809685 B CN 107809685B CN 201711071333 A CN201711071333 A CN 201711071333A CN 107809685 B CN107809685 B CN 107809685B
Authority
CN
China
Prior art keywords
terminal
play position
played simultaneously
time
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711071333.3A
Other languages
Chinese (zh)
Other versions
CN107809685A (en
Inventor
纪琦华
蒲珂
曾泽基
方宏
李哲山
鲁豪
胡彬
魏明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongguang Hot Cloud Technology Co Ltd
Original Assignee
Zhongguang Hot Cloud 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 Zhongguang Hot Cloud Technology Co Ltd filed Critical Zhongguang Hot Cloud Technology Co Ltd
Priority to CN201711071333.3A priority Critical patent/CN107809685B/en
Publication of CN107809685A publication Critical patent/CN107809685A/en
Application granted granted Critical
Publication of CN107809685B publication Critical patent/CN107809685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • 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)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention relates to the technology that multiple terminals are played simultaneously, in particular to a kind of method and apparatus that multiple terminals is played simultaneously;The method that multiple terminals is played simultaneously includes the following steps: S1: by server and national time service central server time synchronization, and configuring group policy, keeps server synchronous with each terminal time in set of terminal is played simultaneously;S2: receiving the broadcast information for the inter cut time section that each terminal reports, and establish fault tolerant mechanism, and broadcast information includes terminal iidentification, play position and sampling time;S3: the prediction play position of each terminal is calculated according to the broadcast information reported.The present invention provides a kind of method and apparatus that new multiple terminals is played simultaneously, the method and apparatus that the multiple terminals is played simultaneously can make each terminal report the broadcast information of inter cut time section, server calculates the prediction play position of each terminal according to broadcast information, it is handled by the broadcast information to inter cut time section, reduces server content to be treated.

Description

A kind of method and apparatus that multiple terminals is played simultaneously
Technical field
The present invention relates to the technology that multiple terminals are played simultaneously, in particular to a kind of method that multiple terminals is played simultaneously and set It is standby.
Background technique
The terminal device that digital signage terminal shows and plays as information, has been supplied in all trades and professions, and such as finance is handed over Logical, education, retail, enterprises etc..The implementation of digital signage: the playing task list that terminal is issued according to business platform mentions Preceding that the various contents for needing to play are locally downloading, within the time that playing task list is specified, terminal is according under business platform The broadcasting for needing to carry out local content of the job order of hair.More the most commonly used is multiple terminals at the beginning of business platform is specified It is interior to play out, loop play is carried out to the content that needs play, for playing multiple terminals of same content, due to each Difference, the difference of task schedule of terminal system clock, it may appear that the nonsynchronous problem of broadcasting content.In the prior art, it uses The server mode synchronous with terminal guarantees that multiple terminals can play synchronization, and still, server needs to play multichannel simultaneously and regards Frequently, the complexity and lower deployment cost of server be will increase.
Patent CN103561356B discloses a kind of method and apparatus that multiple terminals is played simultaneously, and this method is according to each terminal Prediction play position determine the progress adjustment value of each terminal, to achieve the purpose that all terminal plays are synchronous;But the skill The server of art needs frequent generation synchronous task list, so that the processing load of server is excessive.
Summary of the invention
In view of the above-mentioned problems, the present invention provides a kind of method and apparatus that new multiple terminals is played simultaneously, the multiple terminals is same The method and apparatus that step plays can make each terminal synchronize broadcasting to spot, it is good that effect be played simultaneously, and mitigate The processing load of server.
Specific technical solution of the present invention is as follows:
The present invention provides a kind of method that multiple terminals is played simultaneously, and this method comprises the following steps:
S1: by server and national time service central server time synchronization, and configuring group policy, make server with synchronize broadcast It is synchronous to put each terminal time in set of terminal;
S2: receiving the broadcast information for the inter cut time section that each terminal reports, and establish fault tolerant mechanism, and broadcast information includes eventually End mark, play position and sampling time;
S3: the prediction play position of each terminal is calculated according to the broadcast information reported;
S4: each terminal is determined according to calculated prediction play position;
S5: setting synchronous base generates adjustable strategies table;
S6: adjustable strategies table is encoded, generation strategy coding, and is sent to each terminal, so that each terminal is according to tune Adjustable strategies on whole Policy Table carry out progress adjustment.
Further to improve, step S2 further includes following steps:
S21: the broadcast information for the inter cut time section that each terminal reports is received;
S22: the time difference T ' in calculation of synchronized set of terminal between each terminal according to the following formula
T '=Tn-Tf
Wherein TnIndicate the sampling time that n-th of terminal in set of terminal is played simultaneously, TfExpression is played simultaneously in set of terminal The sampling time of f terminal;
S23: judging the size of time difference T ' Yu time threshold, if time difference T ' is greater than time threshold, is walked Otherwise rapid S3 carries out step S24;
S24: the broadcasting that each terminal in set of terminal carries out program according to former playback progress is played simultaneously.
Further to improve, the prediction of each terminal plays position to step S3 in calculation of synchronized set of terminal according to the following formula Set Pn
Pn'=(T-Tn)×f/1000+Pn
Wherein, T indicates that present system time, n indicate the number that terminal in set of terminal is played simultaneously, TnN-th of expression whole The sampling time at end, f indicate video sampling rate, PnIndicate the play position of n-th of terminal.
Further to improve, step S4 further includes following steps:
S41: according to the following formula in calculation of synchronized set of terminal each predictably terminal imagination play position difference Xn
Xn=Pn′-Pk
Wherein, Pk' indicate the prediction play position that k-th of terminal in set of terminal is played simultaneously;
S42: judge each difference XnBetween size, if difference XfIt differs too big with the size of each difference, then carries out step Otherwise S43 carries out step S5;
S43: to alert personnel, inform that the terminal for being identified as f is likely to occur failure.
Further to improve, step S5 further includes following steps:
S51: according to calculated prediction play position, the average value S of all prediction play position is calculated;
S52: judge average value S and prediction play position Pn' whether equal, if average value S and prediction play position Pn' phase Deng, then carry out step S53, otherwise carry out step S54;
S53: the specified prediction play position equal with average value S is synchronous base F;
S54: distance to a declared goal average value S nearest prediction play position is synchronous base F;
S55: by the prediction play position P of each terminaln' compared with synchronous base F, obtain the progress adjustment of each terminal Strategy, and the progress adjustment strategy of each terminal is sequentially generated adjustable strategies table according to terminal iidentification.
Further to improve, step S55 further includes following steps:
S551: the prediction play position P of each terminal is calculatedn' with the difference X of synchronous base F, and to the size of difference X into Row judgement, carries out step S552, if X<0 carries out step S554, if X=0 carries out step S556 if X>0;
The prediction play position of S552: n-th terminal is located at after synchronous base, adjustment prediction play position Pn' before Broadcasting content Aa;
S553:Aa play position is Ta, playing duration Pn'-Ta, change broadcasting content Aa into Aa ', the broadcasting position of Aa ' It is set to Ta, playing duration F-Ta, Pn' content between-F suspends and play;
The prediction play position of S554: n-th terminal is located at before synchronous base, adjustment prediction play position Pn' before Broadcasting content Ab;
S555:Ab play position is Tb, playing duration Pn'-Tb, change broadcasting content Ab into Ab ', the broadcasting position of Ab ' It is set to Tb, playing duration F-Tb;
The prediction play position of S556: n-th terminal is synchronous base, does not have to carry out progress adjustment;
S557: the progress adjustment strategy of each terminal is sequentially generated adjustable strategies table according to terminal iidentification.
Further to improve, step S6 further includes following steps:
S61: the adjustable strategies table of generation is encoded, generation strategy coding;
S62: each terminal is sent by the strategy coding of generation;
S63: server sends strategy coding in the client of staff or strategy is encoded and is sent to by terminal In the client of staff.
The present invention provides a kind of equipment that multiple terminals is played simultaneously, including the database in server and the server, The server includes:
Time synchronization module: it is used for server and national time service central server time synchronization, and configures group policy, make Server is synchronous with each terminal time in set of terminal is played simultaneously;
Processing module;The broadcast information reported for receiving each terminal, and establish fault tolerant mechanism;
Computing module: for calculating the prediction play position of each terminal according to the broadcast information reported;
Judgment module: for being determined according to calculated prediction play position each terminal;
Policy generation module: for setting synchronous base, generation adjustable strategies table:
Sending module: for adjustable strategies table to be encoded, generation strategy coding, and it is sent to each terminal, so that respectively Terminal carries out progress adjustment according to the adjustable strategies on adjustable strategies table.
Further to improve, the processing module includes:
Receiving module;For receiving the broadcast information for the inter cut time section that each terminal reports;
First computational submodule: for the time difference between each terminal in calculation of synchronized set of terminal according to the following formula Value T '
T '=Tn-Tf
Wherein TnIndicate the sampling time that n-th of terminal in set of terminal is played simultaneously, TfExpression is played simultaneously in set of terminal The sampling time of f terminal;
First judging submodule: for judging the size of time difference T ' Yu time threshold;
First processing submodule: for each terminal broadcasting according to former playback progress progress program in set of terminal to be played simultaneously It puts.
Further to improve, the judgment module includes:
Second computational submodule: for each predictably terminal imagination play position in calculation of synchronized set of terminal according to the following formula Difference Xn
Xn=Pn′-Pk
Wherein, Pk' indicate the prediction play position that k-th of terminal in set of terminal is played simultaneously;
Second judgment submodule: for judging each difference XnBetween size;
Second processing submodule: for informing that the terminal for being identified as f is likely to occur failure to alert personnel.
Beneficial effects of the present invention are as follows:
The present invention provides a kind of method and apparatus that new multiple terminals is played simultaneously, method which is played simultaneously and Equipment can make each terminal report the broadcast information of inter cut time section, and server is broadcast according to the prediction that broadcast information calculates each terminal Position is put, is handled by the broadcast information to inter cut time section, reduces server content to be treated, mitigates significantly The processing load of server.
Detailed description of the invention
Fig. 1 is the flow chart for the method that 1 multiple terminals of embodiment is played simultaneously;
Fig. 2 is the flow chart for the method that 2 multiple terminals of embodiment is played simultaneously;
Fig. 3 is the flow chart for the method that 4 multiple terminals of embodiment is played simultaneously;
Fig. 4 is the flow chart for the method that 5 multiple terminals of embodiment is played simultaneously;
Fig. 5 is the flow chart of 5 step S55 of embodiment;
Fig. 6 is the flow chart for the method that 6 multiple terminals of embodiment is played simultaneously;
Fig. 7 is the structural block diagram for the equipment that 7 multiple terminals of embodiment is played simultaneously;
Fig. 8 is the structural block diagram of 8 processing module of embodiment;
Fig. 9 is the structural block diagram of 9 judgment module of embodiment.
Specific embodiment
Invention is further described in detail with following embodiment with reference to the accompanying drawing.
Embodiment 1
The embodiment of the present invention 1 provides a kind of method that multiple terminals is played simultaneously, as shown in Figure 1, this method includes following step It is rapid:
S1: by server and national time service central server time synchronization, and configuring group policy, make server with synchronize broadcast It is synchronous to put each terminal time in set of terminal;
S2: receiving the broadcast information for the inter cut time section that each terminal reports, and establish fault tolerant mechanism, and broadcast information includes eventually End mark, play position and sampling time;
S3: the prediction play position of each terminal is calculated according to the broadcast information reported;
S4: each terminal is determined according to calculated prediction play position;
S5: setting synchronous base generates adjustable strategies table;
S6: adjustable strategies table is encoded, generation strategy coding, and is sent to each terminal, so that each terminal is according to tune Adjustable strategies on whole Policy Table carry out progress adjustment.
Mainly each terminal synchronizes the specific program intercutted and broadcasts the method that multiple terminals provided by the invention is played simultaneously It puts, the broadcast information upload server of inter cut time section, server are established fault-tolerant machine according to the broadcast information of upload by each terminal System, so that if adjusting, server is believed further according to broadcasting to judge whether the playback progress of each terminal needs to adjust Breath calculates the prediction play position of each terminal, can mitigate the processing load of server in this way;Server is receiving broadcast information Before, the time of sync server Yu each terminal is needed, the deviation due to terminal clock itself is avoided, causes the sampling time not Accurately, to be had an impact to the calculating of prediction play position;Meanwhile server can carry out multiple set of terminal that are played simultaneously Synchronously control, synchronously control are more efficient.
Embodiment 2
The embodiment of the present invention 2 provides a kind of method that multiple terminals is played simultaneously, and this method is essentially identical with embodiment 1, Unlike, as shown in Fig. 2, step S2 further includes following steps:
S21: the broadcast information for the inter cut time section that each terminal reports is received;
S22: the time difference T ' in calculation of synchronized set of terminal between each terminal according to the following formula
T '=Tn-Tf
Wherein TnIndicate the sampling time that n-th of terminal in set of terminal is played simultaneously, TfExpression is played simultaneously in set of terminal The sampling time of f terminal;
S23: judging the size of time difference T ' Yu time threshold, if time difference T ' is greater than time threshold, is walked Otherwise rapid S3 carries out step S24;
S24: the broadcasting that each terminal in set of terminal carries out program according to former playback progress is played simultaneously.
Judge whether the playback progress of each terminal needs to adjust in the present invention according to calculated time difference, when each end The difference very little in sampling time between end, when in threshold value, the playback progress of each terminal does not need to adjust;The setting of threshold value can be with Depending on according to the actual situation, for example, 3s, 5s etc., the time difference of very little will not have an impact being played simultaneously for each terminal, this Sample can also reduce the processing load of server.
Embodiment 3
The embodiment of the present invention 3 provides a kind of method that multiple terminals is played simultaneously, and this method is essentially identical with embodiment 1, Unlike, step S3 according to the following formula in calculation of synchronized set of terminal each terminal prediction play position Pn
Pn'=(T-Tn)×f/1000+Pn
Wherein, T indicates that present system time, n indicate the number that terminal in set of terminal is played simultaneously, TnN-th of expression whole The sampling time at end, f indicate video sampling rate, PnIndicate the play position of n-th of terminal.
The present invention calculates prediction play position according to above-mentioned formula, and determines synchronous base according to prediction play position, The adjustable strategies of each terminal can be quickly obtained according to synchronous base, generate adjustable strategies table, formation efficiency can be improved.
Embodiment 4
The embodiment of the present invention 4 provides a kind of method that multiple terminals is played simultaneously, and this method is essentially identical with embodiment 1, Unlike, as shown in figure 3, step S4 further includes following steps:
S41: according to the following formula in calculation of synchronized set of terminal each predictably terminal imagination play position difference Xn
Xn=Pn′-Pk
Wherein, Pk' indicate the prediction play position that k-th of terminal in set of terminal is played simultaneously;
S42: judge each difference XnBetween size, if difference XfIt differs too big with the size of each difference, then carries out step Otherwise S43 carries out step S5;
S43: to alert personnel, inform that the terminal for being identified as f is likely to occur failure.
The present invention according to the difference between each predictably terminal imagination play position to determine whether there is terminal failure, when having one When the prediction play position of terminal and the larger prediction play position difference of other terminals, which breaks down, and needs to work It is sounded an alarm as personnel, staff in time repairs the terminal, avoid influencing subsequent use.
Embodiment 5
The embodiment of the present invention 5 provides a kind of method that multiple terminals is played simultaneously, and this method is essentially identical with embodiment 1, Unlike, as shown in figure 4, step S5 further includes following steps:
S51: according to calculated prediction play position, the average value S of all prediction play position is calculated;
S52: judge average value S and prediction play position Pn' whether equal, if average value S and prediction play position Pn' phase Deng, then carry out step S53, otherwise carry out step S54;
S53: the specified prediction play position equal with average value S is synchronous base F;
S54: distance to a declared goal average value S nearest prediction play position is synchronous base F;
S55: by the prediction play position P of each terminaln' compared with synchronous base F, obtain the progress adjustment of each terminal Strategy, and the progress adjustment strategy of each terminal is sequentially generated adjustable strategies table according to terminal iidentification.
As shown in figure 5, step S55 further includes following steps:
S551: the prediction play position P of each terminal is calculatedn' with the difference X of synchronous base F, and to the size of difference X into Row judgement, carries out step S552, if X<0 carries out step S554, if X=0 carries out step S556 if X>0;
The prediction play position of S552: n-th terminal is located at after synchronous base, adjustment prediction play position Pn' before Broadcasting content Aa;
S553:Aa play position is Ta, playing duration Pn'-Ta, change broadcasting content Aa into Aa ', the broadcasting position of Aa ' It is set to Ta, playing duration F-Ta, Pn' content between-F suspends and play;
The prediction play position of S554: n-th terminal is located at before synchronous base, adjustment prediction play position Pn' before Broadcasting content Ab;
S555:Ab play position is Tb, playing duration Pn'-Tb, change broadcasting content Ab into Ab ', the broadcasting position of Ab ' It is set to Tb, playing duration F-Tb;
The prediction play position of S556: n-th terminal is synchronous base, does not have to carry out progress adjustment;
S557: the progress adjustment strategy of each terminal is sequentially generated adjustable strategies table according to terminal iidentification.
The present invention is adjusted the playback progress of each terminal by above method, avoids the unexpected F.F. or prominent of video So slow down the perception for influencing spectators.
Embodiment 6
The embodiment of the present invention 6 provides a kind of method that multiple terminals is played simultaneously, and this method is essentially identical with embodiment 1, Unlike, as shown in fig. 6, step S6 further includes following steps:
S61: the adjustable strategies table of generation is encoded, generation strategy coding;
S62: each terminal is sent by the strategy coding of generation;
S63: server sends strategy coding in the client of staff or strategy is encoded and is sent to by terminal In the client of staff.
Encoding adjustable strategies table generation strategy in the present invention is for the ease of staff manual editing, the plan of each terminal Slightly coding is shown in inconspicuous place in each display screen, checks convenient for staff;When the unexpected suspension of a wherein terminal, And server still has sent tactful coding to each terminal, staff can encode according to the strategy in other terminals at this time, Tactful coding is manually entered in the terminal of the suspension;It can also be received on server or other terminals by clients such as mobile phones Strategy coding, staff are manually entered tactful coding according to the strategy coding in client in the terminal of suspension.
Embodiment 7
The embodiment of the present invention 7 provides a kind of equipment that multiple terminals is played simultaneously, as shown in fig. 7, comprises server 1 and described Database in server 1, the server 1 include:
Time synchronization module 10: being used for server and national time service central server time synchronization, and configure group policy, Keep server synchronous with each terminal time in set of terminal is played simultaneously;
Processing module 20;The broadcast information reported for receiving each terminal, and establish fault tolerant mechanism;
Computing module 30: for calculating the prediction play position of each terminal according to the broadcast information reported;
Judgment module 40: for being determined according to calculated prediction play position each terminal;
Policy generation module 50: for setting synchronous base, generation adjustable strategies table:
Sending module 60: for adjustable strategies table to be encoded, generation strategy coding, and it is sent to each terminal, so that Each terminal carries out progress adjustment according to the adjustable strategies on adjustable strategies table.
Mainly each terminal synchronizes the specific program intercutted and broadcasts the equipment that multiple terminals provided by the invention is played simultaneously It puts, the broadcast information upload server of inter cut time section, server are established fault-tolerant machine according to the broadcast information of upload by each terminal System, so that if adjusting, server is believed further according to broadcasting to judge whether the playback progress of each terminal needs to adjust Breath calculates the prediction play position of each terminal, can mitigate the processing load of server in this way;Server is receiving broadcast information Before, the time of sync server Yu each terminal is needed, the deviation due to terminal clock itself is avoided, causes the sampling time not Accurately, to be had an impact to the calculating of prediction play position;Meanwhile server can carry out multiple set of terminal that are played simultaneously Synchronously control, synchronously control are more efficient.
Embodiment 8
The embodiment of the present invention 8 provides a kind of equipment that multiple terminals is played simultaneously, as shown in figure 9, the processing module 20 is wrapped It includes:
Receiving module 21;For receiving the broadcast information for the inter cut time section that each terminal reports;
First computational submodule 22: for the time between each terminal in calculation of synchronized set of terminal according to the following formula Difference T '
T '=Tn-Tf
Wherein TnIndicate the sampling time that n-th of terminal in set of terminal is played simultaneously, TfExpression is played simultaneously in set of terminal The sampling time of f terminal;
First judging submodule 23: for judging the size of time difference T ' Yu time threshold;
First processing submodule 24: for each terminal broadcasting according to former playback progress progress program in set of terminal to be played simultaneously It puts.
Judge whether the playback progress of each terminal needs to adjust in the present invention according to calculated time difference, when each end The difference very little in sampling time between end, when in threshold value, the playback progress of each terminal does not need to adjust;The setting of threshold value can be with Depending on according to the actual situation, for example, 3s, 5s etc., the time difference of very little will not have an impact being played simultaneously for each terminal, this Sample can also reduce the processing load of server.
Embodiment 9
The embodiment of the present invention 9 provides a kind of equipment that multiple terminals is played simultaneously, as shown in figure 9, the judgment module 40 wraps It includes:
Second computational submodule 41: position is played for each predictably terminal imagination in calculation of synchronized set of terminal according to the following formula The difference X setn
Xn=Pn′-Pk
Wherein, Pk' indicate the prediction play position that k-th of terminal in set of terminal is played simultaneously;
Second judgment submodule 42: for judging each difference XnBetween size;
Second processing submodule 43: for informing that the terminal for being identified as f is likely to occur failure to alert personnel.
The present invention according to the difference between each predictably terminal imagination play position to determine whether there is terminal failure, when having one When the prediction play position of terminal and the larger prediction play position difference of other terminals, which breaks down, and needs to work It is sounded an alarm as personnel, staff in time repairs the terminal, avoid influencing subsequent use.
Embodiment described above is only that the preferred embodiment of the present invention is described, not to the scope of the present invention into Row limits, and without departing from the spirit of the design of the present invention, those of ordinary skill in the art make technical solution of the present invention Various changes and improvements out, should fall within the scope of protection determined by the claims of the present invention.

Claims (8)

1. a kind of method that multiple terminals is played simultaneously, which is characterized in that this method comprises the following steps:
S1: by server and national time service central server time synchronization, and group policy is configured, server is made and end is played simultaneously Each terminal time is synchronous in the group of end;
S2: receiving the broadcast information for the inter cut time section that each terminal reports, and establish fault tolerant mechanism, and broadcast information includes terminal mark Knowledge, play position and sampling time;
S3: the prediction play position of each terminal is calculated according to the broadcast information reported;
S4: each terminal is determined according to calculated prediction play position;
S5: setting synchronous base generates adjustable strategies table;
S6: adjustable strategies table is encoded, generation strategy coding, and is sent to each terminal, so that each terminal is according to adjustment plan Adjustable strategies on sketch form carry out progress adjustment;
Step S2 further includes following steps:
S21: the broadcast information for the inter cut time section that each terminal reports is received;
S22: the time difference T ' in calculation of synchronized set of terminal between each terminal according to the following formula
T '=Tn-Tf
Wherein TnIndicate the sampling time that n-th of terminal in set of terminal is played simultaneously, TfExpression is played simultaneously in set of terminal f-th The sampling time of terminal;
S23: judging the size of time difference T ' Yu time threshold, if time difference T ' is greater than time threshold, carries out step S3, Otherwise step S24 is carried out;
S24: the broadcasting that each terminal in set of terminal carries out program according to former playback progress is played simultaneously.
2. the method that multiple terminals according to claim 1 is played simultaneously, which is characterized in that step S3 is counted according to the following formula Calculate the prediction play position P that each terminal in set of terminal is played simultaneouslyn
Pn'=(T-Tn)×f/1000+Pn
Wherein, T indicates that present system time, n indicate the number that terminal in set of terminal is played simultaneously, TnIndicate adopting for n-th of terminal Sample time, f indicate video sampling rate, PnIndicate the play position of n-th of terminal.
3. the method that multiple terminals according to claim 1 is played simultaneously, which is characterized in that step S4 further includes walking as follows It is rapid:
S41: according to the following formula in calculation of synchronized set of terminal each predictably terminal imagination play position difference Xn
Xn=Pn′-Pk
Wherein, Pk' indicate the prediction play position that k-th of terminal in set of terminal is played simultaneously;
S42: judge each difference XnBetween size, if difference XfIt differs too big with the size of each difference, then carries out step S43, it is no Then carry out step S5;
S43: to alert personnel, inform that the terminal for being identified as f is likely to occur failure.
4. the method that multiple terminals according to claim 1 is played simultaneously, which is characterized in that step S5 further includes walking as follows It is rapid:
S51: according to calculated prediction play position, the average value S of all prediction play position is calculated;
S52: judge average value S and prediction play position Pn' whether equal, if average value S and prediction play position Pn' equal, then Step S53 is carried out, step S54 is otherwise carried out;
S53: the specified prediction play position equal with average value S is synchronous base F;
S54: distance to a declared goal average value S nearest prediction play position is synchronous base F;
S55: by the prediction play position P of each terminaln' compared with synchronous base F, obtain the progress adjustment strategy of each terminal, And the progress adjustment strategy of each terminal is sequentially generated adjustable strategies table according to terminal iidentification.
5. the method that multiple terminals according to claim 1 is played simultaneously, which is characterized in that step S55 further includes walking as follows It is rapid:
S551: the prediction play position P of each terminal is calculatedn' with the difference X of synchronous base F, and the size of difference X is sentenced It is disconnected, step S552 is carried out if X>0, if X<0 carries out step S554, if X=0 carries out step S556;
The prediction play position of S552: n-th terminal is located at after synchronous base, adjustment prediction play position Pn' before broadcasting in Hold Aa;
S553:Aa play position is Ta, playing duration Pn'-Ta, change broadcasting content Aa into Aa ', the play position of Aa ' is Ta, playing duration F-Ta, Pn' content between-F suspends and play;
The prediction play position of S554: n-th terminal is located at before synchronous base, adjustment prediction play position Pn' before broadcasting in Hold Ab;
S555:Ab play position is Tb, playing duration Pn'-Tb, change broadcasting content Ab into Ab ', the play position of Ab ' is Tb, playing duration F-Tb;
The prediction play position of S556: n-th terminal is synchronous base, does not have to carry out progress adjustment;
S557: the progress adjustment strategy of each terminal is sequentially generated adjustable strategies table according to terminal iidentification.
6. the method that multiple terminals according to claim 1 is played simultaneously, which is characterized in that step S6 further includes walking as follows It is rapid:
S61: the adjustable strategies table of generation is encoded, generation strategy coding;
S62: each terminal is sent by the strategy coding of generation;
S63: server sends strategy coding in the client of staff or strategy is encoded and is sent to work by terminal In the client of personnel.
7. a kind of equipment that multiple terminals is played simultaneously, which is characterized in that including the number in server (1) and the server (1) According to library, the server (1) includes:
Time synchronization module (10): it is used for server and national time service central server time synchronization, and configures group policy, make Server is synchronous with each terminal time in set of terminal is played simultaneously;
Processing module (20);The broadcast information reported for receiving each terminal, and establish fault tolerant mechanism;
Computing module (30): for calculating the prediction play position of each terminal according to the broadcast information reported;
Judgment module (40): for being determined according to calculated prediction play position each terminal;Policy generation module (50): for setting synchronous base, generation adjustable strategies table:
Sending module (60): for adjustable strategies table to be encoded, generation strategy coding, and it is sent to each terminal, so that respectively Terminal carries out progress adjustment according to the adjustable strategies on adjustable strategies table;
The processing module (20) includes:
Receiving module (21);For receiving the broadcast information for the inter cut time section that each terminal reports;
First computational submodule (22): for the time difference between each terminal in calculation of synchronized set of terminal according to the following formula Value T '
T '=Tn-Tf
Wherein TnIndicate the sampling time that n-th of terminal in set of terminal is played simultaneously, TfExpression is played simultaneously in set of terminal f-th The sampling time of terminal;
First judging submodule (23): for judging the size of time difference T ' Yu time threshold;
First processing submodule (24): for each terminal broadcasting according to former playback progress progress program in set of terminal to be played simultaneously It puts.
8. the equipment that multiple terminals according to claim 7 is played simultaneously, which is characterized in that judgment module (40) packet It includes:
Second computational submodule (41): for each predictably terminal imagination play position in calculation of synchronized set of terminal according to the following formula Difference Xn
Xn=Pn′-Pk
Wherein, Pk' indicate the prediction play position that k-th of terminal in set of terminal is played simultaneously;
Second judgment submodule (42): for judging each difference XnBetween size;
Second processing submodule (43): for informing that the terminal for being identified as f is likely to occur failure to alert personnel.
CN201711071333.3A 2017-11-03 2017-11-03 A kind of method and apparatus that multiple terminals is played simultaneously Active CN107809685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711071333.3A CN107809685B (en) 2017-11-03 2017-11-03 A kind of method and apparatus that multiple terminals is played simultaneously

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711071333.3A CN107809685B (en) 2017-11-03 2017-11-03 A kind of method and apparatus that multiple terminals is played simultaneously

Publications (2)

Publication Number Publication Date
CN107809685A CN107809685A (en) 2018-03-16
CN107809685B true CN107809685B (en) 2019-10-25

Family

ID=61591685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711071333.3A Active CN107809685B (en) 2017-11-03 2017-11-03 A kind of method and apparatus that multiple terminals is played simultaneously

Country Status (1)

Country Link
CN (1) CN107809685B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830823B (en) * 2019-11-27 2022-02-08 北京奇艺世纪科技有限公司 Play progress correction method and device, electronic equipment and readable storage medium
WO2021134396A1 (en) * 2019-12-31 2021-07-08 西安诺瓦星云科技股份有限公司 Playing method, device and system and computer-readable storage medium
CN111107413A (en) * 2020-02-27 2020-05-05 四川长虹电器股份有限公司 Method for realizing synchronous display of multiple devices based on time
CN115314745B (en) * 2022-07-29 2023-08-11 山东浪潮超高清智能科技有限公司 Streaming media synchronization method
CN116155435B (en) * 2023-04-19 2023-07-14 中运科技股份有限公司 Method, system, equipment and medium for synchronously playing advertisements capable of being inserted
CN117040677B (en) * 2023-09-15 2024-06-14 深圳旷世科技有限公司 Synchronization method, synchronization device and equipment for multichannel data transmission

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237586A (en) * 2008-02-22 2008-08-06 上海华平信息技术股份有限公司 Synchronous playing method for audio and video buffer

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8190680B2 (en) * 2004-07-01 2012-05-29 Netgear, Inc. Method and system for synchronization of digital media playback
US20100232771A1 (en) * 2009-03-16 2010-09-16 Disney Enterprises, Inc. Time-sensitive remote control of a video playback device
CN103065658B (en) * 2012-12-18 2015-07-08 华为技术有限公司 Control method and device of multi-terminal synchronized playing
CN103200461B (en) * 2013-01-14 2016-03-02 苏州华启智能科技有限公司 A kind of multiple stage playback terminal synchronous playing system and player method
CN104125263B (en) * 2013-04-28 2018-02-02 广东美的制冷设备有限公司 A kind of system for carrying out time service for home appliance by Internet of Things
CN103561356B (en) * 2013-05-31 2017-06-06 华为技术有限公司 The method and apparatus that multiple terminals is synchronously played
CN105656590B (en) * 2015-12-30 2019-03-08 天维尔信息科技股份有限公司 Realize the methods, devices and systems of time synchronization

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237586A (en) * 2008-02-22 2008-08-06 上海华平信息技术股份有限公司 Synchronous playing method for audio and video buffer

Also Published As

Publication number Publication date
CN107809685A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
CN107809685B (en) A kind of method and apparatus that multiple terminals is played simultaneously
US20230359426A1 (en) Systems and methods for providing real-time audio and data
CN1745526B (en) Apparatus and method for synchronization of audio and video streams.
CN105245976B (en) Voice &amp; Video synchronizes the method and system play
US8279344B2 (en) Synchronization of video presentation by video cadence modification
CN106303648A (en) A kind of method and device synchronizing to play multi-medium data
CN107251620A (en) Wireless synchronization based on beacon
EP3041244B1 (en) Methods and devices for distributed audio/video synchronization and playback using an a/v orchestrator
CN100367313C (en) A system and method for determining lip synchronization between audio and video in a digitized environment using buffer calculation
KR101154122B1 (en) System and method for controlling motion using time synchronization between picture and motion
US11259069B1 (en) Synchronized video player
KR20220053542A (en) Method of display playback synchronization of digital contents in multiple connected devices and apparatus using the same
CN108513159A (en) Multiple terminals synchronous broadcast controlling method, main equipment, apparatus and system
WO2011141529A1 (en) Holographic live presentation system and method for the live transmission of a holographic presentation
CN108769600A (en) A kind of desktop sharing system and its desktop sharing method based on video flowing tune frame per second
Montagud et al. On the use of adaptive media playout for inter-destination synchronization
CN113365128B (en) Synchronous playing method and system for multiple LED display screens and LED display equipment
CN114401432A (en) MV playing method, playing terminal, server equipment and entertainment equipment system
Mu et al. Closing the gap: human factors in cross-device media synchronization
WO2005117431A1 (en) Method for synchronising video and audio data
JP7406169B2 (en) Synchronous control device, synchronous control method, and synchronous control program
CA2559424C (en) Stream generating apparatus and method of supplying frame sync signal used for stream generating apparatus

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
GR01 Patent grant
GR01 Patent grant