Video timing method
Technical Field
The invention relates to a video timing method, in particular to a video timing method for network playing.
Background
Along with the promotion of the versioning of I, the intellectual property is more and more valued. Video websites (such as youku, archi, fox videos) are available for viewers to watch by purchasing many types of video programs, such as drama, movie or art programs, etc., some of which are free, but more and more video resources have been moved to members and paid for. The user can buy the watching right of a certain program by buying the monthly payment or independently buying the watching right of a certain program. However, under the influence of external publicity and the scoring of viewers, most people purchase the watching right of a video, find that the video is not as wonderful as imagination, and may turn off the video to watch other videos, at this time, although the paid video program pays the cost of all the watching rights, the user does not actually watch the video completely, but drags and browses the video in the playing process, and the part which the user considers not good is skipped by dragging, so a video paying and timing method is urgently needed, so that the timing and charging are performed according to the watching time limit of the user.
Disclosure of Invention
In order to solve the above technical problem, the present invention provides a video timing method by which a user can pay for how long a user pays for watching a video for how long time by using a fee on a blade.
A video timing method, wherein the total duration of a video is H, the method comprising the steps of:
step one, when a video starts to play, namely a video enters a section of 0, H, a timer starts to time, and the timer times t0 at the moment 0;
step two, when the video is played to the H1 moment (the H1 moment is within the interval [ 0, H ]), the total duration t timed by the timer is: total = t1 and (c) is,
step three, when a user triggers dragging operation at the time of H1, the timer saves the t1 and pauses timing, and when the dragging operation is finished, the video is at the time of H2 in the interval of 0, H;
step three, when H2> H1, the processor judges whether the H2 moment is played:
1) if H2 has not been played, the timer starts to count again from 0, which is up to H3, the H3 is the earliest played time in the time interval [ H2, H3 ], and at this time, the total duration t of the video watched by the user recorded by the timer is always: totals = t0+ (H3-H2); the starting point of the timer for timing again is the earliest moment which is not played in the time interval [ H3, H ];
2) if H2 has been played, the timer will not start timing, and t always keeps t1 duration; the starting point of the timer for timing again is the earliest moment which is not played in the time interval [ H2, H ], and if all the moments in the time interval [ H2, H ] are played, the timer is not started in the time interval [ H2, H ];
step two, when H2< H1, the processor judges whether the H2 moment is played:
1) if H2 has not been played, the timer starts to count again from 0, and this timing is up to H4, and the H4 is the earliest played time in the time interval [ H2, H1 ] (the earliest time point in the interval [ H2, H1 ] dragged in all previous dragging operations), at this time, the total duration t of the user watching the video recorded by the timer is always: totals = t0+ (H4-H2); the starting point of the timer for timing again is the earliest moment which is not played in the time interval [ H4, H1 ];
2) if H2 has been played, the timer will not start timing, and t always keeps t1 duration; the starting point of the timer for timing again is the earliest moment which is not played in the time interval of [ H2, H1 ], and if all the moments in the time interval of [ H2, H1 ] are played, the timer is not started in the time interval of [ H2, H1 ].
Further, the total duration H of the video is the total duration of the pure video content, and does not include any advertisement time inserted therein.
Further, at any time of video playing, when the pause key is triggered, the timer pauses timing and saves the current time length.
Furthermore, the dragging operation may be dragging on a playing progress bar by a mouse on a computer by a user, so that a sudden change occurs at the playing time of the video playing; or the user drags the playing progress bar on any touchable device, so that the video playing time is suddenly changed.
Further, the not played representation is not played to the moment any one time of the sequential playing before the current time; the sequential playing comprises sequential uninterrupted playing from 0 moment, uninterrupted playing after any dragging operation and uninterrupted playing after any pause; the played representation is played to the time at least once in sequence before the current time.
Further, the earliest played time represents the earliest time within a certain time interval dragged in all previous dragging operations; the earliest unplayed time is before the current time, and the earliest time is not played to any time when the sequential playing is carried out within a certain time interval.
Further, the video comprises a free time length H exemption, the [ 0, H ] is replaced by the [ H exemption, H ], all dragging operations are dragged to the [ 0, H exemption ], and the timers do not count time.
Further, the H exemption is [ 360, 600 ] seconds.
Through the scheme, the user can accurately watch the watch time according to the watching time length of the user without worrying about waste.
Detailed Description
The total duration of the video is H (all the units of the parameters or data representing the time are seconds (s)) before which the advertisement duration is often included, or within the interval [ 0, H ] of the total duration H of the video, there is also the time of the advertisement, where H is defined as the total duration of the pure video content, excluding any commercial break.
Step one, when the video starts playing, namely the video enters a section of 0, H, a timer starts to time, and the timer times t0 at the time of 0.
At any time, when the pause key is triggered, the timer pauses timing and saves the current time length.
The drag operation is defined here: the dragging operation can be dragging on a playing progress bar by a mouse on a computer by a user, so that the video playing time H1 generates a sudden change, such as a sudden change to H2; or the user drags the playing progress bar on any touchable device, so that the moment H1 of video playing is suddenly changed, such as suddenly changed to H2.
When the video is played to H1 (H1 is in the interval [ 0, H ]), assuming that the total duration t timed by the timer is always: t total = t1, when the user triggers the drag operation, the timer saves the t1 and pauses timing, and when the drag operation is finished, the video is at the H2 time within the [ 0, H ] interval.
When H2> H1 (i.e., drag backward), the timer starts timing from 0 again, when the video is played to H3 in sequence (H3 time is within the interval [ 0, H ], and H3> H2), and the user does not perform any operation within the time interval [ H2, H3 ], the total duration t of the video watched by the user recorded by the timer is always: totals = t0+ (H3-H2).
When H2< H1 (i.e., drag forward), the processor determines whether the H2 time was played,
1) if H2 has not been played (i.e., before the current time, no sequential playing is played to H2, sequential playing includes sequential uninterrupted playing from 0 and uninterrupted playing after any drag operation, and uninterrupted playing after any pause), the timer starts timing from 0 again, and the timing ends up to H4, the H4 is the earliest playing time in the time interval [ H2, H1 ] (the earliest time point in the interval [ H2, H1 ] dragged in all previous drag operations), at which time, the total duration t of the user watching the video recorded by the timer is always: totals = t0+ (H4-H2). The starting point of the timer for timing again is the earliest moment which is not played in the time interval [ H4, H1 ].
2) If H2 has been played, the timer will not start timing, and t always keeps t1 duration; the starting point of the timer for timing again is the earliest moment which is not played in the time interval of [ H2, H1 ], and if all the moments in the time interval of [ H2, H1 ] are played, the timer is not started in the time interval of [ H2, H1 ].
In addition, the playing of the video often has free browsing duration, the duration interval is [ 0, H exempt ], the H exempt is generally [ 360, 600 ] seconds, at this time, the interval [ 0, H ] is replaced by [ H exempt, H ], and all the dragging operations are dragged to the [ 0, H exempt ], and the timer is not timed.
Through the scheme, the user can accurately watch the watch time according to the watching time length of the user without worrying about waste.