Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the following embodiments and accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Example 1
As shown in fig. 1, in embodiment 1 of the present invention, a functional structure of a terminal 100 for implementing advertisement playing is shown, where the apparatus 100 includes: an advertisement data acquisition unit 101, an advertisement data storage unit 102, a control information request unit 103, an advertisement data playing unit 104, and an advertisement data statistics unit 105.
The advertisement acquisition unit 101 is configured to acquire advertisement data from an advertisement application server, wherein the advertisement acquisition unit 101 includes: and the update information request module is used for sending an advertisement update request message to the advertisement application server according to a preset period. The updating information receiving module is used for receiving an advertisement updating response message which is sent by the advertisement application server and contains advertisement updating information and receiving the advertisement updating information actively pushed by the advertisement application server, wherein the advertisement updating information comprises an advertisement identifier and an advertisement downloading address. And the advertisement data downloading module downloads advertisement data corresponding to the advertisement identification from the advertisement application server according to the advertisement downloading address and the advertisement identification in the advertisement updating information.
An advertisement data storage unit 102 for storing the advertisement data acquired by the advertisement acquisition unit 101.
A control information request unit 103 for transmitting a play control request message to the advertisement application server according to a predetermined period.
An advertisement data playing unit 104, configured to receive playing control information transmitted by the advertisement application server through the call setup signaling, and play advertisement data corresponding to the playing control information in real time; and receiving a play control response message containing a control information download address sent by the advertisement application server, downloading the play control information according to the received control information download address, storing the downloaded play control information, and playing the corresponding advertisement data at a predetermined time according to the stored play control information.
And the advertisement data counting unit 105 is configured to count the playing times of the advertisement data, and report the playing times of the advertisement data to the advertisement application server.
The advertisement data in the present embodiment includes audio advertisement data and video advertisement data.
The present embodiment has the advantage that the apparatus 100 can not only avoid the dependence of the advertisement data playing quality on the network bandwidth, but also more flexibly control the playing content and the playing time of the local advertisement data according to the playing control information sent by the advertisement application server.
Example 2
As shown in fig. 2, a flow of a video advertisement playing method in embodiment 2 of the present invention is shown, which includes the following steps:
step 201, the terminal receives advertisement update information issued by the advertisement application server.
The terminal receives the updating information actively pushed by the advertisement application server, or the terminal periodically requests the advertisement application server for the advertisement updating information according to a preset period and receives the advertisement updating information sent by the advertisement application server through the response information. The advertisement updating information contains the download address of the advertisement data and the advertisement identification.
In step 202, the terminal downloads advertisement data.
And the terminal downloads advertisement data corresponding to the advertisement identification from the advertisement application server according to the advertisement downloading address and the advertisement identification.
And step 203, the terminal stores the downloaded advertisement data.
In step 204, the terminal receives the playing control information transmitted by the advertisement application server through the call setup signaling.
In step 205, the terminal plays the advertisement data corresponding to the play control information in the stored advertisement data in real time according to the received play control information.
And step 206, the terminal reports the playing times of the advertisement data to the advertisement application server.
The terminal counts the playing times of the advertisement data and actively reports the playing times of the advertisement data to the advertisement application server, or reports the playing times of the advertisement data to the advertisement application server through a response message of the query message after receiving the query message sent by the advertisement application server.
In this embodiment, the manner in which the terminal obtains the play control information may be varied. Such as: after downloading and storing the advertisement data, the terminal can periodically request the advertisement application server for playing control information according to a preset period, receive a playing control downloading address sent by the advertisement application server through a response message, and download the playing control information from the advertisement application server according to the received control information downloading address; or after the terminal downloads and stores the advertisement data, the terminal receives the control information download address actively pushed by the advertisement application server, and the terminal downloads the playing control information from the advertisement application server according to the control information download address pushed by the advertisement application server.
And after the terminal downloads the playing control information, storing the downloaded playing control information, and playing the advertisement data corresponding to the stored playing control information at preset time.
The advertisement data in the present embodiment includes audio advertisement data and video advertisement data.
The method has the advantages that the terminal can realize video advertisement playing according to the playing control information sent by the advertisement application server, so that the dependence of the advertisement data playing quality on network bandwidth can be avoided, and the playing content and the playing time of local advertisement data can be controlled more flexibly.
Example 3
The embodiment provides a server for realizing advertisement playing: as shown in fig. 3, the server includes: an update information transmitting unit 301, a control information transmitting unit 302, a terminal information counting unit 303, an advertisement data storage unit 304, a device information maintenance unit 305, and a control information storage unit 306.
An update information sending unit 301, configured to actively push the advertisement update information to a terminal or receive an advertisement update request message periodically sent by the terminal, and send the advertisement update information to the terminal through an advertisement update response message. The advertisement update information includes at least: advertisement identification and advertisement download address.
A control information sending unit 302, configured to send play control information to a terminal through a call setup signaling to control the terminal to play the advertisement data corresponding to the play control information in real time, actively push a download address of the play control information to the terminal, receive a play control request message periodically sent by the terminal, and send the download address of the play control information to the terminal through a play control response message.
The terminal information counting unit 303 is configured to receive the advertisement data playing times actively reported by the terminal, actively query the advertisement data playing times of the terminal, and analyze and count the advertisement data played by the terminal according to the advertisement data playing times.
And an advertisement data storage unit 304 for storing advertisement data for the terminal to download.
A device information maintenance unit 305 for storing advertisement update information of the updated advertisement data of the terminal.
A control information storage unit 306, configured to store the playing control information that needs to be sent to the terminal.
The method has the advantages that the terminal can play the stored video advertisement according to the playing control information sent by the advertisement application server, so that the dependence of the playing quality of the advertisement data on the network bandwidth can be avoided, and the playing content and the playing time of the local advertisement data can be controlled more flexibly.
Example 4
The embodiment provides a method for playing a video advertisement, as shown in fig. 4, the method includes the following steps:
in step 401, the advertisement application server sends advertisement update information to the terminal.
The advertisement application server can actively push the advertisement updating information to the terminal or send the advertisement updating information to the terminal through an advertisement updating response message according to an advertisement updating request message sent by the terminal periodically. The advertisement update information contains an advertisement download address and an advertisement identification of the advertisement data. And the terminal downloads the advertisement data corresponding to the advertisement identification from the advertisement application server according to the advertisement downloading address and stores the downloaded advertisement data.
Step 402, the advertisement application server sends the playing control information to the terminal through a call establishment signaling to control the terminal to play the advertisement data corresponding to the playing control information in real time;
in step 403, the advertisement application server sends the download address of the play control information to the terminal.
In this embodiment, the manner in which the advertisement application server provides the play control information to the terminal may be variously changed. Such as: the advertisement application server can actively push the download address of the playing control information to the terminal, and the terminal downloads the playing control information from the advertisement application server according to the download address of the control information pushed by the advertisement application server. Or after receiving the playing control request message periodically sent by the terminal, the advertisement application server sends the downloading address of the playing control information to the terminal through the playing control response message, and the terminal downloads the playing control information according to the downloading address of the received control information.
And 404, the advertisement application server counts and analyzes the advertisement data played by the terminal according to the playing times of the advertisement data reported by the terminal.
In this embodiment, the manner in which the advertisement application server receives the number of times that the terminal reports the advertisement data may be varied. The advertisement application server can receive the playing times of the advertisement data actively reported by the terminal; or the advertisement application server sends a query message to the terminal to actively query the playing times of the advertisement data. And the advertisement application server receives the advertisement data playing times sent by the terminal through the response message of the query message.
The method has the advantages that the terminal can play the stored video advertisement according to the playing control information sent by the advertisement application server, so that the dependence of the playing quality of the advertisement data on the network bandwidth can be avoided, and the playing content and the playing time of the local advertisement data can be controlled more flexibly.
Example 5
The embodiment provides a system for realizing advertisement playing, which consists of an advertisement application server and more than one terminal.
The advertisement application server includes: the system comprises an update information sending unit, a control information sending unit, a terminal information statistic unit, an advertisement data storage unit, an equipment information maintenance unit and a control information storage unit.
The terminal includes: the advertisement information processing system comprises an advertisement acquisition unit, an advertisement data storage unit, a control information request unit, an advertisement data playing unit and an advertisement data statistical unit.
In this embodiment, the functional structure of each unit of the advertisement application server is the same as that of the server in embodiment 3, and therefore the functional structure of each unit of the advertisement application server is not described in detail in this embodiment.
In this embodiment, the functional structure of each unit in the terminal is the same as that of the terminal in embodiment 1, and thus the functional structure of each unit in the terminal is not described in detail in this embodiment.
The method has the advantages that the terminal can play the stored video advertisement according to the playing control information sent by the advertisement application server, so that the dependence of the playing quality of the advertisement data on the network bandwidth can be avoided, and the playing content and the playing time of the local advertisement data can be controlled more flexibly.
Example 6
As shown in fig. 5A, in order to implement the terminal function structure for playing advertisement in embodiment 6 of the present invention, the terminal 500 includes: an advertisement registration unit 501, configured to send a registration request message to an advertisement application server, and receive a registration request response message sent by the advertisement application server; an advertisement updating unit 502, configured to receive an advertisement updating request sent by an advertisement application server and send an advertisement updating request response message to the advertisement application server; an advertisement downloading unit 503 for downloading the video advertisement from the advertisement application server according to the advertisement update request; an advertisement storage unit 504 for storing the downloaded video advertisements; an advertisement playing unit 505, configured to receive and analyze a real-time playing policy and play a video advertisement according to the analyzed real-time playing policy; and an advertisement counting unit 506, configured to count the playing times of the video advertisement according to the playing time counting information in the real-time playing policy, and send the counted playing times of the video advertisement to the advertisement application server.
As shown in fig. 5B, in order to implement the functional structure of the advertisement playing unit 505 in embodiment 6 of the present invention, the advertisement playing unit 505 includes: a playing policy acquiring module 5051, configured to receive a real-time playing policy issued by an advertisement application server; a playing policy parsing module 5052, configured to parse the received real-time playing policy; the advertisement playing module 5053 is configured to select a corresponding advertisement from the advertisement storage unit 504 for real-time playing according to the analyzed real-time playing policy.
As shown in fig. 6A, a process of playing a video advertisement by a terminal in embodiment 6 of the present invention includes:
in step 601, the terminal 500 transmits a registration request message to the advertisement application server.
When the terminal 500 is started, a registration request message including a user name, a password, and a terminal IP address is transmitted to the advertisement application server. The advertisement application server compares the received user name and password with the stored user name and password in a consistent manner, and verifies whether the terminal 500 is a legal user; if the verification result is consistent, the terminal 500 is a legal user, and the advertisement application server stores the IP address of the terminal; if the verification result is inconsistent, the advertisement application server does not receive the message sent by the terminal 500 any more and does not send the video advertisement and the real-time playing strategy to the terminal 500.
In step 602, the terminal 500 receives a registration request response message sent by the advertisement application server.
When the advertisement application server verifies that the terminal 500 is a legal user, the advertisement application server returns an identity verification result of 'verification success' to the terminal 500 through a registration request response message; when the advertisement application server verifies that the terminal 500 is an illegal user, the advertisement application server returns an authentication result of 'authentication failure' to the terminal 500 through a registration request response message. As shown in fig. 6B, when the authentication result received by the terminal 500 is "authentication failure", the terminal 500 notifies the user of the authentication failure through the screen display, and prompts the user to re-input the user name and password for registration.
In step 603, the terminal 500 receives an advertisement update request.
The advertisement application server stores therein video advertisement update information of each terminal, such as advertisement IDs of video advertisements a and B updated in the terminal 500. The advertisement application server sends the information of the video advertisement C and the video advertisement D which need to be updated to the terminal 500 through an advertisement updating request according to the video advertisement updating information of the terminal 500, wherein the advertisement updating request comprises the following information of the video advertisement C and the video advertisement D: advertisement ID, advertisement duration, download address, priority and other information.
In step 604, the terminal 500 transmits an advertisement update request response message to the advertisement application server.
After receiving the advertisement update request, the terminal 500 generates an advertisement update request response message and sends the advertisement update request response message to the advertisement application server, and notifies the advertisement application server that the delivered advertisement update request has been successfully received.
In step 605, the terminal 500 downloads a video advertisement from the advertisement application server.
After the terminal 500 receives the advertisement update request from the advertisement application server, the terminal downloads the video advertisement C and the video advertisement D from the advertisement application server in a downloading manner, such as http, ftp, tftp, and the like, agreed in advance with the advertisement application server according to the advertisement ID and the downloading address of the video advertisement C and the video advertisement D, and stores the downloaded video advertisement C and the downloaded video advertisement D as the local video advertisement.
As shown in Table 1, for the advertisement information of the video advertisement A, B, C, D stored in the terminal 500:
table 1:
advertisement ID |
Priority level |
Update time |
Duration of advertisement |
A |
Height of |
2008-08-07 |
5s |
B |
Height of |
2008-08-01 |
5s |
C |
In |
2008-09-01 |
5s |
D |
Is low in |
2008-07-01 |
5s |
In step 606, the terminal 500 receives a real-time playing policy.
When the terminal 500 calls other terminals through the SIP protocol, the advertisement application server sends the real-time play policy including the advertisement ID a and the play count statistical information to the terminal 500 through the SDP attribute in the 180 response message in the call setup signaling.
In step 607, the terminal 500 plays the video advertisement.
The terminal 500 analyzes the real-time playing strategy to obtain the advertisement ID of the video advertisement A, and the terminal 500 plays the video advertisement A in real time.
In step 608, the terminal 500 reports the playing frequency of the video advertisement to the advertisement application server.
When the terminal 500 plays the video advertisement a once, the playing times of the video advertisement in the terminal are counted according to the playing time counting information in the real-time playing strategy, and the counted playing times of the video advertisement are actively sent to the advertisement application server at regular time. After the terminal 500 reports the number of times of play to the advertisement application server, the terminal 500 clears the counted number of times of play.
The advertisement application server performs statistical analysis on the playing times of the video advertisement reported by the terminal 500, and charges an advertiser according to the statistical analysis result.
Those skilled in the art can change the downloading manner of the video advertisement in this embodiment according to the content of this embodiment. For example, the advertisement application server issues all supported downloading manners to the terminal 500 in the advertisement updating request, and the terminal 500 selects one of all downloading manners and downloads the video advertisement from the advertisement application server according to the selected downloading manner.
Those skilled in the art can change the receiving manner of the real-time playing policy in this embodiment according to the content of this embodiment. For example, when the terminal 500 calls another terminal through the SIP protocol, the terminal 500 receives the real-time play policy through the SDP attribute in the 183 response message sent by the advertisement application server; or the terminal 500 receives a real-time play policy through an Update (Update) request of the advertisement application server; or, the terminal 500 receives the real-time playing policy through the Update/re-invite message sent by the advertisement application server in the call process; or, the terminal 500 receives the real-time playing policy through a header field or an attribute extended in a message delivered by the advertisement application server.
Those skilled in the art can make various changes to the control information in the real-time playing strategy according to the content of this embodiment. For example: the real-time playing strategy corresponds to a video advertisement and does not contain playing time statistic information. After the terminal 500 plays the video advertisement corresponding to the real-time playing strategy, the advertisement application server automatically counts the playing times of the video advertisement according to the issued real-time playing strategy. The real-time playing strategy corresponds to a plurality of video advertisements and comprises playing sequence information and playing frequency statistical information, the terminal 500 plays each video advertisement corresponding to the playing strategy in sequence according to the playing sequence indication information in the real-time playing strategy, and the terminal 500 counts the playing frequency of the video advertisements according to the playing frequency statistical information. The real-time playing strategy may also be real-time playing starting indication information, and the terminal 500 randomly selects the local video advertisement according to the real-time playing strategy to play in real time.
The playback sequence information includes: continuous playing according to the video advertisement ID (playing once in sequence according to the video advertisement ID), circular playing according to the video advertisement ID (playing repeatedly in sequence according to the video advertisement ID), continuous playing according to the video advertisement updating time, circular playing according to the video advertisement updating time, continuous playing according to the video advertisement priority, circular playing according to the video advertisement priority, continuous playing according to the video advertisement duration, circular playing according to the video advertisement duration, and the like.
Those skilled in the art can change the manner of reporting the playing times of the video advertisement by the terminal 500 according to the content of this embodiment. For example, the terminal 500 may report the number of times of playing the video advertisement to the advertisement application server through the advertisement update request response message; or, when receiving the query message actively issued by the advertisement application server, the terminal 500 sends the playing times of the video advertisement to the advertisement application server through the query response message.
The embodiment has the beneficial effects that the terminal 500 plays the local video advertisement according to the received real-time playing strategy, so that the terminal 500 does not need to ensure the playing quality of the audio and video advertisement through higher bandwidth, and also does not need to repeatedly transmit the video advertisement with the same content, thereby avoiding bandwidth waste; the content and time for playing the video advertisement are controlled more flexibly.
Example 7
As shown in fig. 7A, for the structure of a terminal 700 for implementing advertisement playing according to embodiment 7 of the present invention, the terminal 700 includes: an advertisement registration unit 701, configured to send a registration request message to an advertisement application server and receive a registration request response message sent by the advertisement application server; an advertisement mode setting unit 702, configured to set a playing mode of a video advertisement; an advertisement updating unit 703, configured to receive an advertisement updating request message sent by the advertisement application server and send an advertisement updating request response message to the advertisement application server; an advertisement downloading unit 304 for downloading the video advertisement from the advertisement application server according to the advertisement update request message; an advertisement storage unit 705 for storing the downloaded video advertisement; the advertisement playing unit 706 receives the real-time playing strategy and the local playing strategy, stores the local playing strategy, and selects the real-time playing strategy or the local playing strategy to play the video advertisement according to the set playing mode; and an advertisement counting unit 707 configured to count the number of times of playing the video advertisement and send the number of times of playing the video advertisement to the advertisement application server.
As shown in fig. 7B, the advertisement playing unit 706 includes a playing policy obtaining module 7061, configured to receive a real-time playing policy issued by the advertisement application server and a download address of a local playing policy pushed by the advertisement application server, and download the local playing policy according to the local playing policy download address; a playing strategy analyzing module 7062, configured to analyze the real-time playing strategy and the local playing strategy; the strategy storage module is used for storing the analyzed local playing strategy; and the advertisement playing module is used for selecting the video advertisement from the advertisement storage unit to play according to the analyzed real-time playing strategy or the stored local playing strategy.
As shown in fig. 8, a video advertisement playing process based on a terminal according to embodiment 7 of the present invention includes:
in step 801, the terminal 700 transmits a registration request message to an advertisement application server.
When the terminal 700 is started, a registration request message including a user name, a password, and an IP address of the terminal 700 is transmitted to the advertisement application server. The advertisement application server judges whether the received user name and password are consistent with the stored user name and password; if the judgment result is consistent, the authentication of the terminal 700 is successful, and the advertisement application server stores the IP address of the terminal 700; if the determination result is inconsistent, it indicates that the authentication of the terminal 700 fails, and the advertisement application server does not receive the message sent by the terminal 700 any more and does not send the video advertisement and the video advertisement playing policy to the terminal 700.
In step 802, the terminal 700 receives a registration request response message transmitted from the advertisement application server.
When the advertisement application server verifies that the terminal 700 is a valid user, the advertisement application server returns an authentication result "verification success" and a handshake period to the terminal 700 through a registration request response message, and when the advertisement application server verifies that the terminal 700 is an invalid user, the advertisement application server returns only an authentication result "verification failure" to the terminal 700 through a registration request response message.
Step 803, the video advertisement playing mode of the terminal 700 is set.
As shown in fig. 7C, the user sets the video advertisement playing mode of the terminal 700 to play the video advertisement according to the local playing policy through the playing policy setting option displayed on the screen of the terminal 700.
In step 804, the terminal 700 receives an advertisement update request.
The advertisement application server sends an advertisement update request of the video advertisement to be updated to the terminal 700, where the advertisement update request includes information such as a video advertisement ID, a video advertisement duration, a video advertisement download address, and a video advertisement priority.
In step 805, the terminal 700 transmits an advertisement update request response message to the advertisement application server.
After receiving the advertisement update request, the terminal 700 generates an advertisement update request response message and sends the advertisement update request response message to the advertisement application server, and notifies the advertisement application server that the advertisement update request has been successfully received.
The terminal 700 downloads the video advertisement from the advertisement application server, step 806.
The terminal 700 downloads the corresponding video advertisement from the advertisement application server and stores the video advertisement as a local video advertisement for subsequent video advertisement playing by using a downloading mode, such as http, ftp, tftp and the like, agreed in advance with the advertisement application server according to the video advertisement ID and the video advertisement downloading address in the advertisement updating request.
In this embodiment, the terminal 700 stores advertisement information of the video advertisement A, B, C, D, please refer to table 1 in embodiment 3.
In step 807, the terminal 700 downloads the local play policy sent by the advertisement application server.
The advertisement application server sends the address of the local play policy file to the terminal 700 through an agreed communication protocol according to the IP address of the terminal 700, and the terminal 700 downloads the local play policy from the advertisement application server according to the address of the local play policy file. For example: the content of the local play policy that the advertisement application server wishes to issue to the terminal 800 is as follows:
1. when the calling party listens to the ring back tone, audio and video advertisements are played;
2. in the audio call process, a calling party/a called party plays silent video advertisements;
3. starting playing from the video advertisement with the highest priority;
4. firstly, the video advertisements with the same priority play the latest downloaded video advertisements;
5. after all the video advertisements are played, all the video advertisements are played circularly;
6. counting the playing times of the video advertisements according to the starting playing times of the video advertisements, and counting the playing times of one-time video advertisements even if the video advertisements are not played;
the local play strategy of the embodiment of the present invention is described in the following form:
AD-Policy:
time ═ CallBack; type AV (Audio video advertisement playing when the calling party listens to the ring back tone)
Time-VoiceCall; v (Silent video advertisement played by calling/called party in audio call process)
PRI ═ high; midle; low, (starting playing from the highest priority video advertisement)
SPRI ═ new, (the video advertisement with the same priority plays the latest downloaded video advertisement first)
Order is a cycle, (after all the video advertisements are played, all the video advertisements are played in a cycle manner)
Stat is start (the playing times of the video advertisement is counted according to the starting playing times of the video advertisement)
A person skilled in the art can change the local play policy issued by the advertisement application server to the terminal according to the content of this embodiment, and flexibly control the video advertisement play mode, and if the advertisement application server wants the terminal 700 to Ring as a called terminal, and plays a silent video advertisement, the advertisement application server can add a policy Time equal to Ring to the issued local play policy; the local play policy of the present embodiment can be described in the following form:
AD-Policy:
Time=CallBack;Type=AV,
Time=VoiceCall;Type=V,
time Ring; v (when called terminal rings, play silent video advertisement)
PRI=high;middle;low,
SPRI=new,
Order=cycle,
Stat=star
If the advertisement application server wants the terminal 800 to count only the playing times of the video advertisement that is played completely, the advertisement application server may modify the playing statistics policy in the local playing policy of this embodiment, and modify Stat to end, so that the local playing policy in this embodiment may be described in the following form:
AD-Policy:
Time=CallBack;Type=AV,
Time=VoiceCall;Type=V,
Time=Ring;Type=V,
PRI=high;middle;low,
SPRI=new,
Order=cycle,
stat is end, (the playing times of the video advertisement are counted according to the playing times of the video advertisement)
In step 808, the terminal 700 receives the real-time playing policy sent by the advertisement application server.
When the terminal 700 is used as a calling terminal and calls another terminal through the SIP protocol, the advertisement application server sends the real-time play policy to the terminal 300 through the SDP attribute in the 180 response message sent to the terminal.
In step 809, the terminal 700 plays the video advertisement according to the local play policy.
Since the video advertisement playing mode set by the terminal 700 is a local playing policy, the terminal 700 does not play the video advertisement according to the received real-time playing policy. The terminal 700 detects its own operation state and determines whether the operation state of the terminal 700 conforms to the local play policy, and when the operation state of the terminal 700 conforms to the local play policy, the terminal 700 plays the video advertisement conforming to the local play policy.
If the terminal 700 makes a call, the called terminal selects a video answering mode after ringing for 9 seconds, and the mode of playing the video advertisement by the terminal 700 is as follows:
ad a (5 seconds, audio video ad) → ad B (4 seconds, audio video ad)
If the terminal 700 makes a call, the called terminal rings for 20s and then selects an audio answering mode, and the call between the terminal 700 and the called terminal lasts for 50 seconds, the terminal 700 plays a video advertisement in the following manner:
1) ad a (5s, audio-visual ad) → ad B (5s, audio-visual ad) → ad C (5s, audio-visual ad) → ad D (5s, audio-visual ad)
2) Ad a (5s, silent video ad) → ad B (5s, silent video ad) → ad C (5s, silent video ad) → ad D (5s, silent video ad)
3) Ad a (5s, silent video ad) → ad B (5s, silent video ad) → ad C (5s, silent video ad) → ad D (5s, silent video ad)
4) Advertisement A (5s, Silent video advertisement) → advertisement B (5s, Silent video advertisement)
In step 810, the terminal 700 reports the video advertisement playing information to the advertisement application server.
The terminal 700 counts the playing times of the video advertisement according to the playing statistics policy in the local playing policy: ad a4 times; ad B4 times; ad C3 times; ad D3 times. When the terminal 700 receives the query message issued by the advertisement application server, the terminal 700 sends the number of times of playing the video advertisement to the advertisement application server through the query response message.
Those skilled in the art can change the receiving manner of the local play policy in this embodiment according to the content of this embodiment. The advertisement application server pushes the local play policy to the terminal 700 through an agreed communication protocol according to the stored terminal IP address.
In this embodiment, if the video advertisement playing mode set by the user is a real-time playing policy, the terminal 700 will play the local video advertisement by using only the real-time playing policy issued by the advertisement application server; if the video advertisement playing mode set by the user is the automatic control mode, the terminal 700 immediately plays the local video advertisement in accordance with the real-time playing strategy when receiving the real-time playing strategy issued by the advertisement application server, meanwhile, after receiving the local playing strategy pushed by the advertisement application server or downloading the local playing strategy from the advertisement application server, the terminal 700 stores the local playing strategy and detects the running state of the terminal, judges whether the running state of the terminal is in accordance with the local playing strategy, and when the running state of the terminal 700 is in accordance with the local playing strategy, the terminal 700 plays the local video advertisement in accordance with the local playing strategy. The local playing strategy and the real-time playing strategy can be configured through a configuration platform of the advertisement application server, and the configured playing strategy is sent to the advertisement application server by the configuration platform of the advertisement application server. The advertisement application server receives and stores the playing strategy transmitted by the advertisement application server configuration platform.
The embodiment has the advantages that a user can flexibly set the mode of playing the local video advertisement by the terminal 300, so that the terminal 700 can flexibly control the playing mode of the local video advertisement according to the real-time/local playing strategy sent by the server, the terminal 700 does not need to ensure the playing quality of the audio and video advertisement through higher bandwidth, and the video advertisement with the same content does not need to be transmitted repeatedly, thereby avoiding bandwidth waste.
Example 8
As shown in fig. 9, in order to implement the functional structure of the terminal 900 for playing advertisement in embodiment 8 of the present invention, the terminal 900 includes: an advertisement registration unit 901, configured to send a registration request message to an advertisement application server and receive a registration request response message sent by the advertisement application server; an advertisement updating unit 902, configured to request an advertisement update request message from an advertisement application server and receive the advertisement update request message sent by the advertisement application server; an advertisement downloading unit 903 which downloads the video advertisement from the advertisement application server according to the advertisement update request message; an advertisement storage unit 904 for storing the downloaded video advertisement; a play policy request unit 905 configured to request a local play policy from the advertisement application server; the advertisement playing unit 906 receives and stores the local playing strategy, and plays the video advertisement according to the local playing strategy; the advertisement counting unit 907 is configured to count the playing times of the video advertisement, and send the counted playing times of the video advertisement to the advertisement application server.
As shown in fig. 10, a flow chart of playing a video advertisement based on a terminal according to embodiment 8 of the present invention includes:
in step 1001, the terminal 900 transmits a registration request message to the advertisement application server.
When the terminal 900 is started, a registration request message including a user name and a password is transmitted to the advertisement application server. The advertisement application server judges whether the received user name and password are consistent with the stored user name and password; if the judgment result is consistent, the authentication of the terminal 900 is successful; if the judgment result is inconsistent, it indicates that the authentication of the terminal 900 fails, and the advertisement application server does not receive the message sent by the terminal 900 any more and does not send the video advertisement and the video advertisement playing policy to the terminal 900.
In step 1002, the terminal 900 receives a registration request response message transmitted from the advertisement application server.
When the advertisement application server verifies that the terminal 900 is a valid user, the advertisement application server returns an authentication result of 'successful authentication' and a handshake period to the terminal 900 through a registration request response message, and when the advertisement application server verifies that the terminal 900 is an invalid user, the advertisement application server returns only an authentication result of 'failed authentication' to the terminal 900 through a registration request response message.
In this embodiment, the advertisement application server cannot address according to the IP address of the terminal, and thus the advertisement application server cannot actively issue the advertisement update request to the terminal 900 through the IP address. The advertisement application server transmits a handshake period to the terminal 900 through a registration request response message, and agrees a period for requesting an advertisement update request between the terminal 900 and the advertisement application server.
In step 1003, the terminal 900 requests an advertisement update request message.
The terminal 900 requests an advertisement update request message from the advertisement application server according to the handshake period.
In step 1004, the terminal 900 receives the advertisement update request message.
The advertisement application server receives the handshake cycle message of the terminal and then generates a handshake response message, and sends an advertisement update request message of the video advertisement to be updated to the terminal 900, wherein the advertisement update request message comprises information such as video advertisement ID, video advertisement duration, video advertisement download address, video advertisement priority and the like.
In step 1005, the terminal 900 downloads the video advertisement from the advertisement application server.
The terminal 900 downloads the corresponding video advertisement from the advertisement application server and stores the video advertisement locally by using a downloading method agreed in advance with the advertisement application server, such as http, ftp, tftp, and the like, according to the video advertisement ID and the video advertisement downloading address in the advertisement updating request.
In step 1006, the terminal 900 requests a local play policy.
The terminal 900 transmits the local play policy request message to the advertisement application server according to the handshake period.
In step 1007, the terminal 900 receives the local play policy sent by the advertisement application server.
When receiving the play policy request of the terminal 900, the advertisement application server transmits the local play policy to the terminal 900 through a response message, for example, an extended domain of the re-registration request response message (200ok), and the terminal 900 stores the received local play policy.
In step 1008, the terminal 900 plays the video advertisement according to the local play policy.
The terminal 900 detects its own operation state and determines whether the operation state of the terminal 900 conforms to the local play policy, and when the operation state of the terminal 900 conforms to the local play policy, the terminal 900 plays the video advertisement by using the stored local play policy.
In step 1009, the terminal 900 reports the counted video advertisement playing information to the advertisement application server.
The terminal 900 counts the playing times of the video advertisement according to the statistical strategy in the local playing strategy, and reports the counted playing times of the video advertisement to the advertisement application server through the message. After receiving the video advertisement playing times of the terminal 900, the advertisement application server returns a response message to notify the terminal 900 that the video advertisement playing times have been successfully received.
Those skilled in the art can make variations to the manner in which the terminal requests the advertisement update request according to the content of the embodiment. For example, the terminal 900 may periodically request an advertisement update request from the advertisement application server according to a predetermined time that is preset.
Those skilled in the art can change the manner of sending the number of playing video advertisements by the terminal 900 according to the content of the embodiment, for example, when a request for updating the video advertisements is requested, the number of playing video advertisements is sent to the advertisement application server.
The beneficial effects of this embodiment are that the terminal 900 flexibly controls the playing mode of the local video advertisement according to the local playing strategy, and does not need to ensure the playing quality of the audio and video advertisement through a higher bandwidth, and also does not need to repeatedly transmit the video advertisement with the same content, thereby avoiding the waste of bandwidth.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.