CN113365096A - Live broadcast room warm-up method and device, storage medium and electronic equipment - Google Patents

Live broadcast room warm-up method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113365096A
CN113365096A CN202110758019.2A CN202110758019A CN113365096A CN 113365096 A CN113365096 A CN 113365096A CN 202110758019 A CN202110758019 A CN 202110758019A CN 113365096 A CN113365096 A CN 113365096A
Authority
CN
China
Prior art keywords
numerical value
time point
determining
bullet screen
live broadcast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110758019.2A
Other languages
Chinese (zh)
Other versions
CN113365096B (en
Inventor
刘立力
顾超
姚智健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202110758019.2A priority Critical patent/CN113365096B/en
Publication of CN113365096A publication Critical patent/CN113365096A/en
Application granted granted Critical
Publication of CN113365096B publication Critical patent/CN113365096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The invention provides a live broadcast room warm-up method and device, a storage medium and electronic equipment, wherein the method comprises the following steps: when a trigger instruction is received, determining a warm field time period, and determining each trigger time point corresponding to each preset bullet screen type in the warm field time period; determining a first numerical value corresponding to the current trigger time point at each trigger time point corresponding to each preset bullet screen type, if the first numerical value is smaller than a first preset threshold value, determining a second numerical value corresponding to the current trigger time point, and determining each bullet screen to be sent in a quantity corresponding to the second numerical value; determining a robot account corresponding to each bullet screen to be sent in each robot account contained in the current robot account list; and in the live broadcast room, sending the bullet screen to be sent by the robot account number corresponding to each bullet screen to be sent. The method of the invention can automatically warm the live broadcast room without manual work, thereby saving a great amount of human resources.

Description

Live broadcast room warm-up method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a live broadcast room warm-up method and device, a storage medium and electronic equipment.
Background
With the development of multimedia technology, live broadcasting or live watching through a live broadcasting room has become one of the common activities in people's life.
In the actual live broadcast process, the popularity of the live broadcast room is low, the interaction is less, the interaction enthusiasm of the anchor is poor, the interaction enthusiasm of audiences is reduced, and the good live broadcast effect is difficult to obtain. In order to achieve a good live broadcast effect, a warm spot is usually needed in the live broadcast process, and the live broadcast interaction atmosphere in a live broadcast room is activated, so that the interaction enthusiasm of the anchor and audiences is improved.
In the existing live broadcast room warm-up method, a worker usually logs in an audience account, enters a live broadcast room and sends a barrage, so that the interactive atmosphere of the live broadcast room is activated. This method requires a lot of manpower and is costly.
Disclosure of Invention
In view of this, the embodiment of the invention provides a live broadcast room warming method to solve the problems that a large amount of human resources are consumed and the cost is high when live broadcast room warming is performed manually.
The embodiment of the invention also provides a live broadcast room warm-up device which is used for ensuring the actual realization and application of the method.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a live room warm-spot method, comprising:
when a trigger instruction for warming a live broadcast room is received, determining a warm broadcast time period corresponding to the live broadcast room, and determining each trigger time point corresponding to each preset bullet screen type in the warm broadcast time period;
determining a first numerical value corresponding to a current trigger time point at each trigger time point corresponding to each preset bullet screen type, wherein the first numerical value is the total number of bullet screens corresponding to a target preset bullet screen type sent in the live broadcast room before the current trigger time point, and the target preset bullet screen type is the preset bullet screen type corresponding to the current trigger time point;
judging whether the first numerical value is smaller than a first preset threshold corresponding to the target preset bullet screen type;
if the first value is smaller than the first preset threshold, determining a second value corresponding to the current trigger time point;
determining each bullet screen to be sent in a quantity corresponding to the second numerical value;
determining a current robot account list corresponding to the live broadcast room, and determining each target robot account in each robot account contained in the current robot account list;
determining a robot account corresponding to each bullet screen to be sent in each target robot account;
and in the live broadcast room, sending the bullet screen to be sent by each robot account number corresponding to the bullet screen to be sent so as to warm the live broadcast room.
Optionally, the determining the second value corresponding to the current trigger time point includes:
judging whether the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type;
if the current trigger time point is not the last trigger time point corresponding to the target preset bullet screen type, randomly selecting a first integer numerical value within a preset first numerical value range;
determining the first integer numerical value as a second numerical value corresponding to the current trigger time point;
and if the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type, determining a difference value between the first preset threshold and the first numerical value, and determining the difference value as a second numerical value corresponding to the current trigger time point.
Optionally, the determining, according to the method, each to-be-sent bullet screen in a number corresponding to the second number includes:
judging whether the target preset bullet screen type is a fixed format bullet screen or not, and if not, determining a preset bullet screen library corresponding to the live broadcast room;
acquiring target preset bullet screens with the quantity corresponding to the second numerical value from the preset bullet screens contained in the preset bullet screen library;
determining each target preset bullet screen as a bullet screen to be sent;
if the target preset bullet screen type is a fixed-format bullet screen, determining a preset-format bullet screen corresponding to the target preset bullet screen type;
determining the number of each format bullet screen corresponding to the second numerical value based on the preset format bullet screen;
and determining each format bullet screen as a bullet screen to be sent.
The method optionally includes, where determining the account number of each target robot includes:
determining a third value, wherein the third value is the total number of the robot accounts contained in the current robot account list;
judging whether the third numerical value is larger than the second numerical value;
if the third numerical value is larger than the second numerical value, determining a target sequence number segment according to the third numerical value and the second numerical value, wherein the number of sequence numbers in the target sequence number segment is the same as the second numerical value;
in the current robot account list, acquiring a robot account corresponding to each serial number in the target serial number segment;
determining the robot account corresponding to each serial number as a target robot account;
and if the third numerical value is less than or equal to the second numerical value, determining each robot account contained in the current robot account list as a target robot account.
The above method, optionally, further includes:
determining each entry time point corresponding to the live broadcast room in the warm-spot time period;
determining a fourth numerical value corresponding to the current entry time point at each entry time point, wherein the fourth numerical value is the total number of the robot accounts which are added to the robot account list corresponding to the live broadcast room before the current entry time point;
judging whether the fourth numerical value is smaller than a second preset threshold value or not;
if the fourth numerical value is smaller than the second preset threshold, determining a fifth numerical value corresponding to the current entry time point;
determining a sixth numerical value, wherein the sixth numerical value is the total number of the robot accounts currently contained in a preset robot account library;
judging whether the sixth numerical value is greater than or equal to the fifth numerical value;
if the sixth numerical value is greater than or equal to the fifth numerical value, acquiring each to-be-increased robot account corresponding to the fifth numerical value from the preset robot account library;
and respectively adding each robot account to be added to a robot account list corresponding to the live broadcast room and a display list of online user accounts in the live broadcast room, and updating the current online number of people in the live broadcast room based on the fifth numerical value.
In the foregoing method, optionally, the determining a fifth numerical value corresponding to the current entry time point includes:
judging whether the current entry time point is the last entry time point corresponding to the live broadcast room;
if the current entry time point is not the last entry time point corresponding to the live broadcast room, randomly selecting a second integer numerical value within a preset second numerical value range, and determining the second integer numerical value as a fifth numerical value corresponding to the current entry time point;
and if the current entry time point is the last entry time point corresponding to the live broadcast room, determining a difference value between the second preset threshold and the fourth numerical value, and determining the difference value as a fifth numerical value corresponding to the current entry time point.
The above method, optionally, further includes:
when a triggering instruction of logging in the live broadcast room by a user account is received in the warm-up time period, randomly selecting a third integer numerical value within a preset third numerical value range;
and updating the current online number of people in the live broadcast room based on the third integer numerical value.
A live room warm-spot apparatus comprising:
the system comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining a warm spot time period corresponding to a live broadcast room when a trigger instruction for warming the live broadcast room is received, and determining each trigger time point corresponding to each preset bullet screen type in the warm spot time period;
a second determining unit, configured to determine, at each trigger time point corresponding to each preset barrage type, a first numerical value corresponding to a current trigger time point, where the first numerical value is a total number of barrages corresponding to a target preset barrage type that have been sent in the live broadcast room before the current trigger time point, and the target preset barrage type is a preset barrage type corresponding to the current trigger time point;
the first judging unit is used for judging whether the first numerical value is smaller than a first preset threshold corresponding to the target preset bullet screen type;
a third determining unit, configured to determine a second value corresponding to the current trigger time point if the first value is smaller than the first preset threshold;
a fourth determining unit, configured to determine, according to the second numerical value, each to-be-sent bullet screen in a quantity corresponding to the second numerical value;
a fifth determining unit, configured to determine a current robot account list corresponding to the live broadcast room, and determine each target robot account from among the robot accounts included in the current robot account list;
a sixth determining unit, configured to determine, in each target robot account, a robot account corresponding to each bullet screen to be sent;
and the sending unit is used for sending the bullet screens to be sent by the robot accounts corresponding to the bullet screens to be sent in the live broadcast room, so as to warm the live broadcast room.
The above apparatus, optionally, the third determining unit includes:
the first judging subunit is configured to judge whether the current trigger time point is a last trigger time point corresponding to the target preset bullet screen type;
the first determining subunit is configured to, if the current trigger time point is not the last trigger time point corresponding to the target preset bullet screen type, randomly select a first integer value within a preset first value range, and determine the first integer value as a second value corresponding to the current trigger time point;
and the second determining subunit is configured to determine a difference between the first preset threshold and the first numerical value if the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type, and determine the difference as a second numerical value corresponding to the current trigger time point.
The above apparatus, optionally, the fourth determining unit includes:
the second judging subunit is used for judging whether the target preset bullet screen type is a fixed-format bullet screen or not, and if not, determining a preset bullet screen library corresponding to the live broadcast room;
a third determining subunit, configured to obtain, from preset bullet screens included in the preset bullet screen library, a number of target preset bullet screens corresponding to the second number, and determine each target preset bullet screen as a bullet screen to be sent;
the fourth determining subunit is configured to determine a preset-format bullet screen corresponding to the target preset bullet screen type if the target preset bullet screen type is a fixed-format bullet screen;
and the fifth determining subunit is configured to determine, based on the preset format bullet screens, a number of each format bullet screen corresponding to the second number, and determine each format bullet screen as a bullet screen to be sent.
The above apparatus, optionally, the fifth determining unit includes:
a sixth determining subunit, configured to determine a third value, where the third value is a total number of the robot accounts included in the current robot account list;
a third judging subunit, configured to judge whether the third value is greater than the second value;
a seventh determining subunit, configured to determine, if the third numerical value is greater than the second numerical value, a target sequence number segment according to the third numerical value and the second numerical value, where the number of sequence numbers in the target sequence number segment is the same as the second numerical value;
an eighth determining subunit, configured to obtain, in the current robot account list, a robot account corresponding to each sequence number in the target sequence number segment, and determine the robot account corresponding to each sequence number as a target robot account;
a ninth determining subunit, configured to determine, if the third numerical value is less than or equal to the second numerical value, each robot account included in the current robot account list as a target robot account.
The above apparatus, optionally, further comprises:
a seventh determining unit, configured to determine, in the warm-up time period, each entry time point corresponding to the live broadcast room;
an eighth determining unit, configured to determine, at each entry time point, a fourth numerical value corresponding to the current entry time point, where the fourth numerical value is a total number of robot accounts that have been added to a robot account list corresponding to the live broadcast room before the current entry time point;
a second judging unit, configured to judge whether the fourth value is smaller than a second preset threshold;
a ninth determining unit, configured to determine a fifth numerical value corresponding to the current entry time point if the fourth numerical value is smaller than the second preset threshold;
a tenth determining unit, configured to determine a sixth value, where the sixth value is a total number of the robot accounts currently included in a preset robot account library;
a third judging unit, configured to judge whether the sixth numerical value is greater than or equal to the fifth numerical value;
an obtaining unit, configured to, if the sixth numerical value is greater than or equal to the fifth numerical value, obtain, in the preset robot account library, each to-be-added robot account corresponding to the fifth numerical value;
and the adding unit is used for respectively adding each robot account to be added to the robot account list corresponding to the live broadcast room and the display list of the online user accounts in the live broadcast room, and updating the current online number of the live broadcast room based on the fifth numerical value.
The above apparatus, optionally, the ninth determining unit includes:
a fourth judging subunit, configured to judge whether the current entry time point is a last entry time point corresponding to the live broadcast room;
a tenth determining subunit, configured to randomly select a second integer value within a preset second value range if the current entry time point is not the last entry time point corresponding to the live broadcast room, and determine the second integer value as a fifth value corresponding to the current entry time point;
an eleventh determining subunit, configured to determine, if the current entry time point is a last entry time point corresponding to the live broadcast room, a difference between the second preset threshold and the fourth numerical value, and determine the difference as a fifth numerical value corresponding to the current entry time point.
The above apparatus, optionally, further comprises:
the selecting unit is used for randomly selecting a third integer value within a preset third value range when a triggering instruction of logging in the live broadcast room by a user account is received in the warm-up time period;
and the updating unit is used for updating the current online number of people in the live broadcast room based on the third integer numerical value.
A storage medium comprising stored instructions, wherein the instructions, when executed, control a device on which the storage medium resides to perform a live-air warm-spot method as described above.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform a live-air warm-spot method as described above.
Based on the warm-up method for the live broadcast room provided by the embodiment of the invention, the method comprises the following steps: when a trigger instruction for warming a live broadcast room is received, determining a warm broadcast time period corresponding to the live broadcast room, and determining each trigger time point corresponding to each preset bullet screen type in the warm broadcast time period. Determining a first numerical value corresponding to the current trigger time point at each trigger time point, wherein the first numerical value is the total quantity of the barricades corresponding to the target preset barricade types sent in the live broadcast room before the current trigger time point, and the target preset barricade types are the preset barricade types corresponding to the current trigger time point. And judging whether the first numerical value is smaller than a first preset threshold value, if so, determining each bullet screen to be sent, determining each target robot account in each robot account contained in a current robot account list corresponding to the live broadcast room, and determining the robot account corresponding to each bullet screen to be sent in each target robot account. In the live broadcast room, the bullet screen to be sent is sent by the robot account number corresponding to each bullet screen to be sent, so that the live broadcast room is warmed. By applying the method provided by the embodiment of the invention, when a live broadcast room needs to be warmed, each bullet screen to be sent and the corresponding robot account can be determined at each trigger time point according to the preset information, and the bullet screen is sent by the robot account corresponding to the bullet screen to be sent in the live broadcast room, so that the live broadcast room can be warmed automatically, and the interactive enthusiasm of a main broadcast and audiences is improved. Need not to get into the direct broadcasting room by the staff and warm the scene, can save a large amount of manpower resources, reduce cost, and work efficiency is high. In addition, the adverse effect of manual error on warm field effect can be avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method of a live broadcast station warm-up method according to an embodiment of the present invention;
fig. 2 is a flowchart of another method of a live broadcast warm spot method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a direct broadcast room warm spot device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a live broadcast station warm spot apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to 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 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.
In this application, 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.
As known from the background art, the existing live broadcast room warm-up method needs a worker to log in an account number to enter a live broadcast room and send a bullet screen, a large amount of human resources are consumed, and the cost is high. In addition, if the worker is responsible for warm-spot work of a plurality of live broadcast rooms at the same time, the speech inconsistent with the live broadcast content may be delivered in the live broadcast room by mistake, which may result in poor warm-spot effect and bring adverse effects.
Therefore, the embodiment of the invention provides a live broadcast room warming method, which can regularly send various preset barrage types of barrage in a live broadcast room without manually warming the field, and can save human resources.
The embodiment of the invention provides a live broadcast room warm-up method, which can be applied to a live broadcast platform system, wherein an execution subject of the method can be a server of the system, and a flow chart of the live broadcast room warm-up method is shown in figure 1 and comprises the following steps:
s101: when a trigger instruction for warming a live broadcast room is received, determining a warm broadcast time period corresponding to the live broadcast room, and determining each trigger time point corresponding to each preset bullet screen type in the warm broadcast time period;
in the method provided by the embodiment of the invention, corresponding warm-spot configuration information can be preset in a server of the live broadcast system aiming at each live broadcast room, and universal warm-spot configuration information can also be set. The preset warm field configuration information comprises effective duration of a warm field effect, a cycle period of bullet screen sending corresponding to each type of preset bullet screen type and the like. Each preset bullet screen type comprises a common bullet screen, a sharing bullet screen, a welcome word bullet screen and the like. The shared bullet screen and the welcome bullet screen respectively refer to fixed format bullet screens corresponding to the live broadcast shared by the user and the live broadcast room entered by the user.
When the live broadcast room is started, a trigger instruction for warming the live broadcast room can be sent to the server, and the trigger instruction can be a starting instruction corresponding to the live broadcast room. When the server receives the trigger instruction, the warm field configuration information corresponding to the live broadcast room can be acquired, the effective time length of the preset warm field effect is acquired from the warm field configuration information, the warm field time period corresponding to the live broadcast room is determined according to the current system time and the effective time length, and each trigger time point corresponding to each preset bullet screen type is determined in the warm field time period according to the cycle period corresponding to each preset bullet screen type contained in the warm field configuration information corresponding to the live broadcast room.
For example, when the live broadcast is started at nine o ' clock, and the preset effective duration is fifteen minutes, the time period from nine o ' clock to nine o ' clock and fifteen minutes is determined to be the warm field time period corresponding to the live broadcast, while one cycle period corresponding to the preset bullet screen type of the common bullet screen is three seconds, one cycle period corresponding to the welcome word bullet screen is seven seconds, and a cycle period corresponding to the sharing bullet screen is thirteen seconds, the first cycle period corresponding to each preset bullet screen type is started from nine o ' clock, the cycle period is divided from nine o ' clock to nine o ' clock, the last time point in each cycle period corresponding to each preset bullet screen type is taken as the trigger time point corresponding to the preset bullet screen type, for example, time points such as nine points, zero three seconds, nine points, zero six seconds and the like are all the trigger time points corresponding to the common bullet screen, and time points such as nine points, zero seven seconds, nine points, fourteen seconds and the like are all the trigger time points corresponding to the welcome word bullet screen. It should be noted that the determination method of the specific trigger time point, the specific duration, the cycle period, and other numerical values provided in the embodiment of the present invention are only an embodiment provided for better explaining the method of the present invention, and the specific implementation process may determine the trigger time point and the specific trigger time in other ways according to actual requirements, without affecting the implementation function of the method provided in the embodiment of the present invention.
S102: determining a first numerical value corresponding to a current trigger time point, wherein the first numerical value is the total number of barrages corresponding to a target preset barrage type sent in the live broadcast room before the current trigger time point, and the target preset barrage type is a preset barrage type corresponding to the current trigger time point;
in the method provided by the embodiment of the invention, at each trigger time point corresponding to each preset bullet screen type, a bullet screen sending process corresponding to the current trigger time point is triggered. The total number of the barrages corresponding to the target preset barrage type which is sent by the robot account in the live broadcast room before the current trigger time point can be determined when the system time reaches a certain trigger time point corresponding to a certain preset barrage type. If the current trigger time point is the first trigger time point corresponding to the target preset bullet screen type, the first numerical value is zero, and if the current trigger time point is not the first trigger time point corresponding to the target preset bullet screen type, the first numerical value is the sum of the number of bullet screens sent at each trigger time point corresponding to the target preset bullet screen type before the current trigger time point.
It should be noted that in a specific implementation process of the method provided in the embodiment of the present invention, trigger time points corresponding to different preset bullet screen types may coincide, for example, a third trigger time point corresponding to a welcome word bullet screen and a seventh trigger time point corresponding to a common bullet screen are the same time, and both of the trigger time points are regarded as two trigger time points, and flows corresponding to the two preset bullet screen types are respectively triggered, so that implementation functions of the method provided in the embodiment of the present invention are not affected.
S103: judging whether the first numerical value is smaller than a first preset threshold corresponding to the target preset bullet screen type;
in the method provided by the embodiment of the invention, the threshold corresponding to each preset bullet screen type can be pre-configured in the server according to the actual service requirement, and the preset threshold corresponding to each preset bullet screen type represents the total number of bullet screens corresponding to the preset bullet screen type which need to be sent in the live broadcast room in the warm field time period.
And comparing the first numerical value with a preset threshold corresponding to the target preset bullet screen type, and judging whether the first numerical value is smaller than the preset threshold, namely judging whether the total number of bullet screens corresponding to the target preset bullet screen type which is sent in the live broadcast room currently is smaller than the total number of bullet screens of the target preset bullet screen type which is preset and needs to be sent in the live broadcast room in the warm spot time period. If the first value is smaller than the preset threshold, the process goes to step S104, and if the first value is greater than or equal to the preset threshold, the process goes to step S109.
S104: determining a second numerical value corresponding to the current trigger time point;
in the method provided by the embodiment of the present invention, if the first value is smaller than the first preset threshold, the second value corresponding to the current trigger time point is determined according to a preset policy. And the second numerical value represents the number of the bullet screens of the target preset bullet screen type which need to be sent in the live broadcast room at the current trigger time point. The strategy for determining the second value may optionally adopt a preset randomly selected strategy, and the second value is selected at the current trigger time point according to a certain random strategy, or may adopt a quantitative strategy, that is, a preset value is used as the second value at each trigger time point. It should be noted that, a corresponding policy may be selected according to actual requirements, and the second value corresponding to each trigger time point is determined, which does not affect the method implementation function provided by the embodiment of the present invention.
S105: determining each bullet screen to be sent in a quantity corresponding to the second numerical value;
in the method provided by the embodiment of the invention, the bullet screen contents of various bullet screens can be pre-configured in the server, a bullet screen library which contains a plurality of bullet screens with different contents can be correspondingly arranged for a common bullet screen, and the corresponding fixed contents can be respectively arranged for bullet screens with fixed formats such as a sharing bullet screen, a welcome bullet screen and the like. The content of the current bullet screen to be sent can be determined according to the type of the target preset bullet screen, so that each bullet screen to be sent with the quantity corresponding to the second numerical value can be determined. If the target preset bullet screen type is a common bullet screen, the bullet screen contents with the quantity corresponding to the second numerical value can be acquired in the corresponding bullet screen library to serve as the bullet screen to be sent. If the target preset bullet screen type is a fixed format type such as a sharing bullet screen or a welcoming word bullet screen, generating corresponding quantity of bullet screens to be sent according to preset fixed format content.
S106: determining a current robot account list corresponding to the live broadcast room, and determining each target robot account in each robot account contained in the current robot account list;
in the method provided by the embodiment of the invention, the corresponding robot account can be allocated to the live broadcast room, and the robot account is controlled by the server and is not a user account used by a real user. The server can control the robot account number to enter the live broadcast room, and the robot account number entering the live broadcast room is added to information of various display user account numbers in the live broadcast room. And the robot account numbers entering the live broadcast room are all recorded in the robot account number list corresponding to the live broadcast room. Each target robot account can be determined from a current robot account list corresponding to the live broadcast room, namely, each target robot account used for sending the barrage at the current trigger time point is determined from each robot account entering the live broadcast room at present.
S107: determining a robot account corresponding to each bullet screen to be sent in each target robot account;
in the method provided by the embodiment of the invention, the robot account corresponding to each bullet screen to be sent can be determined in the determined target robot accounts according to a preset allocation strategy. Optionally, if the number of the target robot accounts is greater than or equal to the number of the bullet screens to be sent, different robot accounts are randomly allocated to each bullet screen to be sent, and each target robot account only corresponds to at most one bullet screen to be sent. And if the number of the target robot account numbers is smaller than that of the bullet screens to be sent, each target robot account number corresponds to at least one bullet screen to be sent.
S108: in the live broadcast room, sending the bullet screens to be sent by the robot account number corresponding to each bullet screen to be sent;
in the method provided by the embodiment of the invention, each bullet screen to be sent and the corresponding robot account can be bound in a live broadcast room to be sent so as to warm the live broadcast room. Specifically, the push can be performed through a message queue in a server and a front-end live broadcast room. And the effect of sending the barrage by the robot account corresponding to each barrage to be sent in the live broadcast room is the same as the effect of the barrage of the same type corresponding to the real user account. For example, if a common barrage is sent by the robot account a, it is displayed in a barrage display list of the live broadcast room that the user a published the content of the barrage, and if a shared barrage is sent by the robot account B, it is displayed in the barrage display list that "the user B shared the live broadcast", and regarding the user a or B, a nickname of the user corresponding to the account is usually and specifically displayed.
S109: and ending the bullet screen sending process corresponding to the current trigger time point.
In the method provided by the embodiment of the present invention, in the case that all the bullet screens to be sent are sent in the live broadcast room by the corresponding robot account number in step S108, or in the judgment process in step S103, it is determined that the first value is greater than or equal to the first preset threshold value, the bullet screen sending process corresponding to the current trigger time point is ended, that is, the current trigger time point does not trigger sending of the bullet screens any more. It can be seen that if the total number of the types of bullet screens sent before the last trigger time point of the target preset bullet screen type is greater than or equal to the first preset threshold, the bullet screen is not sent any more at the subsequent trigger time point of the target preset bullet screen type.
In the method provided by the embodiment of the present invention, if the current trigger time point corresponding to the target preset bullet screen type is not the last trigger time point corresponding to the current trigger time point, the next trigger time point corresponding to the target preset bullet screen type is waited for entering. And if the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type, ending the bullet screen sending process of the target preset bullet screen type in the warm field time period. And when the bullet screen sending process of the last trigger time point in each trigger time point corresponding to each preset bullet screen type is finished, or when the warm field time period is finished, namely the last time point of the warm field time period is reached, finishing the warm field of the live broadcast room and not sending the bullet screen any more.
Based on the method provided by the embodiment of the invention, when the trigger instruction for warming the live broadcast room is received, each trigger time point corresponding to each preset bullet screen type can be determined in the warm broadcast time period corresponding to the live broadcast room. And determining a first numerical value corresponding to the current trigger time point at each trigger time point, judging whether the first numerical value is smaller than a first preset threshold value, if so, determining each bullet screen to be sent and a robot account corresponding to each bullet screen to be sent, and sending the bullet screen in the live broadcast room by the robot account corresponding to each bullet screen to be sent so as to warm the live broadcast room. By applying the method provided by the embodiment of the invention, various types of barrages can be sent in the live broadcast room at regular time by using the robot account, the warm spot can be automatically carried out on the live broadcast room, and the interactive enthusiasm of the anchor and audiences is improved. Need not to get into the direct broadcasting room by the staff and warm the scene, can save a large amount of manpower resources, reduce cost, and work efficiency is high. In addition, the adverse effect of manual error on warm field effect can be avoided. In addition, in the method provided by the embodiment of the invention, the trigger time points corresponding to each preset barrage type can be staggered through the configuration of the cycle period, namely, the time for sending various barrages is different, so that the warm field effect is more real, the participation of audiences is favorably improved, and the interactive enthusiasm of the audiences and the anchor is improved.
On the basis of the method shown in fig. 1, in the method provided in the embodiment of the present invention, a warm-spot method may be further configured in a circulating manner, after the warm-spot process in the warm-spot time period is finished, whether a circulating warm spot is configured in the live broadcast room may be determined from warm-spot configuration information corresponding to the live broadcast room, and if the circulating warm spot is configured in the live broadcast room, the server sends a trigger instruction for warming the live broadcast room, and executes the warm-spot process of the method shown in fig. 1 again. That is, the trigger instruction for warming up the live broadcast room includes, in addition to the start command of the live broadcast room, a trigger instruction sent when it is determined that the live broadcast room needs to be warmed up cyclically.
In a specific implementation process, a live broadcast system can perform service deployment through a plurality of servers, and the operation of the method can be configured in a distributed locking mode, so that the single warm-up control process of each live broadcast room only runs on one server, the failure of the warm-up method after a single machine fault can be prevented, the reliable operation of the warm-up method is guaranteed, and the task can not be repeatedly operated.
To better illustrate the method provided by the embodiment of the present invention, the embodiment of the present invention provides another live broadcast warm spot method, and on the basis of the method shown in fig. 1, the step S104 of determining the second value corresponding to the current trigger time point includes:
judging whether the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type;
in the method provided by the embodiment of the invention, the current trigger time point is matched with each trigger time point corresponding to the target preset bullet screen type so as to judge whether the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type.
If the current trigger time point is not the last trigger time point corresponding to the target preset bullet screen type, randomly selecting a first integer numerical value within a preset first numerical value range, and determining the first integer numerical value as a second numerical value corresponding to the current trigger time point;
in the method provided by the embodiment of the invention, if the current trigger time point is not the last trigger time point corresponding to the target preset bullet screen type, a first integer numerical value can be randomly generated in a first numerical value range, and the randomly generated numerical value is used as a second numerical value corresponding to the current trigger time point. The first integer value is a non-negative integer, typically a positive integer. The first numerical range may be set according to actual service requirements, where the numerical range is a range of the number of the types of barrage sent at a time, and optionally, the first numerical range may be configured according to (a first preset threshold/(effective duration of warm field effect/single cycle period duration corresponding to a target preset barrage type)), according to: a value 1 ≦ value (first preset threshold/(effective duration of warm field effect/duration of single cycle period corresponding to target preset bullet screen type)) ≦ value 2, and this relationship determines a value 1 and a value 2, with a value 1 to a value 2 as the first value range.
And if the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type, determining a difference value between the first preset threshold and the first numerical value, and determining the difference value as a second numerical value corresponding to the current trigger time point.
In the method provided by the embodiment of the invention, if the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type, the first value is subtracted from the first preset threshold, that is, the total number of the bullet screens of the type which need to be sent in the live broadcast room in the warm field time period is subtracted from the currently sent number, and the difference value of the two is used as the second value corresponding to the current trigger time point.
Based on the method provided by the embodiment of the invention, the number of the barrage needing to be sent at present can be randomly determined at each trigger time point except the last trigger time point, so that the barrage effect is more real, the experience of audiences can be further improved, and the interactive enthusiasm of the anchor and the audiences is favorably improved. And at the last trigger time point, the number of the bullet screens needing to be sent currently can be determined based on the difference between the number of the sent bullet screens and the number of the scheduled bullet screens to be sent, so that the scheduled number of bullet screen sending tasks can be completed in the warm field time period.
Further, another live broadcast room warm-air method is provided in the embodiment of the present invention, on the basis of the method shown in fig. 1, wherein the step S105 of determining the number of each bullet screens to be sent corresponding to the second number includes:
judging whether the target preset bullet screen type is a fixed format bullet screen or not, and if not, determining a preset bullet screen library corresponding to the live broadcast room;
in the method provided by the embodiment of the invention, the bullet screen library corresponding to the live broadcast room can be preset, and each bullet screen content matched with the live broadcast theme of the live broadcast room can be set in the bullet screen library. This bullet screen storehouse can be a bullet screen file, and the configuration is carried out to the ordinary text file of accessible, and it can to import the database, selects this bullet screen file and live broadcast room to bind when setting up the warm farm configuration information that this live broadcast room corresponds, forms the bullet screen storehouse that this live broadcast room corresponds. If the target preset bullet screen type is a common bullet screen, and the bullet screen is not a bullet screen with a fixed format such as a sharing bullet screen, reading a preset bullet screen library corresponding to the live broadcast room.
Acquiring a number of preset target barrages corresponding to the second numerical value from the preset barrages in the preset barrage library, and determining each preset target barrage as a barrage to be sent;
in the method provided by the embodiment of the present invention, target preset bullet screens of a target number may be randomly read from a preset bullet screen library corresponding to the live broadcast room, where the target number is a number corresponding to the second numerical value, that is, the second numerical value is 5, and then 5 preset bullet screens are randomly read from the preset bullet screen library as the target preset bullet screens. The bullet screens in the bullet screen library can be read repeatedly, namely, target preset bullet screens with the same content may exist.
If the target preset bullet screen type is a fixed-format bullet screen, determining a preset-format bullet screen corresponding to the target preset bullet screen type;
in the method provided by the embodiment of the invention, the bullet screens with fixed formats, such as shared bullet screens, welcome word bullet screens and the like, are respectively preset with corresponding bullet screen contents, and the bullet screen contents with the fixed formats are generally single. And if the target preset bullet screen type is a fixed format bullet screen such as a sharing bullet screen, determining a preset format bullet screen corresponding to the target preset bullet screen type. For example, the format barrage content of the sharing barrage is "the live broadcast is shared", and the format barrage content of the welcome barrage is "enter the live broadcast room".
And determining the number of each format bullet screen corresponding to the second numerical value based on the preset format bullet screens, and determining each format bullet screen as a bullet screen to be sent.
In the method provided by the embodiment of the invention, each bullet screen with the target quantity can be generated based on the format bullet screen content corresponding to the target preset bullet screen type, and the target quantity is the quantity corresponding to the second numerical value. For example, if the second value is 5 and the preset format barrage is "share the live broadcast", 5 format barrages "share the live broadcast" are generated, and each format barrage is taken as a to-be-sent barrage.
Based on the method provided by the embodiment of the invention, the corresponding preset barrage library can be configured for the live broadcast room, and when the common barrage is sent, the barrage corresponding to the live broadcast theme of the live broadcast room can be obtained in the corresponding barrage library, so that the reality sense of the warm-spot effect can be further improved, the experience sense of audiences is improved, and the interactive enthusiasm of the audiences and the anchor is improved.
Further, another live broadcast room warm-spot method is provided in the embodiment of the present invention, on the basis of the method shown in fig. 1, wherein the process of determining the account number of each target robot in step S106 includes:
determining a third value, wherein the third value is the total number of the robot accounts contained in the current robot account list;
in the method provided by the embodiment of the invention, the total number of the robot accounts contained in the current robot account list can be counted to obtain a third numerical value.
Judging whether the third numerical value is larger than the second numerical value;
in the method provided by the embodiment of the present invention, the third value may be compared with the second value to determine whether the third value is greater than the second value, that is, whether the total number of the accounts in the current robot account list is greater than the number of the barrages that need to be sent at the current trigger time point.
If the third numerical value is larger than the second numerical value, determining a target sequence number segment according to the third numerical value and the second numerical value, wherein the number of sequence numbers in the target sequence number segment is the same as the second numerical value;
in the method provided by the embodiment of the invention, if the total number of the accounts in the current robot account list is greater than the number of the bullet screens to be sent, a numerical range can be obtained according to the total number of the accounts and the number of the bullet screens to be sent, an integer value is randomly selected in the range, specifically, 0 to (subtracting a second value from a third value) is used as the numerical range, a target sequence number segment is determined according to the randomly selected integer value and the second value in the range, for example, the third value is 5, the second value is 3, an integer is randomly generated in the range of 0-2, if the randomly generated integer is 1, and the second value of the number of the bullet screens to be sent is 3, 1-3 are used as the target sequence segment, wherein the sequence numbers include sequence numbers 1, 2 and 3.
In the current robot account list, acquiring a robot account corresponding to each sequence number in the target sequence number segment, and determining the robot account corresponding to each sequence number as a target robot account;
in the method provided by the embodiment of the present invention, each robot account is marked with a sequence number in the current robot account list, and in the embodiment of the present invention, 0 is used as an initial sequence number for marking. And selecting a corresponding robot account in the current robot account list according to the sequence number in the target sequence number segment, and if the target sequence number segment is 1-3, taking the robot account corresponding to the sequence number 1, the sequence number 2 and the sequence number 3 in the current robot account list as the target robot account.
And if the third numerical value is less than or equal to the second numerical value, determining each robot account contained in the current robot account list as a target robot account.
In the method provided by the embodiment of the invention, if the total number of the accounts in the current robot account list is less than or equal to the number of the barrage to be sent, each robot account in the current robot account list is used as a target robot account.
Based on the method provided by the embodiment of the invention, under the condition that the number of the account numbers in the current robot account number list meets the condition that one barrage corresponds to one robot account number, the corresponding number of the robot account numbers can be randomly selected, and under the condition that the number does not meet the requirement, all the robot account numbers in the list are selected to be used for sending the barrage. The robot account numbers are randomly selected each time and the most robot account numbers are selected, so that the reality of warm effects can be further improved, the experience of audiences is improved, and the interactive enthusiasm of the audiences and the anchor is improved.
To better explain the method provided by the embodiment of the present invention, in combination with the flowchart shown in fig. 2, the embodiment of the present invention provides another live broadcast room warm-up method, and on the basis of the method shown in fig. 1, the method provided by the embodiment of the present invention further includes:
s201: determining each entry time point corresponding to the live broadcast room in the warm-spot time period;
in the method provided by the embodiment of the invention, a cycle period of a robot account admission task can be preset in warm field configuration information corresponding to a live broadcast room, specifically, the duration of a single cycle period can be set, for example, 5 seconds is used as a cycle period, each admission time point is determined in a warm field time period of the live broadcast room according to the cycle period, a first cycle period is entered at the starting time point of the warm field time period, and the last time point of each cycle period is used as the admission time point corresponding to the live broadcast room. For example, when nine points are integrated to nine points and fifteen points are divided into warm field time periods, time points such as nine points and zero five seconds, nine points and zero ten seconds, etc. are taken as the respective entry time points. And triggering a corresponding robot account admission task at each admission time point, namely adding the robot account pre-configured in the system into the live broadcast room according to a preset strategy.
S202: determining a fourth numerical value corresponding to the current entry time point, wherein the fourth numerical value is the total number of the robot accounts which are added to the robot account list corresponding to the live broadcast room before the current entry time point;
in the method provided by the embodiment of the invention, at each entry time point, a fourth numerical value corresponding to the current entry time point is determined, that is, the total number of the robot accounts which have been added to the robot account list corresponding to the live broadcast room before the fourth numerical value is determined, or the total number of the robot accounts which have been added to the live broadcast room before the fourth numerical value is determined. And if the current entry time point is the first entry time point corresponding to the live broadcast room, the fourth value is zero, and if the current entry time point is not the first entry time point, the fourth value is the sum of the number of the robot accounts added to the robot account list corresponding to the live broadcast room at each entry time point before the current entry time point.
S203: judging whether the fourth numerical value is smaller than a second preset threshold value or not;
in the method provided by the embodiment of the invention, a second preset threshold corresponding to the live broadcast room can be configured in advance according to actual service requirements, and the threshold represents the total number of the robot accounts needing to be configured to enter the live broadcast room in the warm-up period. And comparing the fourth value with a second preset threshold value to judge whether the fourth value is smaller than the second preset threshold value, namely judging whether the total number of the robot account numbers which have entered the live broadcast room currently is smaller than the total number of the robot account numbers which need to enter the live broadcast room in a warm spot time period. If the fourth value is smaller than the second preset threshold, step S204 is performed. If the fourth numerical value is greater than or equal to the second preset threshold value, ending the robot account entry process corresponding to the current entry time point, and no longer distributing the robot account to the live broadcast room.
S204: determining a fifth numerical value corresponding to the current entry time point;
in the method provided by the embodiment of the present invention, if the fourth value is smaller than the second preset threshold, a fifth value corresponding to the current entry time point, that is, the number of the robot accounts which need to be added to the live broadcast room at present, is determined based on a preset policy. Specifically, the determination may be made by a random determination or a quantitative determination.
S205: determining a sixth numerical value, wherein the sixth numerical value is the total number of the robot accounts currently contained in a preset robot account library;
in the method provided by the embodiment of the invention, a robot account database is pre-configured in the system, and the robot accounts in the robot account database are the robot accounts which are not added into any live broadcast room at present. The number of the robot accounts in the robot account library can be counted to obtain a sixth numerical value.
S206: judging whether the sixth numerical value is greater than or equal to the fifth numerical value;
in the method provided by the embodiment of the invention, the sixth numerical value is compared with the fifth numerical value to judge whether the sixth numerical value is greater than or equal to the fifth numerical value, that is, whether the number of the robot accounts in the current robot account library is greater than or equal to the number of the robot accounts needing to be added into the live broadcast room currently is judged. If the sixth value is greater than or equal to the fifth value, the process proceeds to step S207. If the sixth numerical value is smaller than the fifth numerical value, optionally, the number corresponding to the fifth numerical value is added to the current online number of people in the live broadcast room without adding the robot account number to the live broadcast room, so as to update the current online number of people.
S207: acquiring the number of each robot account to be increased corresponding to the fifth numerical value from the preset robot account library;
in the method provided by the embodiment of the present invention, if the sixth value is greater than or equal to the fifth value, a target number of each robot account is acquired as a robot account to be incremented in the robot account library, where the target number is a number corresponding to the fifth value, and if the fifth value is 5, 5 robot accounts are acquired in the robot account library, and each acquired robot account is a robot account to be incremented, and each robot account to be incremented is not repeated. And the robot account acquired from the robot account library is deleted from the robot account library correspondingly, and when the robot account exits from the live broadcast room, the robot account is placed back into the robot account library.
S208: and respectively adding each robot account to be added to a robot account list corresponding to the live broadcast room and a display list of online user accounts in the live broadcast room, and updating the current online number of people in the live broadcast room based on the fifth numerical value.
In the method provided by the embodiment of the invention, each robot account to be added is controlled to enter the live broadcast room, and the user is simulated to enter the live broadcast room. Specifically, each robot account to be added is added to a robot account list corresponding to the live broadcast room, so as to be used for sending the barrage at the trigger time point mentioned in the above embodiment. Correspondingly, each robot account to be added is also added in the online user list of the live broadcast room, and meanwhile, the number corresponding to the fifth numerical value is added to the current online number of people in the live broadcast room so as to update the current online number of people.
Based on the method provided by the embodiment of the invention, the account numbers of the robots entering the live broadcast room can be further and flexibly allocated, the number of the robots entering the live broadcast room can be randomly determined at each entry time point, the reality of the warm-spot effect is further improved, the experience of audiences is improved, and the interactive enthusiasm of the audiences and the anchor is improved.
Further, on the basis of the method provided by the foregoing embodiment, an embodiment of the present invention provides another live broadcast warm-up method, wherein the process of determining the fifth numerical value corresponding to the current entry time point in step S204 includes:
judging whether the current entry time point is the last entry time point corresponding to the live broadcast room;
in the method provided by the embodiment of the invention, the current entry time point can be matched with each entry time point corresponding to the live broadcast room so as to judge whether the current entry time point is the last entry time point.
If the current entry time point is not the last entry time point corresponding to the live broadcast room, randomly selecting a second integer numerical value within a preset second numerical value range, and determining the second integer numerical value as a fifth numerical value corresponding to the current entry time point;
in the method provided by the embodiment of the invention, if the current trigger time point is not the last entry time point, a second integer value can be randomly generated within a second value range, and the randomly generated value is used as a fifth value corresponding to the current entry time point. The second integer value is a non-negative integer, typically a positive integer. The second numerical range may be set according to actual service requirements, where the numerical range is a number range of the robot account that enters a single entrance, and optionally, the numerical range may be configured according to (a second preset threshold value/(effective time of warm field effect/single cycle period time corresponding to the robot account entrance task)), according to: a value of 3 ≦ a value of 4 (second preset threshold/(effective duration of warm field effect/duration of a single cycle period corresponding to the robot account admission task)), this relationship determining the values 3 and 4 with the values 3 to 4 as the second range of values.
And if the current entry time point is the last entry time point corresponding to the live broadcast room, determining a difference value between the second preset threshold and the fourth numerical value, and determining the difference value as a fifth numerical value corresponding to the current entry time point.
In the method provided by the embodiment of the invention, if the current entry time point is the last entry time point, the fourth value is subtracted from the second preset threshold, that is, the total number of the robot accounts which need to be added in the live broadcast room in the warm-up time period is subtracted from the current increased number, and the difference value of the total number and the current increased number is used as the fifth value corresponding to the current entry time point.
Based on the method provided by the embodiment of the invention, except the last entry time point, the number of the current robot accounts needing to enter can be randomly determined at each entry time point, so that the entry effect of the robot accounts is closer to the entry of a real user into a live broadcast room, the reality sense of the warm-up effect can be further improved, and the interactive enthusiasm of a main broadcast and audiences is favorably improved. And at the last admission time point, the number of the current account numbers needing to be admitted can be determined based on the difference between the number of the admitted account numbers and the number of the preset account numbers, so that the admission tasks of the preset number of robot account numbers can be completed in the warm-up time period, and the influence on the effect caused by the fact that the robot account numbers freely enter a live broadcast room without quantity limitation can also be avoided.
Further, on the basis of the method shown in fig. 1, an embodiment of the present invention provides another live broadcast room warm-up method, where the method provided in the embodiment of the present invention further includes:
when a triggering instruction of logging in the live broadcast room by a user account is received in the warm-up time period, randomly selecting a third integer numerical value within a preset third numerical value range;
and updating the current online number of people in the live broadcast room based on the third integer numerical value.
According to the method provided by the embodiment of the invention, a third numerical range related to the weight of the increase of the number of online people can be configured in the warm-spot configuration information of the live broadcast room according to the actual service requirement. When an instruction that the user account of the real user enters the live broadcast room is received each time, a third integer value can be randomly generated in a third value range, and the third integer value is a positive integer. And increasing the number corresponding to the third integer numerical value on the current online number of people in the live broadcast room so as to update the current online number of people. For example, if the third value range is 1-2, the third integer value generated randomly at each time is 1 or 2. When each real user enters the live broadcast room and needs to update the online number, the number value of the number of the people added can be 1 and can be 2.
Based on the method provided by the embodiment of the invention, the data representing the popularity of the live broadcast room can be improved based on the random update of the current online number of people, so that the warm field effect is improved, and the interactive enthusiasm of the anchor and audiences is further improved. And the authenticity of the warm field effect can be further improved by adopting a random numerical value for updating.
Corresponding to the live broadcast room warming method shown in fig. 1, an embodiment of the present invention further provides a live broadcast room warming device, which is used for implementing the method shown in fig. 1 specifically, and a schematic structural diagram of the live broadcast room warming device is shown in fig. 3, and includes:
the first determining unit 301 is configured to determine, when a trigger instruction for warming a live broadcast room is received, a warm broadcast time period corresponding to the live broadcast room, and determine each trigger time point corresponding to each preset bullet screen type in the warm broadcast time period;
a second determining unit 302, configured to determine, at each trigger time point corresponding to each preset barrage type, a first numerical value corresponding to a current trigger time point, where the first numerical value is a total number of barrages corresponding to a target preset barrage type that has been sent in the live broadcast room before the current trigger time point, and the target preset barrage type is a preset barrage type corresponding to the current trigger time point;
a first judging unit 303, configured to judge whether the first numerical value is smaller than a first preset threshold corresponding to the target preset bullet screen type;
a third determining unit 304, configured to determine a second value corresponding to the current trigger time point if the first value is smaller than the first preset threshold;
a fourth determining unit 305, configured to determine a number of respective bullet screens to be sent corresponding to the second number;
a fifth determining unit 306, configured to determine a current robot account list corresponding to the live broadcast room, and determine each target robot account in each robot account included in the current robot account list;
a sixth determining unit 307, configured to determine, in the target robot accounts, a robot account corresponding to each bullet screen to be sent;
and the sending unit 308 is configured to send, in the live broadcast room, the bullet screen to be sent with the robot account number corresponding to each bullet screen to be sent, so as to warm the live broadcast room.
By applying the device provided by the embodiment of the invention, various types of barrages can be sent in the live broadcast room at regular time by using the robot account, the warm spot can be automatically carried out on the live broadcast room, and the interactive enthusiasm of the anchor and audiences is improved. Need not to get into the direct broadcasting room by the staff and warm the scene, can save a large amount of manpower resources, reduce cost, and work efficiency is high. In addition, the adverse effect of manual error on warm field effect can be avoided. In addition, in the device provided by the embodiment of the invention, the trigger time points corresponding to each preset barrage type can be staggered through the configuration of the cycle period, namely, the time for sending various barrages is different, so that the warm field effect is more real, the participation of audiences is favorably improved, and the interactive enthusiasm of the audiences and the anchor is improved.
In an apparatus provided by the embodiment of the present invention, on the basis of the above apparatus, the third determining unit 304 includes:
the first judging subunit is configured to judge whether the current trigger time point is a last trigger time point corresponding to the target preset bullet screen type;
the first determining subunit is configured to, if the current trigger time point is not the last trigger time point corresponding to the target preset bullet screen type, randomly select a first integer value within a preset first value range, and determine the first integer value as a second value corresponding to the current trigger time point;
and the second determining subunit is configured to determine a difference between the first preset threshold and the first numerical value if the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type, and determine the difference as a second numerical value corresponding to the current trigger time point.
In an apparatus provided by the embodiment of the present invention, on the basis of the above apparatus, the fourth determining unit 305 includes:
the second judging subunit is used for judging whether the target preset bullet screen type is a fixed-format bullet screen or not, and if not, determining a preset bullet screen library corresponding to the live broadcast room;
a third determining subunit, configured to obtain, from preset bullet screens included in the preset bullet screen library, a number of target preset bullet screens corresponding to the second number, and determine each target preset bullet screen as a bullet screen to be sent;
the fourth determining subunit is configured to determine a preset-format bullet screen corresponding to the target preset bullet screen type if the target preset bullet screen type is a fixed-format bullet screen;
and the fifth determining subunit is configured to determine, based on the preset format bullet screens, a number of each format bullet screen corresponding to the second number, and determine each format bullet screen as a bullet screen to be sent.
On the basis of the foregoing apparatus, in an apparatus provided in an embodiment of the present invention, the fifth determining unit 306 includes:
a sixth determining subunit, configured to determine a third value, where the third value is a total number of the robot accounts included in the current robot account list;
a third judging subunit, configured to judge whether the third value is greater than the second value;
a seventh determining subunit, configured to determine, if the third numerical value is greater than the second numerical value, a target sequence number segment according to the third numerical value and the second numerical value, where the number of sequence numbers in the target sequence number segment is the same as the second numerical value;
an eighth determining subunit, configured to obtain, in the current robot account list, a robot account corresponding to each sequence number in the target sequence number segment, and determine the robot account corresponding to each sequence number as a target robot account;
a ninth determining subunit, configured to determine, if the third numerical value is less than or equal to the second numerical value, each robot account included in the current robot account list as a target robot account.
On the basis of the apparatus shown in fig. 3, in combination with the schematic structural diagram shown in fig. 4, the apparatus provided in the embodiment of the present invention further includes:
a seventh determining unit 309, configured to determine, in the warm-up time period, each entry time point corresponding to the live broadcast room;
an eighth determining unit 310, configured to determine, at each entry time point, a fourth numerical value corresponding to the current entry time point, where the fourth numerical value is a total number of robot accounts that have been added to the robot account list corresponding to the live broadcast room before the current entry time point;
a second determining unit 311, configured to determine whether the fourth value is smaller than a second preset threshold;
a ninth determining unit 312, configured to determine a fifth numerical value corresponding to the current entry time point if the fourth numerical value is smaller than the second preset threshold;
a tenth determining unit 313, configured to determine a sixth value, where the sixth value is the total number of the robot accounts currently included in the preset robot account library;
a third determining unit 314, configured to determine whether the sixth numerical value is greater than or equal to the fifth numerical value;
an obtaining unit 315, configured to, if the sixth numerical value is greater than or equal to the fifth numerical value, obtain, in the preset robot account library, each to-be-added robot account corresponding to the fifth numerical value;
and an adding unit 316, configured to add each to-be-added robot account to a robot account list corresponding to the live broadcast room and a display list of online user accounts in the live broadcast room, and update the current online number of people in the live broadcast room based on the fifth value.
In addition to the foregoing apparatus, in an apparatus provided in an embodiment of the present invention, the ninth determining unit 312 includes:
a fourth judging subunit, configured to judge whether the current entry time point is a last entry time point corresponding to the live broadcast room;
a tenth determining subunit, configured to randomly select a second integer value within a preset second value range if the current entry time point is not the last entry time point corresponding to the live broadcast room, and determine the second integer value as a fifth value corresponding to the current entry time point;
an eleventh determining subunit, configured to determine, if the current entry time point is a last entry time point corresponding to the live broadcast room, a difference between the second preset threshold and the fourth numerical value, and determine the difference as a fifth numerical value corresponding to the current entry time point.
On the basis of the above device, the device provided in the embodiment of the present invention further includes:
the selecting unit is used for randomly selecting a third integer value within a preset third value range when a triggering instruction of logging in the live broadcast room by a user account is received in the warm-up time period;
and the updating unit is used for updating the current online number of people in the live broadcast room based on the third integer numerical value.
The embodiment of the invention also provides a storage medium, which comprises stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the live broadcast room warm-up method.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 5, which specifically includes a memory 401 and one or more instructions 402, where the one or more instructions 402 are stored in the memory 401 and configured to be executed by one or more processors 403 to perform the following operations for executing the one or more instructions 402:
when a trigger instruction for warming a live broadcast room is received, determining a warm broadcast time period corresponding to the live broadcast room, and determining each trigger time point corresponding to each preset bullet screen type in the warm broadcast time period;
determining a first numerical value corresponding to a current trigger time point at each trigger time point corresponding to each preset bullet screen type, wherein the first numerical value is the total number of bullet screens corresponding to a target preset bullet screen type sent in the live broadcast room before the current trigger time point, and the target preset bullet screen type is the preset bullet screen type corresponding to the current trigger time point;
judging whether the first numerical value is smaller than a first preset threshold corresponding to the target preset bullet screen type;
if the first value is smaller than the first preset threshold, determining a second value corresponding to the current trigger time point;
determining each bullet screen to be sent in a quantity corresponding to the second numerical value;
determining a current robot account list corresponding to the live broadcast room, and determining each target robot account in each robot account contained in the current robot account list;
determining a robot account corresponding to each bullet screen to be sent in each target robot account;
and in the live broadcast room, sending the bullet screen to be sent by each robot account number corresponding to the bullet screen to be sent so as to warm the live broadcast room.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this 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.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A live room warm-up method, comprising:
when a trigger instruction for warming a live broadcast room is received, determining a warm broadcast time period corresponding to the live broadcast room, and determining each trigger time point corresponding to each preset bullet screen type in the warm broadcast time period;
determining a first numerical value corresponding to a current trigger time point at each trigger time point corresponding to each preset bullet screen type, wherein the first numerical value is the total number of bullet screens corresponding to a target preset bullet screen type sent in the live broadcast room before the current trigger time point, and the target preset bullet screen type is the preset bullet screen type corresponding to the current trigger time point;
judging whether the first numerical value is smaller than a first preset threshold corresponding to the target preset bullet screen type;
if the first value is smaller than the first preset threshold, determining a second value corresponding to the current trigger time point;
determining each bullet screen to be sent in a quantity corresponding to the second numerical value;
determining a current robot account list corresponding to the live broadcast room, and determining each target robot account in each robot account contained in the current robot account list;
determining a robot account corresponding to each bullet screen to be sent in each target robot account;
and in the live broadcast room, sending the bullet screen to be sent by each robot account number corresponding to the bullet screen to be sent so as to warm the live broadcast room.
2. The method of claim 1, wherein the determining the second value corresponding to the current trigger time point comprises:
judging whether the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type;
if the current trigger time point is not the last trigger time point corresponding to the target preset bullet screen type, randomly selecting a first integer numerical value within a preset first numerical value range;
determining the first integer numerical value as a second numerical value corresponding to the current trigger time point;
and if the current trigger time point is the last trigger time point corresponding to the target preset bullet screen type, determining a difference value between the first preset threshold and the first numerical value, and determining the difference value as a second numerical value corresponding to the current trigger time point.
3. The method of claim 1, wherein the determining a number of each bullet screens to be sent corresponding to the second number comprises:
judging whether the target preset bullet screen type is a fixed format bullet screen or not, and if not, determining a preset bullet screen library corresponding to the live broadcast room;
acquiring target preset bullet screens with the quantity corresponding to the second numerical value from the preset bullet screens contained in the preset bullet screen library;
determining each target preset bullet screen as a bullet screen to be sent;
if the target preset bullet screen type is a fixed-format bullet screen, determining a preset-format bullet screen corresponding to the target preset bullet screen type;
determining the number of each format bullet screen corresponding to the second numerical value based on the preset format bullet screen;
and determining each format bullet screen as a bullet screen to be sent.
4. The method of claim 1, wherein determining each target robot account number comprises:
determining a third value, wherein the third value is the total number of the robot accounts contained in the current robot account list;
judging whether the third numerical value is larger than the second numerical value;
if the third numerical value is larger than the second numerical value, determining a target sequence number segment according to the third numerical value and the second numerical value, wherein the number of sequence numbers in the target sequence number segment is the same as the second numerical value;
in the current robot account list, acquiring a robot account corresponding to each serial number in the target serial number segment;
determining the robot account corresponding to each serial number as a target robot account;
and if the third numerical value is less than or equal to the second numerical value, determining each robot account contained in the current robot account list as a target robot account.
5. The method of claim 1, further comprising:
determining each entry time point corresponding to the live broadcast room in the warm-spot time period;
determining a fourth numerical value corresponding to the current entry time point at each entry time point, wherein the fourth numerical value is the total number of the robot accounts which are added to the robot account list corresponding to the live broadcast room before the current entry time point;
judging whether the fourth numerical value is smaller than a second preset threshold value or not;
if the fourth numerical value is smaller than the second preset threshold, determining a fifth numerical value corresponding to the current entry time point;
determining a sixth numerical value, wherein the sixth numerical value is the total number of the robot accounts currently contained in a preset robot account library;
judging whether the sixth numerical value is greater than or equal to the fifth numerical value;
if the sixth numerical value is greater than or equal to the fifth numerical value, acquiring each to-be-increased robot account corresponding to the fifth numerical value from the preset robot account library;
and respectively adding each robot account to be added to a robot account list corresponding to the live broadcast room and a display list of online user accounts in the live broadcast room, and updating the current online number of people in the live broadcast room based on the fifth numerical value.
6. The method of claim 5, wherein determining a fifth value corresponding to the current entry time point comprises:
judging whether the current entry time point is the last entry time point corresponding to the live broadcast room;
if the current entry time point is not the last entry time point corresponding to the live broadcast room, randomly selecting a second integer numerical value within a preset second numerical value range, and determining the second integer numerical value as a fifth numerical value corresponding to the current entry time point;
and if the current entry time point is the last entry time point corresponding to the live broadcast room, determining a difference value between the second preset threshold and the fourth numerical value, and determining the difference value as a fifth numerical value corresponding to the current entry time point.
7. The method of claim 1, further comprising:
when a triggering instruction of logging in the live broadcast room by a user account is received in the warm-up time period, randomly selecting a third integer numerical value within a preset third numerical value range;
and updating the current online number of people in the live broadcast room based on the third integer numerical value.
8. A live room warm-spot apparatus, comprising:
the system comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining a warm spot time period corresponding to a live broadcast room when a trigger instruction for warming the live broadcast room is received, and determining each trigger time point corresponding to each preset bullet screen type in the warm spot time period;
a second determining unit, configured to determine, at each trigger time point corresponding to each preset barrage type, a first numerical value corresponding to a current trigger time point, where the first numerical value is a total number of barrages corresponding to a target preset barrage type that have been sent in the live broadcast room before the current trigger time point, and the target preset barrage type is a preset barrage type corresponding to the current trigger time point;
the first judging unit is used for judging whether the first numerical value is smaller than a first preset threshold corresponding to the target preset bullet screen type;
a third determining unit, configured to determine a second value corresponding to the current trigger time point if the first value is smaller than the first preset threshold;
a fourth determining unit, configured to determine, according to the second numerical value, each to-be-sent bullet screen in a quantity corresponding to the second numerical value;
a fifth determining unit, configured to determine a current robot account list corresponding to the live broadcast room, and determine each target robot account from among the robot accounts included in the current robot account list;
a sixth determining unit, configured to determine, in each target robot account, a robot account corresponding to each bullet screen to be sent;
and the sending unit is used for sending the bullet screens to be sent by the robot accounts corresponding to the bullet screens to be sent in the live broadcast room, so as to warm the live broadcast room.
9. A storage medium comprising stored instructions, wherein the instructions, when executed, control a device on which the storage medium resides to perform a live-air warm-up method as claimed in any one of claims 1 to 7.
10. An electronic device comprising a memory, and one or more instructions stored in the memory and configured to be executed by one or more processors to perform the live-air warm-spot method of any of claims 1-7.
CN202110758019.2A 2021-07-05 2021-07-05 Live broadcast room warm-up method and device, storage medium and electronic equipment Active CN113365096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110758019.2A CN113365096B (en) 2021-07-05 2021-07-05 Live broadcast room warm-up method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110758019.2A CN113365096B (en) 2021-07-05 2021-07-05 Live broadcast room warm-up method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113365096A true CN113365096A (en) 2021-09-07
CN113365096B CN113365096B (en) 2023-02-17

Family

ID=77538288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110758019.2A Active CN113365096B (en) 2021-07-05 2021-07-05 Live broadcast room warm-up method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113365096B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873282A (en) * 2021-09-30 2021-12-31 广州方硅信息技术有限公司 Live broadcast room guidance speaking method, system, device, medium and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162365A (en) * 2016-06-24 2016-11-23 武汉斗鱼网络科技有限公司 Any active ues collection maintaining method based on time wheel disc and barrage behavior and system
CN106656767A (en) * 2017-01-09 2017-05-10 武汉斗鱼网络科技有限公司 Method and system for increasing new anchor retention
CN109982128A (en) * 2019-03-19 2019-07-05 腾讯科技(深圳)有限公司 Barrage generation method, device, storage medium and the electronic device of video
CN111163359A (en) * 2019-12-31 2020-05-15 腾讯科技(深圳)有限公司 Bullet screen generation method and device and computer readable storage medium
CN111225227A (en) * 2020-01-03 2020-06-02 网易(杭州)网络有限公司 Bullet screen publishing method, bullet screen model generating method and bullet screen publishing device
CN112165638A (en) * 2020-04-10 2021-01-01 洪镒 Video live broadcast processing method based on cloud computing and server
WO2021120799A1 (en) * 2019-12-18 2021-06-24 百果园技术(新加坡)有限公司 Anchor information pushing method and apparatus, computer device, and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162365A (en) * 2016-06-24 2016-11-23 武汉斗鱼网络科技有限公司 Any active ues collection maintaining method based on time wheel disc and barrage behavior and system
CN106656767A (en) * 2017-01-09 2017-05-10 武汉斗鱼网络科技有限公司 Method and system for increasing new anchor retention
CN109982128A (en) * 2019-03-19 2019-07-05 腾讯科技(深圳)有限公司 Barrage generation method, device, storage medium and the electronic device of video
WO2021120799A1 (en) * 2019-12-18 2021-06-24 百果园技术(新加坡)有限公司 Anchor information pushing method and apparatus, computer device, and storage medium
CN111163359A (en) * 2019-12-31 2020-05-15 腾讯科技(深圳)有限公司 Bullet screen generation method and device and computer readable storage medium
CN111225227A (en) * 2020-01-03 2020-06-02 网易(杭州)网络有限公司 Bullet screen publishing method, bullet screen model generating method and bullet screen publishing device
CN112165638A (en) * 2020-04-10 2021-01-01 洪镒 Video live broadcast processing method based on cloud computing and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873282A (en) * 2021-09-30 2021-12-31 广州方硅信息技术有限公司 Live broadcast room guidance speaking method, system, device, medium and computer equipment

Also Published As

Publication number Publication date
CN113365096B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
CN108235102B (en) Service processing method, device and storage medium
CN110830735B (en) Video generation method and device, computer equipment and storage medium
CN109905723B (en) Anchor recommendation method, server and readable storage medium
CN110267059B (en) Live broadcast method and device, electronic equipment and storage medium
CN107454436A (en) Interactive approach, device, server and storage medium
CN107493326B (en) Network voting processing method, device, server and computer readable storage medium
CN106997546A (en) A kind of order processing method and device
CN113365096B (en) Live broadcast room warm-up method and device, storage medium and electronic equipment
CN109729376B (en) Life cycle processing method, life cycle processing device, life cycle processing equipment and life cycle processing storage medium
CN108449606B (en) Barrage limiting method, device, server and medium
CN111901619B (en) Message pushing method and device
CN109190769A (en) A kind of artificial intelligence training method based on block chain
CN108174267A (en) The sending device of interactive information, method and computer readable storage medium in live streaming
CN110538457A (en) Method and device for controlling issuing of virtual articles in game and electronic equipment
CN106203179B (en) A kind of completeness check system and method for pair of file
CN107908730B (en) Method and device for downloading data
CN113949890A (en) Object delivery processing method and device, electronic equipment and storage medium
CN109450724A (en) A kind of test method and relevant apparatus of NFS internal memory optimization function
CN113037450A (en) Delayed message processing method, device, equipment and readable storage medium
CN110198469B (en) Operation response method and device, medium and computing equipment
CN113867852A (en) Information display method, device, equipment and storage medium for business requirements
CN114666615B (en) Resource allocation method, device, server, program, and storage medium
CN108174245A (en) A kind of method and system that dynamic content presentation is carried out based on video data
CN115169797A (en) Working dog calling method and related device
CN114493756A (en) Resource management method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant