Summary of the invention
How the technical problem to be solved by the present invention is to make audio/video under the premise of occupying network bandwidth less as far as possible
File plays very smooth.
Above-mentioned technical problem is solved, the present invention provides a kind of synchronous broadcast method of non-Streaming Media audio-video document, packets
It includes: multiple players and a cloud server as client terminal playing audio-video document,
The player is bundled under administrator's account after being uniformly connected to the cloud server, and the player is opened
The cloud server is logged on to after opening and obtains current data, includes at least a playlist in the current data,
The player is uploaded the data under a presence in a setting time interval and is synchronized, and passes through institute
Cloud server is stated to save/regularly update;
The earliest and online player of login time is found under administrator's account as broadcasting referring to equipment, root
It will be synchronized in the player for being later than above-mentioned login time request synchronization according to the broadcasting object of reference;
After synchronizing, is positioned according to the play position of acquisition and load the specified played file in the playlist.
Further, if the time that the broadcasting currently played referring to equipment is T1, the broadcasting is synchronous referring to equipment
When time to the cloud server is T2, complete to get time when data in the player when above-mentioned loading procedure
For T3, then the broadcasting is referring to equipment current play time are as follows: T1+ (T3-T2), so that each player and the broadcasting
It is synchronous referring to equipment.
Further, when the player loads above-mentioned playlist, into following downloading mode:
The player, which downloads files into, to be locally stored, and is first searched from local when broadcasting, if this document has been deposited
In local, then local file is directly played;If file is not present, broadcasting is downloaded when playing in line file;
The player can all check local storage space before downloading file, if local remaining space reaches the upper limit,
The earliest file downloaded and frequency of use is minimum is deleted, local storage space is discharged.
Further, the player is uploaded the data under a presence in a setting time interval and is synchronized
When, specifically include: currently playing the file information, current file the position of playlist and current file it is played when
Between, those data are saved in the cloud server and real-time update while recording renewal time.
Based on the above method, the present invention also provides a kind of simultaneously playing devices of non-Streaming Media audio-video document, comprising:
Client and cloud server, the client include a player, and the player is configured as:
The player is uniformly connected to after the cloud server and is bundled under administrator's account, the player
The cloud server is logged on to after unlatching and obtains current data, includes at least a playlist in the current data,
The player is uploaded the data under a presence in a setting time interval and is synchronized, and passes through institute
Cloud server is stated to save/regularly update;
The earliest and online player of login time is found under administrator's account as broadcasting referring to equipment, root
It will be synchronized in the player for being later than above-mentioned login time request synchronization according to the broadcasting object of reference, after synchronizing, according to acquisition
Play position position and load the specified played file in the playlist;
And if the time that the broadcasting currently played referring to equipment is T1, the broadcasting is synchronized to institute referring to equipment
When the time for stating cloud server is T2, time when completing to get data when above-mentioned loading procedure in the player is
T3, then the broadcasting is referring to equipment current play time are as follows: T1+ (T3-T2), so that each player and the broadcasting are joined
It is synchronous according to equipment.
Further, the client includes: any broadcasting mould of a playing program unit and/or an intelligent box
Formula,
The playing program unit, to provide a file synchronization node, by described same under administrator's account
It is synchronous with the cloud server to walk node,
Smart box includes: cable interface, AV interface or HDMI interface and power interface, is connect by the power supply
After mouth is powered, AV interface or HDMI interface carry out audio/video playback in connection, by accessing after cable interface and cable grafting
It is synchronous with cloud server after network.
Further, device further includes the intelligent terminal connecting with client, and journey is applied in installation one on the intelligent terminal
Sequence unit, remotely to control the client, when the client receives control instruction, then execute switching played file,
It customizes played file and adjusts the operation of the broadcast state of played file.
Further, the player is also configured to when the player loads above-mentioned playlist, into as follows
Downloading mode:
The player, which downloads files into, to be locally stored, and is first searched from local when broadcasting, if this document has been deposited
In local, then local file is directly played;If file is not present, broadcasting is downloaded when playing in line file;
The player can all check local storage space before downloading file, if local remaining space reaches the upper limit,
The earliest file downloaded and frequency of use is minimum is deleted, local storage space is discharged.
The present invention also provides a kind of cloud server being played simultaneously, the cloud server is configured as to synchronization
Client connected to it,
First choice receives the request that above-mentioned client is uniformly connected and is bundled under administrator's account, and opens in client
It opens and sends current data to client after logging in, include at least a playlist in the current data;
Secondly, receive above-mentioned client uploaded in a setting time interval it is synchronous after data under a presence,
And it saves/regularly updates;
And provide under administrator's account: the earliest and online player of login time is as broadcasting reference
Equipment will be synchronized further according to the broadcasting object of reference in the player for being later than above-mentioned login time request synchronization;
Finally, send to above-mentioned client has broadcasting for the specified played file for being loaded with that play position positions after synchronization
Emplace table.
The present invention also provides a kind of client being played simultaneously, the client is configured as text is played simultaneously
Part is played to audio-video document when solving that network environment is very poor, file is very big and is synchronized, and not Caton, view when played file
Frequency does not spend screen.
First choice is uniformly connected and is bundled under administrator's account, logs in and obtain current data after client unlatching,
A playlist is included at least in the current data;
It is synchronized secondly, uploading the data under a presence in a setting time interval, and save/periodically more
Newly;
It is set finally, finding the earliest and online player of login time under administrator's account as reference is played
It is standby, it will be synchronized in the player for being later than above-mentioned login time request synchronization according to the broadcasting object of reference, after synchronizing, according to
The play position of acquisition positions and loads the specified played file in the playlist.
Beneficial effects of the present invention:
1) synchronous broadcast method of the non-Streaming Media audio-video document of one of present invention, by play audio or
When video file, position and time calibration to file achieve the purpose that play synchronous.In addition, the present invention is network-like
Condition congestion, the audio-video document when file (high image quality/high-resolution) needs to occupy larger space are played simultaneously especially
It is applicable in.
2) in the client provided by the invention being played simultaneously, to file is first locally downloading, then text is being played
The position of elder generation's synchronous documents in the queue when part, resynchronizes the play time of file, is substantially not take up network bandwidth, and
And file broadcasting is very smooth.File in client is all that idle is downloaded automatically, downloads the broadcasting local file completed, and
It plays highly stable, is especially also applied for the domestic lower network environment of universal bandwidth now.
3) in the method for the invention, only carry out when needing to start every time it is one subsynchronous, then according to played column meter
It draws and plays, playlist and file to be played is automatic all locally downloading, even if after suspension, it also can be very smooth
Be played simultaneously, do not have any Caton, will not influence the effect of audio or video.
4) to log in earliest and online equipment is as playing referring to equipment in method provided by the invention, while root
According to the position played referring to where song currently playing in equipment in list, the synchronization of file is realized.According further to broadcasting reference
The played time of equipment current played file, and the last renewal time and the current time in system it is poor, obtain reference
The real play time of equipment current time is directly targeted to this document further according to document location and play time, and from this
Start to play at time, the audio-video document that armamentarium plays is all unified referring to equipment with broadcasting, realizes efficient synchronization.
By experiment, when file all complete to play local file every time by downloading, synchronous effect is best, and minimal error is 200
In millisecond.When playing network file, when network is not especially unstable, substantially error be can control in 5 seconds.
Specific embodiment
The principle of the disclosure is described referring now to some example embodiments.It is appreciated that these embodiments are merely for saying
It is bright and help it will be understood by those skilled in the art that with the purpose of the embodiment disclosure and describe, rather than suggest the model to the disclosure
Any restrictions enclosed.Content of this disclosure described herein can be implemented in the various modes except mode described below.
As described herein, term " includes " and its various variants are construed as open-ended term, it means that " packet
It includes but is not limited to ".Term "based" is construed as " being based at least partially on ".Term " one embodiment " it is understood that
For " at least one embodiment ".Term " another embodiment " is construed as " at least one other embodiment ".
It is appreciated that place applicatory includes but is not limited in the application: bar, coffee shop, dining room, bowling alley,
Billiard room, bath center, beauty parlor, hairdressing place, photo studio, hotel, supermarket, market, household shop, gymnasium etc..
It is appreciated that the audio file in the application includes but is not limited to: WAV, MP3, MIDI, MID, MMF, WMA, AMR,
One or more of AAC.
It is appreciated that the video file in the application includes but is not limited to: .wmv .wm .asf .asx .rm .ra,
.rmvb .ram etc..
The client being played simultaneously in this application can play simultaneously for having multiple TV set in the same shop
Identical video, picture is fully synchronized, at the same with others it is chain/branch shop in the video that plays it is fully synchronized, with for the moment
Between, the video pictures of any one position are all.Accomplish that the video/audio between shop is unified to synchronize.Shop is typically all
Public network, network can be excessively poor when having client, and very unstable, and the client of the application can be used as optimal
Solution.
In this application, administrator's account refers to the special account for possessing maximum operating right, can be given using the account
Multiple users distribute identical special access right.
It is the synchronous broadcast method process of the non-Streaming Media audio-video document of one of one embodiment of the invention as shown in Figure 1
Schematic diagram;A kind of synchronous broadcast method of non-Streaming Media audio-video document, comprising: step S100 more are used as client terminal playing sound
The player of video file and a cloud server, player described in step S101 are tied up after being uniformly connected to the cloud server
It is scheduled under administrator's account, the player logs on to the cloud server and obtains current data after opening, described current
A playlist is included at least in data, player described in step S102 uploads a presence in a setting time interval
Under data synchronize, and save/regularly update by the cloud server;The player is one in step s 102
When uploading the data under a presence in setting time interval and synchronizing, specifically include: currently playing the file information,
The current file time played in the position of playlist and current file, by those data in the cloud server
It saves and real-time update records renewal time simultaneously.Step S103 finds login time earliest simultaneously under administrator's account
And online player will be synchronized as playing referring to equipment according to the broadcasting object of reference being later than above-mentioned login time request
Player synchronize;After step S104 is synchronized, is positioned and loaded in the playlist according to the play position of acquisition
Specified played file.It adopts with the aforedescribed process, by playing audio or when video file, to the position of file
And time calibration, achieve the purpose that play synchronous.In addition, the present invention is in Network status congestion, file (high image quality/high-resolution)
Audio-video document when needing to occupy larger space is played simultaneously particularly suitable.
As preferred in the present embodiment, under abnormal condition, when the player obtains synchrodata, if player
The currently playing time is greater than the regular hour with referring to the currently playing time phase difference of equipment, then carries out a data and synchronize,
Such synchronization is not needed under normal circumstances.The above-mentioned time can Remote configuration, be greater than 0, less than 60 seconds, meant that not if it is 0
It is synchronous.
As preferred in the present embodiment, the player is uploaded when just starting to play first vedio/audio file
Data, it is ensured that cloud server can obtain newest data in time.It is subsynchronous to be effectively prevented from several players first
When data, each player synchronous interval time is less than the interval time to upload data, synchronous the asking not in time of data occurs
Topic.
As preferred in the present embodiment, do not connect after the player starting and accesses to network, then taken according to from cloud
Business device downloading is stored in local playlist as playing plan, plays according to playlist, if connection is upper again for midway
Network, then it is synchronous to carry out data, and it is synchronous that when player network reconnection carries out a data.
As preferred in the present embodiment, the player according under normal circumstances only according to starting or network reconnection when
Carry out that data are synchronous, other situations are according to the playlist played in order of playing plan, and what is played is local file
(it is also normal that network file is wherein played when network smoothness), to can substantially guarantee that whole players can be with reference equipment
It is synchronous to carry out data.
In the present embodiment, it can specifically synchronize in accordance with the following steps as follows:
1. each player client is uniformly connected to cloud, it is tied under the same account, when player is opened
Server of automated log on, and with system synchronization time, after the completion of time synchronization, be delayed 3 seconds and obtain data (system boot
Time about 5~10 seconds, it is ensured that at least have updated a data when unlatching referring to equipment);
2. player obtains playlist, and according to the played in order file of list;
3. player reported a data (presence) at interval of 8 seconds, including currently playing the file information, and work as
The preceding document time played in the position of playlist and current file, server save these data and in real time more
Newly, renewal time is all recorded when update every time;The data upload interval time of the preferably described player can Remote configuration;
It is to log in earliest under same account referring to equipment 4. find referring to equipment, and that equipment online, if
The equipment goes offline, then with the second early login, and that online equipment is used as referring to equipment, and the data of other equipment will
It is synchronous with referring to equipment;
5. all obtaining list position, current file referring to where the currently playing file of equipment after other equipment starting
Played time and file renewal time, these information return to player client together with current play list.
Fig. 2 is the preferred embodiment schematic diagram in Fig. 1, including step are as follows: if the step S105 broadcasting reference is set
The standby currently played time is T1, and being played described in step S106 referring to the time that equipment is synchronized to the cloud server is T2
When, time when completing to get data when above-mentioned loading procedure in player described in step S107 is T3, described in step S108
It plays referring to equipment current play time are as follows: T1+ (T3-T2), so that each player is same referring to equipment with the broadcasting
Step.Specifically, to log in earliest and online equipment is as playing referring to equipment, while according to playing referring to current in equipment
Position where playing song in list, realizes the synchronization of file.According further to broadcasting reference equipment current played file
Play time, and the last renewal time and the current time in system it is poor, obtain broadcasting referring to the real of equipment current time
Put the time, further according to document location and play time, be directly targeted to this document, and from the time play, all
The audio-video document of device plays is all unified referring to equipment with broadcasting, realizes efficient synchronization.By experiment, in file whole
When downloading is completed to play local file every time, synchronous effect is best, and minimal error is in 200 milliseconds.Playing network text
When part, when network is not especially unstable, substantially error be can control in 5 seconds.In addition, being based on above-mentioned synchronous method
Idle downloading can be achieved, normal business hours are substantially not take up bandwidth in shop.
As preferred in the present embodiment, if the broadcasting that obtains of player referring to equipment current broadcasting relative time not
Total time less than player current file is long.Illustrate to play at this time and has been switched to next file referring to equipment, and
It does not upload data in time, then player is directly switch to next file, and from this document (when current broadcasting is opposite
Between) start to play at-time of (total time of current file is long).
Fig. 3 is preferably to be carried out schematic diagram in Fig. 1;When the player loads above-mentioned playlist, into such as
Under downloading mode:
Player described in step S200, which downloads files into, to be locally stored, and is first searched from local when broadcasting, if should
The existing local of file then directly plays local file;
Step S201 judges that local file whether there is;
If step S202 file is not present, broadcasting is downloaded when playing in line file;
Player described in step S203 can all check local storage space before downloading file, if local remaining space reaches
The upper limit then deletes the earliest file downloaded and frequency of use is minimum, discharges local storage space.
Adopt in manner just described, substantially can on be not take up network bandwidth, and file play it is very smooth.
Fig. 4 is the client preferred embodiment schematic diagram in Fig. 1;The client 2 include: a playing program unit 211 and/
Or one intelligent box 212 any play mode,
The playing program unit 211, to provide a file synchronization node, by described under administrator's account
Synchronization node is synchronous with the cloud server, and the playing program unit 211 can be the end PC dedicated play software, to
Meet offline shop the inside available free computer, and be not intended to increase equipment, also allows salesman to grasp once in a while the music in shop
The shop of work.
The intelligence box 212 includes: cable interface 2121, AV interface 2122 or HDMI interface 2123 and power interface
2124, after being powered by the power interface 2124, AV interface 2122 or the progress audio/video of HDMI interface 2123 are broadcast in connection
It puts, it is synchronous with cloud server after being followed by network with cable grafting by cable interface 2121.Intelligent box 212 is as a kind of
Music player devices have the characteristics that independent, closing, and support HD video, high-quality media play, above-mentioned cable interface
2121, plug and play may be implemented in AV interface 2122 or HDMI interface 2123, can also support when network environment is bad offline
It plays.
In some embodiments, intelligent box 212 can use built-in wireless wifi chip, and be forwarded by repeater
After be sent to cloud server.
In some embodiments, playing music is connected with AV interface 2122 with power amplifier, is used if necessary to play video
HDMI wire connects TV screen.
In some embodiments, playing program unit 211 and administrator's account are bound.For example, using Administrator account
It logs in cloud management platform to go to obtain activation code, activation playing program unit 211 is registered by activation code.
Fig. 5 and Fig. 6 are please referred to, wherein Fig. 5 is the same of the non-Streaming Media audio-video document of one of one embodiment of the invention
Walk playing device structural schematic diagram;Fig. 6 is the topological structure schematic diagram of Fig. 5;Specifically include that client 2 and cloud server 1,
The client 2 includes a player 21, and the player 21 is configured as: the player is uniformly connected to the cloud
It is bundled in after server under administrator's account, the player logs on to the cloud server and obtains current number after opening
According to including at least a playlist in the current data, the player is uploaded primary online in a setting time interval
Data under state synchronize, and save/regularly update by the cloud server;It is found under administrator's account
The earliest and online player of login time will be later than above-mentioned step on according to the broadcasting object of reference as playing referring to equipment
The synchronous player of record time request synchronizes, and after synchronizing, is positioned and is loaded in the broadcasting according to the play position of acquisition
Specified played file in list;And if the time that the broadcasting currently played referring to equipment is T1, the broadcasting reference
Equipment is synchronized to the time of the cloud server when being T2, completes to get data when above-mentioned loading procedure in the player
When time be T3, then broadcastings is referring to equipment current play time are as follows: T1+ (T3-T2) so that each player and
The broadcasting is synchronous referring to equipment.It is all synchronously complete after, i.e., so that armamentarium play audio-video document all with play join
It is unified according to equipment, realize efficient synchronization.
Fig. 7 is the preferred embodiment schematic diagram in Fig. 6;It include: client 2 and cloud server 1, the client 2
Including a player 21, further includes the intelligent terminal 3 being connect with client 2, an application program list is installed on the intelligent terminal 3
Member when the client receives control instruction, then executes switching played file, customization remotely to control the client
The operation of the broadcast state of played file and adjusting played file.Client can be facilitated whenever and wherever possible using above-mentioned intelligent terminal 3
It manages shop played file and checks file being played on (audio or video).
In some embodiments, application program unit supports Android or apple OX.
Fig. 8 is the timing interaction schematic diagram in cloud server;The cloud server is configured as to synchronization and its
The client of connection, interactive process on the client are as follows:
First choice receives the request that above-mentioned client is uniformly connected and is bundled under administrator's account, and opens in client
It opens and sends current data to client after logging in, include at least a playlist in the current data;
Secondly, receive above-mentioned client uploaded in a setting time interval it is synchronous after data under a presence,
And it saves/regularly updates;
And provide under administrator's account: the earliest and online player of login time is as broadcasting reference
Equipment will be synchronized further according to the broadcasting object of reference in the player for being later than above-mentioned login time request synchronization;
Finally, send to above-mentioned client has broadcasting for the specified played file for being loaded with that play position positions after synchronization
Emplace table.
As preferred in the present embodiment, if described, to play the time that currently played referring to equipment be T1, the broadcasting
When referring to equipment, to be synchronized to the time of the cloud server be T2, complete to get when above-mentioned loading procedure in the player
Time when data is T3, then the broadcasting is referring to equipment current play time are as follows: T1+ (T3-T2), so that each broadcasting
Device is synchronous referring to equipment with the broadcasting.
As preferred in the present embodiment, when the player loads above-mentioned playlist, into following downloading mould
Formula:
The player, which downloads files into, to be locally stored, and is first searched from local when broadcasting, if this document has been deposited
In local, then local file is directly played;If file is not present, broadcasting is downloaded when playing in line file;
The player can all check local storage space before downloading file, if local remaining space reaches the upper limit,
The earliest file downloaded and frequency of use is minimum is deleted, local storage space is discharged.
As preferred in the present embodiment, the player is uploaded in a setting time interval under a presence
When data synchronize, specifically include: currently playing the file information, current file playlist position and ought be above
Those data are saved in the cloud server and real-time update while recording renewal time by the part played time.
As preferred in the present embodiment, client further includes the intelligent terminal connecting with client, the intelligent terminal
One application program unit of upper installation when the client receives control instruction, is then executed remotely to control the client
Switch the operation of the broadcast state of played file, customization played file and adjusting played file.
Fig. 9 is the timing interaction schematic diagram in client, and the client is configured as to synchronous broadcast document,
First choice is uniformly connected and is bundled under administrator's account, logs in and obtain current data after client unlatching,
A playlist is included at least in the current data;
It is synchronized secondly, uploading the data under a presence in a setting time interval, and save/periodically more
Newly;
It is set finally, finding the earliest and online player of login time under administrator's account as reference is played
It is standby, it will be synchronized in the player for being later than above-mentioned login time request synchronization according to the broadcasting object of reference, after synchronizing, according to
The play position of acquisition positions and loads the specified played file in the playlist.
As preferred in the present embodiment, the client includes: appointing for a playing program unit and/or an intelligent box
A kind of play mode,
The playing program unit, to provide a file synchronization node, by described same under administrator's account
It is synchronous with the cloud server to walk node,
Smart box includes: cable interface, AV interface or HDMI interface and power interface, is connect by the power supply
After mouth is powered, AV interface or HDMI interface carry out audio/video playback in connection, by accessing after cable interface and cable grafting
It is synchronous with cloud server after network.
As preferred in the present embodiment, the player is also configured to load above-mentioned played column when the player
When table, into following downloading mode:
The player, which downloads files into, to be locally stored, and is first searched from local when broadcasting, if this document has been deposited
In local, then local file is directly played;If file is not present, broadcasting is downloaded when playing in line file;
The player can all check local storage space before downloading file, if local remaining space reaches the upper limit,
The earliest file downloaded and frequency of use is minimum is deleted, local storage space is discharged.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
In general, the various embodiments of the disclosure can be with hardware or special circuit, software, logic or any combination thereof
Implement.Some aspects can be implemented with hardware, and some other aspect can be implemented with firmware or software, which can
By controller, microprocessor or the execution of other calculating equipment.Although the various aspects of the disclosure be shown and described as block diagram,
Flow chart is indicated using some other drawing, but it is understood that frame described herein, equipment, system, techniques or methods can
In a non limiting manner with hardware, software, firmware, special circuit or logic, common hardware or controller or other calculating
Equipment or some combinations are implemented.
Although this is understood not to require this generic operation suitable shown in addition, operation is described with particular order
Sequence is executed or is executed with generic sequence, or require it is all shown in operate and be performed to realize expected result.In some feelings
Under shape, multitask or parallel processing can be advantageous.Similarly, although the details of several specific implementations is begged in above
By comprising but these are not necessarily to be construed as any restrictions to the scope of the present disclosure, but the description of feature is only needle in
To specific embodiment.Certain features described in some embodiments of separation can also be held in combination in a single embodiment
Row.Mutually oppose, various features described in single embodiment can also be implemented separately in various embodiments or to appoint
The mode of what suitable sub-portfolio is implemented.
Although the disclosure acts to describe with specific structural features and/or method, but it is understood that wanting in appended right
Seek the disclosure limited in book not necessarily.