CN108449606A - A kind of barrage method for limiting, device, server and medium - Google Patents
A kind of barrage method for limiting, device, server and medium Download PDFInfo
- Publication number
- CN108449606A CN108449606A CN201810266389.2A CN201810266389A CN108449606A CN 108449606 A CN108449606 A CN 108449606A CN 201810266389 A CN201810266389 A CN 201810266389A CN 108449606 A CN108449606 A CN 108449606A
- Authority
- CN
- China
- Prior art keywords
- target
- barrage
- token
- direct broadcasting
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/258—Client 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/25866—Management of end-user data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26208—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Graphics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of barrage method for limiting, device, server and medium, method is applied to server, including:Receive the barrage request that target user sends target barrage in target direct broadcasting room;It is asked based on barrage, obtains the current token information of target direct broadcasting room, wherein direct broadcast server distributes token according to preset token allocation strategy to the target direct broadcasting room;According to the current token information, the status information of the identity information and the target direct broadcasting room of the target user, according to preset broadcast strategy, determine whether to broadcast the target barrage;If allowing to broadcast the target barrage, the target barrage is broadcasted, and the token quantity of the target direct broadcasting room is subtracted one.The present invention solves the technical issues of barrage function during existing live streaming, existing influence user watches live streaming and brings very big burden to server.It realizes and avoids influencing the technique effect that user watches live streaming and reduction server burden.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of barrage method for limiting, device, server and media.
Background technology
Currently, with the progress of network communication technology and the speed-raising of broadband network, network direct broadcasting has obtained more and more
Development and application, the quantity for the main broadcaster being broadcast live are also more and more.In order to improve user's stickiness, and during increase live streaming
Interactivity is broadcast live platform and often provides barrage function now, so that the user of viewing live streaming carries out real-time interactive.
However, barrage function it is specifically used during, largely with being exchanged per family using barrage, cause to be broadcast live
Barrage quantity is excessive in room, and barrage frequency is excessively high, on the one hand, influences user and watches live streaming, on the other hand, gives live streaming platform core
Central server brings great burden.
As it can be seen that the barrage function during existing live streaming, existing, which influences user, watches live streaming and is brought greatly to server
The technical issues of burden.
Invention content
The embodiment of the present application solves existing live streaming by a kind of barrage method for limiting of offer, device, server and medium
The technical issues of barrage function in the process, existing influence user watches live streaming and brings very big burden to server.
In a first aspect, providing a kind of barrage method for limiting, the method is applied to direct broadcast server, including:
Receive the barrage request that target user sends target barrage in target direct broadcasting room;
It is asked based on the barrage, obtains the current token information of the target direct broadcasting room, the current token packet
It includes:The existing token quantity of target direct broadcasting room or the current token liability information of the target direct broadcasting room;Wherein, described straight
It broadcasts server and distributes token to the target direct broadcasting room according to preset token allocation strategy;One token corresponds to primary bullet
Curtain broadcast;
Believed according to the state of the current token information, the identity information of the target user and the target direct broadcasting room
Breath, according to preset broadcast strategy, determines whether to broadcast the target barrage;
If allowing to broadcast the target barrage, the target barrage is broadcasted, and by the token of the target direct broadcasting room
Quantity subtracts one, and updates the token quantity.
Optionally, before the current token information for obtaining the target direct broadcasting room, further include:Based on the barrage
Request obtains currently away from the time interval between upper sub-distribution token;According to the time interval and preset token distribution week
Phase distributes token to the target direct broadcasting room.
Optionally, described to be enabled to target direct broadcasting room distribution according to the time interval and preset token assignment period
Board, including:If the time interval is less than the token assignment period, the target direct broadcasting room is not given to distribute token;If
The time interval is more than or equal to the token assignment period, and when less than twice of the token assignment period, then gives described
Target direct broadcasting room carries out a token distribution;If the time interval is more than or equal to twice of the token assignment period,
It gives the target direct broadcasting room to carry out the distribution of token, and reissues the token distribution of (T1-T2)/T2 roundings for several times, wherein T1 is
The time interval, T2 are the token assignment period.
Optionally, if the token liability information characterizes the target direct broadcasting room and has token debt, that reissues is described
Token is in debt for offsetting.
Optionally, if preset barrage broadcasting frequency is that M items are per second, the token allocation strategy is the distribution per 2/M seconds
2 tokens, M are positive integer;If the token liability information, which characterizes the target direct broadcasting room, token debt, 2 orders
1 token in board is in debt for offsetting, another token is for broadcasting barrage.
Optionally, the user in target live streaming room belongs to N number of barrage group, and N is positive integer;It is described according to the order
Board information, the status information of identity information and the target direct broadcasting room of the target user are sentenced according to preset broadcast strategy
It is disconnected whether to allow to broadcast the target barrage, including:According to the token information, the identity information, described of the target user
Barrage group information belonging to the status information of target direct broadcasting room and the target user, according to preset broadcast strategy, judgement is
It is no to allow to broadcast the target barrage.
Optionally, described according to the token information, the shape of the identity information of the target user, the target direct broadcasting room
Barrage group information belonging to state information and the target user is determined whether according to preset broadcast strategy described in broadcast
Target barrage, including:If the identity information of the target user characterizes the group that the target user belongs to necessary global broadcast
Body then allows that the room overall situation broadcast target barrage is broadcast live in the target;If the identity information table of the target user
It is high value barrage to levy the barrage that the target user sends, and the token information characterize the target direct broadcasting room token it is negative
Debt degree is serious debt, then the target barrage group belonging to the target user is allowed to broadcast the target barrage;If institute
The identity information for stating target user characterizes the barrage that the target user sends as high value barrage, and the token information characterizes
The token debt degree of the target direct broadcasting room is no debt or common debt, then allows global wide in target live streaming room
Broadcast the target barrage;If the target user is not belonging to the group of the necessary global broadcast, the target user sends
Barrage nor high value barrage, and it is serious negative that the token information, which characterizes the token debt degree of the target direct broadcasting room,
When debt, do not allow to broadcast the target barrage;If the target user is not belonging to the group of the necessary global broadcast, described
The barrage that target user sends is nor high value barrage, and the token information characterizes the token of the target direct broadcasting room and is in debt
When degree is no debt or common debt, the target barrage group belonging to the target user is allowed to broadcast the target bullet
Curtain;If the status information of the target direct broadcasting room characterizes the target direct broadcasting room as prize drawing state, and the token information table
When levying the target direct broadcasting room has token debt, do not allow to broadcast the target barrage;If the state of the target direct broadcasting room
Target direct broadcasting room described in information representation is prize drawing state, and the token information characterization target direct broadcasting room has token debt
When, do not allow to broadcast the target barrage;If it is to take out that the status information of the target direct broadcasting room, which characterizes the target direct broadcasting room,
Diploma state, and when the token information characterizes the target direct broadcasting room and is in debt without token, permission is belonging to the target user
Target barrage group broadcasts the target barrage.
Second aspect provides a kind of barrage limits device, which is characterized in that and described device is direct broadcast server, including:
Receiving unit, for receiving barrage request of the target user in target direct broadcasting room transmission target barrage;
Acquiring unit, it is described to work as based on barrage request, obtaining the current token information of the target direct broadcasting room
Preceding token information includes:The existing token quantity of target direct broadcasting room or the current token of the target direct broadcasting room are in debt letter
Breath;Wherein, the direct broadcast server distributes token according to preset token allocation strategy to the target direct broadcasting room;Described in one
Token corresponds to a barrage broadcast;
Judging unit, for straight according to the current token information, the identity information of the target user and the target
Status information between broadcasting determines whether to broadcast the target barrage according to preset broadcast strategy;
If radio unit broadcasts the target barrage for allowing to broadcast the target barrage, and by the target
The token quantity of direct broadcasting room subtracts one, and updates the token quantity.
The third aspect, provides a kind of direct broadcast server, including memory, processor and storage on a memory and can located
The computer program run on reason device, the processor realize first aspect any method when executing described program.
Fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer program, which is handled
First aspect any method is realized when device executes.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Barrage method for limiting, device, server and medium provided by the embodiments of the present application, receive target user in target
After direct broadcasting room sends the barrage request of target barrage, barrage transmission is not carried out not instead of directly, is provided with broadcast strategy:First obtain
The current token information of the target direct broadcasting room, and according to the current token information, the target user identity information and
The status information of the target direct broadcasting room determines whether to broadcast the target barrage according to preset broadcast strategy;It is only right
Judge that the target barrage passed through is broadcasted, and the token quantity of the target direct broadcasting room is subtracted one to update the token number
Amount, in order to which barrage judges next time.Both barrage frequency and quantity were limited by token, also by taking the target into consideration
The status information of the identity information of user and the target direct broadcasting room ensure that the broadcast of crucial barrage, on the one hand, reduce user
The barrage quantity received, avoiding, which influences user, watches live streaming, and another aspect effectively reduces the burden of server.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, others are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the flow chart of barrage method for limiting in the embodiment of the present application one;
Fig. 2 is the structural schematic diagram of device in the embodiment of the present application two;
Fig. 3 is the structural schematic diagram of direct broadcast server in the embodiment of the present application three;
Fig. 4 is the structural schematic diagram of the embodiment of the present application Computer readable storage medium storing program for executing 400.
Specific implementation mode
The embodiment of the present application solves existing live streaming by a kind of barrage method for limiting of offer, device, server and medium
The technical issues of barrage function in the process, existing influence user watches live streaming and brings very big burden to server.It realizes
On the basis of ensureing that crucial barrage can broadcast, avoiding, which influences user, watches live streaming and reduces the technology effect of server burden
Fruit.
The technical solution of the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
Receive the barrage request that target user sends target barrage in target direct broadcasting room;
It is asked based on the barrage, obtains the current token information of the target direct broadcasting room, the current token packet
It includes:The existing token quantity of target direct broadcasting room or the current token liability information of the target direct broadcasting room;Wherein, described straight
It broadcasts server and distributes token to the target direct broadcasting room according to preset token allocation strategy;One token corresponds to primary bullet
Curtain broadcast;
Believed according to the state of the current token information, the identity information of the target user and the target direct broadcasting room
Breath, according to preset broadcast strategy, determines whether to broadcast the target barrage;
If allowing to broadcast the target barrage, the target barrage is broadcasted, and by the token of the target direct broadcasting room
Quantity subtracts one, and updates the token quantity.
Specifically, by receiving target user after target direct broadcasting room sends the barrage request of target barrage, it is not
Barrage transmission is directly carried out, but is provided with broadcast strategy:First obtain the current token information of the target direct broadcasting room, and according to
The current token information, the target user identity information and the target direct broadcasting room status information, according to preset
Broadcast strategy determines whether to broadcast the target barrage;The target barrage only passed through to judgement is broadcasted, and will be described
The token quantity of target direct broadcasting room subtracts one to update the token quantity, in order to which barrage judges next time.Both it was limited by token
Barrage frequency and quantity are made, also by the state of the identity information and the target direct broadcasting room of taking the target user into consideration
The information assurance broadcast of crucial barrage, on the one hand, reduce the barrage quantity that user receives, avoid influencing user's viewing straight
It broadcasts, on the other hand, effectively reduces the burden of server.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper
Technical solution is stated to be described in detail.
Embodiment one
As shown in Figure 1, present embodiments providing a kind of barrage method for limiting, the method is applied to direct broadcast server, packet
It includes:
Step S101 receives the barrage request that target user sends target barrage in target direct broadcasting room;
Step S102 is asked based on the barrage, obtains the current token information of the target direct broadcasting room, the current order
Board information includes:The existing token quantity of target direct broadcasting room or the current token liability information of the target direct broadcasting room;Its
In, the direct broadcast server distributes token according to preset token allocation strategy to the target direct broadcasting room;One token
Corresponding barrage broadcast;
Step S103, according to the current token information, the identity information of the target user and the target direct broadcasting room
Status information determine whether to broadcast the target barrage according to preset broadcast strategy;
Step S104 broadcasts the target barrage, and the target is broadcast live if allowing to broadcast the target barrage
Between token quantity subtract one, and update the token quantity.
In the embodiment of the present application, the server can be computer equipment, high in the clouds or computer equipment group, herein not
It is restricted.The client of the target user can be smart mobile phone, notebook, desktop computer and tablet computer, herein also not
It is restricted.
In the following, the specific implementation step of barrage method for limiting provided in this embodiment is discussed in detail in conjunction with Fig. 1:
First, step S101 is executed, the barrage request that target user sends target barrage in target direct broadcasting room is received.
Specifically, when the target user wants to send barrage, after inputting barrage content and clicking send button, meeting
It generates barrage request and barrage request is sent to the direct broadcast server.
Then, step S102 is executed, is asked based on the barrage, obtains the current token information of the target direct broadcasting room,
The current token information includes:The existing token quantity of target direct broadcasting room or the current token of the target direct broadcasting room are negative
Debt information;Wherein, the direct broadcast server distributes token according to preset token allocation strategy to the target direct broadcasting room;One
The token corresponds to a barrage broadcast.
Specifically, the present embodiment limits barrage flow by the way of token bucket, and each live streaming room can be arranged
There is oneself independent token bucket, token is distributed to each room according to preset token allocation strategy, to most of barrage
Speech when there is token in presently described target live streaming room, can be broadcast live room in the target and broadcast barrage, if without token
When, then barrage is abandoned, i.e., often sends a barrage and consumes a token.But the special barrage to partly necessarily requiring to send is (main
Broadcast the barrage sent, the barrage that administrator sends or high value barrage etc.), it also can be in the target in the case of no token
Room is broadcast live and forces broadcast, thus, target live streaming room can be made to generate token and be in debt.The token liability information is used for
Characterize the token debt quantity in target live streaming room.
In the embodiment of the present application, if it is that M items are per second that preset barrage broadcasting frequency, which can be arranged, the token distribution
Strategy is, per 2/M seconds, 2 tokens of distribution, M is positive integer.Specifically, it is arranged per 2 tokens of sub-distribution, rather than 1 order
Board only distributes 1 token every time if allowing for target live streaming room has debt, cannot take into account counteracting be in debt and
Barrage is broadcasted.Setting is per two tokens of sub-distribution, if the token liability information characterizes the target direct broadcasting room and has token negative
Debt, 1 token in 2 tokens are in debt for offsetting, another token is for broadcasting barrage, in the case of debt
Excessive influence barrage normally sends broadcast.
Certainly, in specific implementation process, it can also be arranged and only distribute 1 token every time, or per 3 tokens of sub-distribution,
This is not restricted, also will not enumerate.
In the embodiment of the present application, the method for salary distribution of the token can there are many, be set forth below for two kinds:
The first, is asked based on the barrage, triggering distribution token.
That is, after the barrage request that the direct broadcast server receives target live streaming room every time, just touch
Hair carries out token distribution to target live streaming room.Specifically allocation strategy can be:
It is asked, is obtained currently away from the time interval between upper sub-distribution token based on the barrage;According between the time
Every with preset token assignment period to the target direct broadcasting room distribute token.
Specifically, described to be distributed to the target direct broadcasting room according to the time interval and preset token assignment period
Token, including:
If the time interval is less than the token assignment period, the target direct broadcasting room is not given to distribute token;
If the time interval is more than or equal to the token assignment period, and the token assignment period less than twice
When, then give the target direct broadcasting room to carry out a token distribution;
If the time interval is more than or equal to twice of the token assignment period, carried out to the target direct broadcasting room
Token distribution, and reissue the token distribution of (T1-T2)/T2 roundings for several times, wherein T1 is the time interval, and T2 is institute
State token assignment period;If the token liability information, which characterizes the target direct broadcasting room, token debt, that reissues is described
Token, which is preferentially used for offsetting, is in debt.
For example, it is assumed that preset token allocation strategy is that room is broadcast live to the target every 2 tokens of distribution in 0.2 second
Between, then the token assignment period is 0.2 second.Assuming that the time gap last time for being currently received the barrage request receives institute
The time interval for stating the barrage request in target live streaming room is 0.1 second, then does not give the target direct broadcasting room to distribute token;Assuming that institute
It is 0.3 second to state time interval, then gives target direct broadcasting room distribution 1 time, totally 2 tokens;Assuming that the time interval is 0.9
Second, then give the target direct broadcasting room to distribute 1 time, totally 2 tokens, and reissue 3 times, totally 6 tokens.
Second, period allocated token.
Room timing allocation token is broadcast live to the target according to preset token assignment period in the i.e. described server.
Certainly, other token methods of salary distribution can also be taken in specific implementation process, this is not restricted, also no longer
It enumerates.
Subsequently, step S103 is executed, according to the current token information, the identity information of the target user and described
The status information of target direct broadcasting room determines whether to broadcast the target barrage according to preset broadcast strategy.
Before introducing the broadcast strategy, how need first to introduce according to the determination of the identity information of the target user is
No is the group of necessary global broadcast and high value barrage.
In the embodiment of the present application, it is described must the group of global broadcast include:The main broadcaster in target live streaming room, institute
State the administrator of the administrator and the live streaming platform in target live streaming room.
Certainly, in specific implementation process, can also be arranged other must global broadcast group, such as:It is certain special
The visitant customer etc. of invitation.
In the embodiment of the present application, judge whether barrage that the target user sends is that the method for high value barrage can be with
There are many, as long as meeting any of which or a variety of, you can think that the barrage that the target user sends is high value barrage,
It is set forth below for four kinds:
The first, according to user gradation.
Judge whether the target user is more than pre-set user grade in the user gradation of live streaming platform;If it is greater than institute
Pre-set user grade is stated, then the barrage that the target user sends is high value barrage.
Specifically, the user gradation grade that be the target user accumulate on entirely live streaming platform, specifically with
The target user logs in the consumption phase of the duration and the target user of the live streaming platform on the live streaming platform
It closes.Characterization is historical behavior accumulation of the target user in the entire live streaming platform.
For example, it is high value barrage that the barrage that user of the user gradation more than 20 sends, which can be arranged,.
Second, according to bean vermicelli grade.
Judge that the bean vermicelli grade in room is broadcast live whether more than default bean vermicelli grade in the target in the target user;Such as
Fruit is more than the default bean vermicelli grade, then the barrage that the target user sends is high value barrage.
Specifically, the bean vermicelli grade is the grade that the target user accumulates in target live streaming room, tool
Body enters the duration in target live streaming room with the target user, and disappearing for room is broadcast live in the target in the target user
It is related in the target live streaming historical behavior in room to the target user to take situation.Characterization is that the target user exists
The historical behavior accumulation in target live streaming room.
In specific implementation process, it is contemplated that when room number is excessive, needs to control global barrage quantity, can also be arranged
The number data that room is first broadcast live according to the target determine the default bean vermicelli grade, the number data and the default powder
Silk grade positive correlation, then judge that the bean vermicelli grade in room is broadcast live whether more than default bean vermicelli etc. in the target in the target user
Grade.The positive correlation can be directly proportional, can also be the setting of positive correlation stage by stage, this is not restricted.
For example, when the room number in target live streaming room can be set more than 100,000, described default bean vermicelli etc.
Grade is 4 grades, and when the room number in target live streaming room is less than or equal to 100,000, the default bean vermicelli grade is 1 grade, wherein 4
Grade grade is higher than 1 grade.
The third, according to consumption data.
Judge whether the consumption data of the target user is more than default consumption value;If it is greater than the default consumption
Value, the then barrage that the target user sends are high value barrage.
Specifically, can be that the consumption data in room is broadcast live to determine high price in the target according to the target user
It is worth barrage, can also be that high value barrage is determined in the consumption data of entirely live streaming platform according to the target user, herein
It is not restricted.
4th kind, according to default title.
Judge whether the title that the target user is awarded is default title;If it is the default title, institute
The barrage for stating target user's transmission is high value barrage.
Specifically, user can be arranged can possess various titles according to historical behavior, such as:Noble, silver etc..It can
With setting, the barrage for possessing user's transmission of noble's title is high value barrage.
Certainly, specifically judge that the method for high value barrage is not limited to above four kinds, for example, it is also possible to which specially invited guest's hair is arranged
The barrage sent is high value barrage, and this is not restricted, also will not enumerate.
Next, how introducing according to preset broadcast strategy, determine whether to broadcast the target barrage.Specific
In implementation process, the preset broadcast strategy can there are many, be set forth below for three kinds:
The first, consider barrage grouping.
The user that target live streaming room is arranged belongs to N number of barrage group, and N is positive integer;
In the embodiment of the present application, in order to avoid barrage caused by full room barrage is excessive and server stress is excessive, institute
The user for stating target live streaming room belongs to N number of barrage group.Most cases, each user only receive its affiliated barrage group user hair
The message sent, to greatly reduce the barrage quantity that each user receives.
Further, in order to meet the case where certain user wants to watch all barrages, N number of barrage group can also be set
Include a magnanimity barrage group, at this point, N is more than or equal to 2, it is straight that the user in the magnanimity barrage group can receive the target
Broadcast the barrage that all users send in room.In other words, the barrage that user sends in a certain barrage group not only can be in the barrage
It is broadcasted in group, can also be broadcasted in the magnanimity barrage group.
Specifically the method for newly-increased barrage group can be:It is when newly-built target live streaming room, then corresponding to create one normally
Barrage group and a magnanimity barrage group, wherein the number upper limit of the normal barrage group is preset as preset upper limit value.It is described normal
Barrage group only receives the global barrage of the barrage that user sends in this group and the broadcast of full room, described in the magnanimity barrage group receives
All barrages in room are broadcast live.Each the user into target live streaming room can be divided into the normal barrage group, when
So, it can also select to enter the magnanimity barrage group.When the number in the normal barrage group reaches the preset upper limit value,
Second normal barrage group is created, until described second normal barrage group people completely resettles the normal barrage group of third, successively
Analogize.
Specifically the method for deletion barrage group can be:Room is broadcast live when there is user to exit the target successively, so that certain
When the number of a barrage group is 0, then the barrage group that deletion number is 0 is given tacit consent to.It should be noted that the magnanimity bullet can be arranged
Curtain group will not be deleted.
Specifically the method for addition barrage group can be:When user logs in the target, and room is broadcast live, from normal barrage group
The minimum barrage group of middle selection number, and user is added to the minimum barrage group of the number.User can also select to exit just
Normal barrage group, is added the magnanimity barrage group.User, which is also an option that, exits magnanimity barrage group, and it is minimum just to be automatically added to number
Normal barrage group.It is of course also possible to be selected a certain normal barrage group to be added according to the demand of oneself by user, for example, selecting it
Barrage group where the good friend of concern is added, alternatively, the barrage group more than selection barrage quantity is added, this is not restricted, also not
It enumerates again.
The specific method for exiting barrage group can be:When user exits the target, and room is broadcast live, by user from affiliated
Barrage group in delete, certainly, user can also select to exit some barrage group, and other barrage groups are added.
Specifically merging the method for barrage group can be:The direct broadcast server can inspect periodically the number feelings of each barrage group
Condition, and under the premise of total number of persons is without departing from the barrage group number upper limit, barrage group fewer in number is merged.Such as:Directly
It broadcasts whois lookup and goes out the minimum barrage group A of number and the few barrage group B of number second, if the number of A is less than the number upper limit
1/4, and the total number of persons of barrage group A+ barrage groups B be less than a barrage group the number upper limit, then the owner in A is added to
In B, while deleting barrage group A.
Certainly, the optimum management method of the barrage group of division is not limited to it is above-mentioned described several, specific real
During applying, it can be arranged as required to the management method to the barrage group, this is not restricted, is also not listed.
In the case where being provided with barrage grouping, according to the token information, the identity information, described of the target user
Barrage group information belonging to the status information of target direct broadcasting room and the target user, according to preset broadcast strategy, judgement is
It is no to allow to broadcast the target barrage, may include:
If the identity information of the target user characterizes the group that the target user belongs to necessary global broadcast, permit
Perhaps the target barrage is broadcasted in the target live streaming room overall situation;
If the identity information of the target user characterizes the barrage that the target user sends as high value barrage, and institute
It is serious debt to state token information and characterize the token debt degree of the target direct broadcasting room, then allows belonging to the target user
Target barrage group broadcast the target barrage;
If the identity information of the target user characterizes the barrage that the target user sends as high value barrage, and institute
It is no debt or common debt to state token information and characterize the token debt degree of the target direct broadcasting room, then allows in the target
The room overall situation is broadcast live and broadcasts the target barrage;
If the target user is not belonging to the group of the necessary global broadcast, the barrage that the target user sends
It is not high value barrage, and it is when being seriously in debt, no that the token information, which characterizes the token debt degree of the target direct broadcasting room,
Allow to broadcast the target barrage;
If the target user is not belonging to the group of the necessary global broadcast, the barrage that the target user sends
It is not high value barrage, and it is no debt or common that the token information, which characterizes the token debt degree of the target direct broadcasting room,
When debt, the target barrage group belonging to the target user is allowed to broadcast the target barrage;
If it is prize drawing state that the status information of the target direct broadcasting room, which characterizes the target direct broadcasting room, and the token is believed
When the breath characterization target direct broadcasting room has token debt, do not allow to broadcast the target barrage;
If it is prize drawing state that the status information of the target direct broadcasting room, which characterizes the target direct broadcasting room, and the token is believed
When the breath characterization target direct broadcasting room has token debt, do not allow to broadcast the target barrage;
If it is prize drawing state that the status information of the target direct broadcasting room, which characterizes the target direct broadcasting room, and the token is believed
When the breath characterization target direct broadcasting room is in debt without token, the target barrage group belonging to the target user is allowed to broadcast the mesh
Mark barrage.
In specific implementation process, it is contemplated that certain customers have the demand for obtaining whole barrages, and magnanimity barrage can be arranged
Group selects to be added for user, all barrages can be broadcasted to the user in magnanimity barrage group, without flow restriction.
Second, consider barrage grouping and string group situation.
Belong to N number of barrage group in the first aforementioned user that target live streaming room is arranged, N is the feelings of positive integer
Under condition, further, it is contemplated that certain barrage groups may have sluggish situation, and direct broadcast server, which can be arranged, can judge institute
It states in N number of barrage group, if there are the idle barrage groups for sending barrage in preset duration without user, if there is described idle
Barrage group then broadcasts the barrage that other barrages group user sends in N number of barrage group to the user in the idle barrage group.
In other words, the broadcast of string group barrage can be carried out to idle barrage group, specific string group method can arbitrarily determine a barrage group
Message string group can also be to randomly select a part of barrage string group from each barrage group to show to described to the barrage group of leaving unused
Idle barrage group, this is not restricted.
In the case where considering string group, broadcast strategy shown in table 1 may be used to determine whether to the target barrage
It is broadcasted:
- | No debt (this group) | No debt (string group) | There is debt (this group) | There is debt (string group) | It is in debt excessively high (this group) | It is in debt excessively high (string group) |
MUST | √ | √ | √ | √ | √ | √ |
VALUABLE | √ | √ | √ | √ | √ | × |
NO (common barrage) | √ | ○ | √ | × | × | × |
NO (prize drawing) | ○ | ○ | × | × | × | × |
Table 1 considers the broadcast strategy of string group
Wherein, √ indicates that operation sends barrage, allows to be in debt;Zero indicates to allow to send barrage, does not allow to be in debt;× indicate
Do not allow to send barrage.
The third, do not consider to be grouped.
Specifically, it can be arranged and meet following situation for the moment, you can with described in target live streaming room broadcast
Target barrage:
It is high value barrage that the identity information of the target user, which characterizes the barrage that the target user sends,;
There are tokens in target live streaming room described in the current token information representation, and the state of the target direct broadcasting room is believed
It is normal live state that breath, which characterizes the target direct broadcasting room,;
The identity information of the target user characterizes the group that the target user belongs to preset necessary global broadcast.
Certainly, it in specific implementation process, according to preset broadcast strategy, determines whether to broadcast the target barrage
Method be not limited to three of the above, this is not restricted, also will not enumerate.
Next, executing step S104, if allowing to broadcast the target barrage, the target barrage is broadcasted, and will
The token quantity of the target direct broadcasting room subtracts one, and updates the token quantity.
Specifically, by receiving target user after target direct broadcasting room sends the barrage request of target barrage, it is not
Barrage transmission is directly carried out, but is provided with broadcast strategy:First obtain the current token information of the target direct broadcasting room, and according to
The current token information, the target user identity information and the target direct broadcasting room status information, according to preset
Broadcast strategy determines whether to broadcast the target barrage;The target barrage only passed through to judgement is broadcasted, and will be described
The token quantity of target direct broadcasting room subtracts one to update the token quantity, in order to which barrage judges next time.Both it was limited by token
Barrage frequency and quantity are made, also by the state of the identity information and the target direct broadcasting room of taking the target user into consideration
The information assurance broadcast of crucial barrage, on the one hand, reduce the barrage quantity that user receives, avoid influencing user's viewing straight
It broadcasts, on the other hand, effectively reduces the burden of server.
The present embodiment additionally provides a kind of barrage broadcasting method, and the method is applied to direct broadcast server, including:
The barrage request that the target user in target live streaming room sends is received, the user in target live streaming room belongs to
N number of barrage group, N are positive integer;
If the bullet that the target user belongs to the group of preset necessary global broadcast or the target user sends
Curtain is high value barrage, then whole users that room target is broadcast live broadcast the barrage that the target user sends;Wherein,
Whether the barrage that the target user sends is high value barrage, is the user etc. according to the target user in live streaming platform
The bean vermicelli grade in room, the consumption data of the target user or the target is broadcast live in the target in grade, the target user
Handle information that user is awarded determines;
If the target user is not belonging to the group of the necessary global broadcast, and the barrage that the target user sends
Nor high value barrage, then broadcast the bullet that the target user sends to the user in the barrage group belonging to the target user
Curtain.
` is it should be noted that in the embodiment of the present application, need to judge whether the target user belongs to preset necessary
The group of overall situation broadcast, and judge the barrage of target user transmission for high value barrage, the priority of two judgment steps is suitable
Sequence is not restricted, and can be carried out at the same time judgement, can also first judge whether the target user belongs to preset necessary global wide
The group broadcast can also first judge that the barrage of target user's transmission for high value barrage, is not restricted herein.
In the following, the specific implementation step of barrage broadcasting method provided in this embodiment is discussed in detail:
First, the barrage request that the target user in target live streaming room sends, the user in target live streaming room are received
Belong to N number of barrage group, N is positive integer.
Specifically, when the target user in the target direct broadcasting room wants to send barrage, barrage content and point are inputted
After hitting send button, barrage request can be generated and barrage request is sent to the direct broadcast server.
In the embodiment of the present application, in order to avoid barrage caused by full room barrage is excessive and server stress is excessive, institute
The user for stating target live streaming room belongs to N number of barrage group.Each user only receives what its affiliated barrage group user sent mostly
Message, it is specifically identical as described in aforementioned barrage method for limiting to greatly reduce the barrage quantity that each user receives,
It is not repeated herein.
Next, the case where according to the target user, selection executes:
If the bullet that the target user belongs to the group of preset necessary global broadcast or the target user sends
Curtain is high value barrage, then whole users that room target is broadcast live broadcast the barrage that the target user sends;Wherein,
Whether the barrage that the target user sends is high value barrage, is the user etc. according to the target user in live streaming platform
The bean vermicelli grade in room, the consumption data of the target user or the target is broadcast live in the target in grade, the target user
Handle information that user is awarded determines;
If the target user is not belonging to the group of the necessary global broadcast, and the barrage that the target user sends
Nor high value barrage, then broadcast the bullet that the target user sends to the user in the barrage group belonging to the target user
Curtain.
In the embodiment of the present application, it is described must the group of global broadcast include:The main broadcaster in target live streaming room, institute
State the administrator of the administrator and the live streaming platform in target live streaming room.
Certainly, in specific implementation process, can also be arranged other must global broadcast group, such as:It is certain special
The visitant customer etc. of invitation.
In the embodiment of the present application, judge whether barrage that the target user sends is the method for high value barrage with before
It states identical described in barrage method for limiting, is not repeated herein.
In the embodiment of the present application, can also be arranged, if target live streaming room is in prize drawing state, only to institute
It states the user in the barrage group belonging to target user and broadcasts the barrage that the target user sends.In other words, in prize drawing state
Under, prize drawing information can be accurately obtained for the ease of prize drawing user, without being interfered by excessive barrage, each user when prize drawing can be set
The barrage of transmission can only be described in it barrage group broadcasted, cannot go here and there group.
Further, it is contemplated that certain barrage groups may have sluggish situation, and direct broadcast server, which can be arranged, to be sentenced
In N number of barrage group of breaking, if there are the idle barrage groups for sending barrage in preset duration without user, if there is described
Idle barrage group then broadcasts what other barrages group user in N number of barrage group sent to the user in the idle barrage group
Barrage.In other words, the broadcast of string group barrage can be carried out to idle barrage group, specific string group method can arbitrarily determine a barrage
Group message string group to the barrage group of leaving unused, can also be randomly selected from each barrage group a part of barrage string group show to
The idle barrage group, this is not restricted.
In the embodiment of the present application, in order to be further reduced the burden of direct broadcast server, the present embodiment can also be arranged solely
Vertical barrage server.To group's (main broadcaster, room administrator, platform super keepe) of the necessary global broadcast, directly
Barrage message is sent with the direct broadcast server of core, can also be arranged and the direct broadcast service is also selected to barrage group fewer in number
Device carries out barrage broadcast, other situations send the barrage and ask to barrage server, and barrage is carried out with the barrage server
It sends, to be further reduced the burden of the direct broadcast server.
For example, user connect into, complete login process, and after distributing barrage group for it, user is from barrage server
MsgRepeater has subscribed to affiliated barrage group message.Therefore user can receive clothes by direct broadcast server GateServer
Business device issues the message of oneself, and the barrage group message of subscription can also be received from barrage server MsgRepeater.It can be with
In multiple computer rooms, MsgRepeater is disposed, when user logs in, comparatively faster MsgRepeater can be selected to access.
Specifically, it is grouped, user is adhered to separately to N number of barrage group, and set by target being broadcast live the user in room
Setting barrage strategy is:If the target user belongs to group or the target user hair of preset necessary global broadcast
The barrage sent is high value barrage, then whole users that room target is broadcast live broadcast the bullet that the target user sends
Curtain;Otherwise the barrage that the target user sends is broadcasted to the user in the barrage group belonging to the target user.To realize only
Global full room broadcast is carried out to crucial barrage, remaining barrage only carries out narrowcast in barrage group, that is, ensures to close
Key barrage information can be obtained by all users, also reduce barrage broadcasting area so that the barrage that user receives is group mostly
Interior barrage reduces the barrage quantity that user receives, and avoiding, which influences user, watches live streaming, also effectively reduces the negative of server
Load.
The present embodiment additionally provides a kind of barrage method of calibration, and the method is applied to server, including:
Obtain the current room number data and current room status information in target live streaming room, wherein described to work as anterior chamber
Between status information for characterizing whether target live streaming room presets movable state in carrying out;
According to the current room number data and the current room status information, frequency threshold is determined;
After the barrage request that the target user in receiving target live streaming room sends, the target user is obtained
Current barrage frequency;
If the current barrage frequency is more than the frequency threshold, refuse the barrage request.
It should be noted that in the embodiment of the present application, triggering obtains the current room number data in target live streaming room
With the mode of current room status information can there are many, be set forth below for three kinds:
The first, periodic triggers.
The i.e. described direct broadcast server can be the periodic current room number data for obtaining target live streaming room and work as
Preceding room status information calculates the frequency threshold.
Second, setting preset condition triggers.
I.e. when meeting preset condition, triggering obtains the current room number data and current room shape in target live streaming room
State information calculates the frequency threshold.
In specific implementation process, the preset condition can be that the barrage frequency in room is broadcast live higher than one in the target
When definite value, just triggering obtains current room number data and the current room status information in target live streaming room to calculate the frequency
Rate threshold value;When the preset condition can also be that the number of users that room is broadcast live in the target is higher than certain value, just triggering obtains
It takes current room number data and the current room status information in target live streaming room to calculate the frequency threshold, does not make herein
Limitation.
The third, executes after receiving after barrage request.
I.e. just triggering obtains after the barrage request that the target user in receiving target live streaming room every time sends
Current room number data and the current room status information in target live streaming room is taken to calculate the frequency threshold.
Certainly, in specific implementation process, also other triggering modes, be not repeated, also will not enumerate herein.
In the following, the specific implementation step of barrage method of calibration provided in this embodiment is discussed in detail:
First, the current room number data and current room status information in target live streaming room are obtained, wherein described to work as
Whether preceding room status information is for characterizing target live streaming room in the default movable state of development.
Specifically, the current room number data refer to the spectators' use for being currently entering the direct broadcasting room viewing live streaming
Family incremental data.
Whether the current room status information is for characterizing target live streaming room in the default movable shape of development
State, the default activity can be sweepstake or game play activities etc..
Then, according to the current room number data and the current room status information, frequency threshold is determined.
In specific implementation process, determine the frequency threshold method can there are many, be set forth below for two kinds:
The first, is arranged computation rule to calculate frequency threshold.
In the embodiment of the present application, it can be arranged before the determining frequency threshold, further include:Obtain the target live streaming
Room is away from the room barrage incremental data in current preset duration;It is described according to the current room number data and described current
Room status information determines frequency threshold, including:According to the current room number data, the room barrage incremental data
With the current room status information frequency is determined in conjunction with the corresponding target room factor in preset target live streaming room
Threshold value.
It specifically, can be according to formula cd=cd_base* (cd_multiplier+extra_cd_multiplier) *
Cd_factor calculates frequency threshold, wherein cd is the frequency threshold, and cd_base is the room number factor, the room
Between the number factor and the current room number data positive correlation, cd_multiplier is room barrage Quantitative factor, the room
Between barrage frequency factor and the room barrage incremental data positive correlation, extra_cd_multiplier is state factor, described
State factor is corresponding with the current room status information, and the cd_factor is the target room factor, is each room
It can be independently arranged.
Above-mentioned positive correlation refers to that the current room number is bigger, then the room number factor is bigger;The room bullet
Curtain incremental data is bigger, then the room barrage frequency factor is bigger.For example, the positive correlation can be directly proportional,
It can be into square or cubic relationship, this is not restricted.
In the embodiment of the present application, carry out pumping when the current room status information characterizes target live streaming room and is in
When encouraging movable state, the state factor is the preset corresponding prize drawing factor of state for carrying out sweepstake;Work as when described
When status information characterization target live streaming room is in normal live state between anterior chamber, the state factor is preset normal
The corresponding live streaming factor of live state.
The state factor can be pre-set, for example, can pre-set when room is broadcast live in the target
When in normal live state, the state factor is 0, when target live streaming room is in prize drawing state, the state
The factor is 2, and when target live streaming room, which is in, plays game state, the state factor is 3.
It certainly, can also be according only to the current room number data and the current room in specific implementation process
Status information calculates the frequency threshold, and this is not restricted.
For example, it is also possible to which cd=cd_base*extra_cd_multiplier*K is arranged, wherein cd is the frequency threshold
Value, cd_base are the room number factor, the room number factor and the current room number data positive correlation, extra_
Cd_multiplier is state factor, and the state factor is corresponding with the current room status information, and the K is default normal
Number.
Second, preset frequency threshold is read by rule.
In the embodiment of the present application, can also be arranged when the current room number data are more than default number value, and institute
When stating current room status information and characterizing target live streaming room and be in the state for carrying out sweepstake, corresponding configuration is read
File obtains preset frequency threshold.
Specifically, different room states can be pre-set and different room numbers corresponds to different frequency thresholds
Value, when room number is more than the default number value and the room is in prize drawing state, triggering, which is read, is previously provided with frequency
The configuration file of rate threshold value, and frequency threshold is set according to pre-set information in the configuration file.
Certainly, in specific implementation process, it is also an option that the method for other setting frequency thresholds, this is not restricted,
Also it will not enumerate.
Subsequently, after the barrage request that the target user in receiving target live streaming room sends, described in acquisition
The current barrage frequency of target user;If the current barrage frequency is more than the frequency threshold, refuses the barrage and ask
It asks.
Specifically, it when the target user in the target direct broadcasting room wants to send barrage, inputs barrage and puts percussion
After sending button, barrage request can be generated and barrage request is sent to direct broadcast server, the direct broadcast server is receiving bullet
After curtain request, the current barrage frequency that barrage is sent in the target user currently nearly a period of time can be first obtained, and described in comparison
Current barrage frequency and the frequency threshold obtained before, if the current barrage frequency is more than the frequency threshold,
Thinking the target user has the behavioural characteristic of malice brush barrage, and refuses the barrage request, so that the target user
The secondary barrage cannot be sent out.
In specific implementation process, it can be arranged when the current barrage frequency is more than the frequency threshold, then refuse
The secondary barrage request is judged again when receiving barrage request next time.It can also be arranged when the current barrage frequency
When more than the frequency threshold, then not only refuses the secondary barrage request, also set up the target user in a preset time period
Barrage cannot be retransmited, this is not restricted.
In the embodiment of the present application, the barrage request that the target user in receiving target live streaming room sends
Afterwards, it can also be arranged, if meeting any one or more in following situations, also refuse barrage request:
1) account of the target user is not bound with cell-phone number.I.e. acquiescence does not have bullet with the user of handset binding
Curtain sends qualification, can export handset binding prompt in this case, to prompt user to carry out cell-phone number binding.
2) target user does not have barrage permission.Specifically, can be that platform is broadcast live and pre-sets to meet certain
The user of a little conditions does not have barrage permission, and the certain user that can also be main broadcaster's setting of the target direct broadcasting room does not have bullet
Curtain permission, the permission can be related to user's registration time, permission group, user gradation or room bean vermicelli setting etc..
3) the barrage information carried in the barrage request of the target user and the barrage sent before the target user
It repeats, repeats to send the normal barrage exchange of interference caused by the barrage of same content to avoid certain user.
4) target user belongs to the user in preset barrage blacklist.The barrage blacklist can be that live streaming is flat
Platform can also be the target direct broadcasting room according to user's blacklist general in the full platform of the barrage behavior setting of a period of time
Main broadcaster setting cannot the target direct broadcasting room carry out barrage blacklist.
5) the barrage information carried in the barrage request of the target user includes sensitive word.The sensitive word can be pre-
If the word sworn at people, or the word etc. with political complexion.
6) target live streaming room is to prohibit speech state.The taboo speech state can be that full webcast website prohibits speech, can also
It is that the target direct broadcasting room prohibits speech or sensitive periods prohibits speech.
Certainly, it in specific implementation process, the case where being not limited to above-mentioned refusal barrage, will not enumerate herein.
In specific implementation process, the administrator in the main broadcaster in the target room and the target room can not be by above-mentioned
Refuse the limitation of barrage request condition.
In the embodiment of the present application, when the pipe of main broadcaster, the target room that the target user is the target room
When the condition that reason person or the refusal barrage for not meeting setting are asked, the barrage request that the target user sends can be by described straight
Server receiving is broadcast, and is successfully transmitted barrage and is shown.
Specifically, it is straight to obtain target for barrage method of calibration, device, server and medium provided by the embodiments of the present application
The current room number data and current room status information for broadcasting room, according to current room number data and described current
Room status information determines frequency threshold;And when the current barrage frequency of target user is more than the frequency threshold, refuse institute
The barrage request for stating target user improves anti-interference ability to avoid the high-frequency transmission malice barrage of malicious user, reduces clothes
The burden of business device.
Based on same inventive concept, this application provides one corresponding device embodiment of embodiment, detailed in Example two.
Embodiment two
The present embodiment provides a kind of barrage limits devices, as shown in Fig. 2, described device is direct broadcast server, including:
Receiving unit 201, for receiving barrage request of the target user in target direct broadcasting room transmission target barrage;
Acquiring unit 202 obtains the current token information of the target direct broadcasting room, institute for being asked based on the barrage
Stating current token information includes:The existing token quantity of target direct broadcasting room or the current token of the target direct broadcasting room are in debt
Information;Wherein, the direct broadcast server distributes token according to preset token allocation strategy to the target direct broadcasting room;One institute
It states token and corresponds to a barrage broadcast;
Judging unit 203, for according to the current token information, the identity information of the target user and the target
The status information of direct broadcasting room determines whether to broadcast the target barrage according to preset broadcast strategy;
If radio unit 204 broadcasts the target barrage, and will be described for allowing to broadcast the target barrage
The token quantity of target direct broadcasting room subtracts one, and updates the token quantity.
Since the device that the present embodiment is introduced is device used by method in implementation the embodiment of the present application one, so base
In the method described in the embodiment of the present application one, those skilled in the art can understand the specific of the device of the present embodiment
Embodiment and its various change form, so how to realize the method in the embodiment of the present application no longer for the device at this
It is discussed in detail.As long as those skilled in the art implement equipment used by the method in the embodiment of the present application, this is belonged to
Apply for the range to be protected.
Based on same inventive concept, this application provides one corresponding server example of embodiment, detailed in Example three.
Embodiment three
The present embodiment provides a kind of direct broadcast servers, as shown in figure 3, including memory 310, processor 320 and being stored in
On memory 310 and the computer program 311 that can run on the processor 320, when processor 320 executes computer program 311
Realize following steps:
Receive the barrage request that target user sends target barrage in target direct broadcasting room;
It is asked based on the barrage, obtains the current token information of the target direct broadcasting room, the current token packet
It includes:The existing token quantity of target direct broadcasting room or the current token liability information of the target direct broadcasting room;Wherein, described straight
It broadcasts server and distributes token to the target direct broadcasting room according to preset token allocation strategy;One token corresponds to primary bullet
Curtain broadcast;
Believed according to the state of the current token information, the identity information of the target user and the target direct broadcasting room
Breath, according to preset broadcast strategy, determines whether to broadcast the target barrage;
If allowing to broadcast the target barrage, the target barrage is broadcasted, and by the token of the target direct broadcasting room
Quantity subtracts one, and updates the token quantity.
In specific implementation process, when processor 320 executes computer program 311, it may be implemented any in embodiment one
Embodiment.
Since the server that the present embodiment is introduced is equipment used by method in implementation the embodiment of the present application one, so
Based on the method described in the embodiment of the present application one, those skilled in the art can understand the server of the present embodiment
Specific implementation mode and its various change form, so how to realize the side in the embodiment of the present application for the server at this
Method is no longer discussed in detail.As long as those skilled in the art implement equipment used by the method in the embodiment of the present application, all
Belong to the range to be protected of the application.
Based on same inventive concept, this application provides one corresponding storage medium of embodiment, detailed in Example four.
Example IV
The present embodiment provides a kind of computer readable storage mediums 400, as shown in figure 4, being stored thereon with computer program
411, which realizes following steps when being executed by processor:
Receive the barrage request that target user sends target barrage in target direct broadcasting room;
It is asked based on the barrage, obtains the current token information of the target direct broadcasting room, the current token packet
It includes:The existing token quantity of target direct broadcasting room or the current token liability information of the target direct broadcasting room;Wherein, described straight
It broadcasts server and distributes token to the target direct broadcasting room according to preset token allocation strategy;One token corresponds to primary bullet
Curtain broadcast;
Believed according to the state of the current token information, the identity information of the target user and the target direct broadcasting room
Breath, according to preset broadcast strategy, determines whether to broadcast the target barrage;
If allowing to broadcast the target barrage, the target barrage is broadcasted, and by the token of the target direct broadcasting room
Quantity subtracts one, and updates the token quantity.
In specific implementation process, when which is executed by processor, it may be implemented any in embodiment one
Embodiment.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of barrage method for limiting, which is characterized in that the method is applied to direct broadcast server, including:
Receive the barrage request that target user sends target barrage in target direct broadcasting room;
It is asked based on the barrage, obtains the current token information of the target direct broadcasting room, the current token information includes:Institute
State the existing token quantity of target direct broadcasting room or the current token liability information of the target direct broadcasting room;Wherein, the live streaming clothes
Business device distributes token according to preset token allocation strategy to the target direct broadcasting room;It is wide that one token corresponds to a barrage
It broadcasts;
According to the current token information, the status information of the identity information and the target direct broadcasting room of the target user, press
According to preset broadcast strategy, determine whether to broadcast the target barrage;
If allowing to broadcast the target barrage, the target barrage is broadcasted, and by the token quantity of the target direct broadcasting room
Subtract one, and updates the token quantity.
2. the method as described in claim 1, which is characterized in that in the current token information for obtaining the target direct broadcasting room
Before, further include:
It is asked, is obtained currently away from the time interval between upper sub-distribution token based on the barrage;
According to the time interval and preset token assignment period token is distributed to the target direct broadcasting room.
3. method as claimed in claim 2, which is characterized in that described to distribute week according to the time interval and preset token
Phase distributes token to the target direct broadcasting room, including:
If the time interval is less than the token assignment period, the target direct broadcasting room is not given to distribute token;
If the time interval is more than or equal to the token assignment period, and when less than twice of the token assignment period,
The target direct broadcasting room is then given to carry out a token distribution;
If the time interval is more than or equal to twice of the token assignment period, carried out to the target direct broadcasting room primary
Token distributes, and reissues the token distribution of (T1-T2)/T2 roundings for several times, wherein T1 is the time interval, and T2 is the order
Board assignment period.
4. method as claimed in claim 3, it is characterised in that:
If the token liability information, which characterizes the target direct broadcasting room, token debt, the token reissued is for offsetting
It is in debt.
5. the method as described in claim 1, which is characterized in that
If preset barrage broadcasting frequency is that M items are per second, the token allocation strategy is to distribute 2 tokens per 2/M seconds, and M is
Positive integer;
If the token liability information, which characterizes the target direct broadcasting room, token debt, 1 token in 2 tokens is used
It is in debt in offsetting, another token is for broadcasting barrage.
6. the method as described in claim 1, it is characterised in that:
The user in target live streaming room belongs to N number of barrage group, and N is positive integer;
It is described according to the token information, the status information of the identity information and the target direct broadcasting room of the target user, press
According to preset broadcast strategy, determine whether to broadcast the target barrage, including:According to the token information, the target
The identity information of user, the status information of the target direct broadcasting room and the barrage group information belonging to the target user, according to pre-
If broadcast strategy, determine whether to broadcast the target barrage.
7. method as claimed in claim 6, which is characterized in that described according to the token information, the body of the target user
Barrage group information belonging to part information, the status information of the target direct broadcasting room and the target user, according to preset broadcast
Strategy determines whether to broadcast the target barrage, including:
If the identity information of the target user characterizes the group that the target user belongs to necessary global broadcast, allow to exist
The target live streaming room overall situation broadcasts the target barrage;
If the identity information of the target user characterizes the barrage that the target user sends as high value barrage, and the order
The token debt degree of target direct broadcasting room described in board information representation is serious debt, then allows the mesh belonging to the target user
It marks barrage group and broadcasts the target barrage;
If the identity information of the target user characterizes the barrage that the target user sends as high value barrage, and the order
The token debt degree of target direct broadcasting room described in board information representation is no debt or common debt, then allows to be broadcast live in the target
The room overall situation broadcasts the target barrage;
If the target user be not belonging to it is described must global broadcast group, barrage that the target user sends nor
High value barrage, and it is when being seriously in debt, not allow that the token information, which characterizes the token debt degree of the target direct broadcasting room,
Broadcast the target barrage;
If the target user be not belonging to it is described must global broadcast group, barrage that the target user sends nor
High value barrage, and it is no debt or common debt that the token information, which characterizes the token debt degree of the target direct broadcasting room,
When, allow the target barrage group belonging to the target user to broadcast the target barrage;
If the status information of the target direct broadcasting room characterizes the target direct broadcasting room as prize drawing state, and the token information table
When levying the target direct broadcasting room has token debt, do not allow to broadcast the target barrage;
If the status information of the target direct broadcasting room characterizes the target direct broadcasting room as prize drawing state, and the token information table
When levying the target direct broadcasting room has token debt, do not allow to broadcast the target barrage;
If the status information of the target direct broadcasting room characterizes the target direct broadcasting room as prize drawing state, and the token information table
When levying the target direct broadcasting room and being in debt without token, the target barrage group belonging to the target user is allowed to broadcast the target bullet
Curtain.
8. a kind of barrage limits device, which is characterized in that described device is direct broadcast server, including:
Receiving unit, for receiving barrage request of the target user in target direct broadcasting room transmission target barrage;
Acquiring unit obtains the current token information of the target direct broadcasting room, the current order for being asked based on the barrage
Board information includes:The existing token quantity of target direct broadcasting room or the current token liability information of the target direct broadcasting room;Its
In, the direct broadcast server distributes token according to preset token allocation strategy to the target direct broadcasting room;One token
Corresponding barrage broadcast;
Judging unit, for according to the current token information, the identity information of the target user and the target direct broadcasting room
Status information determine whether to broadcast the target barrage according to preset broadcast strategy;
If radio unit broadcasts the target barrage, and the target is broadcast live for allowing to broadcast the target barrage
Between token quantity subtract one, and update the token quantity.
9. a kind of direct broadcast server, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor realizes claim 1-7 any methods when executing described program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Claim 1-7 any methods are realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810266389.2A CN108449606B (en) | 2018-03-28 | 2018-03-28 | Barrage limiting method, device, server and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810266389.2A CN108449606B (en) | 2018-03-28 | 2018-03-28 | Barrage limiting method, device, server and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108449606A true CN108449606A (en) | 2018-08-24 |
CN108449606B CN108449606B (en) | 2020-08-04 |
Family
ID=63197126
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810266389.2A Active CN108449606B (en) | 2018-03-28 | 2018-03-28 | Barrage limiting method, device, server and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108449606B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110536159A (en) * | 2019-08-29 | 2019-12-03 | 广州虎牙科技有限公司 | User classification method, device, computer equipment and storage medium |
CN110944236A (en) * | 2019-11-29 | 2020-03-31 | 维沃移动通信有限公司 | Group creation method and electronic device |
CN111770351A (en) * | 2020-06-23 | 2020-10-13 | 北京字节跳动网络技术有限公司 | Live broadcast message display method and device |
CN113163236A (en) * | 2020-01-22 | 2021-07-23 | 武汉瓯越网视有限公司 | Data transmission method, device, equipment and storage medium based on frequency control |
CN113596587A (en) * | 2021-07-28 | 2021-11-02 | 腾讯科技(深圳)有限公司 | Bullet screen implementation method and device, electronic equipment and readable medium |
CN113965519A (en) * | 2021-09-06 | 2022-01-21 | 阿里巴巴(中国)有限公司 | Flow control method, cluster resource guarantee method, equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004350092A (en) * | 2003-05-23 | 2004-12-09 | Nippon Telegr & Teleph Corp <Ntt> | Video image viewing system, video image reproduction terminal used for the same system, processing method in the video image reproduction terminal, program for executing the processing method, and recording medium with the program recorded |
US8972402B1 (en) * | 2012-05-31 | 2015-03-03 | Google Inc. | Ranking users and posts in social networking services |
CN104602131A (en) * | 2015-02-16 | 2015-05-06 | 腾讯科技(北京)有限公司 | Barrage processing method and system |
CN105721891A (en) * | 2016-03-30 | 2016-06-29 | 宁波元鼎电子科技有限公司 | Method and system for interaction between anchor and audiences in webcast process |
CN105915952A (en) * | 2016-05-13 | 2016-08-31 | 武汉斗鱼网络科技有限公司 | Intelligent bullet screen preservation method and device based on video website |
CN106993234A (en) * | 2017-03-22 | 2017-07-28 | 北京潘达互娱科技有限公司 | Barrage display methods and device |
US20180007442A1 (en) * | 2015-08-20 | 2018-01-04 | Tencent Technology (Shenzhen) Company Limited | Information processing method, terminal and server |
-
2018
- 2018-03-28 CN CN201810266389.2A patent/CN108449606B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004350092A (en) * | 2003-05-23 | 2004-12-09 | Nippon Telegr & Teleph Corp <Ntt> | Video image viewing system, video image reproduction terminal used for the same system, processing method in the video image reproduction terminal, program for executing the processing method, and recording medium with the program recorded |
US8972402B1 (en) * | 2012-05-31 | 2015-03-03 | Google Inc. | Ranking users and posts in social networking services |
CN104602131A (en) * | 2015-02-16 | 2015-05-06 | 腾讯科技(北京)有限公司 | Barrage processing method and system |
US20180007442A1 (en) * | 2015-08-20 | 2018-01-04 | Tencent Technology (Shenzhen) Company Limited | Information processing method, terminal and server |
CN105721891A (en) * | 2016-03-30 | 2016-06-29 | 宁波元鼎电子科技有限公司 | Method and system for interaction between anchor and audiences in webcast process |
CN105915952A (en) * | 2016-05-13 | 2016-08-31 | 武汉斗鱼网络科技有限公司 | Intelligent bullet screen preservation method and device based on video website |
CN106993234A (en) * | 2017-03-22 | 2017-07-28 | 北京潘达互娱科技有限公司 | Barrage display methods and device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110536159A (en) * | 2019-08-29 | 2019-12-03 | 广州虎牙科技有限公司 | User classification method, device, computer equipment and storage medium |
CN110944236A (en) * | 2019-11-29 | 2020-03-31 | 维沃移动通信有限公司 | Group creation method and electronic device |
CN110944236B (en) * | 2019-11-29 | 2021-11-30 | 维沃移动通信有限公司 | Group creation method and electronic device |
CN113163236A (en) * | 2020-01-22 | 2021-07-23 | 武汉瓯越网视有限公司 | Data transmission method, device, equipment and storage medium based on frequency control |
CN111770351A (en) * | 2020-06-23 | 2020-10-13 | 北京字节跳动网络技术有限公司 | Live broadcast message display method and device |
CN111770351B (en) * | 2020-06-23 | 2022-11-29 | 北京字节跳动网络技术有限公司 | Live broadcast message display method and device |
CN113596587A (en) * | 2021-07-28 | 2021-11-02 | 腾讯科技(深圳)有限公司 | Bullet screen implementation method and device, electronic equipment and readable medium |
CN113596587B (en) * | 2021-07-28 | 2022-06-17 | 腾讯科技(深圳)有限公司 | Bullet screen implementation method and device, electronic equipment and readable medium |
CN113965519A (en) * | 2021-09-06 | 2022-01-21 | 阿里巴巴(中国)有限公司 | Flow control method, cluster resource guarantee method, equipment and storage medium |
CN113965519B (en) * | 2021-09-06 | 2024-01-26 | 阿里巴巴(中国)有限公司 | Flow control and cluster resource guarantee method, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108449606B (en) | 2020-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108449606A (en) | A kind of barrage method for limiting, device, server and medium | |
CN104967607B (en) | A kind of information processing method, terminal and server | |
CN108551585A (en) | A kind of barrage method of calibration, device, server and medium | |
CN109905723B (en) | Anchor recommendation method, server and readable storage medium | |
CN103889523B (en) | User group's device, user group's method and cloud computing system | |
CN105139877B (en) | Connection method, main equipment, control terminal and the system of multimedia play equipment | |
CN104623898B (en) | A kind of method and game server into game transcript scene | |
CN104168271A (en) | Interactive system, server, clients and interactive method | |
CN107483986A (en) | A kind of method and system of gifts | |
CN104537549A (en) | Presentation method and device for virtual currency | |
CN106339896A (en) | Advertisement putting method and system | |
CN108269109A (en) | A kind of Advertisement arrangement injected volume equalization methods and device | |
CN110109746A (en) | A kind of task processing method, device, equipment and medium | |
CN101126991A (en) | Method and system for dispensing game resource for user in network game | |
CN111282262B (en) | Game server communication method and device | |
CN104980417B (en) | A kind of UGC document distribution method and equipment | |
CN107959891A (en) | A kind of live broadcast system | |
CN107147730A (en) | Game scene management method and scene management server | |
CN108471557A (en) | A kind of barrage broadcasting method, device, server and medium | |
CN106454958A (en) | A network resource allocation method and apparatus | |
KR100813680B1 (en) | Method, Server and System for Providing Game Management Right to User in Game Service | |
CN105142124B (en) | A kind of Network Access Method and mobile terminal applied to mobile terminal | |
CN104954488B (en) | A kind of method for network access control, the distribution server and network access system | |
CN109218766A (en) | A kind of method that convening bean vermicelli, live streaming Platform Server and main broadcaster end | |
CN108846654A (en) | The distribution method and device of ideal money |
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 |