Video resume method, playback equipment and system
Technical field
The present invention relates to video display arts field, more particularly to a kind of video resume method, playback equipment and system.
Background technology
With " internets+" such as major video website, video App (Application, using), intelligent high definition TVs
Technology is risen, and the pattern that conventional download video is watched is overturned.And with major video website, video App, intelligence
The competition of HDTV, same film source can watch on many websites, video App or smart television.
On the one hand, for a user, there can be more selections, on the other hand, in " micro- epoch " and " multi-screen epoch ".
" micro- epoch " show the new normality of modern society, time fragmentation, so video can only often see one section;" multi-screen ", which represents, sets about
The rise of machine, tablet, TV etc. smart machine, the screen that everyone possesses and contacts is very much, and video is continuous on multi-screen
Broadcast and reformed into new problem.
The content of the invention
The technical problem to be solved in the present invention is in order to overcome the different video source of same video in the prior art multiple
On playback equipment can not continued broadcasting the defects of, there is provided a kind of video resume method, playback equipment and system.
The present invention is to solve above-mentioned technical problem by the following technical programs:
The present invention provides a kind of video resume method, its feature is, comprises the following steps:
The video resume information of the first video source of currently playing video is obtained, the broadcasting video is current for the first equipment
The video of broadcasting;
Playback equipment carries out continued broadcasting matching, if successful match, institute according to the video resume information to the second video source
State playback equipment and continued broadcasting is carried out using the second video source;
Wherein, the playback equipment is the first equipment or the second equipment;
First video source or second video source play for local video source or online video source.
In the present solution, obtain the video resume information of the first video source of the currently playing video of the first equipment, first
Equipment or the second equipment carry out the second video source continued broadcasting matching according to the video resume information got, the first video source or the
Two video sources is local video sources or play video source online, if successful match, the first equipment or the second equipment use second
Video source carry out continued broadcasting, realize multiple playback equipments using same video the continued broadcasting of different video source function, make user without
It need to from the outset repeat to watch, save interrupting time, whenever and wherever possible from the local continued broadcasting of last time viewing, improve user experience.
It is preferred that the video resume information includes the playing progress rate of the broadcasting video, the school of first video source
Test at least one of thumbnail of code, the frame number for playing the currently playing frame of video and currently playing frame.
If it is preferred that first video source is identical local video source, continued broadcasting matching and broadcasting with the second video source
The process that equipment carries out continued broadcasting using the second video source includes:
The playback equipment carries out progress matching using the playing progress rate of the broadcasting video to second video source, if
Successful match, then carry out continued broadcasting using the second video source.
If it is preferred that first video source is different local video sources, continued broadcasting matching and broadcasting from the second video source
The process that equipment carries out continued broadcasting using the second video source includes:
The playback equipment carries out frame using the frame number of the broadcasting currently playing frame of video to second video source
Match somebody with somebody, if successful match, continued broadcasting is carried out using the second video source.
If it is preferred that first video source is identical with the second video source check code, first video source with
Second video source is identical local video source;
If first video source is different from the second video source check code, first video source and described second
Video source is different local video source;
The check code includes md5 check codes or sha1 check codes.
If it is preferred that first video source or second video source play video source to be online, continued broadcasting is matched with broadcasting
Put equipment is included using the process of the second video source progress continued broadcasting:
The playback equipment contracts second video source using the thumbnail of the broadcasting currently playing frame of video
Sketch map matches, if successful match, continued broadcasting is carried out using the second video source.
It is preferred that in the playback equipment using the thumbnail of the broadcasting currently playing frame of video to second video
It is further comprising the steps of before source carries out the step of thumbnail matching:
At the beginning of the playback equipment plays out progress by the playing progress rate of the broadcasting video to second video source
Positioning, then the matched time range of thumbnail is determined by first positioning result.
In the present solution, by before the step of thumbnail matches, playback equipment is by playing the playing progress rate of video
Just positioning is carried out to the second video source, then determines that the matched time range of thumbnail can reduce data meter by first positioning result
Calculation amount, improves matching speed, shortens match time, reduces the hardware calculation amount requirement to playback equipment.
It is preferred that the playback equipment is mobile terminal, computer or smart television.
Present invention also offers a kind of playback equipment, its feature is that the playback equipment includes:Video resume information is adopted
Collect logging modle and matching playing module;
The video resume information gathering logging modle is used for the video resume information for obtaining the first video source;
The matching playing module is used to carry out continued broadcasting matching to the second video source according to the video resume information, if
With success, then continued broadcasting is carried out using the second video source;
First video source plays for local video source or online video source with the second video source.
It is preferred that the check code of playing progress rate of the video resume information including broadcasting video, first video source,
At least one of thumbnail of the frame number for playing the currently playing frame of video and currently playing frame.
It is preferred that the matching playing module, which includes local verification, calculates matched sub-block, frame match query submodule, contracting
Sketch map cache match submodule and broadcasting submodule;
The local verification calculates the check code that matched sub-block is used to calculate first video source and the second video source;
If check code is identical, the first video source is identical local video source with the second video source, uses the playing progress rate for playing video
Progress matching is carried out to second video source;
The frame match query submodule is used for when it is different local video sources that the first video source is from the second video source,
Frame matching is carried out to second video source using the frame number for the currently playing frame for playing video;
It is to broadcast online that the thumbnail cache match submodule, which is used in first video source or second video source,
When putting video source, thumbnail matching is carried out to second video source using the thumbnail of the broadcasting currently playing frame of video;
The broadcasting submodule is used for after successful match, and continued broadcasting is carried out using the second video source.
It is preferred that the matching playing module further includes playing progress rate and just positions submodule;
The playing progress rate is just positioned submodule and is used to be regarded using the broadcasting in the thumbnail cache match submodule
Frequently before the thumbnail of currently playing frame carries out thumbnail matching to second video source, the broadcasting of the broadcasting video is passed through
Progress plays out second video source progress and just positions, then determines the matched time model of thumbnail by first positioning result
Enclose.
Present invention also offers a kind of video resume system, its feature is, which includes some described
Playback equipment.
The positive effect of the present invention is:The present invention can be such that multiple playback equipments are regarded by the difference of same video
Frequency source carries out continued broadcasting to the video, makes the user do not need to repeat to watch, saves interrupting time, whenever and wherever possible from the ground of last time viewing
Square continued broadcasting, improves the practicality of playback equipment, and drastically increases user experience.
Brief description of the drawings
Fig. 1 is the flow chart of the video resume method of the embodiment of the present invention 1;
Fig. 2 is the structure diagram of the playback equipment of the embodiment of the present invention 6;
Fig. 3 is the structure diagram of the playback equipment of the embodiment of the present invention 7.
Embodiment
The present invention is further illustrated below by the mode of embodiment, but does not therefore limit the present invention to the reality
Apply among a scope.
Embodiment 1
As shown in Figure 1, a kind of video resume method, comprises the following steps:
Step 101:Obtain the video resume information of the first video source of currently playing video.The broadcasting video is first
The currently playing video of equipment.
Step 102:Playback equipment carries out continued broadcasting matching according to video resume information to the second video source, judges whether to match
Success.If so, step 103 is performed, if it is not, performing step 104.Wherein, the playback equipment is the first equipment or the second equipment,
First video source or second video source play for local video source or online video source.
Step 103:Playback equipment carries out continued broadcasting using the second video source.
Step 104:Playback equipment is played from the beginning of the second video source.
In the present embodiment, the video resume information of the first video source of the currently playing video of the first equipment is obtained, the
One equipment or the second equipment carry out the second video source continued broadcasting matching according to the video resume information got, the first video source or
Second video source is local video source or plays video source online, if successful match, the first equipment or the second equipment are using the
Two video sources carry out continued broadcasting, realize function of multiple playback equipments using the different video source continued broadcasting of same video, make user
Without repeating to watch from the outset, interrupting time is saved, whenever and wherever possible from the local continued broadcasting of last time viewing, improves user's body
Test.
Embodiment 2
On the basis of embodiment 1, the present embodiment furthermore present video resume information in step 101 include it is described
The playing progress rate of video, the check code of first video source, the frame number for playing video present frame and currently playing frame
At least one of thumbnail.In the present embodiment, the playing progress rate of the video resume information including the video and described
The check code of first video source.
In addition, playback equipment is the first equipment or the second equipment, the first equipment or the second equipment are mobile terminal, computer
Or smart television etc..For example when the first equipment is mobile phone, the second equipment can be the mobile phone different from the first unit type,
It can be tablet computer;When the first equipment is computer, the second equipment can be mobile terminal or smart television, the first equipment
It's not limited to that for selection with the second equipment.
First video source is local video source and online broadcasting video source with second video source, and the local regards
Frequency source refers to the complete video for caching locally downloading (locally referring to the storage hard disk in mobile phone, computer or smart television), institute
The online video source that plays is stated to refer to by the Video Applications software and the video website of access in mobile phone, computer or smart television
On the stream video that plays online.The Video Applications software can be the video playing such as youku.com's application software and Sohu's application software
Application software, the video website include the Online Video websites such as youku.com, Sohu, strange skill.
In the present embodiment, if the first video source and the second video source are identical local video source, the playback equipment
Progress matching is carried out to second video source using the playing progress rate for playing video, if successful match, using the second video
Source carries out continued broadcasting, if it fails to match, is played from the outset using the second video source.
For identical local video source, the first video source can be different from the title of the second video source, but data lattice
Formula, data content and size of data are identical, such as, the first video source is for entitled " name1.MKV ", size of data
1.2G, data content for film Kung Fu Panda video content video source, the second video source be entitled " name2.MKV ",
The video content video source that size of data is 1.2G, data content is also film Kung Fu Panda, then the first video source regarded with second
Frequency source is identical local video source.First video source and the second video source for identical local video source determination methods not
Limit described above.
In the present solution, it is described play video playing progress rate refer to it is described broadcasting video the currently playing intermission, lead to
The playing progress rate that step 101 obtains the first video source is crossed, playing progress rate is stored in locally and is synchronously sent to net by the first equipment
Network server, the webserver are used for the video resume information that video is played described in on-line storage.
If the first equipment carries out continued broadcasting using the second video source.Described in first equipment is obtained from local or the webserver
The playing progress rate of first video source, the first equipment carries out progress matching by the playing progress rate to the second video source, if matching
Success, then carry out continued broadcasting using the second video source from the playing progress rate position.
If the second equipment carries out continued broadcasting using the second video source.Second equipment obtains described the from the webserver
The playing progress rate of one video source, the second equipment by the playing progress rate to the second video source carry out progress matching, if matching into
Work(, then carry out continued broadcasting using the second video source from the playing progress rate position.
In the present embodiment, whether it is identical local video source for first video source and the second video source, leads to
Cross check code to be judged, specific deterministic process is as follows:
The check code of the first video source is obtained by step 101, the check code is stored in local by first equipment
And synchronously it is sent to the webserver.
If the first equipment carries out continued broadcasting using the second video source, the first equipment obtains first from local or the webserver
The check code of video source and compared with the check code of the second video source, if the check code of first video source and described the
The check code of two video sources is identical, then first video source is identical local video source with second video source, otherwise,
First video source is different local video sources from the second video source.
If the second equipment carries out continued broadcasting using the second video source, the second equipment obtains the first video source from the webserver
Check code and compared with the check code of the second video source, if the check code of first video source and second video
The check code in source is identical, then first video source is identical local video source with second video source, and otherwise, first regards
Frequency source is different local video sources from the second video source.
The check code includes md5 check codes or sha1 check codes.
The present embodiment carries out matching continued broadcasting by playing progress rate and check code to the second video source, realizes multiple broadcastings and sets
The function of the standby different video source continued broadcasting using same video, makes the user do not need to repeat from the outset, saves interrupting time, at any time with
Ground improves user experience from the local continued broadcasting of last time viewing.
Embodiment 3
Embodiment 3 is substantially the same manner as Example 2, and difference is, the video resume information in the present embodiment includes the
The check code of one video source and the frame number for playing the currently playing frame of video.
If first video source is different local video sources from the second video source, the playback equipment is broadcast using described
The frame number for putting the currently playing frame of video carries out frame matching to second video source, if successful match, using the second video source
Continued broadcasting is carried out, if it fails to match, is played from the outset using the second video source.
For different local video sources, the first video source can be identical with the title of the second video source, but data lattice
Formula, data content or size of data are different, such as, the first video source is for entitled " name1.MKV ", size of data
1.2G, data content for film Kung Fu Panda video content video source, the second video source be entitled " name1.AVI ",
The video content video source that size of data is 1.1G, data content is also film Kung Fu Panda, then the first video source regarded with second
Frequency source is different local video source.First video source and the second video source for different local video sources determination methods not
Limit described above.
In the present solution, due to playing video by having the data frame of order frame number to form one by one, by step 101
The frame number of the currently playing frame of the first video source of currently playing video is obtained, frame number is stored in local and synchronous by the first equipment
It is sent to the webserver.
If the first equipment carries out continued broadcasting using the second video source.Described in first equipment is obtained from local or the webserver
The frame number of the currently playing frame of first video source, the first equipment carry out frame matching by the frame number to the second video source, if
With success, then continued broadcasting is carried out from the frame number position using the second video source.
If the second equipment carries out continued broadcasting using the second video source.Second equipment obtains described the from the webserver
The frame number of the currently playing frame of one video source, the second equipment carries out frame matching by the frame number to the second video source, if matching
Success, then carry out continued broadcasting using the second video source from the frame number position.
The present embodiment carries out matching continued broadcasting by the frame number and check code for playing the currently playing frame of video to the second video source,
Function of multiple playback equipments using the different video source continued broadcasting of same video is realized, makes the user do not need to repeat from the outset, is saved
Interrupting time is saved, whenever and wherever possible from the local continued broadcasting of last time viewing, improves user experience.
Embodiment 4
Embodiment 4 is substantially the same manner as Example 3, and difference is, the video resume information in the present embodiment includes institute
State the thumbnail of the frame number and currently playing frame that play the currently playing frame of video.
If first video source or second video source are online broadcasting video source, described in the playback equipment use
The thumbnail for playing the currently playing frame of video carries out thumbnail matching to second video source, if successful match, using the
Two video sources carry out continued broadcasting.
If in the present solution, first video source plays video source to be online, second video source can be local
Video source is playing video source;If second video source plays video source to be online, the first video source is local video source.
The frame number of the currently playing frame of currently playing video and the thumbnail of currently playing frame are obtained by step 101, it is described
The corresponding thumbnail of video flowing that thumbnail caches for Video Applications software or video website, the first equipment will be described currently playing
The thumbnail of the frame number of frame and the currently playing frame is stored in locally and is synchronously sent to the webserver.
If the first equipment carries out continued broadcasting using the second video source.Described in first equipment is obtained from local or the webserver
The thumbnail of the frame number of currently playing frame and currently playing frame.First equipment contracts the second video source by the thumbnail
Sketch map matches, if successful match, continued broadcasting is carried out from the thumbnail position using the second video source.
If the second equipment carries out continued broadcasting using the second video source.Second equipment obtains described first from the webserver and regards
The currently playing frame of frequency source and the thumbnail of currently playing frame.Second equipment contracts the second video source by the thumbnail
Sketch map matches, if successful match, continued broadcasting is carried out from the thumbnail position using the second video source.
The present embodiment carries out matching continued broadcasting by the frame number and thumbnail for playing the currently playing frame of video to the second video source,
Function of multiple playback equipments using the different video source continued broadcasting of same video is realized, makes the user do not need to repeat from the outset, is saved
Interrupting time is saved, whenever and wherever possible from the local continued broadcasting of last time viewing, improves user experience.
Embodiment 5
Embodiment 5 has made further improvement on the basis of embodiment 4, thes improvement is that:The video resume letter
Breath further includes the playing progress rate of the broadcasting video;Also, use the broadcasting currently playing frame of video in the playback equipment
Thumbnail to second video source carry out thumbnail matching the step of before, the playback equipment passes through the broadcasting video
Playing progress rate progress played out to second video source just position, then determine that thumbnail is matched by first positioning result
Time range.
The playing progress rate of the first video source of currently playing video, currently playing frame are obtained by step 101 and is currently broadcast
Put the thumbnail of frame, the corresponding thumbnail of video flowing that the thumbnail caches for Video Applications software or video website, first
The thumbnail of the playing progress rate, the currently playing frame and the currently playing frame is stored in local and synchronously sent by equipment
To the webserver.
Since the thumbnail of the different online playing progress rates for playing video source, currently playing frame and currently playing frame has
Difference, therefore before thumbnail matching is carried out, the first positioning of progress can be played out to the second video source, to determine breviary
Scheme matched time range, playback equipment carries out just positioning, then pass through by playing the playing progress rate of video to the second video source
First positioning result determines that the matched time range of thumbnail can reduce data calculation amount, improves matching speed, when shortening matching
Between, reduce the hardware calculation amount requirement to playback equipment.
If the first equipment carries out continued broadcasting using the second video source.Described in first equipment is obtained from local or the webserver
The thumbnail of the playing progress rate of first video source, currently playing frame and currently playing frame.Breviary is determined by the playing progress rate
Scheme matched time range, the first equipment carries out thumbnail matching by the thumbnail to the second video source, if successful match,
Continued broadcasting is then carried out from the thumbnail position using the second video source.
If the second equipment carries out continued broadcasting using the second video source.Second equipment obtains described first from the webserver and regards
The thumbnail of the playing progress rate of frequency source, currently playing frame and currently playing frame.Determine that thumbnail matches by the playing progress rate
Time range, the second equipment by the thumbnail to the second video source carry out thumbnail matching, if successful match, use
Second video source carries out continued broadcasting from the thumbnail position.
Embodiment 6
As shown in Fig. 2, a kind of playback equipment, including video resume information gathering logging modle 31 and matching playing module
32。
The video resume information gathering logging modle 31 is used for the video resume information for obtaining the first video source.
The matching playing module 32 is used to carry out continued broadcasting matching to the second video source according to the video resume information, if
Successful match, then carry out continued broadcasting using the second video source;First video source and the second video source for local video source or
Line plays video source.
The playback equipment of the present embodiment has the function of video resume, and continued broadcasting matching is carried out by obtaining video resume information,
Continued broadcasting is carried out using different video sources, improves the practicality and user experience of playback equipment.
Embodiment 7
On the basis of embodiment 6, the matching playing module 32 in the present embodiment further includes local verification and calculates matching
At the beginning of module 321, frame match query submodule 322, thumbnail cache match submodule 323, broadcasting submodule 324 and playing progress rate
Position submodule 325.In addition, the video resume information includes playing playing progress rate, the school of first video source of video
Test at least one of thumbnail of code, the frame number for playing the currently playing frame of video and currently playing frame.
The local verification calculates the verification that matched sub-block 321 is used to calculate first video source and the second video source
Code;If check code is identical, the first video source is identical local video source with the second video source, using play video broadcasting into
Degree carries out progress matching to second video source.
It is different local video sources from the second video source that the frame match query submodule 322, which is used in the first video source,
When, frame matching is carried out to second video source using the frame number for the currently playing frame for playing video.
The thumbnail cache match 323 is used to regard for online broadcasting in first video source or second video source
During frequency source, thumbnail matching is carried out to second video source using the thumbnail of the broadcasting currently playing frame of video.
The broadcasting submodule 324 is used for after successful match, and continued broadcasting is carried out using the second video source.After it fails to match
Played from the outset using the second video source.
The playing progress rate just positions submodule 325 and is used for described in 323 use of thumbnail cache match submodule
Before the thumbnail of the broadcasting currently playing frame of video carries out thumbnail matching to second video source, pass through the broadcasting video
Playing progress rate progress played out to second video source just position, then determine that thumbnail is matched by first positioning result
Time range.Determine that the matched time range of thumbnail can reduce data calculation amount by first positioning result, improve matching speed
Degree, shortens match time, reduces the hardware calculation amount requirement to playback equipment.
The course of work of the playback equipment of the present embodiment is specifically described below:
First, video resume information gathering logging modle 31 obtains the video resume information of the first video source.
Match playing module 32 and continued broadcasting matching carries out the second video source according to the video resume information, matching plays mould
It is as follows that block 32 carries out the matched process of continued broadcasting:
Local verification calculates the check code that matched sub-block 321 calculates the first video source and the second video source, if check code
Identical, then the first video source is identical local video source with the second video source, thereby using the playing progress rate pair for playing video
Second video source carries out progress matching;If check code is different, the first video source is different local videos from the second video source
Source, so that by frame match query submodule 322 using the frame number for the currently playing frame for playing video to second video source
Carry out progress matching.When first video source or second video source is play video source online, playing progress rate is just fixed
Bit submodule 325 plays out second video source progress by the playing progress rate of the video and just positions, then by first
Positioning result determines the matched time range of thumbnail, and by the time range, thumbnail cache match submodule 323 uses
The thumbnail for playing video present frame carries out thumbnail matching to second video source;If successful match, submodule is played
Block 324 carries out continued broadcasting using the second video source, if it fails to match, plays submodule 324 and is played from the outset using the second video element.
In the present embodiment, by the continued broadcasting to local video source or Online Video source, playback equipment is made using different
Video source watched without repeating from the outset every time when playing out, save interrupting time, can be whenever and wherever possible from upper one
The local continued broadcasting of secondary viewing, improves user experience.
Embodiment 7
A kind of video resume system, including some playback equipments as described in Example 6, the playback equipment can be hand
Machine, computer, smart television etc..
In the present embodiment, the interconnection of some playback equipments in the video resume system is passed through, it is possible to achieve different
Playback equipment carries out continued broadcasting by different video sources to same video.For example a local is seen using a playback equipment
The serial completely downloaded, the playback equipment can by the playing progress rate for the serial currently seen, check code, currently playing frame and work as
The preceding thumbnail for playing frame is saved in local and synchronized upload and is seen online by youku.com's application software to high in the clouds, another playback equipment
See the serial, another playback equipment obtains the thumbnail from high in the clouds and the video source in youku.com's application software is carried out
Matching, if successful match, another playback equipment carries out continued broadcasting by the video source in youku.com's application software.The broadcasting
Equipment can be mobile phone, and another playback equipment can be smart television or tablet, playback equipment it is specifically chosen be not limited to
It is upper described.
By carrying out continued broadcasting matching by different video sources between distinct device, make the user do not need to repeat to see from the outset
See, save interrupting time, whenever and wherever possible from the local continued broadcasting of last time viewing, improve user experience.
Although the foregoing describing the embodiment of the present invention, it will be appreciated by those of skill in the art that these
It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back
On the premise of from the principle of the present invention and essence, various changes or modifications can be made to these embodiments, but these are changed
Protection scope of the present invention is each fallen within modification.