CN103905897A - Video playing device and method thereof - Google Patents

Video playing device and method thereof Download PDF

Info

Publication number
CN103905897A
CN103905897A CN201410164736.2A CN201410164736A CN103905897A CN 103905897 A CN103905897 A CN 103905897A CN 201410164736 A CN201410164736 A CN 201410164736A CN 103905897 A CN103905897 A CN 103905897A
Authority
CN
China
Prior art keywords
video
module
play
downloaded
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410164736.2A
Other languages
Chinese (zh)
Inventor
张金良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media 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 Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201410164736.2A priority Critical patent/CN103905897A/en
Publication of CN103905897A publication Critical patent/CN103905897A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video playing device. The device comprises a downloading module, a de-encapsulation module, a playing module, a module for acquiring downloaded total frames, a module for acquiring played total frames, a module for acquiring frames of a video to be played, a comparing module and a playing control module, wherein the downloading module is used for downloading video files from a video source; the de-encapsulation module is used for conducting de-encapsulation on the downloaded video files from the downloading module to acquire video frame series and audio frame series; the playing control module is used for conducting decoding on the video frame series and the audio frame series to play audio video data; the module for acquiring the downloaded total frames is used for acquiring the downloaded total frames of the video from the downloading module; the module for acquiring the played total frames is used for acquiring the played total frames of the video of the playing module; the module for acquiring the frames of a video to be played is used for acquiring the video frames which have been downloaded but have not been played; the comparing module is used for comparing the video frames which have been downloaded but have not been played with the preset threshold value and judging whether the video frames which have been downloaded but have not been played are larger than the threshold value or not; the playing control module is used for controlling the playing of the playing module according to the judged result of the comparing module. The invention further provides a video playing method.

Description

A kind of video play device and player method thereof
technical field:
The present invention relates to a kind of video file play-back technology of the Internet, particularly a kind of video play device and player method thereof of real-time broadcasting or program request of serving video.
background technology:
User is seeing a film, just block suddenly, but sound still continues playing, and be exactly that image has blocked, and whole picture also fixes while seeing.This phenomenon can continue several seconds.
For example, HLS player is based on http agreement foradownloaded video data and realize and playing, when no matter network state is single-threaded or the speed downloaded of the multithreading speed that cannot catch up with broadcasting will cause the card of video playback to pause in a kind of extreme not good situation.Or the speed that also can cause download in the case of the of short duration suspension of some burst cannot be caught up with the speed of broadcasting and cause the card of video playback to pause.Once and the phenomenon that this video card pauses occurred, can not recover smooth playing even if follow-up speed of download has been caught up with broadcasting speed at once yet.
Therefore,, in the situation that network speed is not good, can causes player in the time of displaying video, to occur frequent card, thereby affect user's experience.
summary of the invention:
For video player, the speed of download of so that video file data slow at network speed is lower than broadcasting speed, or in the case of the suspension of burst, the card that causes video video, audio frequency to play paused, and has a strong impact on user's the experience of viewing and admiring.Cannot catch up with the video that broadcasting speed causes, the problem that audio card is paused in order to solve because of speed of download, the present invention has designed a kind of technical scheme for according to network state, control on one's own initiative broadcasting and the time-out of video file, and point out user current network state in the time playing time-out.
The technical solution adopted for the present invention to solve the technical problems is as follows:
The invention provides a kind of video play device, comprising: download module, for from video source downloading video files; Decapsulation module, carries out decapsulation for the described video file that described download module is downloaded, and obtains sequence of frames of video and audio frame sequence; Playing module, for described sequence of frames of video and described audio frame sequence are decoded, and carries out the broadcasting of audio, video data; The totalframes acquisition module of having downloaded, the video totalframes of having downloaded for obtaining described download module; The totalframes acquisition module of having play, the video totalframes of having play for obtaining described playing module; Video frame number acquisition module to be played, for obtaining the video frame number of downloading but do not play; Comparison module, for by having downloaded described in relatively but the video frame number of not playing and in advance predetermined threshold value, has downloaded described in judgement but whether the video frame number do not play is greater than described threshold value; Transmit control module, the broadcasting of playing module described in the judged result control based on described comparison module.
Preferably, described video play device, also comprise: time block, for periodically starting at regular intervals described comparison module by video frame number and the described threshold value downloaded described in relatively but do not play, and described in judgement, download but whether the video frame number do not play is greater than described threshold value.
Preferably, described video play device, also comprises: memory module, and by storage relevant data and parameter.
Preferably, the buffering area that described memory module is described playing module.
Preferably, in the time that the video frame number of having downloaded described in described comparison module judgement but do not play is less than or equal to described threshold value, described transmit control module suspends the broadcasting of described playing module.
Preferably, described video play device also comprises reminding module, in the time that the described video frame number of having downloaded but do not play is less than or equal to described threshold value, sends prompting to user.
Preferably, described user can also determine that whether suspending described playing module carries out the broadcasting of audio, video data according to described prompting.
Preferably, described in, prompt for that network disconnects temporarily or network speed is slow.
Preferably, described download module can also judge whether frame of video all in described video file is downloaded completely; In the time that described download module judges that frame of video all in described video file has been downloaded completely, without having downloaded described in carrying out but the video frame number of not playing and the comparison of described threshold value, and directly play by described playing module.
Preferably, described comparison module is by having downloaded described in relatively but the video frame number of not playing and in advance predetermined another threshold value, downloaded described in judgement but whether the video frame number do not play is greater than described another threshold value; In the time that the video frame number of having downloaded described in described comparison module judgement but do not play is greater than described threshold value but is less than or equal to described another threshold value, described transmit control module suspends the broadcasting of described playing module.
The present invention also provides a kind of video broadcasting method, comprises the following steps: download step, from video source downloading video files; Decapsulation step, carries out decapsulation to the described video file of downloading in described download step, obtains sequence of frames of video and audio frame sequence; Play step, described sequence of frames of video and described audio frame sequence are decoded, and carry out the broadcasting of audio, video data; The totalframes obtaining step of having downloaded, obtains the video totalframes of having downloaded in described download step; The totalframes obtaining step of having play, obtains the video totalframes of having play in described broadcasting step; Video frame number obtaining step to be played, obtains the video frame number of downloading but do not play; Comparison step, by having downloaded described in relatively but the video frame number of not playing and in advance predetermined threshold value, has downloaded described in judgement but whether the video frame number do not play is greater than described threshold value; Play Control step, plays the playback action in step described in the judged result control based in described comparison step.
Preferably, described video broadcasting method, also comprise: timing step, periodically starts at regular intervals described comparison step by having downloaded described in relatively but video frame number and the described threshold value do not play, and described in judgement, downloaded but whether the video frame number do not play is greater than described threshold value.
Preferably, described video broadcasting method, also comprises: storing step, store relevant data and parameter.
Preferably, described storing step by described relevant data and Parameter storage in the buffering area of playing module.
Preferably, in the time that the video frame number of having downloaded described in judgement in described comparison step but do not play is less than or equal to described threshold value, in described Play Control step, suspend the broadcasting of described playing module.
Preferably, described video broadcasting method also comprises prompting step, in the time that the described video frame number of having downloaded but do not play is less than or equal to described threshold value, sends prompting to user.
Preferably, described user can also determine that whether suspending described playing module carries out the broadcasting of audio, video data according to described prompting.
Preferably, described in, prompt for that network disconnects temporarily or network speed is slow.
Preferably, in described download step, can also judge whether frame of video all in described video file is downloaded completely; In the time enough judging that in described download step frame of video all in described video file has been downloaded completely, without having downloaded described in carrying out but the video frame number of not playing and the comparison of described threshold value, and directly play in described broadcasting step.
Preferably, in described comparison step, also by having downloaded described in relatively but the video frame number of not playing and in advance predetermined another threshold value, downloaded described in judgement but whether the video frame number do not play is greater than described another threshold value; In the time that the video frame number of having downloaded described in judgement in described comparison step but do not play is greater than described threshold value but is less than or equal to described another threshold value, described Play Control step is suspended the playback action of described playing module.
By implementing technical scheme of the present invention, in the time that the speed of download of video file cannot be caught up with broadcasting speed, player is by the reason of suspending on one's own initiative playing video file and pointing out user to suspend, rather than the phenomenon that appearance card pauses passively, for user provides a kind of experience of better viewing and admiring.
accompanying drawing explanation:
Fig. 1 is the structured flowchart of the video play device that relates to of embodiment of the present invention;
Fig. 2 is the flow chart of the video playback that relates to of embodiment of the present invention;
Fig. 3 is the flow chart of the video playback that relates to of another execution mode of the present invention.
embodiment:
Illustrated embodiment is set forth this invention with reference to the accompanying drawings below.
Fig. 1 has shown the structured flowchart of the video play device that embodiment of the present invention relates to.As shown in Figure 1, above-mentioned video play device comprises download module 1, memory module 2, decapsulation module 3, playing module 4, the totalframes acquisition module 5 of having downloaded, the totalframes acquisition module 6 of having play, video frame number acquisition module 7 to be played, comparison module 8, time block 9, reminding module 10, transmit control module 11 and bus 12, wherein download module 1, memory module 2, decapsulation module 3, playing module 4, the totalframes acquisition module 5 of having downloaded, the totalframes acquisition module 6 of having play, video frame number acquisition module 7 to be played, comparison module 8, time block 9, reminding module 10 is connected by bus 12 with transmit control module 11.
Above-mentioned download module 1 is for for example, from video source (webserver) downloading video files, and downloaded video file is stored in above-mentioned memory module 2.Above-mentioned decapsulation module 3 is carried out decapsulation for the video file that above-mentioned download module 1 is downloaded, and obtains sequence of frames of video and audio frame sequence, and above-mentioned sequence of frames of video and above-mentioned audio frame sequence are stored in above-mentioned memory module 2.Above-mentioned playing module 4 is for decoding to above-mentioned sequence of frames of video and above-mentioned audio frame sequence, and carry out the broadcasting of audio, video data, will above-mentioned sequence of frames of video and above-mentioned audio frame sequence be decoded to obtained Parameter storage in above-mentioned memory module 2 simultaneously.
The video totalframes that the above-mentioned totalframes acquisition module 5 of having downloaded has been downloaded for obtaining above-mentioned download module 1.The video totalframes that the above-mentioned totalframes acquisition module 6 of having play has been play for obtaining above-mentioned playing module 4.Above-mentioned video frame number acquisition module 7 to be played is for obtaining the video frame number of downloading but do not play.Wherein, the sequence of frames of video that the above-mentioned totalframes acquisition module 5 of having downloaded obtains based on above-mentioned decapsulation module 3 decapsulations obtains the video totalframes of having downloaded, the above-mentioned totalframes acquisition module 6 of having play by the video frame number that calculates above-mentioned playing module 4 and play to obtain the video totalframes of having play, above-mentioned video frame number acquisition module 7 to be played deducts by the above-mentioned video totalframes of having downloaded that the above-mentioned totalframes acquisition module 5 of having downloaded is obtained the above-mentioned video totalframes of having play that the above-mentioned totalframes acquisition module 6 of having play obtains, obtain the above-mentioned video frame number of having downloaded but do not play.Above-mentioned comparison module 8 has been downloaded but the video frame number of broadcasting and in advance predetermined threshold value for more above-mentioned, and judges whether the above-mentioned video frame number of having downloaded but do not play is greater than above-mentioned threshold value.
For periodically starting at regular intervals, above-mentioned comparison module 8 is more above-mentioned have been downloaded but the video frame number of broadcasting and in advance predetermined threshold value above-mentioned time block 9, and judges whether the above-mentioned video frame number of having downloaded but do not play is greater than above-mentioned threshold value.Wherein, above-mentioned certain hour is a time interval of setting in advance.For example, above-mentioned certain hour can be set as to 1 second, above-mentioned time block 9 periodically started the more above-mentioned video frame number of having downloaded but do not play of above-mentioned comparison module 8 and prior predetermined threshold value every one second, and judged whether the above-mentioned video frame number of having downloaded but do not play is greater than above-mentioned threshold value.
Above-mentioned reminding module 10 for sending prompting to user in the time that the above-mentioned video frame number of having downloaded but do not play is less than or equal to above-mentioned threshold value.Wherein, the content of above-mentioned prompting can be the contents such as the interim disconnection of the slow or network of current network speed.Above-mentioned transmit control module 11 suspends broadcasting for control above-mentioned playing module 4 in the time that the above-mentioned video frame number of having downloaded but do not play is less than or equal to above-mentioned threshold value.
In the above-described embodiment, the buffering area that above-mentioned memory module 2 can be above-mentioned playing module 4.
Fig. 2 is the flow chart of the video playback that relates to of embodiment of the present invention.The processing procedure of the video playback relating in present embodiment is described with reference to Fig. 2 below.
Start above-mentioned video play device, above-mentioned download module 1 is for example, from video source (webserver) downloading video files, and downloaded video file is stored in above-mentioned memory module 2 (step S1).Above-mentioned decapsulation module 3 reads the video file that above-mentioned download module 1 is downloaded from above-mentioned memory module 2, above-mentioned video file is carried out to decapsulation, obtain sequence of frames of video and audio frame sequence, and the relevant parameter that above-mentioned sequence of frames of video and above-mentioned audio frame sequence and decapsulation obtain is stored in above-mentioned memory module 2 (step S2).The sequence of frames of video that the above-mentioned totalframes acquisition module 5 of having downloaded obtains based on above-mentioned decapsulation module 3 decapsulations obtains the video totalframes (step S3) of having downloaded.For example, the video totalframes that the parameter acquiring about sequence of frames of video that the decapsulation of the above-mentioned totalframes acquisition module 5 of having downloaded based on storing in above-mentioned memory module 2 obtains has been downloaded.
Above-mentioned download module 1 judges whether above-mentioned video file downloads complete (step S4).Preferably, above-mentioned download module 1 can judge whether above-mentioned video file is downloaded complete according to the amount of the size information of above-mentioned video file and the video file of having downloaded.For example, above-mentioned download module 1 can for example, for example, judge that according to the amount (60MB) of the size information of above-mentioned video file (100MB) and the video file of having downloaded above-mentioned video file do not download complete, also remain 40MB, or for example, for example, judge that according to the amount (100MB) of the size information of above-mentioned video file (100MB) and the video file downloaded above-mentioned video file downloaded completely, also remain 0MB.
Do not download (step S4: no) when complete when above-mentioned download module 1 judges above-mentioned video file, the process of the above-mentioned totalframes acquisition module 6 of having play based on above-mentioned playing module 4, obtains the video totalframes (step S5) of having play.Wherein, before above-mentioned playing module 4 starts to play, it is 0 that the above-mentioned totalframes acquisition module 6 of having play obtains the video totalframes that above-mentioned playing module 4 play.For example, the above-mentioned totalframes acquisition module 6 of having play, based on above-mentioned playing module 4 parameter about frame of video that above-mentioned sequence of frames of video obtains of decoding, obtains the video totalframes of having play.
The video totalframes of having play that the totalframes of having downloaded that above-mentioned video frame number acquisition module 7 to be played obtains based on the above-mentioned totalframes acquisition module 5 of having downloaded and the above-mentioned totalframes acquisition module 6 of having play obtain, obtains the video frame number (step S6) of downloading but do not play.
Above-mentioned time block 9 calculate from above-mentioned download module 1 start to download above-mentioned video file or from the last time calculate reproduction time while completing institute's elapsed time (step S7), and judge whether above-mentioned institute elapsed time reaches predetermined certain hour (step S8) in advance.Namely, if above-mentioned download module 1 has just started to download above-mentioned video file, from starting to download above-mentioned video file, calculate institute's elapsed time; If above-mentioned time block 9 had calculated institute's elapsed time, calculate next institute elapsed time when institute's elapsed time completes calculating.If above-mentioned institute elapsed time does not reach described certain hour (step S8: no), above-mentioned time block 9 judges whether to calculate for the first time institute's elapsed time (step S9).If calculate for the first time institute's elapsed time (step S9: be), above-mentioned time block 9 continues to calculate institute's elapsed time.If not first calculating institute's elapsed time (step S9: no), above-mentioned playing module 4 continues audio, video data.If above-mentioned institute elapsed time reaches described certain hour (step S8: be), above-mentioned time block 9 starts the more above-mentioned video frame number of having downloaded but do not play of above-mentioned comparison module 8 and prior predetermined threshold value, and judges whether the above-mentioned video frame number of having downloaded but do not play is greater than predetermined threshold value (step S10) in advance.
If above-mentioned comparison module 8 judges the above-mentioned video frame number of having downloaded but do not play and be greater than in advance predetermined threshold value (step S10: be), above-mentioned transmit control module 11 is controlled above-mentioned playing module 4 and is carried out the broadcasting (step S11) of audio, video data.For example, it is 150 frames that the above-mentioned totalframes acquisition module 5 of having downloaded obtains the video totalframes of having downloaded, it is 100 frames that the above-mentioned totalframes acquisition module 6 of having play obtains the video totalframes of having play, above-mentioned threshold value is set as 30 frames in advance, the above-mentioned video frame number of having downloaded but do not play is 50 frames (150 frames deduct 100 frames), it is greater than above-mentioned threshold value 30 frames, that is: the above-mentioned video frame number of having downloaded but do not play is greater than predetermined threshold value in advance, and above-mentioned playing module 4 carries out the broadcasting of audio, video data.
If above-mentioned comparison module 8 judges the above-mentioned video frame number of having downloaded but do not play and is less than or equal to predetermined threshold value (step S10: no) in advance, above-mentioned playing module 4 suspends the broadcasting of carrying out audio, video data, above-mentioned reminding module 9 sends prompting (step S12) to user simultaneously, and waits for the continuation download of above-mentioned download module 1.For example, it is 150 frames that the above-mentioned totalframes acquisition module 5 of having downloaded obtains the video totalframes of having downloaded, it is 130 frames that the above-mentioned totalframes acquisition module 6 of having play obtains the video totalframes of having play, above-mentioned threshold value is set as 30 frames equally in advance, the above-mentioned video frame number of having downloaded but do not play is 20 frames (150 frames deduct 130 frames), it is less than above-mentioned threshold value 30 frames, that is: the above-mentioned video frame number of having downloaded but do not play is less than predetermined threshold value in advance, above-mentioned playing module 4 suspends the broadcasting of carrying out audio, video data, above-mentioned reminding module 9 sends prompting to user simultaneously.
Above-mentioned transmit control module 11 judges whether all audio, video datas of above-mentioned video file all finish (step S13).For example, above-mentioned transmit control module 11 can judge whether all audio, video datas of above-mentioned video file all finish by the relevant parameter based on the above-mentioned sequence of frames of video gained of decoding of storage in above-mentioned memory module 2.If above-mentioned transmit control module 10 judges all audio, video datas of above-mentioned video file and all finishes (step S13: be), the broadcasting of above-mentioned playing module 4 end-sound video datas.If above-mentioned transmit control module 10 judges all audio, video datas of above-mentioned video file and all do not finish (step S13: no), above-mentioned playing module 4 is proceeded the broadcasting of audio, video data.
Fig. 3 is the flow chart of the video playback that relates to of another execution mode of the present invention.The processing procedure of the video playback relating in present embodiment is described with reference to Fig. 3 below.Step S101~S109 in another execution mode shown in Fig. 3 is identical with the step S1~S9 in the execution mode shown in Fig. 2, and step S102-S114 in another execution mode shown in Fig. 3 is identical with the step S11~S13 in the execution mode shown in Fig. 2, no longer repeats at this.
In step S110, above-mentioned time block 9 starts the more above-mentioned video frame number of having downloaded but do not play of above-mentioned comparison module 8 and prior predetermined threshold value, and judges whether the above-mentioned video frame number of having downloaded but do not play is greater than predetermined threshold value in advance.
If above-mentioned comparison module 8 judges the above-mentioned video frame number of having downloaded but do not play and be greater than in advance predetermined threshold value (step S110: be), above-mentioned comparison module 8 judges that the above-mentioned video frame number of having downloaded but do not play is greater than predetermined large another threshold value (step S111) of the above-mentioned threshold value of ratio in advance.If above-mentioned comparison module 8 judges the above-mentioned video frame number of having downloaded but do not play and be greater than above-mentioned another threshold value (step S111: be), above-mentioned transmit control module 11 is controlled above-mentioned playing module 4 and is carried out the broadcasting (step S112) of audio, video data.Difference between above-mentioned threshold value and above-mentioned another threshold value, can set according to the actual requirements.For example, it is 150 frames that the above-mentioned totalframes acquisition module 5 of having downloaded obtains the video totalframes of having downloaded, it is 100 frames that the above-mentioned totalframes acquisition module 6 of having play obtains the video totalframes of having play, above-mentioned threshold value is set as 30 frames in advance, and above-mentioned another threshold value is set as 40 frames in advance, the above-mentioned video frame number of having downloaded but do not play is 50 frames (150 frames deduct 100 frames), it is greater than above-mentioned threshold value 30 frames and above-mentioned another threshold value 40 frames, that is: the above-mentioned video frame number of having downloaded but do not play is greater than in advance predetermined threshold value and another threshold value, above-mentioned playing module 4 carries out the broadcasting of audio, video data.
If above-mentioned comparison module 8 judges the above-mentioned video frame number of having downloaded but do not play and is greater than above-mentioned threshold value (step S110: be), but be less than or equal to above-mentioned another threshold value (step S111: no), above-mentioned transmit control module 11 is controlled above-mentioned playing module 4 and is suspended the broadcasting (step S113) of carrying out audio, video data.For example, it is 150 frames that the above-mentioned totalframes acquisition module 5 of having downloaded obtains the video totalframes of having downloaded, it is 115 frames that the above-mentioned totalframes acquisition module 6 of having play obtains the video totalframes of having play, above-mentioned threshold value is set as 30 frames in advance, and above-mentioned another threshold value is set as 40 frames in advance, the above-mentioned video frame number of having downloaded but do not play is 35 frames (150 frames deduct 115 frames), it is greater than above-mentioned threshold value 30 frames but is less than above-mentioned another threshold value 40 frames, that is: the above-mentioned video frame number of having downloaded but do not play is greater than prior predetermined threshold value but is less than another threshold value, above-mentioned playing module 4 suspends the broadcasting of carrying out audio, video data.
If above-mentioned comparison module 8 judges the above-mentioned video frame number of having downloaded but do not play and is less than or equal to predetermined threshold value (step S110: no) in advance, above-mentioned playing module 4 suspends the broadcasting of carrying out audio, video data, above-mentioned reminding module 9 sends prompting (step S113) to user simultaneously, and waits for the continuation download of above-mentioned download module 1.For example, it is 150 frames that the above-mentioned totalframes acquisition module 5 of having downloaded obtains the video totalframes of having downloaded, it is 130 frames that the above-mentioned totalframes acquisition module 6 of having play obtains the video totalframes of having play, above-mentioned threshold value is set as 30 frames equally in advance, the above-mentioned video frame number of having downloaded but do not play is 20 frames (150 frames deduct 130 frames), it is less than above-mentioned threshold value 30 frames, that is: the above-mentioned video frame number of having downloaded but do not play is less than predetermined threshold value in advance, above-mentioned playing module 4 suspends the broadcasting of carrying out audio, video data, above-mentioned reminding module 9 sends prompting to user simultaneously.
In the above-described embodiment, be less than or equal in advance predetermined threshold value if above-mentioned comparison module 8 judges the above-mentioned video frame number of having downloaded but do not play, above-mentioned transmit control module 11 is controlled above-mentioned playing module 4 and is suspended the broadcasting of carrying out audio, video data.The invention is not restricted to this, if above-mentioned comparison module 8 judges the above-mentioned video frame number of having downloaded but do not play and is less than or equal to predetermined threshold value in advance, above-mentioned reminding module 9 sends prompting to user, and this user determines that according to this prompting whether suspending above-mentioned playing module 4 carries out the broadcasting of audio, video data.
In the above-described embodiment, can in above-mentioned video play device, arrange one for setting the time setting module of above-mentioned certain hour, user can set neatly by above-mentioned time setting module the value of above-mentioned certain hour.
In the above-described embodiment, can in above-mentioned video play device, arrange one for setting the Threshold module of above-mentioned threshold value and above-mentioned another threshold value, user can by above-mentioned Threshold module set neatly above-mentioned threshold value or and above-mentioned another threshold value, thereby make user can control neatly the playback action of above-mentioned playing module 4.
Aforesaid detailed description and accompanying drawing are undertaken by literal interpretation and diagram, and its object does not lie in the protection range that limits claim.Each mutation of embodiment in this specification is apparent for those of ordinary skill, and in protection range in claim and equivalent technologies thereof.

Claims (20)

1. a video play device, comprising:
Download module, for from video source downloading video files;
Decapsulation module, carries out decapsulation for the described video file that described download module is downloaded, and obtains sequence of frames of video and audio frame sequence;
Playing module, for described sequence of frames of video and described audio frame sequence are decoded, and carries out the broadcasting of audio, video data;
The totalframes acquisition module of having downloaded, the video totalframes of having downloaded for obtaining described download module;
The totalframes acquisition module of having play, the video totalframes of having play for obtaining described playing module;
Video frame number acquisition module to be played, for obtaining the video frame number of downloading but do not play;
Comparison module, for by having downloaded described in relatively but the video frame number of not playing and in advance predetermined threshold value, has downloaded described in judgement but whether the video frame number do not play is greater than described threshold value;
Transmit control module, the broadcasting of playing module described in the judged result control based on described comparison module.
2. video play device according to claim 1, also comprises:
Time block, for periodically starting at regular intervals described comparison module by having downloaded described in relatively but video frame number and the described threshold value do not play, and has downloaded described in judgement but whether the video frame number do not play is greater than described threshold value.
3. video play device according to claim 1, also comprises:
Memory module, by storage relevant data and parameter.
4. video play device according to claim 3, is characterized in that:
Described memory module is the buffering area of described playing module.
5. according to the video play device described in claim 1~4, it is characterized in that:
In the time that the video frame number of having downloaded described in described comparison module judgement but do not play is less than or equal to described threshold value, described transmit control module suspends the broadcasting of described playing module.
6. video play device according to claim 5, is characterized in that:
Described video play device also comprises reminding module, in the time that the described video frame number of having downloaded but do not play is less than or equal to described threshold value, sends prompting to user.
7. video play device according to claim 6, is characterized in that:
Described user can also determine that whether suspending described playing module carries out the broadcasting of audio, video data according to described prompting.
8. video play device according to claim 7, is characterized in that:
Describedly prompt for that network disconnects temporarily or network speed is slow.
9. according to the video play device described in claim 1~4, it is characterized in that:
Described download module can also judge whether frame of video all in described video file is downloaded completely;
In the time that described download module judges that frame of video all in described video file has been downloaded completely, without having downloaded described in carrying out but the video frame number of not playing and the comparison of described threshold value, and directly play by described playing module.
10. video play device according to claim 5, is characterized in that:
Described comparison module is by having downloaded described in relatively but the video frame number of not playing and in advance predetermined another threshold value, downloaded described in judgement but whether the video frame number do not play is greater than described another threshold value;
In the time that the video frame number of having downloaded described in described comparison module judgement but do not play is greater than described threshold value but is less than or equal to described another threshold value, described transmit control module suspends the broadcasting of described playing module.
11. 1 kinds of video broadcasting methods, comprise the following steps:
Download step, from video source downloading video files;
Decapsulation step, carries out decapsulation to the described video file of downloading in described download step, obtains sequence of frames of video and audio frame sequence;
Play step, by playing module, described sequence of frames of video and described audio frame sequence are decoded, and carry out the broadcasting of audio, video data;
The totalframes obtaining step of having downloaded, obtains the video totalframes of having downloaded in described download step;
The totalframes obtaining step of having play, obtains the video totalframes of having play in described broadcasting step;
Video frame number obtaining step to be played, obtains the video frame number of downloading but do not play;
Comparison step, by having downloaded described in relatively but the video frame number of not playing and in advance predetermined threshold value, has downloaded described in judgement but whether the video frame number do not play is greater than described threshold value;
Play Control step, the playback action of playing module described in the judged result control based in described comparison step.
12. video broadcasting methods according to claim 11, also comprise:
Timing step, periodically starts described comparison step at regular intervals by having downloaded described in relatively but video frame number and the described threshold value do not play, and described in judgement, has downloaded but whether the video frame number do not play is greater than described threshold value.
13. video broadcasting methods according to claim 11, also comprise:
Storing step, stores relevant data and parameter.
14. video broadcasting methods according to claim 13, is characterized in that:
Described storing step by described relevant data and Parameter storage in the buffering area of described playing module.
15. according to the video broadcasting method described in claim 11~14, it is characterized in that:
In the time that the video frame number of having downloaded described in judgement in described comparison step but do not play is less than or equal to described threshold value, described Play Control step is suspended the playback action of described playing module.
16. video broadcasting methods according to claim 15, is characterized in that:
Described video broadcasting method also comprises prompting step, in the time that the described video frame number of having downloaded but do not play is less than or equal to described threshold value, sends prompting to user.
17. video play devices according to claim 16, is characterized in that:
Described user can also determine according to described prompting the broadcasting of the audio, video data that whether suspends described playing module.
18. video broadcasting methods according to claim 17, is characterized in that:
Describedly prompt for that network disconnects temporarily or network speed is slow.
19. according to the video broadcasting method described in claim 11~14, it is characterized in that:
In described download step, can also judge whether frame of video all in described video file is downloaded completely;
In the time enough judging that in described download step frame of video all in described video file has been downloaded completely, without having downloaded described in carrying out but the video frame number of not playing and the comparison of described threshold value, and directly play by described playing module.
20. video broadcasting methods according to claim 15, is characterized in that:
In described comparison step, also by having downloaded described in relatively but the video frame number of not playing and in advance predetermined another threshold value, download described in judgement but whether the video frame number do not play is greater than described another threshold value;
In the time that the video frame number of having downloaded described in judgement in described comparison step but do not play is greater than described threshold value but is less than or equal to described another threshold value, described Play Control step is suspended the playback action of described playing module.
CN201410164736.2A 2014-04-23 2014-04-23 Video playing device and method thereof Pending CN103905897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410164736.2A CN103905897A (en) 2014-04-23 2014-04-23 Video playing device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410164736.2A CN103905897A (en) 2014-04-23 2014-04-23 Video playing device and method thereof

Publications (1)

Publication Number Publication Date
CN103905897A true CN103905897A (en) 2014-07-02

Family

ID=50997013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410164736.2A Pending CN103905897A (en) 2014-04-23 2014-04-23 Video playing device and method thereof

Country Status (1)

Country Link
CN (1) CN103905897A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635254A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Method and device for downloading multimedia resource
CN105916058A (en) * 2016-05-05 2016-08-31 青岛海信宽带多媒体技术有限公司 Streaming media buffer play method and device and display device
CN105979346A (en) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for playing streaming media
WO2017054379A1 (en) * 2015-09-28 2017-04-06 青岛海信电器股份有限公司 Audio data processing method, apparatus and system
WO2017124904A1 (en) * 2016-01-22 2017-07-27 广州视睿电子科技有限公司 Audio playing method and device
CN107920275A (en) * 2017-12-29 2018-04-17 广东欧珀移动通信有限公司 Video broadcasting method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080253737A1 (en) * 2007-03-30 2008-10-16 Masaru Kimura Video Player And Video Playback Control Method
CN103002272A (en) * 2011-09-15 2013-03-27 上海聚力传媒技术有限公司 Method, device and equipment for switching code rate of audio and video information
CN103517150A (en) * 2013-09-13 2014-01-15 广东欧珀移动通信有限公司 Method and system for indicating loading of online video through blue-ray player
CN103731720A (en) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 Method and device for caching multimedia data of smart television

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080253737A1 (en) * 2007-03-30 2008-10-16 Masaru Kimura Video Player And Video Playback Control Method
CN103002272A (en) * 2011-09-15 2013-03-27 上海聚力传媒技术有限公司 Method, device and equipment for switching code rate of audio and video information
CN103517150A (en) * 2013-09-13 2014-01-15 广东欧珀移动通信有限公司 Method and system for indicating loading of online video through blue-ray player
CN103731720A (en) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 Method and device for caching multimedia data of smart television

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054379A1 (en) * 2015-09-28 2017-04-06 青岛海信电器股份有限公司 Audio data processing method, apparatus and system
US10171868B2 (en) 2015-09-28 2019-01-01 Qingdao Hisense Electronics Co., Ltd. Method for processing audio data, terminal and television
CN105979346A (en) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for playing streaming media
WO2017092329A1 (en) * 2015-12-03 2017-06-08 乐视控股(北京)有限公司 Method and apparatus for playing streaming media
CN105635254A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Method and device for downloading multimedia resource
CN105635254B (en) * 2015-12-23 2018-12-18 小米科技有限责任公司 Multimedia resource method for down loading and device
WO2017124904A1 (en) * 2016-01-22 2017-07-27 广州视睿电子科技有限公司 Audio playing method and device
CN105916058A (en) * 2016-05-05 2016-08-31 青岛海信宽带多媒体技术有限公司 Streaming media buffer play method and device and display device
CN105916058B (en) * 2016-05-05 2019-09-20 青岛海信宽带多媒体技术有限公司 A kind of streaming media buffer playback method, device and display equipment
CN107920275A (en) * 2017-12-29 2018-04-17 广东欧珀移动通信有限公司 Video broadcasting method, device, terminal and storage medium
CN107920275B (en) * 2017-12-29 2020-06-09 Oppo广东移动通信有限公司 Video playing method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN103905897A (en) Video playing device and method thereof
WO2018076982A2 (en) Audio and video synchronous playback method, and terminal
JP6081440B2 (en) Method and apparatus for prompting based on smart glasses
US10734032B2 (en) Method, device, and system of synchronously playing media file
EP3193509B1 (en) Video advertisement filtering method, device and equipment
WO2017197821A1 (en) Advertisement placement method, advertisement server and system
US20180332348A1 (en) Playback control method and device
WO2015188778A1 (en) Eye protection method based on smart television, and smart television
CN103702198A (en) Cross-terminal continuous playing method and device
CN103327186A (en) Method for controlling mobile phone music player
CN105791985A (en) Method and device for downloading media stream data
US10482568B2 (en) Information processor and information processing method
CN106921883B (en) Video playing processing method and device
CN104244101A (en) Method and device for commenting multimedia content
CN107645630B (en) Image pickup processing method and device
KR102100828B1 (en) Contents providing system, contents providing apparatus, client apparatus, control method, and recording medium
CN108174227B (en) Virtual article display method and device and storage medium
CN105760377B (en) Information processing method and device, terminal and storage medium
CN106792109B (en) Video playing method and device and terminal
WO2017076009A1 (en) Program watch-back method, player and terminal
CN112055234A (en) Television equipment screen projection processing method, equipment and storage medium
CN103873930A (en) Method for playing demonstration video on television and television terminal
CN106060661B (en) Television no-signal processing method and device and intelligent television
CN106708511A (en) Dynamic icon setting method and using method
WO2015074623A1 (en) Video playback method, apparatus and intelligent terminal

Legal Events

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

Application publication date: 20140702