METHOD, SYSTEM, AND WEBSITE SERVER FOR PLAYING WEBSITE VIDEO
First Claim
1. A method for playing a website video, the method comprising:
- receiving a video playback request that comprises a client identification and a video identification, and querying a playback record corresponding to the client identification;
accumulating video playback times in the playback record to obtain current video playback times;
determining advertisement information duration corresponding to the current video playback times, and the playback times being inversely proportional to the advertisement information duration; and
extracting, from an advertisement information library according to the determined advertisement information duration, advertisement information that meets the duration, acquiring video data corresponding to the video identification, inserting the extracted advertisement information ahead of the video data, and transmitting the extracted advertisement information and the video data to a client for playing.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure discloses a method, a system, and a website server for playing a website video. The method includes: receiving a video playback request that includes a client identification and a video identification, and querying a playback record corresponding to the client identification; accumulating video playback times in the playback record to obtain current video playback times; determining advertisement information duration corresponding to the current video playback times, where the playback times are inversely proportional to the advertisement information duration; and extracting, from an advertisement information library according to the determined advertisement information duration, advertisement information that meets the duration, acquiring video data corresponding to the video identification, inserting the extracted advertisement information ahead of the video data, and transmitting the extracted advertisement information and the video data to a client for playing. The solutions of the present disclosure can improve efficiency of playing a website video.
4 Citations
12 Claims
-
1. A method for playing a website video, the method comprising:
-
receiving a video playback request that comprises a client identification and a video identification, and querying a playback record corresponding to the client identification; accumulating video playback times in the playback record to obtain current video playback times; determining advertisement information duration corresponding to the current video playback times, and the playback times being inversely proportional to the advertisement information duration; and extracting, from an advertisement information library according to the determined advertisement information duration, advertisement information that meets the duration, acquiring video data corresponding to the video identification, inserting the extracted advertisement information ahead of the video data, and transmitting the extracted advertisement information and the video data to a client for playing.
-
-
2. The method according to claim 1, wherein the current video playback times are represented as n, the determining advertisement information duration corresponding to the current video playback times comprises:
-
extracting, from the playback record, advertisement information duration of the first video playback, which is represented as M; and representing the advertisement information duration corresponding to the current video playback times as Y, and calculating in the following manner to obtain; Y=M−
X*(n−
1), wherein X is a unit length of advertisement information.
-
-
3. The method according to claim 2, wherein before the determining advertisement information duration corresponding to the current video playback times, the method further comprises:
-
determining a time of a current video playback request, which is represented as Tn; extracting, from the playback record, a time of the first video playback request, which is represented as T1; and subtracting Tn from T1 to obtain a subtraction value, determining that the subtraction value is less than a set time period, and performing the step of determining advertisement information duration corresponding to the current video playback times.
-
-
4. The method according to claim 3, wherein if it is determined that the subtraction value is not less than the set time period, the method further comprises:
emptying the playback record, using the current video playback request as the first video playback request to be recorded in the playback record, recording a time of the first video playback request in the playback record, and performing the step of determining advertisement information duration corresponding to the current video playback times.
-
5. The method according to claim 1, wherein before the querying a playback record corresponding to the client identification, the method further comprises:
-
acquiring corresponding video data description information by using the video identification; and acquiring a video type from the video data description information, determining whether the video type is a long video, and if yes, performing the step of querying a playback record corresponding to the client identification;
if not, acquiring video data corresponding to the video identification, and transmitting the video data to a client for playing.
-
-
6. A system for playing a website video, the system comprising a client and a website server;
-
the client sending a video playback request that comprises a client identification and a video identification to the website server, receiving video data fed back by the website server, and playing the video data; and the website server receiving the video playback request from the client, and querying a playback record corresponding to the client identification;
accumulating video playback times in the playback record to obtain current video playback times;
determining advertisement information duration corresponding to the current video playback times, and the playback times being inversely proportional to the advertisement information duration; and
extracting, from an advertisement information library according to the determined advertisement information duration, advertisement information that meets the duration, acquiring video data corresponding to the video identification, inserting the extracted advertisement information ahead of the video data, and transmitting the extracted advertisement information and the video data to the client.
-
-
7. The system according to claim 6, wherein the website server comprises a request receiving unit, a query processing unit, an advertisement information determining unit, and a video data processing unit;
-
the request receiving unit receives the video playback request from the client, and sends the video playback request to the query processing unit; the query processing unit receives the video playback request from the request receiving unit, and queries a playback record corresponding to the client identification; and
accumulates video playback times in the playback record to obtain current video playback times, and sends the current video playback times and the video playback request to the advertisement information determining unit;the advertisement information determining unit receives the current video playback times and the video playback request from the query processing unit, determines advertisement information duration corresponding to the current video playback times, and sends the advertisement information duration and the video playback request to the video data processing unit, wherein the playback times are inversely proportional to the advertisement information duration; and the video data processing unit receives the advertisement information duration and the video playback request from the advertisement information determining unit, extracts, from an advertisement information library according to the determined advertisement information duration, advertisement information that meets the duration, acquires video data corresponding to the video identification, inserts the extracted advertisement information ahead of the video data, and transmits the extracted advertisement information and the video data to a client corresponding to the client identification.
-
-
8. A website server playing a pre-video advertisement of a website, the website server comprising a request receiving unit, a query processing unit, an advertisement information duration determining unit, and a video data processing unit;
-
the request receiving unit receiving a video playback request that comprises a client identification and a video identification, and sending the video playback request to the query processing unit; the query processing unit receiving the video playback request from the request receiving unit, and querying a playback record corresponding to the client identification; and
accumulating video playback times in the playback record to obtain current video playback times, and sending the current video playback times and the video playback request to the advertisement information determining unit;the advertisement information determining unit receiving the current video playback times and the video playback request from the query processing unit, determining advertisement information duration corresponding to the current video playback times, and sending the advertisement information duration and the video playback request to the video data processing unit, and the playback times being inversely proportional to the advertisement information duration; and the video data processing unit receiving the advertisement information duration and the video playback request from the advertisement information determining unit, extracting, from an advertisement information library according to the determined advertisement information duration, advertisement information that meets the duration, acquiring video data corresponding to the video identification, inserting the extracted advertisement information ahead of the video data, and transmitting the extracted advertisement information and the video data to a client corresponding to the client identification.
-
-
9. The website server according to claim 8, wherein the advertisement information duration determining unit comprises a duration determining subunit, wherein the duration determining subunit represents the current video playback times as n, and extracts, from the playback record, advertisement information duration of the first video playback, which is represented as M;
- and represents the advertisement information duration corresponding to the current video playback times as Y, and calculates in the following manner to obtain;
Y=M−
X*(n−
1), wherein X is a unit length of advertisement information.
- and represents the advertisement information duration corresponding to the current video playback times as Y, and calculates in the following manner to obtain;
-
10. The website server according to claim 9, wherein the advertisement information duration determining unit further comprises a condition determining subunit, wherein the condition determining subunit determines a time of a current video playback request, which is represented as Tn;
- extracts, from the playback record, a time of the first video playback request, which is represented as T1; and
the condition determining subunit subtracts Tn from T1 to obtain a subtraction value, determines that the subtraction value is less than a set time period, and sends a start instruction to the duration determining subunit; andthe duration determining subunit extracts the advertisement information duration of the first video playback from the playback record and calculates a Y value only after receiving the start instruction.
- extracts, from the playback record, a time of the first video playback request, which is represented as T1; and
-
11. The website server according to claim 10, wherein the advertisement information duration determining unit further comprises an empty processing subunit;
- the condition determining subunit sends an execution instruction to the empty processing subunit when determining that the subtraction value is not less than the set time period; and
the empty processing subunit receives the execution instruction from the condition determining subunit, empties the playback record, uses the current video playback request as the first video playback request to be recorded in the playback record, records a time of the first video playback request in the playback record; and
acquires advertisement information duration corresponding to the first video playback request as the advertisement information duration corresponding to the current video playback times.
- the condition determining subunit sends an execution instruction to the empty processing subunit when determining that the subtraction value is not less than the set time period; and
-
12. The website server according to claim 8, wherein the query processing unit comprises a type determining subunit and a query subunit;
-
the type determining subunit receives the video playback request from the request receiving unit, acquires corresponding video data description information by using the video identification comprised in the video playback request; and
acquires a video type from the video data description information, determines whether the video type is a long video, and if yes, sends the video playback request to the query subunit;
if not, sends a short video processing request that comprises the client identification and the video identification to the video data processing unit;the query subunit receives the video playback request from the type determining subunit, and queries a playback record corresponding to the client identification; and
accumulates video playback times in the playback record to obtain current video playback times, and sends the current video playback times and the video playback request to the advertisement information duration determining unit; andthe video data processing unit receives the short video processing request from the type determining subunit, acquires video data corresponding to the video identification, and transmits the video data to a client corresponding to the client identification.
-
Specification