CN108347630A - A kind of advertisement broadcast method, device and terminal device - Google Patents
A kind of advertisement broadcast method, device and terminal device Download PDFInfo
- Publication number
- CN108347630A CN108347630A CN201710059940.1A CN201710059940A CN108347630A CN 108347630 A CN108347630 A CN 108347630A CN 201710059940 A CN201710059940 A CN 201710059940A CN 108347630 A CN108347630 A CN 108347630A
- Authority
- CN
- China
- Prior art keywords
- advertisement
- content
- multimedia file
- player
- playing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4316—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
- H04N21/2668—Creating a channel for a dedicated end-user group, e.g. insertion of targeted commercials based on end-user profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of advertisement broadcast method, device and terminal devices, need to carry out a large amount of coding work to solve existing in the prior art when advertisement processing module switches Advertisement Server, job costs are high, and the low problem of flexibility.Advertisement broadcast method specifically includes:The play instruction that the application of advertisement player receiving front-end is sent, the play instruction are included in the advertisement player and play the parameter for needing the Advertisement Server where the ad content played during multimedia file and the mark for needing the ad content played;The advertisement player obtains the corresponding ad content of the mark from the corresponding Advertisement Server of the parameter, and the ad content of acquisition is played during playing the multimedia file.
Description
Technical field
The present invention relates to advertisements to realize field, more particularly to a kind of advertisement broadcast method, device and terminal device.
Background technology
As the smart machine based on Android android system is more and more universal, the network video played by smart machine
Frequency is also more and more.Specifically, the front end applications of smart machine are by calling Android multimedia players to realize Internet video
Broadcasting.Operator obtains profit by way of playing advertisement during smart machine plays Internet video.Existing skill
The ad content that art plays includes video and picture two major classes.
The scheme of wherein existing playing pictures series advertisements is specifically, developer is directed to specified Advertisement Server in advance
Write advertisement processing module.When playing Internet video, the multimedia player that front end applications control in the terminal device is broadcast
Internet video is put, front end applications capture when can be with the state of playing pictures advertisement in Internet video playing process, such as net
The status information captured is sent to advertisement and handles mould by network video pause state, Internet video buffer status etc., front end applications
Block.Advertisement processing module based on status information that front end applications are sent obtained in specified Advertisement Server described in capture
The corresponding advertisement of status information, and the advertisement processing module plays out the advertisement of acquisition.
However, the advertisement processing module write in advance can only correspond to specified Advertisement Server, needing to switch advertisement clothes
When business device, developer needs to rewrite advertisement processing module for the Advertisement Server after switching, to cause in advertisement
Processing module needs to carry out a large amount of coding work when switching Advertisement Server, increases job costs, and flexibility is low.
Invention content
A kind of advertisement broadcast method of offer of the embodiment of the present invention, device and terminal device, to solve to deposit in the prior art
Need to carry out a large amount of coding work when advertisement processing module switches Advertisement Server, job costs are high, and flexibility
Low problem.
In a first aspect, an embodiment of the present invention provides a kind of advertisement broadcast method, it is applied to terminal device, the terminal is set
Standby includes the front end applications and advertisement player of interconnection, the method includes:
The advertisement player receives the play instruction that the front end applications are sent, and the play instruction is included in described wide
Accuse the parameter and needs of the Advertisement Server that player plays multimedia file is needed in the process where the ad content played
The mark of the ad content of broadcasting.
The advertisement player obtains the corresponding ad content of the mark from the corresponding Advertisement Server of the parameter,
And the ad content of acquisition is played during playing the multimedia file.
With reference to first aspect, in the first possible embodiment of first aspect, further include in the play instruction
Storage address of the multimedia file in multimedia server.
The advertisement player plays the multimedia file in the following way:
The advertisement player obtains the multimedia file based on the storage address in the multimedia server
And it plays.
With reference to first aspect, in second of possible embodiment of first aspect, the advertisement player is playing
The ad content of acquisition is played during the multimedia file, including:
The advertisement player plays out the ad content of acquisition when initializing the multimedia file;
Alternatively,
The advertisement player monitors that the multimedia file is in and is loaded into during playing the multimedia file
Buffer status, the advertisement player play the ad content of acquisition;Alternatively,
The advertisement player determines during playing the multimedia file and reaches the preset institute that need to play acquisition
When at the time of stating ad content, the ad content of acquisition is played out;Alternatively,
The advertisement player receive that the front end applications send for suspending the pause for playing the multimedia file
When instruction, the ad content of acquisition is played out.
Second aspect, an embodiment of the present invention provides a kind of advertisement broadcast methods, are applied to terminal device, and the terminal is set
Standby includes the front end applications and advertisement player of interconnection, the method includes:
The front end applications detect the play instruction for multimedia file of user's triggering;The play instruction includes
Needed during the advertisement player plays multimedia file the Advertisement Server where the ad content played parameter,
And need the mark of the ad content played.
The play instruction is sent to the advertisement player by the front end applications, and the play instruction is used to indicate institute
It states advertisement player and obtains the corresponding ad content of the mark in the corresponding Advertisement Server of the parameter, and playing institute
The ad content of acquisition is played during stating multimedia file.
The third aspect, an embodiment of the present invention provides a kind of advertisement play back device, described device includes:
Playing module, for playing multimedia file;
Control module, for the play instruction that the front end applications in receiving terminal apparatus are sent, the play instruction includes
The ginseng of the Advertisement Server where the ad content played is needed during the playing module plays the multimedia file
Number and the mark for needing the ad content played;
Advertisement adaptation module obtains in the corresponding Advertisement Server of the parameter for being received from the control module
The corresponding ad content of the mark that the control module receives, and play the multimedia file in the playing module
During play the ad content of acquisition.
Further include in the play instruction in the first possible embodiment of the third aspect in conjunction with the third aspect
Storage address of the multimedia file in multimedia server.
The playing module is additionally operable to the storage address received based on the control module and is taken in the multimedia
The multimedia file is obtained in business device and is played.
In conjunction with the third aspect, in second of possible embodiment of the third aspect, the control module is additionally operable to
When determination meets following either condition, is sent to the advertisement adaptation module and be used to indicate the ad content for playing acquisition
Notification instruction:
It monitors the playing module and initializes the multimedia file;Alternatively,
It monitors during the playing module plays the multimedia file, the multimedia file, which is in be loaded into, to be delayed
When rushing state;Alternatively,
It monitors during the playing module plays the multimedia file, reaches the advertisement that need to play acquisition
When at the time of content;Alternatively,
When receiving the pause instruction for being used to indicate the pause broadcasting multimedia file that the front end applications are sent;
The advertisement adaptation module plays the institute of acquisition during the playing module plays the multimedia file
When stating ad content, it is specifically used for:It is played when receiving the notification instruction that the control module is sent described in obtaining
Ad content.
In conjunction with the third aspect, in the third possible embodiment of the third aspect, described device further includes:
Interface module is launched, for receiving and dispatching ad content;
The advertisement adaptation module obtains in the corresponding Advertisement Server of the parameter received from the control module
When taking the corresponding ad content of the mark that the control module receives, it is specifically used for:
By the dispensing interface module the corresponding ad content of the mark is obtained from the Advertisement Server.
In conjunction with the third aspect, in the 4th kind of possible embodiment of the third aspect, described device further includes:
Interface module is reported, for receiving and dispatching advertisement broadcast information;The advertisement broadcast information includes the mark of ad content,
For notifying the corresponding ad content of mark described in Advertisement Server played;
The advertisement adaptation module is additionally operable to after playing the ad content obtained, passes through the report interface mould
The advertisement broadcast information is sent to the Advertisement Server by block.
Fourth aspect, an embodiment of the present invention provides a kind of terminal devices, including:
Front end applications and advertisement player;
The front end applications, for executing the method described in second aspect;
The advertisement player, for execute first aspect either the first possible embodiment of first aspect or
Method described in second of possible embodiment of first aspect.
The parameter that advertisement player is sent based on front end applications in the embodiment of the present invention determines Advertisement Server, then true
Ad content is obtained in fixed Advertisement Server, compared with the prior art in for specified Advertisement Server write advertisement processing
Module, when needing to switch Advertisement Server, developer needs to rewrite at advertisement for the Advertisement Server after switching
The mode of module is managed, the advertisement player involved in the embodiment of the present invention can be based on the parameter pair of different Advertisement Servers
Different Advertisement Servers should be arrived, therefore front end applications carry the parameter of Advertisement Server in play instruction and are sent to advertisement and broadcast
Device is put, so that advertisement player being capable of needing to be switched in different Advertisement Servers and obtain advertisement according to front end applications
Content reduces job costs, improves spirit to reduce coding work amount of the developer when switching Advertisement Server
Activity.
Description of the drawings
Fig. 1 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of advertisement broadcast method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of advertisement broadcast method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of advertisement playing process provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of advertisement play back device provided in an embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
In the scheme of existing playing pictures series advertisements, developer writes advertisement for specified Advertisement Server in advance
Processing module.When playing Internet video, front end applications control Android multimedia players and play Internet video, and monitor
The broadcast state of Android multimedia players, at the time of appearance can be with playing pictures advertisement in Internet video playing process
When, such as at the time of there is Internet video halted state, at the time of there is Internet video buffer status etc., front end applications will be described
It can be to be sent to advertisement processing module at the time of playing pictures advertisement, advertisement processing module obtains in specified Advertisement Server
Display advertising simultaneously plays.
Front end applications both need to call Android multimedia players in the prior art, it is also necessary to monitor the more matchmakers of Android
The broadcast state of body player, and also need to notify advertisement processing module when appearance can play the state of advertisement so that
Advertisement processing module obtains display advertising and is played in specified Advertisement Server, and process is cumbersome.
Based on this, a kind of advertisement broadcast method of offer of the embodiment of the present invention, device and terminal device, to solve existing skill
Front end applications present in art need to carry out a large amount of coding work when switching Advertisement Server, and job costs are high, and flexibility
Low problem.Wherein, method and apparatus are the principle phases that are solved the problems, such as due to method and device based on same inventive concept
Seemingly, therefore the implementation of apparatus and method can be with cross-reference, and overlaps will not be repeated.
As shown in fig.1, being a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention, the terminal is set
It is standby, including front end applications and advertisement player.
The front end applications play multimedia file and broadcasting advertisement content for controlling advertisement player.
The advertisement player, for playing multimedia file under the control of the front end applications and playing in advertisement
Hold.
The present embodiments relate to advertisement player can provide video playing service and advertisement to the user to play clothes
The program of business, is typically mounted on the terminal device of user, mutually matches with front end applications, Advertisement Server and multimedia server
Operation is closed, the terminal device for being equipped with advertisement player includes but not limited to the terminal devices such as tablet, computer, mobile phone.
Wherein, the terminal device of Advertisement Server docking operator and user, the advertisement for storing operator's design
Content and the exposure status for counting ad content, multimedia server are used for storing multimedia, and the embodiment of the present invention relates to
And advertisement player multimedia file is obtained by multimedia server.
The exposure status includes but are not limited to the mark of ad content, plays the multimedia file of the ad content
Mark, play time etc. of the ad content.
Advertisement player includes multiple service routines, different service routines for realizing advertisement player different work(
Energy, such as the service routine of advertisement player may include controlling program, multimedia playing program, advertisement dispensing program, advertisement throwing
Put interface routine, advertisement report procedure, advertisement report interface routine etc..Specifically, control program includes VPlayer classes, it is more
Media play procedure includes MediaPlayer classes, and it includes AdInfo classes that program is launched in advertisement, and advertisement is launched in interface routine
Including IAdInfo classes, it includes IAdReport classes that interface routine is reported in advertisement.
As shown in fig.2, being a kind of flow chart of advertisement broadcast method provided in an embodiment of the present invention, set applied to terminal
Standby, the terminal device includes that the front end applications being connected with each other and advertisement player, the method can specifically include as follows:
S201, the advertisement player receive the play instruction that the front end applications are sent.
The play instruction includes being needed in advertisement to play during the advertisement player plays multimedia file
The parameter of Advertisement Server where holding and the mark for the ad content that need to be played.
It should be noted that the multimedia file can be video file, or audio file, or its
Its multimedia file, the embodiment of the present invention are not specifically limited herein.
In addition, the ad content involved in the embodiment of the present invention can be video ads, or display advertising, this hair
Bright embodiment is not specifically limited herein.
The parameter of Advertisement Server includes the network address of Advertisement Server, can also include Advertisement Server optionally
The data format of the ad content of middle storage, such as xml data formats or json data formats, the embodiment of the present invention is herein not
It is specifically limited.
Optionally, do not have in the parameter of the Advertisement Server include the ad content stored in Advertisement Server number
When according to format, the advertisement player obtains the ad content of xml data formats in Advertisement Server.
The mark of ad content can be the title of ad content, or ad content depositing in Advertisement Server
Address etc. is stored up, the embodiment of the present invention is not specifically limited herein.
S202, the advertisement player obtain the corresponding advertisement of the mark from the corresponding Advertisement Server of the parameter
Content, and play during playing the multimedia file ad content of acquisition.
Wherein, the advertisement player can be obtained from Advertisement Server in advance before playing the multimedia file
The ad content is simultaneously cached to local.The advertisement player can also be needed when playing the multimedia file reaching
At the time of at the time of broadcasting advertisement content initialized the multimedia file, as described in buffering at the time of multimedia file, suspend
At the time of the multimedia file and at the time of preset broadcasting advertisement content etc., ad content is obtained from Advertisement Server.
The embodiment of the present invention is not specifically limited herein.
In addition, the ad content of acquisition can be inserted by the advertisement player before playing the multimedia file
In the multimedia file, i.e., by the ad content of the multimedia file and acquisition be spliced into a new multimedia file into
Row plays.The advertisement player can also be when playing the multimedia file, at the time of arrival needs broadcasting advertisement content
When, the ad content of acquisition is inserted into the multimedia file and is played out.
In order to which subsequent descriptions are convenient, the parameter of Advertisement Server is known as Advertisement Server parameter in the embodiment of the present invention.
Specifically, front end applications pass to the Advertisement Server parameter and the mark in control program
The Advertisement Server parameter and the mark are passed to advertisement and launched in interface routine by VPlayer classes, VPlayer classes
IAdInfo classes, IAdInfo classes determine the corresponding Advertisement Server of the parameter based on the Advertisement Server parameter, and
IAdInfo classes are determined based on the mark needs advertisement to play, and advertisement launches program by calling advertisement to launch interface routine
The corresponding ad content of the mark is obtained in the corresponding Advertisement Server of the Advertisement Server parameter and is stored in local.
Optionally, when the IAdInfo classes need advertisement to play based on the mark is determining, following code can be passed through
It realizes:
public interface IAdInfo{
public Adinfo getLoadingAdInfo();// played for being arranged when initializing multimedia file
The mark of advertisement;
public Adinfo getPauseAdInfo();// for the advertisement played when suspending multimedia file to be arranged
Mark;
public Adinfo getBufferingAdInfo();// played in buffering multimedia file for being arranged
The mark of advertisement;
public Adinfo getPlayingAdInfo();// for the ad content played in predetermined time to be arranged
Mark;
}
Wherein, it is corresponding wide in the Advertisement Server parameter by calling advertisement to launch interface routine to launch program for advertisement
It accuses and obtains the corresponding ad content of the mark in server and be stored in local, realize in the following way:
It is also carried in the play instruction and each identifies corresponding local preservation address.VPlayer classes by it is described mark with
And each identify the corresponding local address that preserves and pass to advertisement dispensing program, for each mark, advertisement is launched program and is passed through
Advertisement dispensing interface routine is called to obtain the mark in the corresponding Advertisement Server of the Advertisement Server parameter corresponding
Ad content will be simultaneously stored in its corresponding storage region in corresponding local preservation address.
Advertisement player determines advertising service based on the Advertisement Server parameter that front end applications are sent in the embodiment of the present invention
Then device obtains ad content in determining Advertisement Server, compared with the prior art in for specified Advertisement Server
Advertisement processing module is write, when needing to switch Advertisement Server, developer needs to think highly of for the advertising service after switching
The new mode for writing advertisement processing module, the advertisement player involved in the embodiment of the present invention can be based on different advertisement clothes
Business device parameter corresponds to different Advertisement Servers, therefore front end applications carry the transmission of Advertisement Server parameter in play instruction
To advertisement player, obtained extensively so that advertisement player can need to be switched to according to front end in different Advertisement Servers
Accuse content reduces job costs, improves to reduce coding work amount of the developer when switching Advertisement Server
Flexibility.
Optionally, storage address of the multimedia file in multimedia server is also carried in the play instruction.
The advertisement player plays the multimedia file in the following way:
Described in the advertisement player of the terminal device is obtained in the multimedia server based on the storage address
Multimedia file simultaneously plays.
Specifically, the broadcast address is passed to the MediaPlayer classes in multimedia playing program by VPlayer classes,
MediaPlayer classes obtain the multimedia file based on the broadcast address and are played in multimedia server.
It should be noted that advertisement player can directly download the multimedia file from multimedia server;
It can be by other intermediate equipment/modules, such as agent equipment/module, download equipment/module etc., indirectly from multimedia service
The multimedia file is downloaded in device, the embodiment of the present invention is not specifically limited herein.
Optionally, the advertisement player by the ad content of acquisition be inserted in the terminal device play it is described more
It plays out, can be realized by any mode in the following two kinds mode during media file:
First way, when any one situation in following three kinds of situations occurs in the advertisement player, described in broadcasting
The ad content of acquisition is played during multimedia file.
Situation one:The advertisement player is initializing the multimedia file.
It should be noted that initializing the multimedia file refers to that multimedia player is initializing and is being arranged
Broadcast address, and download the multimedia file data to multimedia server request.
Situation one:The advertisement player monitors the multimedia file during playing the multimedia file
In loading buffer status.
It should be noted that the loading buffer status be multimedia player because the reasons such as network speed cause multimedia to broadcast
Put state when being stuck in a certain picture.
Situation three:During playing the multimedia file, determine that arrival is preset needs to play the advertisement player
At the time of the ad content obtained.
For example, can be play multimedia file the at the time of the preset ad content that need to play acquisition
10 minutes to the 11st minute, or 30 seconds the 5th minute to 23 seconds etc. the 6th minute.It should be noted that the advertisement plays
At the time of device can preset need and play the ad content obtained, it two or more can also be preset need to play and obtain
At the time of the ad content taken, the embodiment of the present invention is not specifically limited herein.
Specifically, VPlayer classes determine three of the above feelings by monitoring the method that MediaPlayer classes call call back function
The appearance of condition, so that it is determined that at the time of needing broadcasting advertisement content, VPlayer classes call advertisement to launch program and carry out ad content
It plays.Wherein, advertisement is launched the AdInfo classes in program and is defined in each advertisement corresponding at the time of need broadcasting advertisement content
The association attributes of appearance, the association attributes can be the storage that the advertisement is preserved in the terminal device where VPlayer classes
Position that the corresponding address in region, ad content are presented on the screen of the terminal device, ad content are on the screen
The height etc. that the width and ad content of presentation are presented on the screen, specifically, as shown in table 1.
Table 1
By taking there is situation two in the advertisement player as an example, defined in MediaPlayer classes one for indicating more matchmakers
Body file starts the call back function of buffering, and MediaPlayer classes start buffer status occur in multimedia file playing process
When call it is described for indicating that multimedia file starts the call back function of buffering, when VPlayer classes monitor MediaPlayer classes
When described in having invoked for indicating that multimedia file starts the call back function of buffering, VPlayer classes will be determined as needing at current time
First moment of broadcasting advertisement content.VPlayer classes are called advertisement to launch program and are corresponded in the first moment corresponding first address
Storage region in obtain the first ad content, and it is wide by described first according to the corresponding association attributes of first ad content
Content is accused to play out.
The second way, pause that the advertisement player received that the front end applications send be used to indicate play described more
When the pause instruction of media file, the ad content of acquisition is played out.
Specifically, when during the front end applications call VPlayer classes for suspending the function for playing multimedia file,
Current time is determined the second moment for needing broadcasting advertisement content by VPlayer classes.VPlayer classes call advertisement to launch program the
The second ad content is obtained in the corresponding storage region in two moment corresponding second address, and according to second ad content pair
The association attributes answered play out second ad content.
It should be noted that the definition standard of the call back function of VPlayer classes is broadcast with the multimedia in the terminal device
The definition standard for putting the call back function of device is consistent, and such as indicates that multimedia file starts the call back function of buffering, indicates more matchmakers
Call back function, the ready call back function of expression multimedia file and the expression multimedia file that body file buffering terminates are fast
Into the call back function etc. of completion.Therefore front end applications, which need not change code, can directly receive VPlayer classes by calling certainly
The notification instruction that the call back function of body is sent.
Also, the definition standard for the function that VPlayer classes externally provide and the multimedia player in the terminal device
The definition standard of the function externally provided is consistent, and is such as used to indicate the function of pause multimedia file, is used to indicate F.F.
The function of multimedia file, be used to indicate retreat multimedia file function etc., therefore front end applications need not change code can
To directly invoke the function that VPlayer classes externally provide, such as directly invokes and be used to indicate pause broadcasting multimedia in VPlayer classes
The function of file.
Optionally, the advertisement player receives the pause that is used to indicate that the front end applications are sent and plays the multimedia
After the pause instruction of file, the advertisement player suspends the multimedia player and plays the multimedia file.
Specifically, when front end applications are called in VPlayer classes for suspending the function for playing multimedia file, VPlayer
Class is called in MediaPlayer classes for suspending the function pause broadcasting multimedia file for playing multimedia file.
Optionally, the exposure status that the ad content is determined when the advertisement player broadcasting advertisement content will obtain
The exposure status of the ad content be sent to the corresponding Advertisement Server of the Advertisement Server parameter.
Specifically, ad content is played out and determines the exposure status of the advertisement by the advertisement player.
The exposure parameter of exposure status for characterizing the ad content is passed to advertisement report procedure by VPlayer classes, and advertisement converges
That the exposure parameter is sent to the Advertisement Server parameter is corresponding wide by calling advertisement to report interface routine for report program
Accuse server.Wherein, the Advertisement Server parameter is passed to advertisement report after receiving play instruction and connect by VPlayer classes
IAdReport classes in mouth program, IAdReport classes determine the Advertisement Server parameter based on the Advertisement Server parameter
Corresponding Advertisement Server.
Optionally, the IAdReport classes can be realized by following code:
public interface IAdReport{
public String getReprotUrl();// the network address for Advertisement Server to be arranged.
}
As shown in fig.3, being a kind of flow chart of advertisement broadcast method provided in an embodiment of the present invention, the method is specific
May include as follows:
S301, the front end applications detect the play instruction for multimedia file of user's triggering.
The play instruction includes being needed in advertisement to play during the advertisement player plays multimedia file
The parameter of Advertisement Server where holding and the mark for needing the ad content played.
The play instruction is sent to the advertisement player by S302, the front end applications.
The play instruction is used to indicate the advertisement player and obtains institute in the corresponding Advertisement Server of the parameter
The corresponding ad content of mark is stated, and plays the ad content of acquisition during playing the multimedia file.
Optionally, the method further includes:Front end applications detect the temporary for the multimedia file of user's triggering
Stop instruction.The pause instruction is sent to the advertisement player by the front end applications, and the pause instruction is used to indicate institute
It states advertisement player pause and plays the multimedia file.
Front end applications described in the embodiment of the present invention to advertisement player by sending control instruction, such as play instruction, temporarily
Stop instruction etc., control advertisement player play multimedia file and ad content, and middle front end applications both needed compared with prior art
Control multimedia player, it is also necessary at the time of monitoring the broadcast state determination of multimedia player needs broadcasting advertisement content,
And also need to occur can be to notify advertisement processing module when the state of broadcasting advertisement content so that advertisement processing module is referring to
Display advertising is obtained in fixed Advertisement Server and is played, and front end applications only need to call advertisement player in the embodiment of the present invention
Can be realized the broadcasting of multimedia file and ad content, front end applications call advertisement player play multimedia file with
And when ad content, at the time of need not monitor the broadcast state of advertisement player needs broadcasting advertisement content to determine, front end is answered
With by calling advertisement player directly to play corresponding ad content at the time of need to play advertisement, process is simple.
Concrete application scene is given below in embodiment for a better understanding of the present invention, using multimedia file as video text
Part calls advertisement player to play multimedia file and ad content front end applications for ad content is display advertising
Process be specifically described, as shown in figure 4, for advertisement playing process schematic diagram.Wherein, the advertisement figure launched is needed
Piece is as shown in table 2.
Table 2
S401, front end applications send play instruction to advertisement player.
The play instruction carries the terminal device and needs the display advertising institute being inserted into video file playing process
The parameter of Advertisement Server, the mark for the display advertising that need to be inserted into and the video file depositing in video server
Store up address.
S402, advertisement player receive the play instruction, and to the corresponding advertising service of the Advertisement Server parameter
It is the corresponding display advertising of the mark that device, which asks ad data, the ad data,.
S403, the corresponding Advertisement Server of the Advertisement Server parameter send the advertisement number to the advertisement player
According to.
S404, the advertisement player receive the ad data, and each corresponding picture of mark of acquisition is wide
Announcement is stored in its corresponding local and preserves in the corresponding storage region in address.
S405, the advertisement player is based on the storage address carried in the play instruction in video server
It obtains video file and prepares to play.
S406, the advertisement player obtain in the corresponding storage region in the corresponding locally preservation address of init state
Picture A is simultaneously played.
The exposure status of picture A is sent to the Advertisement Server by S407, the advertisement player.
S408, the advertisement player send preparation instruction by calling onPrepared functions to the front end applications,
The preparation instruction is for notifying the front end applications video file ready.
S409, the front end applications receive the preparation instruction, are sent to the advertisement player for playing video
The sign on of file.
S410, the advertisement player starts playing video file after receiving the sign on, and calls based on
The timing program for calculating current play time determines current play time.
S411, when the timing program determines that current play time is the 10th minute, the advertisement player is playing
10th minute to 11 minutes corresponding local preserve of state obtain picture D and play in the corresponding storage region in address.
The exposure status of picture D is sent to the Advertisement Server by S412, the advertisement player.
S413, when the timing program determines that current play time is the 11st minute, the advertisement player stopping is broadcast
Put picture D.
S414, when buffer status occurs in advertisement player, the advertisement player is in the corresponding local preservation of buffer status
Picture C is obtained in the corresponding storage region in address and is played.
The exposure status of picture C is sent to the Advertisement Server by S415, the advertisement player.
S416, at the end of determining buffer status, the advertisement player stops playing pictures C.
S417, the front end applications send the pause instruction for suspending playing video file to the advertisement player.
S418, the advertisement player suspends playing video file after receiving the pause instruction, in halted state pair
Local preserve answered obtains picture B and plays in the corresponding storage region in address.
The exposure status of picture B is sent to the Advertisement Server by S419, the advertisement player.
Based on the same inventive concept of embodiment of the method corresponding with Fig. 2, a kind of advertisement of offer of the embodiment of the present invention is broadcast
Put device 50, the structure of the device 50 as shown in figure 5, include playing module 51, control module 52 and advertisement adaptation module 53,
Wherein:
Playing module 51, for playing multimedia file.
Optionally, the playing module 51 can correspond to MediaPlayer classes.
Control module 52, for the play instruction that the front end applications in receiving terminal apparatus are sent, the play instruction packet
Include the Advertisement Server where the ad content for needing to play during the playing module 51 plays the multimedia file
Parameter and need the mark of ad content played.
Optionally, the control module 52 can correspond to VPlayer classes.
Advertisement adaptation module 53, in the corresponding Advertisement Server of the parameter for being received from the control module 52
The corresponding ad content of the mark that the control module 52 receives is obtained, and is played in the playing module 51 described more
The ad content of acquisition is played during media file.
Optionally, the advertisement adaptation module 53 can be with corresponding A dInfo classes.
Optionally, in the play instruction further include storage address of the multimedia file in multimedia server.
The playing module 51 is additionally operable to the storage address received based on the control module 52 in more matchmakers
The multimedia file is obtained in body server and is played.
Optionally, the control module 52 is additionally operable to, when determination meets following either condition, mould is adapted to the advertisement
Block 53 sends the notification instruction for being used to indicate and playing the ad content obtained:
It monitors the playing module 51 and initializes the multimedia file;Alternatively,
It monitors during the playing module 51 plays the multimedia file, the multimedia file, which is in, to be loaded into
When buffer status;Alternatively,
It monitors during the playing module 51 plays the multimedia file, the described wide of acquisition need to be played by reaching
When at the time of announcement content;Alternatively,
When receiving the pause instruction for being used to indicate the pause broadcasting multimedia file that the front end applications are sent;
The advertisement adaptation module 53 is played during the playing module 51 plays the multimedia file and is obtained
The ad content when, be specifically used for:It plays and obtains when receiving the notification instruction of the transmission of the control module 52
The ad content.
Optionally, described device further includes launching interface module 54, for receiving and dispatching ad content.
Optionally, the dispensing interface module 54 can correspond to IAdInfo classes.
The advertisement adaptation module 53, in the corresponding Advertisement Server of the parameter received from the control module 52
It is middle when obtaining the corresponding ad content of the mark that the control module 52 receives, it is specifically used for:
By the dispensing interface module 54 the corresponding ad content of the mark is obtained from the Advertisement Server.
Optionally, described device further includes reporting interface module 55, for receiving and dispatching advertisement broadcast information.
Optionally, the report interface module 55 can correspond to IAdReport classes.
The advertisement broadcast information includes the mark of ad content, for notifying that mark described in Advertisement Server is corresponding wide
It is played to accuse content.
The advertisement adaptation module 53 is additionally operable to after playing the ad content obtained, passes through the report interface
The advertisement broadcast information is sent to the Advertisement Server by module 55.
Advertisement player determines advertising service based on the Advertisement Server parameter that front end applications are sent in the embodiment of the present invention
Then device obtains ad content in determining Advertisement Server, compared with the prior art in for specified Advertisement Server
Advertisement processing module is write, when needing to switch Advertisement Server, developer needs to think highly of for the advertising service after switching
The new mode for writing advertisement processing module, the advertisement player involved in the embodiment of the present invention can be based on different advertisement clothes
Business device parameter corresponds to different Advertisement Servers, therefore front end applications carry the transmission of Advertisement Server parameter in play instruction
To advertisement player, obtained extensively so that advertisement player can need to be switched to according to front end in different Advertisement Servers
Accuse content reduces job costs, improves to reduce coding work amount of the developer when switching Advertisement Server
Flexibility.
Also, front end applications described in the embodiment of the present invention are referred to by sending control instruction to advertisement player as played
Enable, pause instruction etc., control advertisement player plays multimedia file and ad content, compared with prior art in front end applications
Both need control multimedia player, it is also necessary to monitor multimedia player broadcast state determine need broadcasting advertisement content when
It carves, and also need to can be to notify advertisement processing module in appearance when the state of broadcasting advertisement content so that advertisement processing module
Display advertising is obtained in specified Advertisement Server and is played, and front end applications only need that advertisement is called to broadcast in the embodiment of the present invention
The broadcasting that multimedia file and ad content can be realized in device is put, front end applications are calling advertisement player broadcasting multimedia text
It is preceding at the time of need not monitor the broadcast state of advertisement player needs broadcasting advertisement content to determine when part and ad content
By calling advertisement player directly to play corresponding ad content at the time of need to play advertisement, process is simple for end application.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of advertisement broadcast method, which is characterized in that be applied to terminal device, the terminal device includes before being connected with each other
End application and advertisement player, the method includes:
The advertisement player receives the play instruction that the front end applications are sent, and the play instruction is included in the advertisement and broadcasts
It puts device and plays and need the parameter of Advertisement Server where the ad content played during multimedia file and need to play
Ad content mark;
The advertisement player obtains the corresponding ad content of the mark from the corresponding Advertisement Server of the parameter, and
The ad content of acquisition is played during playing the multimedia file.
2. the method as described in claim 1, which is characterized in that further include the multimedia file in the play instruction more
Storage address in media server;
The advertisement player plays the multimedia file in the following way:
The advertisement player obtains the multimedia file based on the storage address and is broadcast in the multimedia server
It puts.
3. the method as described in claim 1, which is characterized in that the advertisement player is in the mistake for playing the multimedia file
The ad content of acquisition is played in journey, including:
The advertisement player plays out the ad content of acquisition when initializing the multimedia file;Alternatively,
The advertisement player monitors that the multimedia file is in be loaded into and buffers during playing the multimedia file
State, the advertisement player play the ad content of acquisition;Alternatively,
For the advertisement player during playing the multimedia file, the described wide of acquisition need to be played by determining that arrival is preset
When at the time of announcement content, the ad content of acquisition is played out;Alternatively,
The advertisement player receive that the front end applications send for suspending the pause instruction for playing the multimedia file
When, the ad content of acquisition is played out.
4. a kind of advertisement broadcast method, which is characterized in that be applied to terminal device, the terminal device includes before being connected with each other
End application and advertisement player, the method includes:
The front end applications detect the play instruction for multimedia file of user's triggering;The play instruction is included in institute
State advertisement player play the parameter that Advertisement Server where the ad content played is needed during multimedia file and
Need the mark of ad content played;
The play instruction is sent to the advertisement player by the front end applications, and the play instruction is used to indicate described wide
It accuses player and obtains the corresponding ad content of the mark in the corresponding Advertisement Server of the parameter, and is described more playing
The ad content of acquisition is played during media file.
5. a kind of advertisement play back device, which is characterized in that described device includes:
Playing module, for playing multimedia file;
Control module, for the play instruction that the front end applications in receiving terminal apparatus are sent, the play instruction is included in institute
State playing module play need during the multimedia file Advertisement Server where the ad content played parameter, with
And need the mark of the ad content played;
Advertisement adaptation module, obtain in the corresponding Advertisement Server of the parameter for being received from the control module described in
The corresponding ad content of the mark that control module receives, and play the mistake of the multimedia file in the playing module
The ad content of acquisition is played in journey.
6. device as claimed in claim 5, which is characterized in that further include the multimedia file in the play instruction more
Storage address in media server;
The playing module, the storage address for being additionally operable to receive based on the control module is in the multimedia server
It is middle to obtain the multimedia file and play.
7. device as claimed in claim 5, which is characterized in that the control module is additionally operable to determining that satisfaction is following any
When condition, is sent to the advertisement adaptation module and be used to indicate the notification instruction for playing the ad content obtained:
It monitors the playing module and initializes the multimedia file;Alternatively,
It monitors during the playing module plays the multimedia file, the multimedia file, which is in, is loaded into buffering shape
When state;Alternatively,
It monitors during the playing module plays the multimedia file, reaches the ad content that need to play acquisition
At the time of when;Alternatively,
When receiving the pause instruction for being used to indicate the pause broadcasting multimedia file that the front end applications are sent;
The advertisement adaptation module plays the described wide of acquisition during the playing module plays the multimedia file
When accusing content, it is specifically used for:The advertisement obtained is played when receiving the notification instruction that the control module is sent
Content.
8. device as claimed in claim 5, which is characterized in that described device further includes:
Interface module is launched, for receiving and dispatching ad content;
The advertisement adaptation module obtains institute in the corresponding Advertisement Server of the parameter received from the control module
When stating the corresponding ad content of the mark that control module receives, it is specifically used for:
By the dispensing interface module the corresponding ad content of the mark is obtained from the Advertisement Server.
9. device as claimed in claim 5, which is characterized in that described device further includes:
Interface module is reported, for receiving and dispatching advertisement broadcast information;The advertisement broadcast information includes the mark of ad content, is used for
Notify the corresponding ad content of mark described in Advertisement Server played;
The advertisement adaptation module is additionally operable to after playing the ad content obtained, will by the report interface module
The advertisement broadcast information is sent to the Advertisement Server.
10. a kind of terminal device, which is characterized in that including:
Front end applications and advertisement player;
The front end applications require the method described in 4 for perform claim;
The advertisement player requires 1 to 3 any one of them method for perform claim.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710059940.1A CN108347630A (en) | 2017-01-24 | 2017-01-24 | A kind of advertisement broadcast method, device and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710059940.1A CN108347630A (en) | 2017-01-24 | 2017-01-24 | A kind of advertisement broadcast method, device and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108347630A true CN108347630A (en) | 2018-07-31 |
Family
ID=62962880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710059940.1A Pending CN108347630A (en) | 2017-01-24 | 2017-01-24 | A kind of advertisement broadcast method, device and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108347630A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101198022A (en) * | 2007-12-26 | 2008-06-11 | 青岛海信移动通信技术股份有限公司 | Method for inter cutting video information in stream media broadcasting or buffering course |
CN101350729A (en) * | 2007-07-19 | 2009-01-21 | 华为技术有限公司 | Advertisement play method and advertisement system as well as relevant equipment |
CN103297820A (en) * | 2012-12-30 | 2013-09-11 | 乐视网信息技术(北京)股份有限公司 | Advertising information processing method |
CN103294454A (en) * | 2012-02-24 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Content playing method and system based on open platform |
CN105472401A (en) * | 2015-11-13 | 2016-04-06 | 合一网络技术(北京)有限公司 | Method and system for playing advertisement in network broadcast process |
CN105959744A (en) * | 2016-05-24 | 2016-09-21 | 武汉斗鱼网络科技有限公司 | Statistic method and device of cut-in advertisement event data |
-
2017
- 2017-01-24 CN CN201710059940.1A patent/CN108347630A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350729A (en) * | 2007-07-19 | 2009-01-21 | 华为技术有限公司 | Advertisement play method and advertisement system as well as relevant equipment |
CN101198022A (en) * | 2007-12-26 | 2008-06-11 | 青岛海信移动通信技术股份有限公司 | Method for inter cutting video information in stream media broadcasting or buffering course |
CN103294454A (en) * | 2012-02-24 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Content playing method and system based on open platform |
CN103297820A (en) * | 2012-12-30 | 2013-09-11 | 乐视网信息技术(北京)股份有限公司 | Advertising information processing method |
CN105472401A (en) * | 2015-11-13 | 2016-04-06 | 合一网络技术(北京)有限公司 | Method and system for playing advertisement in network broadcast process |
CN105959744A (en) * | 2016-05-24 | 2016-09-21 | 武汉斗鱼网络科技有限公司 | Statistic method and device of cut-in advertisement event data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104967902B (en) | Video sharing method, apparatus and system | |
US9031375B2 (en) | Video frame still image sequences | |
CN111541913B (en) | Video playing method and device of spliced screen, computer equipment and medium | |
CN108243151B (en) | Automatic animation playing method and device, client and video live broadcast system | |
CN104602133A (en) | Multimedia file shearing method and terminal as well as server | |
CN111494936A (en) | Picture rendering method, device, system and storage medium | |
CN106658111A (en) | Screen projection method and device | |
US20170163702A1 (en) | Android platform-based multimedia processing method and electronic device | |
CN108566561A (en) | Video broadcasting method, device and storage medium | |
CN108989883A (en) | A kind of living broadcast advertisement method, apparatus, equipment and medium | |
CN106131700A (en) | A kind of sharing files method and device during net cast | |
CN109618216B (en) | Method, device and equipment for displaying video loading state identification and storage medium | |
CN107333163A (en) | A kind of method for processing video frequency and device, a kind of terminal and storage medium | |
CN111225232A (en) | Video-based sticker animation engine, realization method, server and medium | |
CN110166805A (en) | Cloud handset audio transfer control method, system and storage medium | |
CN106851145A (en) | It is wireless to throw screen system and method | |
KR20220080198A (en) | Audio data processing method, server, and storage medium | |
CN109062924A (en) | Content displaying method, device, equipment and system | |
WO2017201938A1 (en) | Polling control method, apparatus and system | |
CN111131891A (en) | Audio and video playing method and device, playing equipment and system | |
CN106454393A (en) | Video caching method and device | |
CN106101806A (en) | A kind of method for processing video frequency when sharing live video and device | |
CN112770168B (en) | Video playing method, related device and equipment | |
CN108347630A (en) | A kind of advertisement broadcast method, device and terminal device | |
CN108401174B (en) | System with virtual live broadcast room live broadcast system and implementation method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180731 |