Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, should belong to the scope of protection of the invention.
The invention provides a kind of video playback detection method, this video playback detection method may operate on computer processor unit.
Fig. 1 is according to the flow chart of the video playback detection method of first embodiment of the invention.As shown in the figure, the method comprises the steps:
Step S101, obtains the time interval of the first fragment in video.In video, the time interval of the first fragment can be that the advertisement video reproduction time that advertiser is concerned about most in advertisement video is interval, that advertiser wishes the ad content that user can see most, therefore, concerning advertiser, obtaining the number of times that advertiser wishes the time interval seen by user can the viewed number of times of this advertisement video of Obtaining Accurate, thereby determines effective exposure frequency of this advertisement.
The time interval of video the first fragment can obtain from server, and this time interval can be determined by advertiser's want advertisement.For example, one section of total duration of advertisement video is 50 seconds, and wherein, the 20th second to the 40th second is that advertiser wishes that user sees most, and the time interval of the first fragment of obtaining from server is 20~40.
Step S102, obtains the time interval of the second fragment in video, and wherein, the second fragment is the video segment of having play in video.The time interval of video the second fragment can have one, also can have a plurality ofly, and the second fragment is the video segment of having play in video.In video display process, the state pausing if there is video card, user drag the situation that video progress or client are skipped this video automatically, and the time interval of the second fragment getting is a plurality of, for example, and 0~10,11~15,12~20,20~50.The time interval of the second fragment can be also one, namely at advertisement video, does not occur that card, video are by skip all or the situation of being closed by user in playing process.
The second fragment can be the whole video of the complete broadcasting of video, can be also the fragment of being play before being closed by user in video playback.
Step S103, relatively whether the time interval of the first fragment is covered by the time interval of the second fragment.In order to determine that advertiser wishes that the video of being watched by user is broadcasted, whether the time interval of the first fragment of relatively playing is covered by the time interval of the second fragment.
If the time interval of the second fragment only has one, with the whole time interval of the second fragment and the time interval of the first fragment, compare, relatively whether the whole time interval of the second fragment covers the time interval of the first fragment, the time interval that the whole time interval of the second fragment comprises the first fragment.
If it is a plurality of that the time interval of the second fragment has, a plurality of time intervals are compared with the time interval of the first fragment one by one, judge whether the time interval of a plurality of the second fragments can cover the time interval of the first fragment.
Step S104, if the time interval of the second fragment covers the time interval of the first fragment, determines that the first fragment is played.
If the time interval of the first fragment that advertiser pays close attention to is played, namely in the time interval of the second fragment, can find the time interval of the first fragment, determine that the very first time is interval played.If can not find the time interval of the first fragment in the time interval of the second fragment, determine that the very first time is interval not played.
Known by said method, by concern advertiser, expect that the time interval of the second the fragment whether time interval of the first fragment of broadcasting has been play covers, determine whether the first fragment is watched by user, and the exposure rate of adding up advertisement video with this is more accurate.
Fig. 2 is according to the flow chart of the video playback detection method of second embodiment of the invention.As shown in the figure, this video playback detection method comprises the steps:
Step S201, obtains the time interval of the first fragment in video.In video, the time interval of the first fragment can be that the advertisement video reproduction time that advertiser is concerned about most in advertisement video is interval, that advertiser wishes the ad content that user can see most, therefore, concerning advertiser, obtaining the number of times that advertiser wishes the time interval seen by user can the viewed number of times of this advertisement video of Obtaining Accurate, thereby determines effective exposure frequency of this advertisement.
The time interval of video the first fragment can obtain from server, and this time interval can be determined by advertiser's want advertisement.For example, one section of total duration of advertisement video is 50 seconds, and wherein, the 20th second to the 40th second is that advertiser wishes that user sees most, and the time interval of the first fragment of obtaining from server is 20~40.
Step S202, obtains the time interval of the second fragment in video, and wherein, the second fragment is the video segment of having play in video.The time interval of video the second fragment can have one, also can have a plurality ofly, and the second fragment is the video segment of having play in video.In video display process, the state pausing if there is video card, user drag the situation that video progress or client are skipped this video automatically, the time interval of the second fragment getting can be for a plurality of, for example, and 0~10,11~15,12~20,20~30.The time interval of the second fragment can be also one, namely at advertisement video, does not occur that card all finishes or by user, closed in playing process.
Step S203, a plurality of time intervals of the second fragment in recording of video playing process.The situation that video pauses if there is card in the second fragment process of broadcasting, may there are a plurality of time intervals in the second fragment.The second fragment starts to play the initial time be recorded as a time interval, and the moment that the second fragment is left broadcast state is recorded as the finish time of a time interval.
Step S204, whether the time interval of more a plurality of time intervals and the first fragment has overlapping one by one.Relatively whether a plurality of time intervals of record and the time interval of the first fragment have lap one by one, for example, the time interval of the first fragment is 10~20 seconds, a plurality of time intervals of the second fragment are 0~10,11~15,12~20,20~30, with the time interval of the 0~10 and first fragment, within 10~20 seconds, compare, determine that these two time intervals do not have overlapping, then with 11~15 seconds time intervals in the first fragment, within 10~20 seconds, compare, define overlapping interval 11~15 seconds.The other times interval of the second fragment can compare in this way one by one.
Step S205, overlapping if the time interval of time interval in a plurality of time interval and the first fragment has, obtain the time interval of lap.In the example of step S204, to 11~15 seconds in the time interval of the second fragment with the time interval of the first fragment 10~20 seconds relatively after, determine that lap is 11~15 seconds.
Step S206 removes the time interval of lap from the time interval of the first fragment.Connect the example of step S205, the time interval of determining lap is 11~15 seconds.The time interval of this lap is removed from the time interval of the first fragment, and the time interval of the first fragment becomes 10~11,15~20 seconds.
Step S207, if do not have overlappingly, whether the next time interval and the first fragment time interval that continue in more a plurality of time intervals have overlapping.If the time interval of the second fragment and the time of the first fragment does not relatively have lap, the next time interval in the time interval of the second fragment is compared.
For example:
The first fragment is: 11~16, and plays clip is: 0~10,11~14,12~20,20~21.
Get plays clip 1:0~10 and 11~16 and, without occuring simultaneously, after intercepting, remain critical segment 11~16
Getting plays clip 2:11~14 and 11~16 has common factor, residue critical segment 14~16 after intercepting
Getting plays clip 3:12~20 and 14~16 has common factor, and after intercepting, residue critical segment length is 0, finishes.Because residue critical segment length after finishing is 0, judgement is this time play effectively.
Particularly, one by one more a plurality of time intervals and the first fragment time interval whether have overlapping after, video playback detection method also comprises the steps:
Step S2041, after the time interval of lap is removed from the time interval of the first fragment, judges whether the time interval of remaining the first fragment is 0.The time interval of lap, after the time interval of the first fragment is removed, is judged to the length of the time interval of remaining the first fragment.For example, after the time interval of the time interval of the second fragment relatively 11~15 seconds and the first fragment 10~20 seconds, determine that lap is 11~15 seconds, the time interval of lap is removed from the time interval of the first fragment for 11~15 seconds for 10~20 seconds, the time interval of remaining the first fragment becomes 10~11,15~20 seconds, and the time interval of remaining the first fragment is not 0.
Step S2042, if remaining the first fragment time interval is 0, finishes the time interval of comparison the first fragment time interval and the second fragment.If remaining the first fragment time interval is 0, the time interval of the first fragment is played, the exposure rate that can be used for adding up advertisement video, and the time interval without comparison of the second fragment also can no longer compare so.
Further, one by one the time interval of more a plurality of time intervals and the first fragment whether have overlapping after, video playback detection method also comprises:
A plurality of time intervals that judge the second fragment whether all with the first fragment time interval comparison.For example, a plurality of time intervals of the second fragment are 0~10,11~15,12~20, the time interval of the first fragment is 25-30, a plurality of time intervals that judge one by one the second fragment whether with the time interval comparison of the first fragment, if a plurality of time intervals of determining the second fragment all with the first fragment time interval mistake relatively, no matter whether comprise the time interval of the first fragment in a plurality of time intervals of the second fragment, all no longer compare.
If a plurality of time intervals of the second fragment all relatively after, do not comprise the time interval of the first fragment time interval, determine that the advertisement video time interval that in this advertisement video, advertiser's expectation is seen by user do not seen by user.
If a plurality of time intervals all with the first fragment time interval comparison, finish the time interval of comparison the first fragment and the time interval of the second fragment.
By said method, can there are a plurality of time intervals in the second fragment, and in a plurality of time intervals of the second fragment, not have to determine that the first fragment is not played in the time interval of the first fragment, stop continuing relatively, thereby saved operation resource.
Fig. 3 is according to the flow chart of the video playback detection method of third embodiment of the invention.As shown in the figure, this video playback detection method comprises the steps, following steps can be used for obtaining the time interval of the second fragment in video:
Step S301, the moment when obtaining video and starting to play.The moment that video starts to play can be used as the initial time of the time interval of the second fragment.
Step S302, the moment when obtaining video and leaving broadcast state.It can be that video is in buffer status, error status, halted state or video closed condition that video leaves broadcast state.The moment that video leaves broadcast state can be used as the finish time of the time interval of the second fragment.
Step S303, the difference in moment when moment when recording of video leaves broadcast state starts to play with video, using the time interval of difference second fragment in video.The time interval obtaining by said method can be a time interval of the second fragment, and the other time interval in the second fragment in a plurality of time intervals also can obtain by said method.
Whether the first fragment that the video playback detection method providing by the embodiment of the present invention detects video playback is played, can also detect the played length of the first fragment, the result that detection can be obtained is sent to server, by server, calculate the validity that the first fragment is play, and, the method is to add up by the exposure rate of the first fragment, more accurate, meets the original intention of calculating video playback validity.
The embodiment of the present invention also provides a kind of video playback checkout gear.
The video playback checkout gear that the video playback detection method of the embodiment of the present invention can provide by the embodiment of the present invention is carried out, the video playback detection method that the video playback checkout gear of the embodiment of the present invention also can provide for carrying out the embodiment of the present invention.
Fig. 4 is according to the schematic diagram of the video playback checkout gear of first embodiment of the invention.As shown in the figure, this video playback checkout gear comprises the first acquiring unit 10, second acquisition unit 20, comparing unit 30 and determining unit 40.
The first acquiring unit 10 is for obtaining the time interval of video the first fragment.In video, the time interval of the first fragment can be that the advertisement video reproduction time that advertiser is concerned about most in advertisement video is interval, that advertiser wishes the ad content that user can see most, therefore, concerning advertiser, obtaining the number of times that advertiser wishes the time interval seen by user can the viewed number of times of this advertisement video of Obtaining Accurate, thereby determines effective exposure frequency of this advertisement.
The time interval of video the first fragment can obtain from server, and this time interval can be determined by advertiser's want advertisement.For example, one section of total duration of advertisement video is 50 seconds, and wherein, the 20th second to the 40th second is that advertiser wishes that user sees most, and the time interval of the first fragment of obtaining from server is 20~40.
Second acquisition unit 20 is for obtaining the time interval of video the second fragment, and wherein, the second fragment is the video segment of having play in video.The time interval of video the second fragment can have one, also can have a plurality ofly, and the second fragment is the video segment of having play in video.In video display process, the state pausing if there is video card, user drag the situation that video progress or client are skipped this video automatically, and the time interval of the second fragment getting is a plurality of, for example, and 0~10,11~15,12~20,20~50.The time interval of the second fragment can be also one, namely at advertisement video, does not occur that card all finishes, video is closed by user by skip all or in playing process.
The second fragment can be the whole video of the complete broadcasting of video, can be also the fragment of being play before being closed by user in video playback.
Whether comparing unit 30 is covered by the time interval of the second fragment for comparing the time interval of the first fragment.In order to determine that advertiser wishes that the video of being watched by user is broadcasted, whether the time interval of the first fragment of relatively playing is covered by the time interval of the second fragment.
If the time interval of the second fragment only has one, with the whole time interval of the second fragment and the time interval of the first fragment, compare, relatively whether the whole time interval of the second fragment covers the time interval of the first fragment, the time interval that the whole time interval of the second fragment comprises the first fragment.
If it is a plurality of that the time interval of the second fragment has, a plurality of time intervals are compared with the time interval of the first fragment one by one, judge whether the time interval of a plurality of the second fragments can cover the time interval of the first fragment.
When determining unit 40 covers the time interval of the first fragment for the time interval in the second fragment, determine that the first fragment is played.If the time interval of the first fragment that advertiser pays close attention to is played, namely in the time interval of the second fragment, can find the time interval of the first fragment, determine that the very first time is interval played.If can not find the time interval of the first fragment in the time interval of the second fragment, determine that the very first time is interval not played.
Known by said apparatus, by concern advertiser, expect that the time interval of the second the fragment whether time interval of the first fragment of broadcasting has been play covers, determine whether the first fragment is watched by user, and the exposure rate of adding up advertisement video with this is more accurate.
Fig. 5 is according to the schematic diagram of the video playback checkout gear of second embodiment of the invention.As shown in the figure, this video playback checkout gear comprises the first acquiring unit 10, second acquisition unit 20, comparing unit 30 and determining unit 40, wherein, comparing unit 30 comprises logging modle 301, the first comparison module 302, acquisition module 303, removes module 304 and the second comparison module 305.
Logging modle 301 is for a plurality of time intervals of the second fragment of recording of video playing process.The situation that video pauses if there is card in the second fragment process of broadcasting, may there are a plurality of time intervals in the second fragment.The second fragment starts to play the initial time be recorded as a time interval, and the moment that the second fragment is left broadcast state is recorded as the finish time of a time interval.
Whether the first comparison module 302 has overlapping for the time interval of more a plurality of time intervals and the first fragment one by one.Relatively whether a plurality of time intervals of record and the time interval of the first fragment have lap one by one, for example, the time interval of the first fragment is 10~20 seconds, a plurality of time intervals of the second fragment are 0~10,11~15,12~20,20~30, with the time interval of the 0~10 and first fragment, within 10~20 seconds, compare, determine that these two time intervals do not have overlapping, then with 11~15 seconds time intervals in the first fragment, within 10~20 seconds, compare, define overlapping interval 11~15 seconds.The other times interval of the second fragment can compare in this way one by one.
Acquisition module 303 has overlapping for the time interval of time interval at a plurality of time intervals and the first fragment, obtain the time interval of lap.In previous example, to 11~15 seconds in the time interval of the second fragment with the time interval of the first fragment 10~20 seconds relatively after, determine that lap is 11~15 seconds.
Remove module 304 for the time interval of lap is removed from the time interval of the first fragment.The time interval of this lap is removed from the time interval of the first fragment, and the time interval of the first fragment becomes 10~11,15~20 seconds.
If the second comparison module 305 is overlapping for not having, whether the next time interval and the first fragment time interval that continue in more a plurality of time intervals have overlapping.If the time interval of the second fragment and the time of the first fragment does not relatively have lap, the next time interval in the time interval of the second fragment is compared.
For example:
The first fragment is: 11~16, and plays clip is: 0~10,11~14,12~20,20~21.
Get plays clip 1:0~10 and 11~16 and, without occuring simultaneously, after intercepting, remain critical segment 11~16
Getting plays clip 2:11~14 and 11~16 has common factor, residue critical segment 14~16 after intercepting
Getting plays clip 3:12~20 and 14~16 has common factor, and after intercepting, residue critical segment length is 0, finishes.Because residue critical segment length after finishing is 0, judgement is this time play effectively.
Particularly, this video playback checkout gear also comprises the first judging unit and the first end unit.
The first judging unit is used for the time interval of lap, after the time interval of the first fragment is removed, judging whether the time interval of remaining the first fragment is 0.The time interval of lap, after the time interval of the first fragment is removed, is judged to the length of the time interval of remaining the first fragment.For example, after the time interval of the time interval of the second fragment relatively 11~15 seconds and the first fragment 10~20 seconds, determine that lap is 11~15 seconds, the time interval of lap is removed from the time interval of the first fragment for 11~15 seconds for 10~20 seconds, the time interval of remaining the first fragment becomes 10~11,15~20 seconds, and the time interval of remaining the first fragment is not 0.
The first end unit, for being at remaining the first fragment time interval, finishes to compare the time interval of the first fragment time interval and the second fragment at 0 o'clock.If remaining the first fragment time interval is 0, the time interval of the first fragment is played, the exposure rate that can be used for adding up advertisement video, and the time interval without comparison of the second fragment also can no longer compare so.
Further, this video playback checkout gear also comprises: the second judging unit and the second end unit.
The second judging unit at the time interval of more a plurality of time intervals and the first fragment one by one, whether have overlapping after, a plurality of time intervals that judge the second fragment whether all with the first fragment time interval comparison.
For example, a plurality of time intervals of the second fragment are 0~10,11~15,12~20, the time interval of the first fragment is 25-30, a plurality of time intervals that judge one by one the second fragment whether with the time interval comparison of the first fragment, if a plurality of time intervals of determining the second fragment all with the first fragment time interval mistake relatively, no matter whether comprise the time interval of the first fragment in a plurality of time intervals of the second fragment, all no longer compare.
If a plurality of time intervals of the second fragment all relatively after, do not comprise the time interval of the first fragment time interval, determine that the advertisement video time interval that in this advertisement video, advertiser's expectation is seen by user do not seen by user.
The second end unit, for when a plurality of time intervals all compare with the first fragment time interval, finishes the relatively time interval of the first fragment and the time interval of the second fragment.
By said units, can there are a plurality of time intervals in the second fragment, and in a plurality of time intervals of the second fragment, not have to determine that the first fragment is not played in the time interval of the first fragment, stop continuing relatively, thereby saved operation resource.
Fig. 6 is according to the schematic diagram of the video playback checkout gear of third embodiment of the invention.As shown in the figure, this video playback checkout gear comprises the first acquiring unit 10, second acquisition unit 20, comparing unit 30 and determining unit 40, and wherein, second acquisition unit 20 comprises starting module 201, finishes module 202 and logging modle 203.
Moment when starting module 201 starts to play for obtaining video.The moment that video starts to play can be used as the initial time of the time interval of the second fragment.
Moment when end module 202 is left broadcast state for obtaining video.It can be that video is in buffer status, error status, halted state or video closed condition that video leaves broadcast state.The moment that video leaves broadcast state can be used as the finish time of the time interval of the second fragment.
The difference in moment when moment when logging modle 203 is left broadcast state for recording of video starts to play with video, using the time interval of difference second fragment in video.
The time interval obtaining by said apparatus can be a time interval of the second fragment, and the other time interval in the second fragment in a plurality of time intervals also can obtain by said apparatus.
Whether the first fragment that the video playback checkout gear providing by the embodiment of the present invention detects video playback is played, can also detect the played length of the first fragment, the result that detection is obtained is sent to server, by server, calculate the validity that the first fragment is play, and, the method is to add up by the exposure rate of the first fragment, more accurate, meets the original intention of calculating video playback validity.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.