The content of the invention
For defect present in prior art, present invention solves the technical problem that being:How according to the use of different quality
Family and direct broadcasting room, distribute different live resources.The present invention not only causes the distribution of live resource to rationalize, and can ensure
The service quality of high-quality user, it is very suitable for promoting.
To achieve the above objectives, live Resource Calculation distribution method provided by the invention, comprises the following steps:
S1:All users are divided into some groups of user's groups by service end according to the user behavior information of all users;Service end
According to the direct broadcasting room behavioural information of all direct broadcasting rooms, all direct broadcasting rooms are divided at least 3 class direct broadcasting room classes, go to S2;
S2:Live resource of the service end according to used in the user in user's group A watches direct broadcasting room class B, calculates live resource
Utilization rate S, S=N/T, N represent the number of users that identical live resource is used in user's group A, and T is represented in user's group A and watched directly
Broadcast all numbers of users of a class B;By live resources of the live resource utilization S more than the threshold value pre-set, as with
Family group A goes to S3 relative to direct broadcasting room class B live resource;
S3:When service end monitors that user watches direct broadcasting room, user's group according to belonging to active user and currently viewing
Direct broadcasting room belonging to direct broadcasting room class, issue corresponding to live resource to the client belonging to user, go to S4;
S4:Client described in user loads direct broadcasting room interface according to the live resource received.
On the basis of above-mentioned technical proposal, also include below scheme after S2:Service end regularly updates every group of user's group
With every class direct broadcasting room class.
Storage medium provided by the invention, computer program is stored with the storage medium, the computer program is located
Reason device realizes above-mentioned live Resource Calculation distribution method when performing.
Electronic equipment provided by the invention, including memory and processor, store on memory and run on a processor
Computer program, realize above-mentioned live Resource Calculation distribution method during computing device computer program.
Live Resource Calculation distribution system provided by the invention, including the live information packet mould being arranged in service end
Block, live Resource Calculation distribute module and live resource issue module, in addition to the live resource updates being arranged in client
Module;
Live information grouping module is used for:According to the user behavior information of all users, all users are divided into some groups
User's group;According to the direct broadcasting room behavioural information of all direct broadcasting rooms, all direct broadcasting rooms are divided at least 3 class direct broadcasting room classes, to live
Resource Calculation distribute module sends live Resource Calculation distribution signal;
Live Resource Calculation distribute module is used for:After receiving live Resource Calculation distribution signal, according to the use in user's group A
Live resource used in the viewing direct broadcasting room class B of family, calculates live resource utilization S, S=N/T, N, which are represented, uses phase in user's group A
With the number of users of live resource, T represents all numbers of users that direct broadcasting room class B is watched in user's group A;Live resource is used
Live resources of the rate S more than the threshold value pre-set, the live resource as user's group A relative to direct broadcasting room class B;
Live resource issues module and is used for:When monitoring that user watches direct broadcasting room, user's group according to belonging to active user,
And the direct broadcasting room class belonging to currently viewing direct broadcasting room, corresponding live resource is issued to the live money of the affiliated client of user
Source update module;
Live resource updates module is used for:According to the live resource loading direct broadcasting room interface received.
On the basis of above-mentioned technical proposal, the live information grouping module works in live Resource Calculation distribute module
After the completion of, it is additionally operable to:Regularly update every group of user's group and per class direct broadcasting room class.
Compared with prior art, the advantage of the invention is that:
(1) it can be seen from S1 of the present invention to S4, the present invention is directed to different user behavior information, if all users are divided into
Dry different user's group;For different direct broadcasting room behavioural informations, all direct broadcasting rooms are divided into some different direct broadcasting room classes.
On the basis of this, the present invention can be according to the direct broadcasting room classification of user's viewing under user's group, for the corresponding live money of user's distribution
Source;Realized with this and distribute different live resources for the user of different quality, not only cause the distribution of live resource to rationalize,
And the service quality of high-quality user can be ensured.
Further, the present invention is made by the algorithm of independent research before the user in user's group is watched into certain class direct broadcasting room
Used most live resource, the live resource as the user's group relative to the direct broadcasting room class, the distribution of live resource is more
Precisely, user's expectation is also more met.
(2) after the present invention divides user and direct broadcasting room, every group of user's group can also be regularly updated and per class direct broadcasting room class, to protect
User under card user's group and the direct broadcasting room under direct broadcasting room class meet expection, and then improve the accurate of live resource allocation
Degree.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
It is shown in Figure 1, the live Resource Calculation distribution method in the embodiment of the present invention, comprise the following steps:
S1:All users are divided into some groups of user's groups by service end according to the user behavior information of all users;Service end
According to the direct broadcasting room behavioural information of all direct broadcasting rooms, all direct broadcasting rooms are divided at least 3 class direct broadcasting room classes, go to S2.
User behavior information in S1 includes:ID, user send barrage quantity, user's gifts quantity and user
Supplement amount with money;Some groups of user's groups in S1 include:1 group of non-registered users group and at least 3 groups enliven behavior class user
Group.User behavior information corresponding to non-registered users group includes ID for sky;Enliven user corresponding to behavior class user group
It is not sky that behavioural information, which includes ID, and user sends barrage quantity more than a (such as 3~10 barrages), and user gives gift
For thing quantity more than b (such as 0~3), user supplements amount with money more than c (such as 0~10 yuan).
At least 3 groups are enlivened behavior class user group and included:Primary enlivens behavior user's group, middle rank enlivens behavior user's group and
It is advanced to enliven behavior user's group.Primary enliven behavior user's group corresponding to user profile be:ID is not sky, and user sends bullet
Curtain quantity in more than a and be less than a1, user's gifts quantity is in more than b and is less than b1, user supplement with money amount more than c,
And it is less than c1;Middle rank enliven behavior user's group corresponding to user profile be:ID is not sky, and user sends barrage quantity in a1
Above and it is less than a2, user's gifts quantity is in more than b1 and is less than b2, and user supplements amount with money in more than c1 and is less than
c2;It is advanced enliven behavior user's group corresponding to user profile be:ID is not sky, and user sends barrage quantity in more than a2,
For user's gifts quantity in more than b2, user supplements amount with money in more than c2;A < a1 < a2, b < b1 < b2, c < c1 < c2.
It is by the purpose of user grouping:By all users according to different user behavior information classifications, and then cause difference
User's group correspond to the user of different quality, directly can subsequently be distributed according to the user for being grouped into different quality different straight
Broadcast resource.
Direct broadcasting room behavioural information in S1 includes:The viewing of direct broadcasting room history number, direct broadcasting room history receive barrage quantity, with
And direct broadcasting room history receives present quantity, direct broadcasting room behavioural information corresponding to the direct broadcasting room class in S1 is:Direct broadcasting room history is watched
Number is more than d (such as 1000~3000 people), direct broadcasting room history receives barrage quantity in more than e (such as 2000~5000
Bar), direct broadcasting room history receive present quantity more than f (such as 200~1000).
At least 3 class direct broadcasting room classes include:Primary direct broadcasting room class, intermediate direct broadcasting room class and advanced direct broadcasting room class, it is primary live
Between direct broadcasting room behavioural information corresponding to class be:Direct broadcasting room history viewing number in more than d and is less than d1, and direct broadcasting room history receives
Barrage quantity is in more than e and is less than e1, and direct broadcasting room history receives present quantity in more than f and is less than f1;Intermediate direct broadcasting room class
Corresponding direct broadcasting room behavioural information is:Direct broadcasting room history viewing number in more than d1 and is less than d2, and direct broadcasting room history receives barrage
Quantity is in more than e1 and is less than e2, and direct broadcasting room history receives present quantity in more than f1 and is less than f2;Advanced direct broadcasting room class pair
The direct broadcasting room behavioural information answered is:Direct broadcasting room history watch number more than d2, direct broadcasting room history receive barrage quantity e2 with
Upper, direct broadcasting room history receives present quantity in more than f2, d < d1 < d2, e < e1 < e2, f < f1 < f2.
It is by the purpose that direct broadcasting room is classified:All direct broadcasting rooms are classified according to different direct broadcasting room behavioural informations, Jin Erhua
The quality (i.e. hot degree) of direct broadcasting room is separated, subsequently can further become more meticulous the live resource of distribution with reference to different user groups.
S2:Live resource of the service end according to used in the user in user's group A watches direct broadcasting room class B, calculates live resource
Utilization rate S, S=N/T, N represent the number of users that identical live resource is used in user's group A, and T is represented in user's group A and watched directly
Broadcast all numbers of users of a class B;By live resource utilization S more than the threshold value pre-set (being 80% in the present embodiment)
Live resource, the live resource as user's group A relative to direct broadcasting room class B;Go to S3.
User's group A in S2 is to travel through 1 group of user's group in all user's groups, and direct broadcasting room class B is all direct broadcasting rooms of traversal
1 class direct broadcasting room class in class, i.e., user's group used is relative to the live resource of every class direct broadcasting room class by being calculated.
Also include below scheme after S2:Service end regularly updates every group of user's group and per class direct broadcasting room class, update mode
Can be actively renewal or periodically automatically update (such as user's group name and direct broadcasting room class mark on increase timestamp,
The period of validity of setting is downgraded to next stage group name automatically after arriving, and after user produces new behavior, the mark can be in new system
Refresh when counting the cycle), to ensure that the user under user's group and the direct broadcasting room under direct broadcasting room class meet expection, improve live
The accuracy of resource allocation.
S3:When service end monitors that user watches direct broadcasting room, user's group according to belonging to active user and currently viewing
Direct broadcasting room belonging to direct broadcasting room class, issue corresponding to live resource to the client belonging to user, go to S4.
S4:Client described in user loads direct broadcasting room interface according to the live resource received.
It can be seen from S1 to S4, the embodiment of the present invention is directed to different user behavior information, all users is divided into some
Different user's groups;For different direct broadcasting room behavioural informations, all direct broadcasting rooms are divided into some different direct broadcasting room classes.Herein
On the basis of, the embodiment of the present invention can be corresponding straight for user's distribution according to the direct broadcasting room classification of user's viewing under user's group
Broadcast resource;Realized with this and distribute different live resources for the user of different quality, not only cause the distribution of live resource to close
Physics and chemistry, and the service quality of high-quality user can be ensured.
The embodiment of the present invention also provides a kind of storage medium, and computer program, computer program are stored with storage medium
Above-mentioned live Resource Calculation distribution method is realized when being executed by processor.It should be noted that the storage medium include USB flash disk,
Mobile hard disk, ROM (Read-Only Memory, read-only storage), RAM (deposit by Random Access Memory, arbitrary access
Reservoir), magnetic disc or CD etc. are various can be with the medium of store program codes.
Shown in Figure 2, the embodiment of the present invention also provides a kind of electronic equipment, including memory and processor, memory
On store the computer program run on a processor, realize above-mentioned live Resource Calculation during computing device computer program
Distribution method.
Live Resource Calculation distribution system in the embodiment of the present invention, including the live information packet being arranged in service end
Module, live Resource Calculation distribute module and live resource issue module, in addition to the live resource being arranged in client is more
New module.
Live information grouping module is used for:According to the user behavior information of all users, all users are divided into some groups
User's group;According to the direct broadcasting room behavioural information of all direct broadcasting rooms, all direct broadcasting rooms are divided at least 3 class direct broadcasting room classes, to live
Resource Calculation distribute module sends live Resource Calculation distribution signal;After the completion of the work of live Resource Calculation distribute module, also
For:Regularly update every group of user's group and per class direct broadcasting room class.
User behavior information in live information grouping module includes:ID, user send barrage quantity, user gives
Present quantity and user supplement amount with money;Some groups of user's groups include:1 group of non-registered users group and at least 3 groups enliven row
For class user group;User behavior information corresponding to non-registered users group includes ID for sky;Enliven behavior class user group
It is not sky that corresponding user behavior information, which includes ID, and user sends barrage quantity and existed in more than a, user's gifts quantity
More than b, user supplement amount with money in more than c.
At least 3 groups are enlivened behavior class user group and included:Primary enlivens behavior user's group, middle rank enlivens behavior user's group and
It is advanced to enliven behavior user's group;Primary enliven behavior user's group corresponding to user profile be:ID is not sky, and user sends bullet
Curtain quantity in more than a and be less than a1, user's gifts quantity is in more than b and is less than b1, user supplement with money amount more than c,
And it is less than c1;Middle rank enliven behavior user's group corresponding to user profile be:ID is not sky, and user sends barrage quantity in a1
Above and it is less than a2, user's gifts quantity is in more than b1 and is less than b2, and user supplements amount with money in more than c1 and is less than
c2;It is advanced enliven behavior user's group corresponding to user profile be:ID is not sky, and user sends barrage quantity in more than a2,
For user's gifts quantity in more than b2, user supplements amount with money in more than c2;A < a1 < a2, b < b1 < b2, c < c1 < c2.
Direct broadcasting room behavioural information in live information grouping module includes:Direct broadcasting room history viewing number, direct broadcasting room history
Receive barrage quantity and direct broadcasting room history receives present quantity, direct broadcasting room behavioural information corresponding to direct broadcasting room class described in per class
It is:Direct broadcasting room history viewing number receives barrage quantity in more than d, direct broadcasting room history and receives gift in more than e, direct broadcasting room history
Thing quantity is in more than f.
At least 3 class direct broadcasting room classes include:Primary direct broadcasting room class, intermediate direct broadcasting room class and advanced direct broadcasting room class, it is primary live
Between direct broadcasting room behavioural information corresponding to class be:Direct broadcasting room history viewing number in more than d and is less than d1, and direct broadcasting room history receives
Barrage quantity is in more than e and is less than e1, and direct broadcasting room history receives present quantity in more than f and is less than f1;Intermediate direct broadcasting room class
Corresponding direct broadcasting room behavioural information is:Direct broadcasting room history viewing number in more than d1 and is less than d2, and direct broadcasting room history receives barrage
Quantity is in more than e1 and is less than e2, and direct broadcasting room history receives present quantity in more than f1 and is less than f2;Advanced direct broadcasting room class pair
The direct broadcasting room behavioural information answered is:Direct broadcasting room history watch number more than d2, direct broadcasting room history receive barrage quantity e2 with
Upper, direct broadcasting room history receives present quantity in more than f2;D < d1 < d2, e < e1 < e2, f < f1 < f2.
Live Resource Calculation distribute module is used for:After receiving live Resource Calculation distribution signal, according to the use in user's group A
Live resource used in the viewing direct broadcasting room class B of family, calculates live resource utilization S, S=N/T, N, which are represented, uses phase in user's group A
With the number of users of live resource, T represents all numbers of users that direct broadcasting room class B is watched in user's group A;Live resource is used
Live resources of the rate S more than the threshold value pre-set, the live resource as user's group A relative to direct broadcasting room class B.
Live resource issues module and is used for:When monitoring that user watches direct broadcasting room, user's group according to belonging to active user,
And the direct broadcasting room class belonging to currently viewing direct broadcasting room, corresponding live resource is issued to the live money of the affiliated client of user
Source update module.
Live resource updates module is used for:According to the live resource loading direct broadcasting room interface received.
It should be noted that:System provided in an embodiment of the present invention is when carrying out intermodule communication, only with above-mentioned each function
The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application
Block is completed, i.e., the internal structure of system is divided into different functional modules, to complete all or part of work(described above
Energy.
Further, the present invention is not limited to the above-described embodiments, for those skilled in the art,
Without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as the present invention
Protection domain within.The content not being described in detail in this specification belongs to existing skill known to professional and technical personnel in the field
Art.