摘要 |
<p>The present invention provides a method and a system for determining advertisement ending, and a method and a system for processing the advertisement ending. The method for determining the advertisement ending comprises the following steps: sampling step: sampling a target media data flow in real time; advertisement content determining step: comparing a current sample frame of the target media data flow with pre-stored advertisement data and determining whether the current sample frame of the target media data flow is an advertisement; if yes, going to an advertisement ending determining step; and if no, returning to the sampling step; advertisement ending determining step: determining whether the advertisement finishes playing based on the current sample frame of the target media data flow and the pre-stored advertisement data; if yes, recording that the advertisement finishes playing and quitting the advertisement ending determining step; and if no, returning to the sampling step. The method determines whether the advertisement finishes playing based on the pre-stored advertisement data and sampling data of the target media data flow, which can accurately determining whether the advertisement ends, saving advertisement insertion, thus improving user experience.</p> |