The method to break for commercialsy in audio/video player system and video
Technical field
The present invention relates to methods and the play system that one kind breaks for commercialsy in video.
Background technique
In the epoch that multimedia is prevailing, multimedia video text is played in public using the media player of class PC equipment
Part simultaneously breaks for commercialsy, and becomes the important means to attract clients.
Media player using class PC equipment is playing out multiple multimedia video frequency files, is all using playlist
Carry out control broadcasting.Playlist, Zhi Neng are used using the multiple media video files of media renderer plays of class PC equipment
After one or several main media files integrally play, break for commercialsy.If necessary in a complete video, such as one
It breaks for commercialsy in film or a collection TV play, then needs a film or a collection TV play cutting into several independent unit views
Frequently, then the sequence of advertisement editing these independent unit videos and intercut, list plays in sequence, just can guarantee in this way
It breaks for commercialsy in a complete video.
Summary of the invention
Present invention technical problem to be solved is to provide the side to break for commercialsy in high-efficient, high reliablity the video of one kind
Method.
In order to solve the above technical problems, a kind of method to break for commercialsy in video is devised comprising: step 1: starting
When player, main media video is played;Step 2: after main media video plays a period of time T1, judging main media video
Whether remaining play time T2 is greater than T1, if it is, temporarily main media video, commercial breaks video, plays to advertisement video
After, execute step 3;If it is not, then continuing to play main media video, until main media play terminates;Step 3: when advertisement regards
After frequency plays, continue to play main media video, return step 2.
As a further improvement of that present invention, main media video is played plays according to its tab sequential.
As a further improvement of that present invention, advertisement video is played plays according to its tab sequential.
The present invention also provides a kind of audio/video player systems comprising main media management module, main media play window mould
Block, advertisement control module, advertisement broadcast window module and time control module;
The main media management module controls main media play window module and plays main media video;
After the time control module monitors main media video broadcasting a period of time T1, the residue of main media video is judged
Whether play time T2 is greater than T1;
If T2 is greater than T1, if the time control module to the main media management module issue pause signal and to
Advertisement control module issues broadcasting signal, and the main media management module control main media play window module pause plays
Main media video, advertisement control module control advertisement broadcast window module play advertisement video, play and tie to advertisement video
Shu Hou, the main media management module, which controls main media play window module, to be continued to play main media video, the time control
Module continues to monitor main media video after playing a period of time T1, judge main media video remaining play time T2 whether
Greater than T1;
If T2 is not more than T1, main media management module, which controls main media play window module, to be continued to play main media view
Frequently, until main media play terminates.
As a further improvement of that present invention, main media play sequence list is equipped in the main media management module, according to
Main media play sequence list plays main media video.
As a further improvement of that present invention, the list of advertisement playing sequence is equipped in the advertisement control module, according to advertisement
Sequence list plays advertisement video.
The present invention controls main media video by main media management module and plays, and advertisement control module controls advertisement insertion,
It can complete to break for commercialsy during main playback of media files with the time of fixed intervals, meanwhile, without shearing main matchmaker
Volumetric video, high-efficient, high reliablity.
Specific embodiment
In order to make relevant technical staff in the field more fully understand technical solution of the present invention, below in conjunction with embodiment party
The technical solution in embodiment of the present invention is clearly and completely described in formula, it is clear that described embodiment is only
It is some embodiments of the invention, rather than whole embodiments.
The present invention provides a kind of audio/video player systems, can be during main playback of media files with fixed interval
It breaks for commercialsy.
The present embodiment audio/video player system includes main media management module, main media play window module, advertisement control mould
Block, advertisement broadcast window module and time control module.
The main media management module controls main media play window module and plays main media video.
The advertisement control module control advertisement broadcast window module plays advertisement video.
The time control module monitors the play time of main media video, after playing a period of time T1, then goes to judge
Whether the remaining play time T2 of main media video is greater than T1.It is that advertisement plays waiting that main media video, which plays a period of time T1,
Interval time.
If T2 is greater than T1, that is, the remaining play time of main media video is greater than advertisement and plays the interval time waited, when
Between control module then issue pause signal to the main media management module and issue broadcasting signal to advertisement control module, it is main
The media management module control main media play window module pause plays main media video, advertisement control module controls advertisement
Broadcast window module plays advertisement video.After playing to advertisement video, main media management module controls main media play window
Mouth mold block continues to play main media video, and time control module continues to monitor the play time of main media video, continues judgement master
Whether the remaining play time T2 of media video is greater than T1.If T2 is not more than T1, main media management module controls main media and broadcasts
It puts window module to continue to play main media video, until main media play terminates.
In the present embodiment, time T1 is 30 minutes, and main media video is the film that one is 130 minutes, in the film
Playing process in, intercutted an advertisement at interval of 30 minutes, in remaining 40 minutes play times, no longer intercut wide
It accuses.
More optimizedly, the present invention can also continuously play multiple main media videos, play in a main media video file
Followed by play second main media video file.Thus, the present invention is equipped with main media in the main media management module and broadcasts
Sequence table is put forward, the playing sequence of multiple main media videos, main media management module are set in the main media play sequence list
Main media video is played according to main media play sequence list.It is that it is suitable that advertisement broadcasting is equipped in advertisement control module accordingly
Sequence table plays multiple advertisement video files according to advertising orders list.
The method to break for commercialsy in video of the present invention when starting player, plays main matchmaker by main media play window module
Volumetric video, at this point, advertisement broadcast window module waits;After main media video plays a period of time T1, time control module
Whether the remaining play time T2 for judging main media video is greater than T1, if it is, main media video plays pause, intercuts extensively
Video is accused, after playing to advertisement video, main media video continues to play, and intercycle is for a period of time after T1, then intercuts wide
It accuses, when the remaining play time T2 of main media is less than or equal to T1, main media play terminates to it, no longer breaks for commercialsy.
The present invention controls main media video by main media management module and plays, and advertisement control module controls advertisement insertion,
It can complete to break for commercialsy during main playback of media files with the time of fixed intervals, meanwhile, without shearing main matchmaker
Volumetric video, high-efficient, high reliablity.
Only express one embodiment of the present invention above, the description thereof is more specific and detailed, but can not therefore and
It is interpreted as limitations on the scope of the patent of the present invention.It should be pointed out that for those of ordinary skill in the art, not taking off
Under the premise of from present inventive concept, various modifications and improvements can be made, and these are all within the scope of protection of the present invention.Cause
This, the scope of protection of the patent of the invention shall be subject to the appended claims.