Summary of the invention
Embodiments of the invention provide a kind of advertisement cut-in method and player, for realizing advertisement insertion.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The invention provides a kind of advertisement cut-in method, comprising:
When player detects video playback and finishes, described player sends advertisement play instruction to ad plug-in, so that described ad plug-in is determined advertisement to be played, whether is successfully loaded on described player;
If described advertisement to be played is successfully loaded on described player, described player receives the first instruction from described ad plug-in, and the described advertisement to be played of described the first instruction indication is successfully loaded on described player;
Described player receives the second instruction from described ad plug-in, and the described advertisement to be played of described the second instruction indication finishes playing or described advertisement to be played is prohibited to play;
The described video playback that shows described player finishes or switches to next collection video of described video.
If described advertisement to be played loads unsuccessfully, described player receives the 3rd instruction from described ad plug-in, and the described video to be played of described the 3rd instruction indication loads unsuccessfully;
The described video playback that shows described player finishes or switches to next collection video of described video.
When the described advertisement to be played of described the second instruction indication finishes playing, after described player receives the first instruction from described ad plug-in, before described player receives the second instruction from described ad plug-in, described method also comprises:
Described player sends checking command to described ad plug-in;
Described player receives the attribute information from the described advertisement to be played of described ad plug-in, and described attribute information at least comprises the duration of described advertisement to be played;
Described player judges whether described duration is less than or equal to preset value;
If described duration is less than or equal to described preset value, described player sends the 4th instruction to described ad plug-in, so that described ad plug-in is play described advertisement to be played, described the 4th instruction indication allows to play described advertisement to be played.
When the described advertisement to be played of described the second instruction indication is prohibited to play, after described player receives the first instruction from described ad plug-in, before described player receives the second instruction from described ad plug-in, described method also comprises:
Described player sends checking command to described ad plug-in;
Described player receives the attribute information from the described advertisement to be played of described ad plug-in, and described attribute information at least comprises the duration of described advertisement to be played;
Described player judges whether described duration is less than or equal to preset value;
If described duration is greater than described preset value, described player sends the five fingers order to described ad plug-in, and described the five fingers order indication forbids playing described advertisement to be played.
Described advertisement play instruction comprises the video type that user likes, the video type that described user likes is that described player is determined according to user's Visitor Logs.
The present invention also provides a kind of player, comprising:
Transmitting element, for when video playback being detected and finish, sends advertisement play instruction to ad plug-in, so that described ad plug-in is determined advertisement to be played, whether is successfully loaded on described player;
Receiving element, if be successfully loaded on described player for described advertisement to be played, receives the first instruction from described ad plug-in, and the described advertisement to be played of described the first instruction indication is successfully loaded on described player;
Described receiving element, also for receiving the second instruction from described ad plug-in, the described advertisement to be played of described the second instruction indication finishes playing or described advertisement to be played is prohibited to play;
Broadcast unit, for showing that described video playback finishes or switch to next collection video of described video.
Described receiving element, if also load unsuccessfully for described advertisement to be played, receives the 3rd instruction from described ad plug-in, and the described video to be played of described the 3rd instruction indication loads unsuccessfully;
Described broadcast unit, for showing that described video playback finishes or switch to next collection video of described video.
When the described advertisement to be played of described the second instruction indication finishes playing,
Described transmitting element, also for checking command to described ad plug-in;
Described receiving element, also, for receiving the attribute information from the described advertisement to be played of described ad plug-in, described attribute information at least comprises the duration of described advertisement to be played;
Described player, also comprises:
Judging unit, for judging whether described duration is less than or equal to preset value;
Described transmitting element, if be also less than or equal to described preset value for described duration, sends the 4th instruction to described ad plug-in, so that described ad plug-in is play described advertisement to be played, described the 4th instruction indication allows to play described advertisement to be played.
When the described advertisement to be played of described the second instruction indication is prohibited to play,
Described transmitting element, also for sending checking command to described ad plug-in;
Described receiving element, also, for receiving the attribute information from the described advertisement to be played of described ad plug-in, described attribute information at least comprises the duration of described advertisement to be played;
Described player, also comprises:
Judging unit, for judging whether described duration is less than or equal to preset value;
Described transmitting element, if be also greater than described preset value for described duration, sends the five fingers order to described ad plug-in, and described the five fingers order indication forbids playing described advertisement to be played.
Described advertisement play instruction comprises the video type that user likes, the video type that described user likes is that described player is determined according to user's Visitor Logs.
The embodiment of the present invention provides a kind of advertisement cut-in method and player, player is when video playback being detected and finish, by sending advertisement play instruction to ad plug-in, with indication ad plug-in, carry out loading and the broadcasting of advertisement to be played, player is after waiting for that ad plug-in finishes playing advertisement to be played, display video is play and is finished or switch to next collection video again, thereby has realized advertisement insertion.
Embodiment
In below describing, in order to illustrate rather than in order limiting, to have proposed the detail such as particular system structure, interface, technology, to thoroughly understand the present invention.Yet, not it will be clear to one skilled in the art that in there is no other embodiment of these details and can realize the present invention yet.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders description of the invention.
Embodiment mono-
The embodiment of the present invention provides a kind of advertisement cut-in method, as shown in Figure 1, comprising:
101,, when player detects video playback and finishes, player sends advertisement play instruction to ad plug-in, so that ad plug-in is determined advertisement to be played, whether is successfully loaded on player.
The present invention program's advertisement cut-in method, is directed to and intercuts run-out advertisement, when video playback finishes, carries out advertisement insertion.
Particularly, when player detects video playback and finishes, player can send advertisement play instruction to ad plug-in.Wherein, ad plug-in specifically can refer to the computer program with a subsidiary advertisement, usings the software of advertisement as the source of profits.Player sends advertisement play instruction to ad plug-in, and ad plug-in is treated broadcast advertisement and loaded, to determine whether advertisement to be played is successfully loaded on player.
Further, the advertisement of the embodiment of the present invention can be any one in the text edited of video file, audio file, image file or user, or advertisement can be also the file that the file of above-mentioned at least two kinds of forms arbitrarily forms.The embodiment of the present invention does not limit the concrete form of advertisement.
If 102 advertisements to be played are successfully loaded on player, player receives the first instruction from ad plug-in, and the first instruction indicates advertisement to be played to be successfully loaded on player.
103, player receives the second instruction from ad plug-in, and the second instruction indicates advertisement to be played to finish playing or advertisement to be played is prohibited to play.
104, player display video is play next the collection video that finishes or switch to video.
When ad plug-in plays after advertisement to be played, ad plug-in can send the second instruction to player, the second instruction indicates advertisement to be played to finish playing or advertisement to be played is prohibited to play, player is knowing that advertisement to be played finishes playing or advertisement to be played is prohibited after broadcasting, and display video is play next the collection video that finishes or switch to video.
A kind of situation arranged side by side with step 103-105, if advertisement to be played loads unsuccessfully, player receives the 3rd instruction from ad plug-in, the 3rd instruction indicates video to be played to load unsuccessfully; Player display video is play next the collection video that finishes or switch to video.
Further, when the second instruction indicates advertisement to be played to finish playing, after player receives the first instruction from ad plug-in, before player receives the second instruction from ad plug-in, method also comprises: player sends checking command to ad plug-in; Player receives the attribute information from the advertisement to be played of ad plug-in, and attribute information at least comprises the duration of advertisement to be played; Player judges whether duration is less than or equal to preset value; If duration is less than or equal to preset value, player sends the 4th instruction to ad plug-in, so that ad plug-in is play advertisement to be played, the 4th instruction indication allows to play advertisement to be played.
Or, when the second instruction indicates advertisement to be played to be prohibited to play, after player receives the first instruction from ad plug-in, before player receives the second instruction from ad plug-in, method also comprises: player sends checking command to ad plug-in; Player receives the attribute information from the advertisement to be played of ad plug-in, and attribute information at least comprises the duration of advertisement to be played; Player judges whether duration is less than or equal to preset value; If duration is greater than preset value, player sends the five fingers and makes to ad plug-in, and the five fingers order indication forbids playing advertisement to be played.
The embodiment of the present invention provides a kind of advertisement cut-in method, when player detects video playback and finishes, player sends advertisement play instruction to ad plug-in, so that determining advertisement to be played, ad plug-in whether is successfully loaded on player, if advertisement to be played is successfully loaded on player, player receives the first instruction from ad plug-in, the first instruction indicates advertisement to be played to be successfully loaded on player, player receives the second instruction from ad plug-in, the second instruction indicates advertisement to be played to finish playing or advertisement to be played is prohibited to play, player display video is play next the collection video that finishes or switch to video.By this scheme, player is when video playback being detected and finish, by sending advertisement play instruction to ad plug-in, with indication ad plug-in, carry out loading and the broadcasting of advertisement to be played, player is after waiting for that ad plug-in finishes playing advertisement to be played, display video is play and is finished or switch to next collection video again, thereby has realized advertisement insertion.
Embodiment bis-
The embodiment of the present invention provides a kind of advertisement cut-in method, as shown in Figure 2, comprising:
201,, when player detects video playback and finishes, player sends advertisement play instruction to ad plug-in.
202, ad plug-in determines whether advertisement to be played is successfully loaded on player.
Concrete, ad plug-in, after the advertisement play instruction receiving from player, is treated broadcast advertisement and is loaded, and determines whether advertisement to be played is successfully loaded on player.
It should be noted that, the advertisement of the embodiment of the present invention can be any one in the text edited of video file, audio file, image file or user, or advertisement can be also the file that the file of above-mentioned at least two kinds of forms arbitrarily forms.The embodiment of the present invention does not limit the concrete form of advertisement.
If 203 advertisements to be played are successfully loaded on player, ad plug-in sends the first instruction to player.
Wherein, the first instruction indicates advertisement to be played to be successfully loaded on player.
204, player sends checking command to ad plug-in.
Wherein, player, knowing that advertisement to be played is successfully loaded on after player, can send checking command to ad plug-in, to treat the legitimacy of broadcast advertisement, carries out verification.
205, the attribute information that ad plug-in sends advertisement to be played is to player, and attribute information at least comprises the duration of advertisement to be played.
Particularly, ad plug-in, after the checking command receiving from player, is back to player by the attribute information of advertisement to be played, and wherein, attribute information at least comprises the duration of advertisement to be played.
Further, the attribute information of advertisement to be played can also comprise other information such as address of advertisement to be played, and all, for the legitimacy of player verification advertisement to be played, the present invention does not limit.
206, player judges whether duration is less than or equal to preset value.
Wherein, player is after the attribute information receiving from the duration that includes advertisement to be played of ad plug-in, and player judges whether duration is less than or equal to preset value.
For example, the maximum duration that player allow to break for commercialsy is 60 seconds, and preset value is 60 seconds, if the duration of the advertisement to be played so in attribute information is greater than 60 seconds, player does not allow to intercut this advertisement to be played.
If 207 durations are less than or equal to preset value, player sends the 4th instruction to ad plug-in.
If player judges the duration of advertisement to be played and be less than or equal to preset value, for example 60 seconds, player sent the 4th instruction to ad plug-in, and wherein, the 4th instruction indication allows to play advertisement to be played.
208, ad plug-in is play advertisement to be played.
209, player receives the second instruction from ad plug-in.
Wherein, the second instruction indicates advertisement to be played to finish playing.
210, player display video is play next the collection video that finishes or switch to video.
When ad plug-in plays after advertisement to be played, ad plug-in can send the second instruction to player, the second instruction indicates advertisement to be played to finish playing, and player is after knowing that advertisement to be played finishes playing, and display video is play next the collection video that finishes or switch to video.
If 211 durations are greater than preset value, player sends the five fingers order.
A kind of situation arranged side by side with step 207-210, is greater than preset value if player judges the duration of advertisement to be played, and player sends the five fingers and makes to ad plug-in, and wherein, the five fingers order indication forbids playing advertisement to be played.
Further, if player judges the duration of advertisement to be played, be greater than preset value, player can also cut out the advertisement interface between player and ad plug-in, and the present invention does not limit.
212, player display video is play next the collection video that finishes or switch to video.
In judgement, do not allow to play after advertisement to be played, player display video is play next the collection video that finishes or switch to video.
If 213 advertisements to be played load unsuccessfully, ad plug-in sends the 3rd instruction to player.
A kind of situation arranged side by side with step 203-212, if advertisement to be played loads unsuccessfully, for example advertisement does not exist, and ad plug-in sends the 3rd instruction to player, and wherein, the 3rd instruction indicates video to be played to load unsuccessfully.
214, player display video is play next the collection video that finishes or switch to video.
The embodiment of the present invention provides a kind of advertisement cut-in method, when player detects video playback and finishes, player sends advertisement play instruction to ad plug-in, so that determining advertisement to be played, ad plug-in whether is successfully loaded on player, if advertisement to be played is successfully loaded on player, player receives the first instruction from ad plug-in, the first instruction indicates advertisement to be played to be successfully loaded on player, player receives the second instruction from ad plug-in, the second instruction indicates advertisement to be played to finish playing or advertisement to be played is prohibited to play, player display video is play next the collection video that finishes or switch to video.By this scheme, player is when video playback being detected and finish, by sending advertisement play instruction to ad plug-in, with indication ad plug-in, carry out loading and the broadcasting of advertisement to be played, player is after waiting for that ad plug-in finishes playing advertisement to be played, display video is play and is finished or switch to next collection video again, thereby has realized advertisement insertion.
Embodiment tri-
As shown in Figure 3, the embodiment of the present invention provides a kind of player 1, comprising:
Transmitting element 10, for when video playback being detected and finish, sends advertisement play instruction to ad plug-in, so that described ad plug-in is determined advertisement to be played, whether is successfully loaded on described player;
Receiving element 11, if be successfully loaded on described player for described advertisement to be played, receives the first instruction from described ad plug-in, and the described advertisement to be played of described the first instruction indication is successfully loaded on described player;
Described receiving element 11, also for receiving the second instruction from described ad plug-in, the described advertisement to be played of described the second instruction indication finishes playing or described advertisement to be played is prohibited to play;
Broadcast unit 12, for showing that described video playback finishes or switch to next collection video of described video.
Further, described receiving element 11, if also load unsuccessfully for described advertisement to be played, receives the 3rd instruction from described ad plug-in, and the described video to be played of described the 3rd instruction indication loads unsuccessfully;
Described broadcast unit 12, for showing that described video playback finishes or switch to next collection video of described video.
Further, as shown in Figure 4:
When the described advertisement to be played of described the second instruction indication finishes playing,
Described transmitting element 10, also for checking command to described ad plug-in;
Described receiving element 11, also, for receiving the attribute information from the described advertisement to be played of described ad plug-in, described attribute information at least comprises the duration of described advertisement to be played;
Described player 1, also comprises:
Judging unit 13, for judging whether described duration is less than or equal to preset value;
Described transmitting element 10, if be also less than or equal to described preset value for described duration, sends the 4th instruction to described ad plug-in, so that described ad plug-in is play described advertisement to be played, described the 4th instruction indication allows to play described advertisement to be played.
Or,
When the described advertisement to be played of described the second instruction indication is prohibited to play,
Described transmitting element 10, also for sending checking command to described ad plug-in;
Described receiving element 11, also, for receiving the attribute information from the described advertisement to be played of described ad plug-in, described attribute information at least comprises the duration of described advertisement to be played;
Described player 1, also comprises:
Judging unit 13, for judging whether described duration is less than or equal to preset value;
Described transmitting element 10, if be also greater than described preset value for described duration, sends the five fingers order to described ad plug-in, and described the five fingers order indication forbids playing described advertisement to be played.
Further, described advertisement play instruction comprises the video type that user likes, the video type that described user likes is that described player is determined according to user's Visitor Logs.
The embodiment of the present invention provides a kind of player, when player detects video playback and finishes, described player sends advertisement play instruction to ad plug-in, so that determining advertisement to be played, described ad plug-in whether is successfully loaded on described player, if described advertisement to be played is successfully loaded on described player, described player receives the first instruction from described ad plug-in, the described advertisement to be played of described the first instruction indication is successfully loaded on described player, described player receives the second instruction from described ad plug-in, the described advertisement to be played of described the second instruction indication finishes playing or described advertisement to be played is prohibited to play, the described video playback that shows described player finishes or switches to next collection video of described video.By this scheme, player is when video playback being detected and finish, by sending advertisement play instruction to ad plug-in, with indication ad plug-in, carry out loading and the broadcasting of advertisement to be played, player is after waiting for that ad plug-in finishes playing advertisement to be played, display video is play and is finished or switch to next collection video again, thereby has realized advertisement insertion.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.