Disclosure of Invention
The technical problem to be solved by the invention is to provide a live broadcast message pushing method for network live broadcast, which can enhance the pushing effect of the live broadcast message.
The invention also provides a device for pushing the broadcast message of the network live broadcast, which is used for ensuring the realization and the application of the method in practice.
A method for pushing an opening message of network live broadcast comprises the following steps:
in the current push time period, when the fact that a target live broadcast room concerned by a viewer side is started to be in a live broadcast state is detected, determining a push queue to which the target live broadcast room belongs, wherein the push queue is a priority push queue corresponding to the viewer side in the push time period or a non-priority push queue corresponding to the viewer side in the push time period; each live broadcast room contained in the priority push queue and each live broadcast room contained in the non-priority push queue are determined in advance according to the recommendation degree of each live broadcast room concerned by the audience and the broadcasting prediction result;
if the push queue to which the target live broadcast room belongs is the priority push queue, acquiring the number of broadcast messages which are currently pushed to the audience, and if the number of the broadcast messages which are currently pushed to the audience is not greater than a preset push threshold value, pushing the broadcast messages of the target live broadcast room to the audience;
if the push queue to which the target live broadcast room belongs is the non-priority push queue, acquiring a first push quantity, a second push quantity and the quantity of live broadcast rooms contained in the priority push queue; judging whether the target live broadcast room meets preset push conditions or not according to the first push quantity, the second push quantity, the quantity of live broadcast rooms contained in the priority push queue and a preset push threshold value, and if so, pushing start-up information of the target live broadcast room to the audience; the first pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the priority pushing queue; the second pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the non-priority pushing queue.
Optionally, the method determines, in advance, the live broadcast rooms included in the priority push queue and the live broadcast rooms included in the non-priority push queue according to the recommendation level of each live broadcast room concerned by the viewer and the broadcast prediction result, and includes:
obtaining recommendation degrees and broadcasting prediction results of all live broadcasting rooms concerned by the audience;
determining alternative live broadcast rooms in all live broadcast rooms concerned by the audience, wherein the alternative live broadcast rooms are live broadcast rooms of which the broadcasting prediction results are characterized as live broadcast states started in the push time period;
selecting a preset number of alternative live broadcast rooms according to the sequence of the recommendation degrees of the alternative live broadcast rooms from large to small, wherein the preset number is smaller than or equal to the pushing threshold value;
and determining the selected alternative live broadcast rooms as live broadcast rooms in a priority push queue, and determining all live broadcast rooms except the selected alternative live broadcast rooms in all live broadcast rooms concerned by the audience as live broadcast rooms in a non-priority push queue.
Optionally, the above method, where the process of obtaining the recommendation level of each live broadcast room concerned by the viewer includes:
acquiring interaction data corresponding to the audience and each live broadcast room concerned by the audience; the interactive data comprises viewing duration data, gift sending recording data, viewing times and speaking times;
and for each live broadcast room concerned by the audience, obtaining the recommendation degree of the live broadcast room according to the watching duration, the gift sending record data, the watching times and the speaking times of the live broadcast room.
Optionally, the above method, in the process of obtaining the broadcasting prediction result of each live broadcast room concerned by the viewer, includes:
determining date information corresponding to the pushing time period;
acquiring historical playing data corresponding to the date information of each live broadcast room concerned by the audience;
obtaining a broadcasting forecast score of each live broadcast room concerned by the audience according to the date information and each historical broadcasting data;
and for each live broadcast room concerned by the audience, obtaining a broadcast prediction result of the live broadcast room according to the broadcast prediction score of the live broadcast room.
Optionally, the obtaining, according to the date information and each piece of historical playing data, a play prediction score of each live broadcast room concerned by the viewer includes:
for each live broadcast room, judging whether the pushing time interval is in a festival or not according to the date information, if so, obtaining a continuous index, a week index, a festival index and a historical broadcasting index of the live broadcast room according to historical broadcasting data of the live broadcast room, and obtaining a broadcasting forecast score of the live broadcast room according to the continuous index, the week index and the historical broadcasting index; if not, obtaining a continuity index, a week index and a historical broadcasting index of the live broadcast room according to historical broadcasting data of the live broadcast room; and obtaining the broadcasting forecast score of the live broadcast room according to the continuous index, the week index and the historical broadcasting index.
Optionally, the method for determining, according to the first push quantity, the second push quantity, the quantity of live webcasts included in the priority push queue, and a preset push threshold, whether the target live webcast meets a preset push condition includes:
judging whether the sum of the number of live broadcasting rooms contained in the priority push queue and the second push number is less than or equal to the sum of the push number threshold and the first push number;
and if the sum of the number of live broadcasting rooms contained in the priority pushing queue and the second pushing number is less than or equal to the sum of the pushing number threshold and the first pushing number, determining that the target live broadcasting room meets the pushing condition.
Optionally, the determining a push queue to which the target live broadcast room belongs includes:
acquiring identification information of the target live broadcast room;
traversing a queue configuration file corresponding to the audience according to the identification information to obtain a queue identification corresponding to the identification information;
and determining a push queue to which the target live broadcast room belongs according to the queue identification.
A network live broadcast message pushing device comprises:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a push queue of a target live broadcast room when detecting that the target live broadcast room concerned by a viewer starts a live broadcast state in a current push time period, and the push queue is a priority push queue corresponding to the viewer in the push time period or a non-priority push queue corresponding to the viewer in the push time period; each live broadcast room contained in the priority push queue and each live broadcast room contained in the non-priority push queue are determined in advance according to the recommendation degree of each live broadcast room concerned by the audience and the broadcasting prediction result;
the first pushing unit is used for acquiring the number of the broadcast messages which are currently pushed to the audience when the push queue to which the target live broadcast room belongs is the priority push queue, and pushing the broadcast messages of the target live broadcast room to the audience if the number of the broadcast messages which are currently pushed to the audience is not greater than a preset push threshold value;
the second pushing unit is used for acquiring the first pushing quantity, the second pushing quantity and the quantity of live broadcast rooms contained in the priority pushing queue when the pushing queue to which the target live broadcast room belongs is the non-priority pushing queue; judging whether the target live broadcast room meets preset push conditions or not according to the first push quantity, the second push quantity, the quantity of live broadcast rooms contained in the priority push queue and a preset push threshold value, and if so, pushing start-up information of the target live broadcast room to the audience; the first pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the priority pushing queue; the second pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the non-priority pushing queue.
A storage medium, which includes storage instructions, and when the instructions are executed, controls a device on which the storage medium is located to execute the live webcast broadcast message push method described above.
An electronic apparatus comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to perform a live webcast push method as described above by one or more processors.
Compared with the prior art, the invention has the following advantages:
the invention provides a method and a device for pushing an opening message of live webcast, wherein the method comprises the following steps: in the current push time period, when the fact that a target live broadcast room concerned by a viewer side is started to be in a live broadcast state is detected, determining a push queue to which the target live broadcast room belongs, wherein the push queue is a priority push queue corresponding to the viewer side in the push time period or a non-priority push queue corresponding to the viewer side in the push time period; each live broadcast room contained in the priority push queue and each live broadcast room contained in the non-priority push queue are determined in advance according to the recommendation degree of each live broadcast room concerned by the audience and the broadcasting prediction result; if the push queue to which the target live broadcast room belongs is the priority push queue, acquiring the number of broadcast messages which are currently pushed to the audience, and if the number of the broadcast messages which are currently pushed to the audience is not greater than a preset push threshold value, pushing the broadcast messages of the target live broadcast room to the audience; if the push queue to which the target live broadcast room belongs is the non-priority push queue, acquiring a first push quantity, a second push quantity and the quantity of live broadcast rooms contained in the priority push queue; judging whether the target live broadcast room meets preset push conditions or not according to the first push quantity, the second push quantity, the quantity of live broadcast rooms contained in the priority push queue and a preset push threshold value, and if so, pushing start-up information of the target live broadcast room to the audience; the first pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the priority pushing queue; the second pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the non-priority pushing queue. And the push effect of the broadcast message is enhanced.
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides a live broadcast message pushing method for network broadcast, which can be applied to various system platforms, wherein an execution main body of the method can be a processor of a server, the server can be a computer terminal or various mobile devices, and a flow chart of the method is shown in figure 1 and specifically comprises the following steps:
s101: in the current push time period, when the fact that a target live broadcast room concerned by a viewer side is started to be in a live broadcast state is detected, determining a push queue to which the target live broadcast room belongs, wherein the push queue is a priority push queue corresponding to the viewer side in the push time period or a non-priority push queue corresponding to the viewer side in the push time period; and each live broadcast room contained in the priority push queue and each live broadcast room contained in the non-priority push queue are determined in advance according to the recommendation degree of each live broadcast room concerned by the audience and the broadcasting prediction result.
In the method provided by the embodiment of the present invention, one pushing period may be one day, one week, one month, or the like, and preferably, one pushing period is one day.
The number of the live broadcast rooms concerned by the audience can be one or more, and when the live broadcast state of any live broadcast room concerned by the audience is detected to be started, the live broadcast room currently started in the live broadcast state is determined as a target live broadcast room.
In the method provided by the embodiment of the invention, historical play data of each live broadcast room concerned by a viewer can be obtained in advance, the recommendation degree and the broadcasting prediction result of the live broadcast room are determined according to the historical play data of each live broadcast room, the recommendation degree of the live broadcast room represents the preference degree of the viewer to the live broadcast room, and the broadcasting prediction result of the live broadcast room is a prediction result of whether the live broadcast state can be started in the current push time period of the live broadcast room.
Specifically, each live broadcast room concerned by the audience is divided into a priority push queue and a non-priority push queue in advance, wherein the broadcasting prediction result of each live broadcast room in the priority push queue represents that the live broadcast room to which the live broadcast room belongs opens the live broadcast state in the current push time period.
The target live broadcast room can belong to a priority push queue or a non-priority push queue.
S102: if the push queue to which the target live broadcast room belongs is the priority push queue, the number of the broadcast messages which are currently pushed to the audience is obtained, and if the number of the broadcast messages which are currently pushed to the audience is not larger than a preset push threshold value, the broadcast messages of the target live broadcast room are pushed to the audience.
In the method provided by the embodiment of the invention, under the condition that the target live broadcast room belongs to the priority push queue, the number of the broadcast messages pushed to the audience in the current push time period is obtained, the push threshold corresponding to the audience is determined, the number of the broadcast messages pushed to the audience is compared with the push threshold, if the number of the broadcast messages pushed to the audience is not greater than the push threshold, the broadcast messages in the live broadcast room are pushed to the audience, and if the number is greater than the push threshold, the current push process is ended.
S103: if the push queue to which the target live broadcast room belongs is the non-priority push queue, acquiring a first push quantity, a second push quantity and the quantity of live broadcast rooms contained in the priority push queue; judging whether the target live broadcast room meets preset push conditions or not according to the first push quantity, the second push quantity, the quantity of live broadcast rooms contained in the priority push queue and a preset push threshold value, and if so, pushing start-up information of the target live broadcast room to the audience; the first pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the priority pushing queue; the second pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the non-priority pushing queue.
In the method provided by the embodiment of the present invention, when the broadcast messages of the live broadcast rooms in the priority push queue are pushed to the viewer, the first push quantity is updated, that is, each time a broadcast message of a live broadcast room in the priority push queue is sent, the first push quantity is added by 1.
Similarly, when the broadcast messages of the live rooms in the non-priority push queues are pushed to the audience, the second push quantity is updated, and the second push quantity is updated by adding 1 to each broadcast message of the live room in the non-priority push queue.
And under the condition that the target live broadcast room meets the push condition, generating an opening message corresponding to the target live broadcast room, and pushing the opening message to a viewer end so as to prompt a user to enter the target live broadcast room to watch live broadcast.
By applying the method provided by the embodiment of the invention, the message push share can be reasonably distributed to each live broadcast room concerned by the audience, the push effect of the broadcast messages of the live broadcast rooms is enhanced, so that the user can receive the messages of the live broadcast rooms interested by the user, and the user can watch the live broadcast contents interested by the user.
Based on the foregoing implementation process, the method provided in the embodiment of the present invention specifically determines, in advance, a process of determining, according to a recommendation degree of each live broadcast room concerned by the viewer and a broadcast prediction result, each live broadcast room included in the priority push queue and each live broadcast room included in the non-priority push queue, as shown in fig. 2, specifically includes:
s201: and obtaining recommendation degrees and broadcasting prediction results of all live broadcasting rooms concerned by the audience.
Specifically, in a push time period before the current push time period, the recommendation degree and the broadcasting prediction result of each concerned live broadcast room of the audience are obtained in advance, and each live broadcast room corresponds to one recommendation degree and one broadcasting prediction result.
S202: and determining alternative live broadcast rooms in all live broadcast rooms concerned by the audience, wherein the alternative live broadcast rooms are live broadcast rooms of which the broadcasting prediction results are characterized as live broadcast states in the push time period.
The broadcasting prediction results of each live broadcast room can be analyzed in sequence, whether each broadcasting prediction result represents that the live broadcast room to which the broadcasting prediction result belongs is in a live broadcast starting state in the pushing time period or not is further determined, and if yes, the live broadcast room is determined to be an alternative live broadcast room.
S203: and selecting a preset number of alternative live broadcast rooms according to the sequence of the recommendation degrees of the alternative live broadcast rooms from large to small, wherein the preset number is less than or equal to the pushing threshold value.
Specifically, the alternative live broadcast rooms can be sorted according to the recommendation degree of each alternative live broadcast room, a preset number of alternative live broadcast rooms is selected according to the recommendation degree of each alternative live broadcast room, the value range of the preset number can be a positive integer between 0 and a pushing threshold value, and specifically, technical personnel can set the value according to actual requirements.
S204: and determining the selected alternative live broadcast rooms as live broadcast rooms in a priority push queue, and determining all live broadcast rooms except the selected alternative live broadcast rooms in all live broadcast rooms concerned by the audience as live broadcast rooms in a non-priority push queue.
In the method provided by the embodiment of the invention, each live broadcast room concerned by the audience is divided into the priority push queue and the non-priority push queue according to the recommendation degree and the broadcast prediction result of each live broadcast room, so that the push effect of broadcast messages can be enhanced.
Based on the above implementation process, the method provided by the embodiment of the present invention specifically obtains the recommendation degrees of the live broadcast rooms concerned by the viewer, and includes:
acquiring interaction data corresponding to the audience and each live broadcast room concerned by the audience; the interactive data comprises viewing duration data, gift sending recording data, viewing times and speaking times;
and for each live broadcast room, obtaining the recommendation degree of the live broadcast room according to the watching duration, the gift sending record data, the watching times and the speaking times of the live broadcast room.
The viewing duration data may be an average duration of the viewer viewing the live broadcast room every day, and the viewing times are times of the viewer entering the live broadcast room.
In the method provided by the embodiment of the invention, the recommendation degree of each live broadcast room is calculated in the following way:
Qi=R1×K1+R2×K2+R3×K3+R4×K4
wherein Q isiRecommendation for live room i, R1For viewing duration data, K1Is R1Weighted value of R2Recording data for gift delivery, K2Is R2Weighted value of R3For the number of views, K3Is R3Weighted value of R4For the number of utterances, K4Is R4The weight value of (2).
By applying the method provided by the embodiment of the invention, the recommendation degree of the live broadcast room is generated through the interaction data of the audience terminal and the live broadcast room, and the interest degree of the user corresponding to the audience terminal in each live broadcast room can be accurately described.
Based on the above implementation process, the method provided in the embodiment of the present invention specifically obtains a broadcast prediction result of each live broadcast room concerned by the viewer, as shown in fig. 3, and specifically includes:
s301: and determining date information corresponding to the pushing time period.
In the method provided by the embodiment of the present invention, the date information includes year-month-day information, week information, holiday information, and the like, and for example, the date information corresponding to the pushing time period may be "09/month-13 days in 2019, friday, mid-autumn festival".
S302: and acquiring historical playing data corresponding to the date information of each live broadcast room concerned by the audience.
In the method provided by the embodiment of the present invention, the playing data of each push time period in a preset push cycle before the date information can be acquired, and the historical playing data of each live broadcast room can be a playing data set of the live broadcast room for several days in the past.
S303: and obtaining the broadcasting forecast score of each live broadcast room concerned by the audience according to the date information and the historical broadcasting data. One way to obtain the score of the prediction of the broadcast of each live broadcast room concerned by the audience is: for each live broadcast room, judging whether the pushing time interval is in a festival or not according to the date information, if so, obtaining a continuous index, a week index, a festival index and a historical broadcasting index of the live broadcast room according to historical broadcasting data of the live broadcast room, and obtaining a broadcasting forecast score of the live broadcast room according to the continuous index, the week index and the historical broadcasting index; if not, obtaining a continuity index, a week index and a historical broadcasting index of the live broadcast room according to historical broadcasting data of the live broadcast room; and obtaining the broadcasting forecast score of the live broadcast room according to the continuous index, the week index and the historical broadcasting index.
The continuous index can be a continuous play index or a continuous play-off index, a push time period before a current push time period is determined as a first historical push time period, and a push time period before the first historical push time period is determined as a second historical push time period; for each live broadcast room, if the live broadcast room starts the live broadcast state in the second historical push time period, the continuous broadcast starting index of the live broadcast room can be obtained, and if the live broadcast room does not start the live broadcast state in the second historical push time period, the continuous broadcast closing index of the live broadcast room can be obtained.
One way to obtain the continuous broadcasting closing index of the live broadcasting room may be: determining the number of continuous broadcasting-off push time periods corresponding to the second historical push time period in the live broadcast room, namely the number of continuous broadcasting-off days, selecting multiple groups of continuous broadcasting-off days, and determining that the ratio e of the continuous broadcasting-off days corresponding to the second historical push time period in the live broadcast room is less than or equal to the ratio e of the continuous broadcasting-off days corresponding to the second historical push time period in the live broadcast room1Wherein the continuous off-air index c1=100×e1。
For example, the consecutive closed-air days corresponding to the second historical push time period in the live broadcast room are 5 days, the selected consecutive closed-air days of each group are 3 days, 4 days, 5 days, 8 days and 10 days respectively, and then the consecutive closed-air days of each group areThe number of the broadcasting closing days is less than or equal to the number of the continuous broadcasting closing days corresponding to the second historical pushing time period of the live broadcasting room, so that the broadcasting closing days have e1=3/5。
One way to obtain the continuous play index of the live broadcast room may be: determining the number of the push time periods of continuous broadcasting corresponding to the second historical push time period in the live broadcasting room, namely the number of days of continuous broadcasting, determining the number of continuous days of non-closed broadcasting in each group in the historical broadcasting data, and determining that the number of continuous broadcasting days of each group is greater than the ratio e of the continuous closed broadcasting days corresponding to the second historical push time period in the live broadcasting room2Continuous broadcast index c2=100×e2。
For example, if the number of continuous broadcast days corresponding to the second historical push period in the live broadcast room is 8 days, and the continuous broadcast scores of each group are 6 days, 7 days, 8 days, 9 days, 10 days, 11 days, and 12 days, then e2=3/7。
One way to obtain the week index of the live room may be: determining the week information of the push time interval, acquiring the broadcasting status data corresponding to the week information in the historical playing data, and determining the proportion e of the broadcasting status data representing broadcasting in the broadcasting status data corresponding to the week information3Week index w is 100 × e3。
For example, the week information of the push period is friday, and in the last 12 weeks, the times of friday broadcasting of each week in the live broadcast room are 5 times, that is, there are 12 broadcasting status data corresponding to tuesday in the history broadcasting data, and the number of the broadcasting status data representing "on live broadcast state" is 5, so there is e3=5/12。
In the case that the date information of the push period indicates that the push period is in a holiday, one way to obtain the holiday index of the live broadcast room may be: confirming the festival type of the festival, determining the playing data corresponding to the festival type in the historical playing data of the live broadcast room, obtaining the festival index of the live broadcast room according to the broadcasting status data corresponding to the festival type, and particularly determining the proportion e of the broadcasting status data broadcasted by the broadcasting status data mark corresponding to the festival type in the live broadcast room4Festival index h is 100 × e4The festival type may be spring festival, labor festival, early afternoon festival, mid-autumn festival, national day festival, etc.
For example, if the festival corresponding to the push time period is the mid-autumn festival, the broadcast status data of the live broadcast room in each festival in the past period of time may be acquired, or only the past period of time may be acquired, the broadcast status data of the live broadcast room in the mid-autumn festival may be acquired, and if the broadcast times of the live broadcast room in each past mid-autumn festival are 2 times in the past 5 mid-autumn festival, that is, 5 broadcast status data corresponding to the type of the festival exist in the history broadcast data, and the number of the broadcast status data representing the "live broadcast on state" is 2, so there is e4=2/5。
One way to obtain the historical play index of the live broadcast room may be: acquiring broadcasting status data of each day in historical broadcasting data, determining the number of all broadcasting status data and the number of broadcasting status data characterized as 'live broadcast starting state' in each broadcasting status data, and determining the proportion e of the broadcasting status data characterized as 'live broadcast starting state' in each broadcasting status data5The historical broadcasting index a is 100 × e5。
In the method provided by the embodiment of the invention, whether the pushing time interval is in a festival or not is judged, and if yes, a preset first continuous exponential weight W is obtainedc1First week exponential weight Ww1Festival index weight WhAnd a first historical airworthiness weight Wa1(ii) a If not, acquiring a preset second continuous exponential weight Wc2Second week exponential weight Ww2And a second historical airworthiness weight Wa2(ii) a Wherein the first total weight W1=Wc1+Ww1+Wh+Wa1Second total weight W2=Wc2+Ww2+Wa2Optionally, W1=100、Wc1=20、Ww1=20、Wh=20、Wa=10;W2=80、
Wc2=20、Ww2=20、Wa2=10。
If the push period is in the holiday, one way to calculate the broadcast prediction score of the live broadcast room may be:
Q=c×Wc1/W+w×Ww1/W+h×Wh1/W+a×Wa1/W
q is 0.5c +0.2w +0.2 hx +0.1a, where the continuity index c may be a continuous closed-off index or a continuous on-air index, and Q is an on-air prediction score.
If the push time period is not in the holiday, one way to calculate the broadcast prediction score of the live broadcast room may be:
Q=c×Wc2/W+w×Ww2/W+a×Wa2/W
q is 0.625c +0.25w + +0.125a, and Q is the broadcast prediction score.
If the push time interval is located at the node, another optional way for calculating the broadcast prediction score of the live broadcast room is as follows:
normalizing the continuous index c, the week index w, the festival index h and the historical broadcasting index a to obtain a normalized continuous index score RcNormalized week index RwNormalized holiday index score RhNormalized historical opening index score Ra。
Then, Q ═ Rc×Wc1+Rw×Ww1/W+Rh×Wh1+Ra×Wa1And Q is the airtime prediction score.
If the push time interval is located at the node, another optional way for calculating the broadcast prediction score of the live broadcast room is as follows:
normalizing the continuous index c, the week index w and the historical broadcasting index a to obtain a normalized continuous index value RcNormalized week index RwNormalized historical opening index score Ra。
Then, Q ═ Rc×Wc2+Rw×Ww2+Ra×Wa2And Q is the airtime prediction score.
It should be noted that, the normalization formula provided by the embodiment of the present invention is:
wherein X is the index to be normalized at present, XminFor the index with the smallest value among the indices to be normalized, XmaxAnd F (0, 1) is the index with the maximum score in each index to be normalized, and is the normalized score corresponding to the current index to be normalized.
S304: and for each live broadcast room concerned by the audience, obtaining a broadcast prediction result of the live broadcast room according to the broadcast prediction score of the live broadcast room.
In the method provided by the embodiment of the invention, after the broadcasting prediction score of each live broadcast room is obtained, the broadcasting prediction score is respectively compared with the preset broadcasting score threshold value so as to determine the broadcasting prediction result of each live broadcast room.
Specifically, for each live broadcast room, whether the broadcast prediction score of the live broadcast room is greater than a broadcast score threshold value or not is judged, if the broadcast prediction score is greater than the broadcast score threshold value, it is determined that the broadcast prediction result of the live broadcast room represents that the live broadcast room is to be in a live broadcast state in the push time period, and if the broadcast prediction score is not greater than the broadcast score threshold value, it is determined that the broadcast prediction result of the live broadcast room represents that the live broadcast room is not to be in the live broadcast state in the push time period.
By applying the method provided by the embodiment of the invention, the accuracy of the inter-anchor broadcasting prediction result can be improved.
In the method provided in the embodiment of the present invention, based on the foregoing implementation process, specifically, an optional way of determining whether the target live broadcast room satisfies a preset push condition according to the first push number, the second push number, the number of live broadcast rooms included in the priority push queue, and a preset push threshold is as follows:
judging whether the sum of the number of live broadcasting rooms contained in the priority push queue and the second push number is less than or equal to the sum of the push number threshold and the first push number;
and if the sum of the number of live broadcasting rooms contained in the priority pushing queue and the second pushing number is less than or equal to the sum of the pushing number threshold and the first pushing number, determining that the target live broadcasting room meets the pushing condition.
Another optional mode is:
let the first push quantity be c _ used, the second push quantity be o _ used, and the quantity of live broadcast rooms contained in the priority push queue be PcThe pushing quantity threshold is Z, wherein c _ used is integer, o _ used and PcAnd Z is an integer.
Judging whether o _ used is less than or equal to (Z-P)c+ c _ used), if yes, determining that the target live broadcast room meets the push condition, and if not, determining that the target live broadcast room does not meet the push condition.
That is, if the push queue to which the target live broadcast room belongs is a non-priority push queue, specifically, if o _ used is less than or equal to (Z-P)c+ c _ used), the on-air message of the target live broadcast room can be pushed to the viewer side.
For example, if the threshold of the number of pushes is 10, the first number of pushes is 3, the second number of pushes is 5, and the number of live broadcasts included in the priority push queue is 5, then (Z-P) is obtainedcAnd + c _ used) — 8, which is greater than the second push number, so that it is determined that the target live broadcast room satisfies the push condition, and the broadcast notification message corresponding to the target live broadcast room is generated and pushed to the viewer.
In the method provided in the embodiment of the present invention, based on the foregoing implementation process, optionally, the determining a push queue to which the target live broadcast room belongs includes:
acquiring identification information of the target live broadcast room;
traversing a queue configuration file corresponding to the audience according to the identification information to obtain a queue identification corresponding to the identification information;
and determining a push queue to which the target live broadcast room belongs according to the queue identification.
In the method provided by the embodiment of the present invention, the identification information may be an anchor ID corresponding to the target live broadcast room or a room number of the target live broadcast room, and the like.
The queue configuration file records a relationship between identification information of each live broadcast room concerned by a viewer and a queue identification of a push queue to which the identification information belongs in advance, and the push queue to which a target live broadcast room belongs can be determined according to the queue identification, for example, if the queue identification is binary number 0, the push queue to which the target live broadcast room belongs can be determined as a priority push queue, and if the queue identification is binary number 1, the push queue to which the target live broadcast room belongs can be determined as a non-priority push queue.
By applying the method provided by the embodiment of the invention, the push queue to which the target live broadcast room belongs can be quickly determined, the push time of the broadcast message is shortened, and the push efficiency of the broadcast message is improved.
The method provided by the embodiment of the present invention can be applied to various network live broadcast fields, and in order to clearly illustrate the implementation principle of the live broadcast message push method provided by the present invention, the following examples are given:
referring to fig. 4, an exemplary implementation scenario provided by the present invention includes a server 401, a broadcaster 402, and a viewer 403.
In practice, the anchor end 402 and the viewer end 403 shown in fig. 4 may be electronic devices such as a mobile phone, a tablet computer, a personal computer, and the like. The server 401 may be one server, a server cluster composed of a plurality of servers, or a cloud computing service center. The server 401 and the anchor terminal 402 establish a communication connection through a network, and the server 401 and the audience terminal establish a communication connection through the network.
Embodiments of the present invention relate to networks that are media providing communication links and may include various types of connections, such as wire, wireless communication links, or fiber optic cables.
In the current push time interval, the network anchor can send a broadcast request through a server of the anchor end corresponding to the network anchor, so that a live broadcast room corresponding to the anchor enters a broadcast state, the live broadcast room is determined as a target live broadcast room, and when the server detects that the live broadcast state of the live broadcast room corresponding to the network anchor is opened, each audience end paying attention to the live broadcast room is determined.
For each audience concerning the live broadcast room, the server determines a push queue to which the target live broadcast room belongs, wherein the push queue is a priority push queue or a non-priority push queue of the audience; it should be noted that the push queues of the target live broadcast rooms at different audience terminals may be the same or different, and the live broadcast room included in the priority push queue and the live broadcast room included in the non-priority push queue of each audience terminal are determined according to the recommendation degree and the play prediction result of each live broadcast room concerned by the audience terminal.
For each audience concerning the live broadcast room, if the push queue to which the target live broadcast room belongs is the priority push queue of the audience, acquiring the number of broadcast messages which are currently pushed to the audience, and if the number of the broadcast messages which are currently pushed to the audience is not greater than a preset push threshold, pushing the broadcast messages of the target live broadcast room to the audience; if the push queue to which the target live broadcast room belongs is a non-priority push queue of the audience, acquiring a first push quantity, a second push quantity and the quantity of live broadcast rooms contained in the priority push queue; and judging whether the target live broadcast room meets the push condition for pushing the broadcast message to the audience according to the first push quantity, the second push quantity, the quantity of the live broadcast rooms contained in the priority push queue and a preset push threshold value, and if so, pushing the broadcast message of the target live broadcast room to the audience.
It should be understood that the number of servers, anchor peers, and spectators shown in fig. 4 is merely illustrative, and that there may be multiple servers, multiple anchor peers, and multiple spectators, as desired.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a live broadcast message push apparatus for network broadcast, which is used to implement the method in fig. 1 specifically, and the live broadcast message push apparatus for network broadcast provided in the embodiment of the present invention may be applied to a server, and a schematic structural diagram of the live broadcast message push apparatus is shown in fig. 5, and specifically includes:
a determining unit 501, configured to determine, in a current push time period, a push queue to which a target live broadcast room concerned by a viewer belongs when it is detected that a live broadcast state of the target live broadcast room is started, where the push queue is a priority push queue corresponding to the viewer in the push time period or a non-priority push queue corresponding to the viewer in the push time period; each live broadcast room contained in the priority push queue and each live broadcast room contained in the non-priority push queue are determined in advance according to the recommendation degree of each live broadcast room concerned by the audience and the broadcasting prediction result;
a first pushing unit 502, configured to, when the push queue to which the target live broadcast room belongs is the priority push queue, obtain the number of broadcast messages that have been currently pushed to the viewer side, and if the number of broadcast messages that have been currently pushed to the viewer side is not greater than a preset push threshold, push the broadcast messages of the target live broadcast room to the viewer side;
a second pushing unit 503, configured to obtain a first pushing quantity, a second pushing quantity, and a quantity of live broadcast rooms included in the priority pushing queue when the pushing queue to which the target live broadcast room belongs is the non-priority pushing queue; judging whether the target live broadcast room meets preset push conditions or not according to the first push quantity, the second push quantity, the quantity of live broadcast rooms contained in the priority push queue and a preset push threshold value, and if so, pushing start-up information of the target live broadcast room to the audience; the first pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the priority pushing queue; the second pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the non-priority pushing queue.
The invention provides a live broadcast message pushing device for network live broadcast, which is characterized in that in the current pushing time period, when the live broadcast state of a target live broadcast room concerned by a viewer end is detected, a pushing queue to which the target live broadcast room belongs is determined, wherein the pushing queue is a priority pushing queue corresponding to the viewer end in the pushing time period or a non-priority pushing queue corresponding to the viewer end in the pushing time period; each live broadcast room contained in the priority push queue and each live broadcast room contained in the non-priority push queue are determined in advance according to the recommendation degree of each live broadcast room concerned by the audience and the broadcasting prediction result; if the push queue to which the target live broadcast room belongs is the priority push queue, acquiring the number of broadcast messages which are currently pushed to the audience, and if the number of the broadcast messages which are currently pushed to the audience is not greater than a preset push threshold value, pushing the broadcast messages of the target live broadcast room to the audience; if the push queue to which the target live broadcast room belongs is the non-priority push queue, acquiring a first push quantity, a second push quantity and the quantity of live broadcast rooms contained in the priority push queue; judging whether the target live broadcast room meets preset push conditions or not according to the first push quantity, the second push quantity, the quantity of live broadcast rooms contained in the priority push queue and a preset push threshold value, and if so, pushing start-up information of the target live broadcast room to the audience; the first pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the priority pushing queue; the second pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the non-priority pushing queue. And the push effect of the broadcast message is enhanced.
In an embodiment provided by the present invention, based on the above scheme, optionally, the method further includes:
the acquisition unit is used for acquiring the recommendation degree and the broadcasting prediction result of each live broadcast room concerned by the audience;
a first determining unit, configured to determine an alternative live broadcast room in each live broadcast room concerned by the viewer, where the alternative live broadcast room is a live broadcast room in which a broadcast prediction result of the alternative live broadcast room is characterized as being in a live broadcast state in the push time period;
the selecting unit is used for selecting a preset number of alternative live broadcast rooms according to the sequence of the recommendation degrees of the alternative live broadcast rooms from large to small, wherein the preset number is smaller than or equal to the pushing threshold value;
and the second determining unit is used for determining the selected alternative live broadcast room as a live broadcast room in the priority push queue and determining all live broadcast rooms, except the selected alternative live broadcast room, in all live broadcast rooms concerned by the audience end as live broadcast rooms in the non-priority push queue.
In an embodiment provided by the present invention, based on the above scheme, optionally, the obtaining unit for obtaining the recommendation degrees of the live broadcast rooms concerned by the viewer is configured to:
acquiring interaction data corresponding to the audience and each live broadcast room concerned by the audience; the interactive data comprises viewing duration data, gift sending recording data, viewing times and speaking times;
and for each live broadcast room concerned by the audience, obtaining the recommendation degree of the live broadcast room according to the watching duration, the gift sending record data, the watching times and the speaking times of the live broadcast room.
In an embodiment of the present invention, based on the above scheme, optionally, the obtaining unit for obtaining the play prediction result of each live broadcast room concerned by the viewer side includes:
the first determining subunit is used for determining date information corresponding to the pushing time period;
the acquisition subunit is configured to acquire historical play data corresponding to the date information in each live broadcast room concerned by the viewer;
the generating subunit is configured to obtain, according to the date information and each piece of historical play data, a broadcast starting prediction score of each live broadcast room concerned by the viewer;
and the prediction subunit is used for obtaining a broadcasting prediction result of each live broadcast room concerned by the audience according to the broadcasting prediction score of the live broadcast room.
In an embodiment provided by the present invention, based on the above scheme, optionally, the generating subunit is configured to:
for each live broadcast room, judging whether the pushing time interval is in a festival or not according to the date information, if so, obtaining a continuous index, a week index, a festival index and a historical broadcasting index of the live broadcast room according to historical broadcasting data of the live broadcast room, and obtaining a broadcasting forecast score of the live broadcast room according to the continuous index, the week index and the historical broadcasting index; if not, obtaining a continuity index, a week index and a historical broadcasting index of the live broadcast room according to historical broadcasting data of the live broadcast room; and obtaining the broadcasting forecast score of the live broadcast room according to the continuous index, the week index and the historical broadcasting index.
In an embodiment provided by the present invention, based on the above scheme, optionally, the second pushing unit 503 includes:
the judging subunit judges whether the sum of the number of live broadcasting rooms contained in the priority pushing queue and the second pushing number is less than or equal to the sum of the pushing number threshold and the first pushing number;
a second determining subunit, configured to determine that the target live broadcast room meets the push condition when a sum of the number of live broadcast rooms included in the priority push queue and the second push number is less than or equal to a sum of the push number threshold and the first push number.
In an embodiment provided by the present invention, based on the above scheme, optionally, the determining unit 501 includes:
the acquisition subunit is used for acquiring the identification information of the target live broadcast room;
the inquiry subunit is used for traversing the queue configuration file corresponding to the audience terminal according to the identification information to obtain a queue identification corresponding to the identification information;
and the third determining subunit is configured to determine, according to the queue identifier, a push queue to which the target live broadcast room belongs.
The specific principle and the execution process of each unit and each module in the live webcast broadcast message pushing apparatus disclosed in the embodiment of the present invention are the same as those of the live webcast broadcast message pushing method disclosed in the embodiment of the present invention, and reference may be made to the corresponding parts in the live webcast broadcast message pushing method provided in the embodiment of the present invention, which are not described herein again.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the device where the storage medium is located is controlled to execute the live broadcast message pushing method of the network live broadcast.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 6, which specifically includes a memory 601 and one or more instructions 602, where the one or more instructions 602 are stored in the memory 601 and configured to be executed by one or more processors 603 to perform the following operations on the one or more instructions 602:
in the current push time period, when the fact that a target live broadcast room concerned by a viewer side is started to be in a live broadcast state is detected, determining a push queue to which the target live broadcast room belongs, wherein the push queue is a priority push queue corresponding to the viewer side in the push time period or a non-priority push queue corresponding to the viewer side in the push time period; each live broadcast room contained in the priority push queue and each live broadcast room contained in the non-priority push queue are determined in advance according to the recommendation degree of each live broadcast room concerned by the audience and the broadcasting prediction result;
if the push queue to which the target live broadcast room belongs is the priority push queue, acquiring the number of broadcast messages which are currently pushed to the audience, and if the number of the broadcast messages which are currently pushed to the audience is not greater than a preset push threshold value, pushing the broadcast messages of the target live broadcast room to the audience;
if the push queue to which the target live broadcast room belongs is the non-priority push queue, acquiring a first push quantity, a second push quantity and the quantity of live broadcast rooms contained in the priority push queue; judging whether the target live broadcast room meets preset push conditions or not according to the first push quantity, the second push quantity, the quantity of live broadcast rooms contained in the priority push queue and a preset push threshold value, and if so, pushing start-up information of the target live broadcast room to the audience; the first pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the priority pushing queue; the second pushing quantity is the quantity of the broadcast messages which are currently pushed to the audience and correspond to the non-priority pushing queue.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The method and the device for pushing the broadcast message of the live webcast provided by the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.