Double-list advertisement playing method and device, computer equipment and storage medium

文档序号:721970 发布日期:2021-04-16 浏览:2次 中文

阅读说明:本技术 双列表广告播放方法、装置、计算机设备及存储介质 (Double-list advertisement playing method and device, computer equipment and storage medium ) 是由 李桂晓 于 2020-12-30 设计创作,主要内容包括:本发明涉及双列表广告播放方法、装置、计算机设备及存储介质,该方法包括设置用于存储公益广告的列表和用于非公益广告的列表,以得到公益广告列表以及非公益广告列表;获取播放请求;判断播放请求是否为公益广告;若播放请求是公益广告,则获取公益广告列表,并根据公益广告列表播放对应的公益广告;获取修改请求;根据修改请求对公益广告列表或非公益广告列表进行修改。若播放请求不是公益广告,则获取非公益广告列表,并根据非公益广告列表播放对应的非公益广告,并执行获取修改请求。本发明实现减少因为特殊事件插入而导致原先操作内容的变动,采用双列表播放方式,可以降低因为特殊事件影响播放效率的事件发生概率。(The invention relates to a double-list advertisement playing method, a double-list advertisement playing device, computer equipment and a storage medium, wherein the method comprises the steps of setting a list for storing public service advertisements and a list for non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list; acquiring a playing request; judging whether the playing request is a public service advertisement; if the playing request is a public service advertisement, acquiring a public service advertisement list, and playing a corresponding public service advertisement according to the public service advertisement list; acquiring a modification request; and modifying the public service advertisement list or the non-public service advertisement list according to the modification request. If the playing request is not the public service advertisement, acquiring a non-public service advertisement list, playing the corresponding non-public service advertisement according to the non-public service advertisement list, and executing the acquisition and modification request. The invention reduces the change of the original operation content caused by the insertion of the special event, and can reduce the occurrence probability of the event which influences the playing efficiency because of the special event by adopting a double-list playing mode.)

1. The double-list advertisement playing method is characterized by comprising the following steps:

setting a list for storing public service advertisements and a list for storing non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list;

acquiring a playing request;

judging whether the playing request is a public service advertisement;

if the playing request is a public service advertisement, acquiring a public service advertisement list, and sending a corresponding public service advertisement to a terminal according to the public service advertisement list so as to play the public service advertisement on the terminal;

acquiring a modification request;

and modifying the public service advertisement list or the non-public service advertisement list according to the modification request.

If the playing request is not a public service advertisement, acquiring a non-public service advertisement list, sending a corresponding non-public service advertisement to the terminal according to the non-public service advertisement list, playing the non-public service advertisement on the terminal, and executing the acquiring and modifying request.

2. The dual-list advertisement broadcasting method of claim 1, wherein the setting is used for storing a list of public service advertisements and a list of non-public service advertisements to obtain a list of public service advertisements and a list of non-public service advertisements, and comprises:

and arranging a list for storing the public service advertisements and a list for storing the non-public service advertisements, and arranging the corresponding advertisements according to a specific playing sequence on the two lists to obtain a public service advertisement list and a non-public service advertisement list.

3. The method for playing the dual-list advertisement according to claim 1, wherein the obtaining the public service advertisement list and sending the corresponding public service advertisement to the terminal according to the public service advertisement list so as to play the public service advertisement on the terminal comprises:

acquiring a public service advertisement list;

acquiring a playing file in a public service advertisement list to obtain a first acquisition result;

judging whether the first obtaining result is obtained successfully or not;

if the first obtaining result is not successful, downloading the playing file into a public service advertisement list, and executing the playing file in the public service advertisement list to obtain a first obtaining result;

if the first obtaining result is that the obtaining is successful, judging whether the playing file is complete;

if the playing file is complete, sending the playing file to a terminal so as to play the public service advertisement corresponding to the playing file on the terminal;

and if the playing file is not complete, executing the downloading of the playing file to a public service advertisement list.

4. The method for playing dual-list advertisement of claim 1, wherein the obtaining a non-public service advertisement list and sending a corresponding non-public service advertisement to a terminal according to the non-public service advertisement list to play the non-public service advertisement on the terminal comprises:

acquiring a non-public service advertisement list;

acquiring a playing file in the non-public service advertisement list to obtain a second acquisition result;

judging whether the second obtaining result is obtained successfully or not;

if the second obtaining result is not successful, downloading the non-playing file into a non-public service advertisement list, and executing the playing file in the non-public service advertisement list to obtain a second obtaining result;

if the second obtaining result is that the obtaining is successful, judging whether the playing file is complete;

if the playing file is complete, sending the playing file to a terminal so as to play the non-public-interest advertisement corresponding to the playing file on the terminal;

and if the playing file is not complete, executing the downloading of the playing file to a non-public service advertisement list.

5. The dual-list advertisement broadcasting method of claim 1, wherein the modifying the public interest advertisement list or the non-public interest advertisement list according to the modification request comprises:

judging whether the modification request is to modify the current list or not;

if the modification request is to modify the current list, modifying the current list, refreshing the modified list, and playing the modified list;

if the modification request does not modify the current list, the current list is kept for advertisement playing, another list is modified, and when the modification is finished and the switching to the playing of another list is needed, the switching to the playing of the modified another list is carried out.

6. A dual-list advertisement playback apparatus, comprising:

the setting unit is used for setting a list for storing the public service advertisements and a list for storing the non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list;

a play request acquisition unit for acquiring a play request;

the playing judging unit is used for judging whether the playing request is a public service advertisement;

the first playing unit is used for acquiring a public service advertisement list if the playing request is a public service advertisement, and sending a corresponding public service advertisement to the terminal according to the public service advertisement list so as to play the public service advertisement on the terminal;

a modification request acquisition unit for acquiring a modification request;

the modification unit is used for modifying a public service advertisement list or a non-public service advertisement list according to the modification request;

and the second playing unit is used for acquiring a non-public-interest advertisement list if the playing request is not a public-interest advertisement, sending a corresponding non-public-interest advertisement to the terminal according to the non-public-interest advertisement list so as to play the non-public-interest advertisement on the terminal, and executing the acquisition and modification request.

7. The dual-list advertisement broadcasting device of claim 6, wherein the setting unit is configured to set a list for storing public service advertisements and a list for storing non-public service advertisements, and arrange the corresponding advertisements in a specific broadcasting order for the two lists to obtain a public service advertisement list and a non-public service advertisement list.

8. The dual list advertisement playback device of claim 7, wherein the first playback unit comprises:

the first list acquisition subunit is used for acquiring a public service advertisement list;

the first obtaining subunit is used for obtaining the playing file in the public service advertisement list to obtain a first obtaining result;

the first judging subunit is used for judging whether the first obtaining result is obtained successfully or not;

the first downloading subunit is configured to, if the first obtaining result is not that the obtaining is successful, download the playing file into a public welfare advertisement list, and execute the playing file in the public welfare advertisement list to obtain a first obtaining result;

a second determining subunit, configured to determine whether the playing file is complete if the first obtaining result is that obtaining is successful; if the playing file is not complete, executing the downloading of the playing file to a public service advertisement list;

and the first advertisement playing subunit is used for sending the playing file to the terminal if the playing file is complete so as to play the public service advertisement corresponding to the playing file on the terminal.

9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-5 when executing the computer program.

10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 5.

Technical Field

The present invention relates to an advertisement playing method, and more particularly, to a dual-list advertisement playing method, apparatus, computer device, and storage medium.

Background

When the advertisement is played, the corresponding pictures or videos need to be played in sequence according to the set list, the existing advertisement playing process generally only has a single list, and the advertisement is played according to the sequence of the advertisement list. Generally, an advertisement list is sufficient, if the last content is required to be played, only the history of the list needs to be searched. However, if a specific content needs to be played at a certain time, the current advertisement needs to be set as the specific advertisement, and if the specific advertisement needs to be changed, the previous history list needs to be searched, and this method is prone to find confusion, and the original operation content is prone to change due to insertion of a special event, thereby increasing cost and affecting playing efficiency.

Therefore, it is necessary to design a new method to reduce the change of the original operation content caused by the insertion of the special event, and to reduce the occurrence probability of the event that the special event affects the playing efficiency by using the dual-list playing method.

Disclosure of Invention

The invention aims to overcome the defects of the prior art and provides a double-list advertisement playing method, a double-list advertisement playing device, a computer device and a storage medium.

In order to achieve the purpose, the invention adopts the following technical scheme: the double-list advertisement playing method comprises the following steps:

setting a list for storing public service advertisements and a list for storing non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list;

acquiring a playing request;

judging whether the playing request is a public service advertisement;

if the playing request is a public service advertisement, acquiring a public service advertisement list, and sending a corresponding public service advertisement to a terminal according to the public service advertisement list so as to play the public service advertisement on the terminal;

acquiring a modification request;

and modifying the public service advertisement list or the non-public service advertisement list according to the modification request.

If the playing request is not a public service advertisement, a non-public service advertisement list is obtained, and a corresponding non-public service advertisement is sent to the terminal according to the non-public service advertisement list so as to play the non-public service advertisement on the terminal. And executing the get modification request.

The further technical scheme is as follows: the setting is used for storing a list of public service advertisements and a list of non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list, and comprises the following steps:

and arranging a list for storing the public service advertisements and a list for storing the non-public service advertisements, and arranging the corresponding advertisements according to a specific playing sequence on the two lists to obtain a public service advertisement list and a non-public service advertisement list.

The further technical scheme is as follows: the obtaining of the public service advertisement list and sending the corresponding public service advertisement to the terminal according to the public service advertisement list so as to play the public service advertisement on the terminal includes:

acquiring a public service advertisement list;

acquiring a playing file in a public service advertisement list to obtain a first acquisition result;

judging whether the first obtaining result is obtained successfully or not;

if the first obtaining result is not successful, downloading the playing file into a public service advertisement list, and executing the playing file in the public service advertisement list to obtain a first obtaining result;

if the first obtaining result is that the obtaining is successful, judging whether the playing file is complete;

if the playing file is complete, sending the playing file to a terminal so as to play the public service advertisement corresponding to the playing file on the terminal;

and if the playing file is not complete, executing the downloading of the playing file to a public service advertisement list.

The further technical scheme is as follows: the acquiring a non-public service advertisement list and sending a corresponding non-public service advertisement to a terminal according to the non-public service advertisement list so as to play the non-public service advertisement on the terminal includes:

acquiring a non-public service advertisement list;

acquiring a playing file in the non-public service advertisement list to obtain a second acquisition result;

judging whether the second obtaining result is obtained successfully or not;

if the second obtaining result is not successful, downloading the non-playing file into a non-public service advertisement list, and executing the playing file in the non-public service advertisement list to obtain a second obtaining result;

if the second obtaining result is that the obtaining is successful, judging whether the playing file is complete;

if the playing file is complete, sending the playing file to a terminal so as to play the non-public-interest advertisement corresponding to the playing file on the terminal;

and if the playing file is not complete, executing the downloading of the playing file to a non-public service advertisement list.

The further technical scheme is as follows: the modifying the public service advertisement list or the non-public service advertisement list according to the modifying request comprises the following steps:

judging whether the modification request is to modify the current list or not;

if the modification request is to modify the current list, modifying the current list, refreshing the modified list, and playing the modified list;

if the modification request does not modify the current list, the current list is kept for advertisement playing, another list is modified, and when the modification is finished and the switching to the playing of another list is needed, the switching to the playing of the modified another list is carried out.

The present invention also provides a dual-list advertisement playing device, comprising:

the setting unit is used for setting a list for storing the public service advertisements and a list for storing the non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list;

a play request acquisition unit for acquiring a play request;

the playing judging unit is used for judging whether the playing request is a public service advertisement;

the first playing unit is used for acquiring a public service advertisement list if the playing request is a public service advertisement, and sending a corresponding public service advertisement to the terminal according to the public service advertisement list so as to play the public service advertisement on the terminal;

a modification request acquisition unit for acquiring a modification request;

the modification unit is used for modifying a public service advertisement list or a non-public service advertisement list according to the modification request;

and the second playing unit is used for acquiring a non-public-interest advertisement list if the playing request is not a public-interest advertisement, sending a corresponding non-public-interest advertisement to the terminal according to the non-public-interest advertisement list so as to play the non-public-interest advertisement on the terminal, and executing the acquisition and modification request.

The further technical scheme is as follows: the setting unit is used for setting a list for storing the public service advertisements and a list for storing the non-public service advertisements, and arranging the corresponding advertisements according to a specific playing sequence of the two lists to obtain a public service advertisement list and a non-public service advertisement list.

The further technical scheme is as follows: the first playback unit includes:

the first list acquisition subunit is used for acquiring a public service advertisement list;

the first obtaining subunit is used for obtaining the playing file in the public service advertisement list to obtain a first obtaining result;

the first judging subunit is used for judging whether the first obtaining result is obtained successfully or not;

the first downloading subunit is configured to, if the first obtaining result is not that the obtaining is successful, download the playing file into a public welfare advertisement list, and execute the playing file in the public welfare advertisement list to obtain a first obtaining result;

a second determining subunit, configured to determine whether the playing file is complete if the first obtaining result is that obtaining is successful; if the playing file is not complete, executing the downloading of the playing file to a public service advertisement list;

and the first advertisement playing subunit is used for sending the playing file to the terminal if the playing file is complete so as to play the public service advertisement corresponding to the playing file on the terminal.

The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.

The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.

Compared with the prior art, the invention has the beneficial effects that: the invention sets two lists, one is used for storing public service advertisements and the other is used for storing non-public service advertisements, adopts a double-list playing mode, can switch to the other list for playing advertisements when the content of one list needs to be modified, realizes the reduction of the change of the original operation content caused by the insertion of special events, and can reduce the occurrence probability of the events which influence the playing efficiency because of the special events by adopting a double-list playing mode.

The invention is further described below with reference to the accompanying drawings and specific embodiments.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a schematic view of an application scenario of a dual-list advertisement playing method according to an embodiment of the present invention;

fig. 2 is a schematic flowchart of a dual-list advertisement playing method according to an embodiment of the present invention;

FIG. 3 is a sub-flow diagram of a method for playing a dual-list advertisement according to an embodiment of the present invention;

FIG. 4 is a sub-flow diagram of a method for playing a dual-list advertisement according to an embodiment of the present invention;

FIG. 5 is a sub-flow diagram of a method for playing a dual-list advertisement according to an embodiment of the present invention;

FIG. 6 is a schematic block diagram of a dual-list advertisement playback device according to an embodiment of the present invention;

fig. 7 is a schematic block diagram of a first playing unit of a dual-list advertisement playing apparatus according to an embodiment of the present invention;

fig. 8 is a schematic block diagram of a second play unit of the dual list advertisement playing apparatus according to the embodiment of the present invention;

fig. 9 is a schematic block diagram of a modification unit of a dual list advertisement playing apparatus according to an embodiment of the present invention;

FIG. 10 is a schematic block diagram of a computer device provided by an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a dual-list advertisement playing method according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of a dual-list advertisement playing method according to an embodiment of the present invention. The double-list advertisement playing method is applied to a server. The server performs data interaction with the terminal, the server is provided with two lists, stores different advertisements and switches different advertisements to be played on the terminal according to a playing request, the two lists are independent and cannot influence when the contents of the two lists are modified, the change of original operation contents caused by insertion of special events is reduced, the probability of occurrence of events influencing the playing efficiency due to the special events can be reduced by adopting a double-list playing mode, and the terminal comprises equipment for playing the advertisements, such as an advertisement screen and the like.

Fig. 2 is a flowchart illustrating a method for playing a dual-list advertisement according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S150.

And S110, setting a list for storing the public service advertisements and a list for storing the non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list.

In this embodiment, the public service advertisement list refers to a list storing information related to public service advertisements, and the non-public service advertisement list refers to a list storing non-public service advertisements.

Setting advertisement playing to be a double playing list, namely non-public service advertisement and public service advertisement; the non-public service advertisement is responsible for some advertisement tasks at ordinary times. The public service advertisements are different and are responsible for the advertising task under special conditions in special periods. The two lists are mutually exclusive and can be switched with each other. In the case of a public interest advertisement list, the server may save the previous non-public interest advertisement list. No matter how the public service advertisement list is changed, the non-public service advertisement list is not influenced; when the public service advertisement does not need to be played, the public service advertisement can be switched back to the common advertisement, and then the original non-public service advertisement list is played. Example (c): and the non-public service advertisement A is normally played, if the B needs to be played suddenly, the public service advertisement is switched to the public service advertisement, the public service advertisement list is used for playing the B, and the subsequent public service advertisement is replaced by C or D, so that the non-public service advertisement is not influenced. When switching back to the non-public service advertisement, the non-public service advertisement will continue to play A. If the non-public service advertisement list a is changed to F during the public service advertisement broadcasting, the non-public service advertisement list a is broadcasted according to F.

In this embodiment, the advertisement content includes audio and video and pictures, and can be switched by using two controls, namely surfeview + medialayer and imageview, of the terminal. Respectively used for playing audio and video and pictures.

Specifically, a list for storing public service advertisements and a list for storing non-public service advertisements are set, and corresponding advertisements are arranged according to a specific playing sequence on the two lists to obtain a public service advertisement list and a non-public service advertisement list.

In this embodiment, the content in the List is arranged mainly by using List itemlst ═ sort (item1, item2, item3) by playIndex; the formula is used for arranging the content of the list according to the playing order, and arranging each item in the list according to the playIndex, wherein each item contains a plurality of attributes, and the items refer to the relevant information of the advertisement.

Specifically, an SQLiteDatabase is used to create two data tables play _ list and count _ list, each of which has the following properties: start playing time, end playing time, characters, a file md5, a suffix name, a file name, a playing type, a file length, a download id, playing time, playing sequence and volume; itemList is the minimum unit of the whole advertisement, and starts playing according to the playing sequence, and the two data tables are a public service advertisement list and a non-public service advertisement list respectively.

And S120, acquiring a playing request.

In this embodiment, the play request may be a request automatically generated according to time or a request input by the terminal.

S130, judging whether the playing request is a public service advertisement.

In this embodiment, it is specifically determined whether the current time is the end time of the public service advertisement according to the content or time of the play request, if the current time is the end time of the public service advertisement, the play request is not the public service advertisement, and if the current time is not the end time of the public service advertisement, the play request is the public service advertisement.

S140, if the playing request is a public service advertisement, obtaining a public service advertisement list, and sending the corresponding public service advertisement to the terminal according to the public service advertisement list so as to play the public service advertisement on the terminal.

In an embodiment, referring to fig. 3, the step S140 may include steps S141 to S146.

S141, acquiring a public service advertisement list;

s142, acquiring a playing file in the public service advertisement list to obtain a first acquisition result;

s143, judging whether the first obtaining result is obtained successfully or not;

and S144, if the first obtaining result is not successful, downloading the playing file into a public service advertisement list, and executing the step S142.

When the advertisement needs to be played, the existence of the playing file needs to be judged at first, and if the playing file does not exist in the public service advertisement list, the playing file needs to be downloaded first. If the playing file exists in the public service advertisement list, the judgment size of the file is played again, if the playing file size is different from the size of the file corresponding to the database, the file is not downloaded completely, whether the file which is not downloaded completely is downloaded in a thread is judged, and if yes, the file can be downloaded continuously without opening the thread.

S145, if the first obtaining result is that the obtaining is successful, judging whether the playing file is complete;

and S146, if the playing file is complete, sending the playing file to a terminal so as to play the public service advertisement corresponding to the playing file on the terminal.

In this embodiment, only if the playing file exists and is complete, the advertisement corresponding to the playing file is played, otherwise, the advertisement is downloaded, and the next piece of content is entered at the same time.

If the playing file is not complete, the step S144 is executed.

Specifically, when the iterlist completes the first round-robin, the isNullFlag is determined, and if the isNullFlag is true, it indicates that at least one content in the iterlist is effectively and normally played. Otherwise, the list will be jumped out and returned to the preset advertisement. At the same time, it will report that the contents of the file list are not completely downloaded or abnormal, please play other advertisements first and then reset later! "to remind the user.

Specifically, each time an advertisement is played, a playList is set, which is an advertisement list including a whole day and includes an hour segment list of itemList1, itemList2, itemList3. Then, each list is correspondingly played according to the starting playing time and the ending time; and, whether to play non-public-interest or public-interest advertisement is judged by adopting the playListFlag, which is whether the current playing request is public-interest advertisement according to the time stamp of the current time and the time of comparing the starting time and the ending time of the public-interest advertisement.

And S150, acquiring a modification request.

In this embodiment, the modification request refers to a request for content modification of a public service advertisement list or a non-public service advertisement list.

And S160, modifying the public service advertisement list or the non-public service advertisement list according to the modification request.

In an embodiment, referring to fig. 4, the step S160 may include steps S161 to S163.

S161, judging whether the modification request is to modify the current list;

s162, if the modification request is to modify the current list, modifying the current list, refreshing the modified list, and playing the modified list;

and S163, if the modification request does not modify the current list, keeping the current list for advertisement playing, modifying another list, and after modification, switching to another list for playing when switching to another list for playing is needed.

In this embodiment, the modification request is mainly for modifying the content set in the list, and in each modification, if the modification is for the current list, the current list can be modified, refreshed, and the modified list is played; for example, if the current list is a public service advertisement list, modifying the public service advertisement list, refreshing the list, and continuously playing the modified public service advertisement list, the same operation mode is also used when the current list is a non-public service advertisement list; under the condition that the double lists are not influenced by each other, advertisements required by the user can be preset, and the advertisements can be directly switched later, and the advertisement setting which is not switched has no influence on the currently played list; if the modification is not directed to the current list, the modification of another list can be directly carried out, the current list is kept for playing, the change of the original operation content caused by the insertion of the special event is reduced, and the occurrence probability of the event which influences the playing efficiency due to the special event can be reduced by adopting a double-list playing mode.

S170, if the playing request is not a public service advertisement, acquiring a non-public service advertisement list, sending a corresponding non-public service advertisement to the terminal according to the non-public service advertisement list so as to play the non-public service advertisement on the terminal, and executing the step S150.

In an embodiment, referring to fig. 5, the step S170 may include steps S171 to S176.

S171, acquiring a non-public service advertisement list;

s172, acquiring a playing file in the non-public service advertisement list to obtain a second acquisition result;

s173, judging whether the second acquisition result is successful or not;

s174, if the second obtaining result is not successful, downloading the non-playing file into a non-public service advertisement list, and executing the step S172;

s175, if the second obtaining result is that the obtaining is successful, judging whether the playing file is complete;

s176, if the playing file is complete, sending the playing file to a terminal so as to play the non-public-interest advertisement corresponding to the playing file on the terminal;

if the playing file is not complete, the step S174 is executed.

The steps S171 to S176 are similar to the steps S141 to S146, and are not described again.

The embodiment judges whether the public service advertisement or the non-public service advertisement is played according to the current time, then obtains a list corresponding to a whole day, lists the hour period broadcast list in the list, and broadcasts the corresponding audio, video and pictures in the list at regular time according to the starting time and the ending time of the list. Because the public interest advertisement list and the non-public interest advertisement list do not belong to the same table, when one of the lists is changed, the other list is not affected. This realizes the advertisement setting while broadcasting.

According to the double-list advertisement playing method, two lists are arranged, one list is used for storing public service advertisements, the other list is used for storing non-public service advertisements, a double-list playing mode is adopted, when the content of one list needs to be modified, the other list can be switched to be played, the change of the original operation content caused by the insertion of special events is reduced, and the occurrence probability of the events influencing the playing efficiency due to the special events can be reduced by adopting a double-list playing mode.

Fig. 6 is a schematic block diagram of a dual-list advertisement playing apparatus 300 according to an embodiment of the present invention. As shown in fig. 6, the present invention also provides a dual-list advertisement playing apparatus 300 corresponding to the above dual-list advertisement playing method. The dual list advertisement playback apparatus 300 includes a unit for performing the above-described dual list advertisement playback method, and the apparatus may be configured in a server. Specifically, referring to fig. 6, the dual list advertisement playing device 300 includes a setting unit 301, a playing request obtaining unit 302, a playing judging unit 303, a first playing unit 304, a modification request obtaining unit 305, a modifying unit 306, and a second playing unit 307.

A setting unit 301, configured to set a list for storing public service advertisements and a list for storing non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list; a play request obtaining unit 302, configured to obtain a play request; a playing judging unit 303, configured to judge whether the playing request is a public service advertisement; a first playing unit 304, configured to, if the playing request is a public service advertisement, obtain a public service advertisement list, and send a corresponding public service advertisement to a terminal according to the public service advertisement list, so as to play the public service advertisement on the terminal; a modification request acquisition unit 305 for acquiring a modification request; a modifying unit 306, configured to modify a public service advertisement list or a non-public service advertisement list according to the modification request; a second playing unit 307, configured to obtain a non-public service advertisement list if the playing request is not a public service advertisement, and send a corresponding non-public service advertisement to the terminal according to the non-public service advertisement list, so as to play the non-public service advertisement on the terminal, and execute the obtaining and modifying request.

In an embodiment, the setting unit 301 is configured to set a list for storing public service advertisements and a list for storing non-public service advertisements, and arrange corresponding advertisements in a specific playing order for the two lists to obtain a public service advertisement list and a non-public service advertisement list.

In one embodiment, as shown in fig. 7, the first playing unit 304 includes a first list acquiring subunit 3041, a first acquiring subunit 3042, a first determining subunit 3043, a first downloading subunit 3044, a second determining subunit 3045 and a first advertisement playing subunit 3046.

A first list acquiring subunit 3041 configured to acquire a public service advertisement list; a first obtaining subunit 3042, configured to obtain a playing file in the public service advertisement list to obtain a first obtaining result; a first determining subunit 3043, configured to determine whether the first obtaining result is a successful obtaining result; a first downloading subunit 3044, configured to download the playing file into a public welfare advertisement list if the first obtaining result is not a successful obtaining result, and execute the playing file in the public welfare advertisement list to obtain a first obtaining result; a second determining subunit 3045, configured to determine whether the playing file is complete if the first obtaining result is that obtaining is successful; if the playing file is not complete, executing the downloading of the playing file to a public service advertisement list; a first advertisement playing subunit 3046, configured to send the playing file to a terminal if the playing file is complete, so as to play a public service advertisement corresponding to the playing file on the terminal.

In an embodiment, as shown in fig. 8, the second playing unit 307 includes a second list obtaining sub-unit 3071, a second obtaining sub-unit 3072, a third judging sub-unit 3073, a second downloading sub-unit 3074, a fourth judging sub-unit 3075 and a second advertisement playing sub-unit 3076.

A second list obtaining subunit 3071, configured to obtain a non-public service advertisement list; a second obtaining subunit 3072, configured to obtain a playing file in the non-public service advertisement list to obtain a second obtaining result; a third determining subunit 3073, configured to determine whether the second obtaining result is a successful obtaining result; a second downloading subunit 3074, configured to, if the second obtaining result is not that the obtaining is successful, download the non-playing file into the non-public service advertisement list, and execute the playing file in the non-public service advertisement list to obtain a second obtaining result; a fourth determining subunit 3075, configured to determine whether the playing file is complete if the second obtaining result is that obtaining is successful; if the playing file is not complete, executing the downloading of the playing file to a non-public service advertisement list; a second advertisement playing subunit 3076, configured to send the playing file to the terminal if the playing file is complete, so as to play a non-public service advertisement corresponding to the playing file on the terminal;

in one embodiment, as shown in FIG. 8, the modification unit 306 includes a request determination subunit 3061, a first modification subunit 3062, and a second modification subunit 3063.

A request determination subunit 3061, configured to determine whether the modification request is to modify a current list; a first modifying subunit 3062, configured to modify the current list, refresh the modified list, and play the modified list if the modification request is to modify the current list; a second modifying subunit 3063, configured to, if the modification request is not to modify the current list, keep the current list for playing the advertisement, modify another list, and switch to another modified list for playing when it is necessary to switch to another list for playing after the modification is completed.

It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the dual-list advertisement playing device 300 and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.

The dual list advertisement playing device 300 may be implemented in the form of a computer program that can be run on a computer apparatus as shown in fig. 10.

Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, or may also be a terminal, where the server may be an independent server, or a server cluster formed by multiple servers.

Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.

The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a dual list advertisement playing method.

The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.

The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a dual-list advertisement playing method.

The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration relevant to the present teachings and is not intended to limit the computing device 500 to which the present teachings may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:

setting a list for storing public service advertisements and a list for storing non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list; acquiring a playing request; judging whether the playing request is a public service advertisement; if the playing request is a public service advertisement, acquiring a public service advertisement list, and sending a corresponding public service advertisement to a terminal according to the public service advertisement list so as to play the public service advertisement on the terminal; acquiring a modification request; and modifying the public service advertisement list or the non-public service advertisement list according to the modification request. If the playing request is not a public service advertisement, a non-public service advertisement list is obtained, and a corresponding non-public service advertisement is sent to the terminal according to the non-public service advertisement list so as to play the non-public service advertisement on the terminal.

In an embodiment, when implementing the step of setting up the list for storing the public service advertisements and the list for storing the non-public service advertisements to obtain the public service advertisement list and the non-public service advertisement list, the processor 502 specifically implements the following steps:

and arranging a list for storing the public service advertisements and a list for storing the non-public service advertisements, and arranging the corresponding advertisements according to a specific playing sequence on the two lists to obtain a public service advertisement list and a non-public service advertisement list.

In an embodiment, when the processor 502 implements the steps of obtaining the public service advertisement list and sending the corresponding public service advertisement to the terminal according to the public service advertisement list, so as to play the public service advertisement on the terminal, the following steps are specifically implemented:

acquiring a public service advertisement list; acquiring a playing file in a public service advertisement list to obtain a first acquisition result; judging whether the first obtaining result is obtained successfully or not; if the first obtaining result is not successful, downloading the playing file into a public service advertisement list, and executing the playing file in the public service advertisement list to obtain a first obtaining result; if the first obtaining result is that the obtaining is successful, judging whether the playing file is complete; if the playing file is complete, sending the playing file to a terminal so as to play the public service advertisement corresponding to the playing file on the terminal; and if the playing file is not complete, executing the downloading of the playing file to a public service advertisement list.

In an embodiment, when the processor 502 implements the steps of obtaining the non-public service advertisement list and sending the corresponding non-public service advertisement to the terminal according to the non-public service advertisement list, so as to play the non-public service advertisement on the terminal, the following steps are specifically implemented:

acquiring a non-public service advertisement list; acquiring a playing file in the non-public service advertisement list to obtain a second acquisition result; judging whether the second obtaining result is obtained successfully or not; if the second obtaining result is not successful, downloading the non-playing file into a non-public service advertisement list, and executing the playing file in the non-public service advertisement list to obtain a second obtaining result; if the second obtaining result is that the obtaining is successful, judging whether the playing file is complete; if the playing file is complete, sending the playing file to a terminal so as to play the non-public-interest advertisement corresponding to the playing file on the terminal; and if the playing file is not complete, executing the downloading of the playing file to a non-public service advertisement list.

In an embodiment, when the processor 502 implements the step of modifying the public service advertisement list or the non-public service advertisement list according to the modification request, the following steps are specifically implemented:

judging whether the modification request is to modify the current list or not; if the modification request is to modify the current list, modifying the current list, refreshing the modified list, and playing the modified list; if the modification request does not modify the current list, the current list is kept for advertisement playing, another list is modified, and when the modification is finished and the switching to the playing of another list is needed, the switching to the playing of the modified another list is carried out.

It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.

Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:

setting a list for storing public service advertisements and a list for storing non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list; acquiring a playing request; judging whether the playing request is a public service advertisement; if the playing request is a public service advertisement, acquiring a public service advertisement list, and sending a corresponding public service advertisement to a terminal according to the public service advertisement list so as to play the public service advertisement on the terminal; acquiring a modification request; and modifying the public service advertisement list or the non-public service advertisement list according to the modification request. If the playing request is not a public service advertisement, a non-public service advertisement list is obtained, and a corresponding non-public service advertisement is sent to the terminal according to the non-public service advertisement list so as to play the non-public service advertisement on the terminal.

In an embodiment, when the computer program is executed by the processor to implement the steps of setting up a list for storing public service advertisements and a list for storing non-public service advertisements to obtain a public service advertisement list and a non-public service advertisement list, the processor specifically implements the following steps:

and arranging a list for storing the public service advertisements and a list for storing the non-public service advertisements, and arranging the corresponding advertisements according to a specific playing sequence on the two lists to obtain a public service advertisement list and a non-public service advertisement list.

In an embodiment, when the processor executes the computer program to achieve the steps of obtaining the public service advertisement list and sending a corresponding public service advertisement to a terminal according to the public service advertisement list so as to play the public service advertisement on the terminal, the following steps are specifically achieved:

acquiring a public service advertisement list; acquiring a playing file in a public service advertisement list to obtain a first acquisition result; judging whether the first obtaining result is obtained successfully or not; if the first obtaining result is not successful, downloading the playing file into a public service advertisement list, and executing the playing file in the public service advertisement list to obtain a first obtaining result; if the first obtaining result is that the obtaining is successful, judging whether the playing file is complete; if the playing file is complete, sending the playing file to a terminal so as to play the public service advertisement corresponding to the playing file on the terminal; and if the playing file is not complete, executing the downloading of the playing file to a public service advertisement list.

In an embodiment, when the processor executes the computer program to implement the steps of obtaining the non-public service advertisement list and sending a corresponding non-public service advertisement to the terminal according to the non-public service advertisement list, so as to play the non-public service advertisement on the terminal, the following steps are specifically implemented:

acquiring a non-public service advertisement list; acquiring a playing file in the non-public service advertisement list to obtain a second acquisition result; judging whether the second obtaining result is obtained successfully or not; if the second obtaining result is not successful, downloading the non-playing file into a non-public service advertisement list, and executing the playing file in the non-public service advertisement list to obtain a second obtaining result; if the second obtaining result is that the obtaining is successful, judging whether the playing file is complete; if the playing file is complete, sending the playing file to a terminal so as to play the non-public-interest advertisement corresponding to the playing file on the terminal; and if the playing file is not complete, executing the downloading of the playing file to a non-public service advertisement list.

In an embodiment, when the processor executes the computer program to implement the step of modifying the public service advertisement list or the non-public service advertisement list according to the modification request, the following steps are specifically implemented:

judging whether the modification request is to modify the current list or not; if the modification request is to modify the current list, modifying the current list, refreshing the modified list, and playing the modified list; if the modification request does not modify the current list, the current list is kept for advertisement playing, another list is modified, and when the modification is finished and the switching to the playing of another list is needed, the switching to the playing of the modified another list is carried out.

The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.

Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.

The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.

While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种IPTV监管方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类