Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
The invention provides a kind of video playback detection method, the video playback detection method may operate at computer
Manage on device.
Fig. 1 is the flow chart of video playback detection method according to a first embodiment of the present invention.As illustrated, this method bag
Include following steps:
Step S101, obtains the time interval of the first fragment in video.The time interval of the first fragment can be in video
The most concerned advertisement video reproduction time of advertiser is interval in advertisement video, be the highly desirable user of advertiser it can be seen that it is wide
Content is accused, therefore, for advertiser, advertiser is obtained and wishes that the number of times for the time interval being seen by the user can be obtained accurately
The number of times that the advertisement video is watched, so that it is determined that effective exposure frequency of the advertisement.
The time interval of the fragment of video first can be obtained from server, and the time interval can be needed by the advertisement of advertiser
Ask and be determined.For example, one section of advertisement video total duration is 50 seconds, wherein, it is within the 20th second to the 40th second the highly desirable use of advertiser
What family was seen, then the time interval of the first fragment obtained from server is 20~40.
Step S102, obtains the time interval of the second fragment in video, wherein, the second fragment is regarding for having been played in video
Frequency fragment.The time interval of the fragment of video second can have one, it is possibility to have multiple, and the second fragment has been played in video
Video segment.In video display process, state, user's dragging video progress or client if there is video cardton
Automatically the situation of the video is skipped, the time interval of the second fragment got is multiple, for example, 0~10,11~15,12~
20th, 20~50.The time interval of second fragment can also be one, that is, interim card, video quilt do not occur in advertisement video
The situation all skipped or be closed by the user in playing process.
Before second fragment can be the whole video that video is completely played or is closed by the user in video playback
The fragment played.
Whether step S103, the time interval for comparing the first fragment is covered by the time interval of the second fragment.In order to determine
Advertiser wishes that the video being viewed by a user is played out, and whether compares the time interval of the first fragment of broadcasting by the second fragment
Time interval is covered.
If the time interval only one of which of the second fragment, with the whole time interval of the second fragment and the first fragment
Time interval is compared, and whether the whole time interval for comparing the second fragment covers the time interval of the first fragment, i.e., and the
The whole time interval of two fragments includes the time interval of the first fragment.
If the time interval of the second fragment has multiple, by the time interval of multiple time intervals one by one with the first fragment
It is compared, whether judge the time interval of multiple 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, it is determined that the first fragment
It is played.
If the time interval of advertiser's the first fragment of interest is played, that is, in the time interval of the second fragment
In can find the time interval of the first fragment, it is determined that the very first time interval be played.If in the time zone of the second fragment
Between in can not find the time interval of the first fragment, it is determined that the very first time, interval was without being played.
By the above method, whether broadcast by the time interval for paying close attention to the first fragment that advertiser demand communication is played
The time interval covering for the second fragment put, is determined whether the first fragment is viewed by a user, the exposure of advertisement video is counted with this
Rate is more accurate.
Fig. 2 is the flow chart of video playback detection method according to a second embodiment of the present invention.As illustrated, the video is broadcast
Detection method is put to comprise the following steps:
Step S201, obtains the time interval of the first fragment in video.The time interval of the first fragment can be in video
The most concerned advertisement video reproduction time of advertiser is interval in advertisement video, be the highly desirable user of advertiser it can be seen that it is wide
Content is accused, therefore, for advertiser, advertiser is obtained and wishes that the number of times for the time interval being seen by the user can be obtained accurately
The number of times that the advertisement video is watched, so that it is determined that effective exposure frequency of the advertisement.
The time interval of the fragment of video first can be obtained from server, and the time interval can be needed by the advertisement of advertiser
Ask and be determined.For example, one section of advertisement video total duration is 50 seconds, wherein, it is within the 20th second to the 40th second the highly desirable use of advertiser
What family was seen, then the time interval of the first fragment obtained from server is 20~40.
Step S202, obtains the time interval of the second fragment in video, wherein, the second fragment is regarding for having been played in video
Frequency fragment.The time interval of the fragment of video second can have one, it is possibility to have multiple, and the second fragment has been played in video
Video segment.In video display process, state, user's dragging video progress or client if there is video cardton
Automatically skip the situation of the video, the time interval of the second fragment got can be it is multiple, for example, 0~10,11~15,
12~20,20~30.The time interval of second fragment can also be one, that is, interim card whole do not occur in advertisement video
Finish or be closed by the user in playing process.
Multiple time intervals of the second fragment in step S203, record video display process.Video is playing second
If there is the situation of interim card during section, the second fragment is it is possible that multiple time intervals.Second fragment commences play out note
Record as the initial time of a time interval, the second fragment is recorded as the end of a time interval at the time of leaving broadcast state
Moment.
Step S204, one by one more multiple time intervals whether have overlapping with the time interval of the first fragment.Compare one by one
Whether multiple time intervals of record and the time interval of the first fragment have lap, for example, the time interval of the first fragment
For 10~20 seconds, multiple time intervals of the second fragment were 0~10,11~15,12~20,20~30, then with 0~10 and first
The time interval of fragment is compared for 10~20 seconds, determines that the two time intervals do not have overlapping, then with 11~15 seconds in
The time interval of one fragment is compared for 10~20 seconds, it is determined that having overlapping interval 11~15 seconds.The other times area of second fragment
Between can be compared one by one in this way.
Step S205, if a time interval in multiple time intervals has overlapping with the time interval of the first fragment,
Then obtain the time interval of lap.In step S204 example, 11~15 in the time interval to the second fragment
After second is compared for 10~20 seconds with the time interval of the first fragment, it is 11~15 seconds to determine lap.
Step S206, the time interval of lap is removed from the time interval of the first fragment.Connect step S205's
Example, the time interval for determining lap is 11~15 seconds.By the time interval of the lap from time of the first fragment
Removed in interval, then the time interval of the first fragment be changed into 10~11,15~20 seconds.
Step S207, if without overlapping, continuing next time interval and first in more multiple time intervals
Whether fractional time interval has overlapping.If the time interval of the second fragment compared and the time of the first fragment do not have overlapping portion
Point, then next time interval in the time interval of the second fragment is compared.
For example:
First fragment is:11~16, having played fragment is:0~10,11~14,12~20,20~21.
Take and played fragment 1:0~10 and 11~16 without common factor, remaining critical segment 11~16 after interception
Take and played fragment 2:11~14 and 11~16 have common factor, remaining critical segment 14~16 after interception
Take and played fragment 3:12~20 and 14~16 have common factor, and remaining critical segment length is 0 after interception, is terminated.By
It is 0 in remaining critical segment length after end, judges this time to play effective.
Specifically, one by one more multiple time intervals and the first fractional time interval whether have it is overlapping after, video playback
Detection method also comprises the following steps:
Step S2041, after the time interval of lap is removed from the time interval of the first fragment, judges remaining
The time interval of the first fragment whether be 0.By the time interval of lap after the time interval of the first fragment is removed,
Judge the length of the time interval of remaining first fragment.For example, comparing the time interval 11~15 seconds of the second fragment and the
The time interval of one fragment is after 10~20 seconds, and it is 11~15 seconds to determine lap, by the time interval 11 of lap~
15 seconds time intervals 10~20 seconds from the first fragment are removed, and the time interval of remaining first fragment is changed into 10~11,15~
20 seconds, then the time interval of remaining first fragment is not 0.
Step S2042, if remaining first fractional time interval is 0, terminate to compare the first fractional time it is interval and
The time interval of second fragment.If remaining first fractional time interval is 0, the time interval of the first fragment is broadcast
Put, can for count advertisement video exposure rate, then the time interval not compared of the second fragment can also no longer compare
Compared with.
Further, one by one more multiple time intervals and the time interval of the first fragment whether have it is overlapping after, video
Playing detection method also includes:
Judge whether multiple time intervals of the second fragment are all compared with the first fractional time interval.For example, the
Multiple time intervals of two fragments are 0~10,11~15,12~20, and the time interval of the first fragment is 25-30, then sentences one by one
Whether multiple time intervals of disconnected second fragment are compared with the time interval of the first fragment, if it is determined that the second fragment it is multiple when
Between interval all compared with the first fractional time interval, regardless of whether being included in multiple time intervals of the second fragment
The time interval of first fragment, is all no longer compared.
If after multiple time intervals of the second fragment all compare, not comprising the interval time zone of the first fractional time
Between, it is determined that the advertisement video time interval that advertiser demand communication is seen by the user in the advertisement video is not seen by the user.
If multiple time intervals are all compared with the first fractional time interval, terminate to compare the first fragment when
Between interval and the second fragment time interval.
By the above method, there can be multiple time intervals in the second fragment, and in multiple time zones of the second fragment
Between in do not have to determine that the first fragment is not played when the time interval of the first fragment, stopping continue to compare, so as to save
Operation resource.
Fig. 3 is the flow chart of video playback detection method according to a third embodiment of the present invention.As illustrated, the video is broadcast
Detection method is put to comprise the following steps, following steps can for obtain video in the second fragment time interval:
Step S301, at the time of acquisition when video is commenced play out.Video can be as the second fragment at the time of commencing play out
Time interval initial time.
Step S302, at the time of acquisition when video leaves broadcast state.It can be that video is in that video, which leaves broadcast state,
Buffer status, error status, halted state or video closed mode.Video can be as second at the time of leaving broadcast state
The finish time of the time interval of fragment.
Step S303, difference at the time of when being commenced play out at the time of when record video leaves broadcast state with video will
Difference as the second fragment in video time interval.The time interval obtained by the above method can be the one of the second fragment
Other time interval in individual time interval, the second fragment in multiple time intervals can also be obtained by the above method.
Detected by video playback detection method provided in an embodiment of the present invention video playback the first fragment whether by
Play, the played length of the first fragment can also be detected, can will detect that obtained result is sent to server, by server
The validity of the first fragment broadcasting is calculated, also, this method is counted by the exposure rate of the first fragment, it is more accurate
Really, the original intention for calculating video playback validity is met.
The embodiment of the present invention additionally provides a kind of video playback detection means.
The video playback inspection that the video playback detection method of the embodiment of the present invention can be provided by the embodiment of the present invention
Survey device to perform, the video playback detection means of the embodiment of the present invention can be used for performing what the embodiment of the present invention was provided
Video playback detection method.
Fig. 4 is the schematic diagram of video playback detection means according to a first embodiment of the present invention.As illustrated, the video is broadcast
Putting detection means includes first acquisition unit 10, second acquisition unit 20, comparing unit 30 and determining unit 40.
First acquisition unit 10 is used for the time interval for obtaining the first fragment in video.The time zone of first fragment in video
Between can be that the most concerned advertisement video reproduction time of advertiser is interval in advertisement video, be that the highly desirable user of advertiser can
The ad content seen, therefore, for advertiser, obtains advertiser and wishes that the number of times for the time interval being seen by the user can
The number of times that the advertisement video is watched accurately is obtained, so that it is determined that effective exposure frequency of the advertisement.
The time interval of the fragment of video first can be obtained from server, and the time interval can be needed by the advertisement of advertiser
Ask and be determined.For example, one section of advertisement video total duration is 50 seconds, wherein, it is within the 20th second to the 40th second the highly desirable use of advertiser
What family was seen, then the time interval of the first fragment obtained from server is 20~40.
Second acquisition unit 20 is used for the time interval for obtaining the second fragment in video, wherein, the second fragment is in video
The video segment played.The time interval of the fragment of video second can have one, it is possibility to have multiple, and the second fragment is video
In the video segment played.In video display process, state, user's dragging video progress if there is video cardton
Or client skips the situation of the video automatically, the time interval of the second fragment got is multiple, for example, 0~10,11
~15,12~20,20~50.The time interval of second fragment can also be one, that is, not block in advertisement video
Whole of pausing is finished, video is all skipped or is closed by the user in playing process.
Before second fragment can be the whole video that video is completely played or is closed by the user in video playback
The fragment played.
Whether the time interval that comparing unit 30 is used to compare the first fragment is covered by the time interval of the second fragment.In order to
Determine that advertiser wishes that the video being viewed by a user is played out, whether compare the time interval of the first fragment of broadcasting by second
The time interval covering of section.
If the time interval only one of which of the second fragment, with the whole time interval of the second fragment and the first fragment
Time interval is compared, and whether the whole time interval for comparing the second fragment covers the time interval of the first fragment, i.e., and the
The whole time interval of two fragments includes the time interval of the first fragment.
If the time interval of the second fragment has multiple, by the time interval of multiple time intervals one by one with the first fragment
It is compared, whether judge the time interval of multiple second fragments can cover the time interval of the first fragment.
Determining unit 40 is used to, when the time interval of the second fragment covers the time interval of the first fragment, determine first
Section is played.If the time interval of advertiser's the first fragment of interest is played, that is, the second fragment when
Between can find the time interval of the first fragment in interval, it is determined that the very first time interval be played.If in the second fragment
The time interval of the first fragment is can not find in time interval, it is determined that the very first time, interval was without played.
By said apparatus, whether broadcast by the time interval for paying close attention to the first fragment that advertiser demand communication is played
The time interval covering for the second fragment put, is determined whether the first fragment is viewed by a user, the exposure of advertisement video is counted with this
Rate is more accurate.
Fig. 5 is the schematic diagram of video playback detection means according to a second embodiment of the present invention.As illustrated, the video is broadcast
Putting detection means includes first acquisition unit 10, second acquisition unit 20, comparing unit 30 and determining unit 40, wherein, compare
Unit 30 includes logging modle 301, the first comparison module 302, acquisition module 303, the removal comparison module of module 304 and second
305。
Logging modle 301 is used for the multiple time intervals for recording the second fragment in video display process.Video is being played
If there is the situation of interim card during second fragment, the second fragment is it is possible that multiple time intervals.Second fragment starts
The initial time for being recorded as a time interval is played, the second fragment is recorded as a time interval at the time of leaving broadcast state
Finish time.
First comparison module 302 is used to compare whether multiple time intervals and the time interval of the first fragment have weight one by one
It is folded.Compare whether multiple time intervals of record and the time interval of the first fragment have lap one by one, for example, the first fragment
Time interval be 10~20 seconds, multiple time intervals of the second fragment are 0~10,11~15,12~20,20~30, then with 0
~10 are compared for 10~20 seconds with the time interval of the first fragment, determine that the two time intervals do not have overlapping, then with 11
~15 seconds time intervals in the first fragment are compared for 10~20 seconds, it is determined that having overlapping interval 11~15 seconds.Second fragment
Other times interval can be compared one by one in this way.
The time interval and the time interval of the first fragment that acquisition module 303 is used in multiple time intervals have weight
It is folded, obtain the time interval of lap.In previous example, 11~15 seconds in the time interval to the second fragment and the
After the time interval of one fragment compares for 10~20 seconds, it is 11~15 seconds to determine lap.
Removing module 304 is used to remove the time interval of lap from the time interval of the first fragment.This is heavy
The time interval of folded part is removed from the time interval of the first fragment, then the time interval of the first fragment is changed into 10~11,15
~20 seconds.
If the second comparison module 305 is used for without overlapping, continue next time in more multiple time intervals
It is interval whether to have overlapping with the first fractional time interval.If the time interval of the second fragment compared and the time of the first fragment
There is no lap, then next time interval in the time interval of the second fragment is compared.
For example:
First fragment is:11~16, having played fragment is:0~10,11~14,12~20,20~21.
Take and played fragment 1:0~10 and 11~16 without common factor, remaining critical segment 11~16 after interception
Take and played fragment 2:11~14 and 11~16 have common factor, remaining critical segment 14~16 after interception
Take and played fragment 3:12~20 and 14~16 have common factor, and remaining critical segment length is 0 after interception, is terminated.By
It is 0 in remaining critical segment length after end, judges this time to play effective.
Specifically, the video playback detection means also includes the first judging unit and the first end unit.
First judging unit is used for after the time interval of lap is removed from the time interval of the first fragment, sentences
Whether the time interval for remaining first fragment of breaking is 0.The time interval of lap is gone from the time interval of the first fragment
Except after, the length of the time interval of remaining first fragment is judged.For example, comparing the time interval 11~15 of the second fragment
Second with after the time interval 10~20 seconds of the first fragment, lap being determined for 11~15 seconds, by the time zone of lap
Between 11~15 seconds time intervals 10~20 seconds from the first fragment remove, the time interval of remaining first fragment is changed into 10~
11st, 15~20 seconds, then the time interval of remaining first fragment is not 0.
First end unit is used for when it is 0 that remaining first fractional time is interval, and the first fractional time area is compared in end
Between and the second fragment time interval.If remaining first fractional time interval is 0, the time interval of the first fragment is
Be played, can for count advertisement video exposure rate, then the time interval not compared of the second fragment can not also
Compare again.
Further, the video playback detection means also includes:Second judging unit and the second end unit.
Second judging unit is used to compare whether multiple time intervals have overlapping with the time interval of the first fragment one by one
Afterwards, judge whether multiple time intervals of the second fragment are all compared with the first fractional time interval.
For example, multiple time intervals of the second fragment are 0~10,11~15,12~20, the time interval of the first fragment is
25-30, then judge whether multiple time intervals of the second fragment are compared with the time interval of the first fragment one by one, if it is determined that the
Multiple time intervals of two fragments were all compared with the first fractional time interval, no matter in multiple times of the second fragment
The time interval of the first fragment whether is included in interval, is all no longer compared.
If after multiple time intervals of the second fragment all compare, not comprising the interval time zone of the first fractional time
Between, it is determined that the advertisement video time interval that advertiser demand communication is seen by the user in the advertisement video is not seen by the user.
Second end unit, for when multiple time intervals are all compared with the first fractional time interval, terminating
Compare the time interval of the first fragment and the time interval of the second fragment.
By said units, there can be multiple time intervals in the second fragment, and in multiple time zones of the second fragment
Between in do not have to determine that the first fragment is not played when the time interval of the first fragment, stopping continue to compare, so as to save
Operation resource.
Fig. 6 is the schematic diagram of video playback detection means according to a third embodiment of the present invention.As illustrated, the video is broadcast
Putting detection means includes first acquisition unit 10, second acquisition unit 20, comparing unit 30 and determining unit 40, wherein, second
Acquiring unit 20 includes starting module 201, terminate module 202 and logging modle 203.
At the time of starting module 201 is used to obtain when video is commenced play out.Video can be as at the time of commencing play out
The initial time of the time interval of two fragments.
At the time of terminate module 202 is used to obtain when video leaves broadcast state.It can regard that video, which leaves broadcast state,
Frequency is in buffer status, error status, halted state or video closed mode.Video can be made at the time of leaving broadcast state
For the finish time of the time interval of the second fragment.
Logging modle 203 is used to record difference at the time of when commencing play out with video at the time of when video leaves broadcast state
Value, using difference as the second fragment in video time interval.
The time interval obtained by said apparatus can be multiple in a time interval of the second fragment, the second fragment
Other time interval in time interval can also be obtained by said apparatus.
Detected by video playback detection means provided in an embodiment of the present invention video playback the first fragment whether by
Play, the played length of the first fragment can also be detected, will detect that obtained result is sent to server, calculated by server
The validity that first fragment is played, also, this method is counted by the exposure rate of the first fragment, more accurately, symbol
Total original intention for calculating video playback validity.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.