CN110213628B - Live broadcast room distribution method and server - Google Patents

Live broadcast room distribution method and server Download PDF

Info

Publication number
CN110213628B
CN110213628B CN201810458124.2A CN201810458124A CN110213628B CN 110213628 B CN110213628 B CN 110213628B CN 201810458124 A CN201810458124 A CN 201810458124A CN 110213628 B CN110213628 B CN 110213628B
Authority
CN
China
Prior art keywords
live broadcast
audio
broadcast room
video acquisition
room
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.)
Active
Application number
CN201810458124.2A
Other languages
Chinese (zh)
Other versions
CN110213628A (en
Inventor
温凯
刘光林
衡阵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810458124.2A priority Critical patent/CN110213628B/en
Publication of CN110213628A publication Critical patent/CN110213628A/en
Application granted granted Critical
Publication of CN110213628B publication Critical patent/CN110213628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Abstract

The embodiment of the invention discloses a live broadcast room distribution method, which comprises the following steps: receiving a live broadcast request sent by an audio and video acquisition end, confirming the created live broadcast room with the attribute parameters meeting the preset conditions as an allocable live broadcast room, and allocating the live broadcast room for the audio and video acquisition end from the allocable live broadcast room according to a preset allocation rule. The embodiment of the invention also discloses a server which can improve the efficiency of distributing the resources of the live broadcast room.

Description

Live broadcast room distribution method and server
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a live broadcast room distribution method and a server.
Background
When the live broadcast room is distributed, at a specific moment, the resources of the live broadcast room show the only dependency on resource users, namely, the resources of a certain live broadcast room can only serve a certain specific resource user at a specific moment, and the existing live broadcast room distribution algorithm has obvious defects, namely, the resources of the existing live broadcast room are static and cannot be dynamically distributed, the utilization efficiency is low, the risk of resource pool exhaustion of the live broadcast room exists, and the capacity of live broadcast room resource products is a hidden limitation.
In the existing live broadcast room distribution technology, the distribution logic of the live broadcast room manually distributes a certain number of live broadcast rooms for the system in advance for users to use, and the users can enter the live broadcast room in a certain mode to use the resources of the live broadcast room.
The above technique requires a certain number of live rooms to be allocated in advance, but still requires manual intervention, and is inefficient.
Disclosure of Invention
The invention provides a live broadcast room distribution method and a server, which can solve the problem of low distribution efficiency caused by manual intervention distribution when live broadcast room distribution is carried out.
A first aspect of an embodiment of the present invention provides a live broadcast room allocation method, including:
receiving a live broadcast request sent by an audio and video acquisition end;
confirming the created live broadcast room with the attribute parameters meeting preset conditions as an allocable live broadcast room according to the live broadcast request;
and according to a preset distribution rule, distributing a live broadcast room for the audio and video acquisition end from the distributable live broadcast room.
A server provided in a second aspect of the embodiments of the present invention includes:
the receiving module is used for receiving a live broadcast request sent by an audio and video acquisition end;
the confirming module is used for confirming the established live broadcast room with the attribute parameters meeting the preset conditions as an allocable live broadcast room according to the live broadcast request;
and the distribution module is used for distributing the live broadcast rooms to the audio and video acquisition ends from the distributable live broadcast rooms according to a preset distribution rule.
As can be seen from the foregoing embodiments of the present invention, in the live broadcast room allocation method and the server provided by the present invention, when a live broadcast request sent by an audio/video acquisition end is received, the server confirms a created live broadcast room whose attribute parameters meet preset conditions as an allocable live broadcast room, and allocates a live broadcast room for the audio/video acquisition end from the allocable live broadcast room according to a preset allocation rule, so that resources of the allocated live broadcast room can be utilized more reasonably, allocation is automatically completed intelligently, labor cost is reduced, and allocation efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic view of an application scenario of a live broadcast room allocation method in an embodiment of the present invention;
fig. 2 is a schematic flow chart of a live broadcast room allocation method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an interface for creating a live view according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a live broadcast room allocation method according to another embodiment of the present invention;
fig. 5 is a schematic interface diagram for prompting an audio/video acquisition end currently waiting for allocation to wait for allocation of a live broadcast room in the embodiment of the present invention;
fig. 6 is a schematic interface diagram of an audio/video acquisition end displaying a preset allocation rule in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to another embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the following application scenarios of the embodiments of the present invention, a server allocates a live broadcast room to a terminal. As shown in fig. 1, the server 10 includes a resource pool module 11, a resource allocation module 12, and a resource reclamation module 13. The server 10 and the terminal 20 are connected through a network, the live broadcast APP is built in the terminal 20, and when a live broadcast room allocation request sent by the live broadcast APP running in the terminal 20 is received, or when it is acquired that the usage situation of the live broadcast APP in the live broadcast APP running in the terminal 20 changes, the server 10 allocates the live broadcast room according to the live broadcast room allocation method provided by this embodiment. The server 10 is a server or a server cluster; the terminal 20 includes a pc (personal computer), a mobile phone, a tablet computer, and other terminals having an audio/video acquisition function, and the terminal 20 may also have an audio/video playing function.
The built-in live type APP that has in the terminal side, this live type APP provide live platform, and the user can log in this live platform through the mode of registering to live or watch live with spectator's identity in the identity of anchor, also can watch live with spectator's identity through tourist's identity, do not log in directly. When the anchor broadcasts the live broadcast, the audio/video acquisition end sends the live broadcast data to the server 10, and when the audience watches the live broadcast, the audio/video playing end requests the server 10 for the live broadcast data.
A resource pool module 11 is created in the system of the server 10, and the resource pool module 11 stores all live broadcast room resources in the system, where the live broadcast room resources are live broadcast rooms that can be allocated, and the number of the stored live broadcast rooms may be limited to 32-bit integer numbers or 64-bit integer numbers. The resource pool module 11 is only needed to be created once when the system is initialized, the created resource pool module 11 is responsible for managing the resources of the live broadcast rooms in the system, the allocated resources of the live broadcast rooms can be repeatedly allocated, a priority algorithm is preset in the resource allocation module 12, the priority of the allocable live broadcast rooms is confirmed according to the priority algorithm, and the allocable live broadcast rooms are allocated according to the priority. The resource recovery module 13 is configured to recover the allocated live broadcast room resources, and place the recovered live broadcast room resources in the resource pool module 11 as an allocable live broadcast room to wait for next allocation. The manner of recovering the live broadcast room resources by the resource recovery module 13 includes active recovery and passive recovery, where the active recovery is applicable to a distributed live broadcast room without any user, that is, there is no audio/video acquisition end for pushing data in the live broadcast room, and there is no audio/video playing end for requesting data from the audio/video acquisition end. The passive recovery is suitable for deactivation of the distributed live broadcast room due to loss of contact between the system and the audio and video acquisition end and the audio and video playing end within a preset time length, for example, heartbeat is sent to the server 10 at an interval of 1 minute between the audio and video acquisition end and the audio and video playing end within the live broadcast room, and when no heartbeat is received within 30 minutes, the live broadcast room is considered to be deactivated, and the distributed live broadcast room is forcibly recovered. The passive recovery mode is a supplement to the active recovery mode, and the waste of resources of the distributed live broadcast room under an abnormal condition is avoided.
For a description of a specific technical solution of the live broadcast room allocation method in this embodiment, reference is made to the following embodiments.
Referring to fig. 2, fig. 2 is a schematic flow chart of a live broadcast distribution method according to an embodiment of the present invention, where the method includes:
s101, receiving a live broadcast request sent by an audio and video acquisition end;
and the audio and video acquisition terminal sends a live broadcast request to the server, wherein the live broadcast request is used for requesting the server to distribute a live broadcast room for the audio and video acquisition terminal.
It should be noted that when live broadcasting is performed, a user sends live broadcasting data through the audio and video acquisition end in the identity of a main broadcast, and the user requests the live broadcasting data through the audio and video playing end in the identity of audiences to watch the live broadcasting. Generally, a user carries out live broadcast in the identity of a main broadcast, a live broadcast platform needs to be logged in, and an audio and video acquisition end is bound with the identity of the user; the user watches live broadcast with audience identity, can log in a live broadcast platform, and also can watch live broadcast without logging in with the identity of tourists. The server can set the basis of the priority of the audio and video acquisition end bound with the anchor by collecting the behavior information of the anchor, for example, the behavior information of the anchor such as live broadcast, watching and the like.
Referring to fig. 3, when a user requests the allocation of the live broadcast room of the live broadcast game "who is lying down" on the mobile terminal side in the anchor status, the user may trigger the server to allocate the live broadcast room by clicking "create room" as shown in the interface shown in fig. 3.
S102, confirming the created live broadcast room with the attribute parameters meeting the preset conditions as an allocable live broadcast room according to the live broadcast request;
when the server receives the live broadcast request, the server acquires the attribute parameters of each live broadcast room, wherein the attribute parameters are some parameters capable of defining the attributes of the live broadcast rooms, and comprise live broadcast room state parameters, live broadcast room user parameters, live broadcast room priority and the like.
The live broadcast room state parameter refers to whether a live broadcast room is in a use state currently, for example, whether an audio and video acquisition end which is corresponding to the live broadcast room and pushes live broadcast data to a server exists, if yes, the live broadcast room is in a main broadcast use state, the live broadcast room state parameter can be represented in various forms, and at the moment, the live broadcast use state can be represented; further, whether the corresponding audio and video playing end which requests the server for live data exists in the live broadcast room or not, if yes, the live broadcast room is also in a user using state, and the live broadcast room state parameters can be expressed as being in a main broadcast using state and being in a user using state.
The user parameters of the live broadcast room refer to the user types of the live broadcast room, and the user types can be divided into a main broadcast and audiences, wherein the main broadcast can be divided into a star main broadcast and a common main broadcast, the audiences can be divided into registered audiences and tourists, and the audiences can also be divided into VIP (VIP VeryImportentPerson) audiences and common audiences. Different user types correspond to different parameter values.
The priority of the live broadcast room indicates the distribution priority of the live broadcast room, the distribution priority can be confirmed according to the data volume of the preset type data sent by the audio and video playing end, and the larger the data volume of the preset type data is, the higher the distribution priority is. Specifically, the preset type data may be virtual gift data, that is, data indicating that the audience presents a main broadcast gift, and the more virtual gift data the audio/video playing end sends, the better the main broadcast and audience interaction atmosphere in the live broadcast room is, and a higher distribution priority may be set compared to a live broadcast room that sends less virtual gift data. The preset type data may also be request data for requesting live data, and the more the request data, the more viewers in the live room, and a higher allocation priority may be set compared to a live room transmitting less request data.
The server analyzes and obtains the attribute parameters of each live broadcast room, and confirms the created live broadcast room with the attribute parameters meeting the preset conditions as an allocable live broadcast room. The attribute parameter meets the preset condition that an audio and video acquisition end which sends live data to the server does not exist in the established live broadcast room, further, the attribute parameter meets the preset condition that an audio and video acquisition end which sends the live data to the server does not exist in the established live broadcast room, and an audio and video playing end which requests the live data from the server exists in the live broadcast room. The distribution of the live broadcast rooms can improve the utilization rate of the live broadcast rooms, meanwhile, the distribution of the next anchor is convenient to popularize, meanwhile, the seamless connection of live broadcast can be realized, and the watching experience of audiences is improved.
And S103, distributing the live broadcast rooms for the audio and video acquisition ends from the distributable live broadcast rooms according to a preset distribution rule.
The allocation rule is preset in the system, and the allocation rule may include: and distributing the live broadcast rooms according to the distribution priority of the live broadcast rooms, or distributing the live broadcast rooms according to the distribution priority of the audio and video acquisition ends.
In the embodiment of the invention, when a live broadcast request sent by an audio and video acquisition end is received, the server confirms the created live broadcast room with the attribute parameters meeting the preset conditions as the distributable live broadcast room, and distributes the live broadcast room for the audio and video acquisition end from the distributable live broadcast room according to the preset distribution rule, so that the distributed live broadcast room resources can be more reasonably utilized, the distribution can be intelligently and automatically completed, the labor cost is reduced, and the distribution efficiency is improved.
Referring to fig. 4, fig. 4 is a method for distributing live broadcasts according to another embodiment of the present invention, the method includes:
s201, receiving a live broadcast request sent by an audio and video acquisition end;
when a user directly broadcasts with a main broadcasting identity, a live broadcast request is sent to a server through a terminal with an audio and video acquisition function, namely an audio and video acquisition end, and the live broadcast request is used for requesting the server to distribute a live broadcast room for the audio and video acquisition end.
S202, according to the live broadcast request, confirming that an audio/video acquisition end which pushes live broadcast data to a server does not exist currently and a created live broadcast room of an audio/video playing end which requests the live broadcast data to the server exists as an allocable live broadcast room;
when the server receives the live broadcast request, the server confirms that the audio/video acquisition end which does not currently push the live broadcast data to the server exists in the created live broadcast room of the audio/video playing end which requests the live broadcast data to the server as a distributable live broadcast room, namely, the server confirms that the created live broadcast room which does not have the main broadcast but has audiences in the live broadcast room as the distributable live broadcast room.
Further, it is also possible to confirm that there is no audio/video capture end currently pushing live data to the server, or there is no created live room of the audio/video play end requesting the live data from the server, as a distributable live room, that is, it is confirmed that there is no anchor in the live room, or there is no audience created live room as a distributable live room.
S203, distributing a live broadcast room for the audio and video acquisition terminal from the distributable live broadcast room according to a preset distribution rule;
distributing the live broadcast rooms for the audio and video acquisition ends from the distributable live broadcast rooms according to a preset distribution rule can be specifically as follows:
and confirming the distribution priority of the distributable live broadcast room according to a preset priority algorithm and the attribute parameters of the distributable live broadcast room, wherein the preset priority algorithm is used for calculating the distribution priority of the live broadcast room. And distributing the live broadcast rooms for the audio and video acquisition ends from the distributable live broadcast rooms according to the sequence of the priority from high to low. The priority algorithm is preset in the server, and specifically may be set in the resource allocation module 12, or set in another module of the server, and the resource allocation module 12 invokes the priority algorithm, and determines the allocation priority of the allocable live broadcast room by combining with the attribute parameters of the allocable live broadcast room. The higher the allocation priority, the more preferentially the allocable live room. Conversely, the lower the allocation priority, the later the allocation.
Specifically, weight information of an audio and video playing end in a distributable live broadcast room is obtained, the weight information is information which is sent by the audio and video playing end to a server and can confirm the weight of the audio and video playing end, the proportion of the audio and video playing end with a preset weight type in the audio and video playing end in each distributable live broadcast room is calculated according to the weight information, the distribution priority of the distributable live broadcast room is confirmed according to a preset priority algorithm and the proportion, and the proportion is in direct proportion to the distribution priority of the distributable live broadcast room.
In practical applications, the weight information may specifically be data corresponding to a gift transmitted in a scene where the audience gifts the anchor gift. In an assignable live room, the larger the proportion of viewers giving gifts, the higher the assignment priority of the assignable live room.
For example, in the currently assignable live broadcast room, the number of viewers who add gifts is a, and the number of total viewers in the live broadcast room is b, wherein a is less than or equal to b.
When b >0, the relation among the priority algorithm distributed by the live broadcast room, the occupied proportion and the distribution priority of the distributable live broadcast room is as follows:
the highest priority: a ═ b;
the second priority is: 1- (b-a)/b is more than or equal to 80 percent and less than 100 percent;
third priority: 1- (b-a)/b is more than or equal to 40 percent and less than 80 percent;
the fourth priority: 1- (b-a)/b < 40%;
in the above, the order of the assigned priorities of the highest priority, the second priority, the third priority and the fourth priority is from high to low.
The preset priority algorithm may have a variety of algorithms, and it falls within the scope of the present invention as long as the calculation result is satisfied that the occupied proportion is proportional to the distribution priority of the distributable live broadcast room. The priority algorithm is configured, the distribution of the resources of the live broadcast room can be changed by changing the parameters of the priority algorithm, the dynamic distribution of the resources of the live broadcast room is realized, and the flexibility of the server for distributing the resources of the live broadcast room is improved.
When only one audio and video acquisition end sends a live broadcast request to the server, the audio and video acquisition end with the highest priority in the distributable live broadcast room is distributed to the server as the live broadcast room.
When a plurality of audio and video acquisition ends send live broadcast requests to a server, distributing the priorities in the distributable live broadcast rooms to the audio and video acquisition ends as the live broadcast rooms from high to low according to the time sequence of sending the live broadcast requests. Further, if can divideAnd if the number of the live broadcast distribution rooms is smaller than that of the audio and video acquisition ends sending the live broadcast requests, prompting the audio and video acquisition ends which are not distributed to the live broadcast rooms to wait for distribution and prompting the waiting time. Wherein, the waiting time is the waiting of all the audio and video acquisition ends waiting to be distributed according to the current audio and video acquisition end waiting to be distributedSequence positionAnd the live broadcast ending time of each live broadcast room in live broadcast, namely, the waiting sequence positions of the current audio and video acquisition ends waiting to be distributed in all the audio and video acquisition ends waiting to be distributed are obtained, the live broadcast ending time of the live broadcast room with the same ending sequence position as the waiting sequence position is obtained, and the obtained live broadcast ending time is the waiting time which can be distributed to the live broadcast room of the current audio and video acquisition end waiting to be distributed.
An example is as follows: the method comprises the steps of obtaining waiting sequence positions of audio and video acquisition ends waiting to be allocated currently in all audio and video acquisition ends waiting to be allocated, wherein the waiting sequence position is the 5 th position, namely 4 audio and video acquisition ends waiting to be allocated are arranged before the audio and video acquisition ends waiting to be allocated currently, obtaining live broadcasting ending time of a live broadcasting room with the same live broadcasting ending sequence position and the waiting sequence position, namely obtaining live broadcasting ending time of a live broadcasting room with the 5 th position as 2018, 10, 31 and 22 pointing, prompting live broadcasting waiting time allocation of the audio and video acquisition ends waiting to be allocated currently to be 2018, 10, 31 and 22 pointing, or calculating time difference between the current time and the live broadcasting time of the live broadcasting room in 2018, 10, 31 and 22 pointing in a countdown mode to prompt the audio and video acquisition ends waiting to be allocated currently. As shown in fig. 5: and displaying a prompt message of 'no free live broadcast room is allocable at present and please endure waiting' at the center of the display screen of the mobile terminal, and scrolling and displaying a prompt message of 'the time is 10 minutes from the allocable live broadcast room' at the top of the display screen of the mobile terminal.
Further, when an audio and video acquisition end sends live broadcast data in a current live broadcast room, if a historical audio and video acquisition end of the current live broadcast room sends a live broadcast request, other live broadcast rooms are allocated to the historical audio and video acquisition end, and prompt information is sent in the current live broadcast room, wherein the prompt information comprises information of the live broadcast room in which the historical audio and video acquisition end is located. That is, the anchor a performs live broadcasting in the current live broadcasting room 1, and if the anchor B of the former anchor of the current live broadcasting room 1 transmits a live broadcasting request, another live broadcasting room 2 is additionally allocated to the anchor B, and the prompt information is played in the current live broadcasting room 1 to prompt the audience in the current live broadcasting room 1: the B anchor carries out live broadcast in the live broadcast room 2, so that more choices can be provided for audiences, and the retention rate of the audience of the anchor is improved.
According to a preset allocation rule, allocating a live broadcast room for the audio and video acquisition end from the allocable live broadcast room can be specifically as follows:
and distributing all distributable live broadcast rooms according to the sequence of the distribution priority of the audio and video acquisition end from high to low. And the audio and video acquisition end also sets distribution priority, and the audio and video acquisition end with higher distribution priority is preferentially distributed to the live broadcast room. The distribution priority of the audio and video acquisition end can be confirmed according to the login state of the audio and video acquisition end, the acquired data content, the data volume of the preset type of data sent by the audio and video playing end obtained in live broadcasting and the like, specifically, the login state of the audio and video acquisition end comprises login duration, login times, login frequency and the like, the distribution priority of the audio and video acquisition end is higher when the login duration is longer, the login times are more or the login frequency is higher, or the distribution priority of the audio and video acquisition end is higher when the login duration is longer, the login times are more and the login frequency is higher. The less the content violating laws, regulations and public order customs in the data content collected by the audio and video collection end, the higher the distribution priority of the audio and video collection end. The larger the data volume of the preset type data sent by the audio and video playing end obtained in live broadcasting is, the higher the distribution priority of the audio and video acquisition end is, and at the moment, the more audiences watch the live broadcasting of the anchor, or the more audiences give gifts to the anchor.
The two types of allocation modes are allocated according to the preset allocation rule, and the allocation mode of allocating the live broadcast rooms for the audio and video acquisition ends in the allocable live broadcast rooms avoids the one-to-one binding limitation of the live broadcast rooms and the anchor broadcasts, and improves the allocation flexibility.
Further, as shown in fig. 6, the server pushes the preset allocation rule to a terminal with an audio/video capture end inside, and the terminal displays the preset allocation rule on an interface of the audio/video capture end for creating a live broadcast.
If the distributable live broadcast room is determined to have no corresponding priority according to the preset priority algorithm and the distributable live broadcast room does not meet the condition of preferential distribution, dividing the live broadcast room from the distributable live broadcast room pool as the distributable live broadcast room; or, the current audio and video acquisition end does not preset the distribution priority, which also indicates that the distributable live broadcast room does not meet the condition of preferential distribution, and divides the live broadcast room from the distributable live broadcast room pool as the distributable live broadcast room.
And S204, recovering the distributed live broadcast room resources into a distributable live broadcast room.
The recovery of the allocated live broadcast room resources comprises the following two ways:
an active recovery mode: and recovering the created live broadcast room without an audio and video acquisition end for sending live broadcast data to the server and an audio and video playing end for requesting the live broadcast data from the server, wherein the created live broadcast room is used as a distributable live broadcast room. That is, live rooms without a main broadcast and without viewers are collected as distributable live rooms.
Passive recovery mode: and information of a preset type is sent by an audio and video acquisition end and an audio and video playing end of the distributed live broadcast room, the information of the preset type is information which can confirm to keep contact, and the information of the preset type is not received in a preset time length, so that the distributed live broadcast room is recycled as the distributable live broadcast room. The passive recovery mode is used as a supplementary recovery mode of the active recovery mode, so that the omission possibility of the distributable live broadcast room can be reduced, and the distribution stability of the live broadcast room is improved.
For example, after the anchor and the viewer enter the live room, heartbeat information, which may reflect whether the user is online, is sent to the system periodically or aperiodically. The preset time is 30 minutes, heartbeat information of any user entering the live broadcast room is not received within 30 minutes, the live broadcast room is inactivated, and the live broadcast room is recovered to be a distributable live broadcast room.
For another example: after the anchor and the audience enter the live broadcast room, the information can be specifically speaking information or gift sending information, and the speaking information or the gift sending information can reflect whether the user is online or not. Because the speaking information or the gift giving information does not reflect the accuracy of whether the user is on line or not as much as the heartbeat information, the setting of the preset duration can be prolonged, and the reflecting accuracy of the speaking information or the gift giving information can be improved. For example, if the preset time is 40 minutes, and speech information or gift information of any user entering the live broadcast room is not received within 40 minutes, which indicates that the live broadcast room is inactivated, the live broadcast room is recovered as an allocable live broadcast room.
In the embodiment of the invention, when a live broadcast request sent by an audio and video acquisition end is received, the server confirms the created live broadcast room with the attribute parameters meeting the preset conditions as the distributable live broadcast room, and distributes the live broadcast room for the audio and video acquisition end from the distributable live broadcast room according to the preset distribution rule, so that the distributed live broadcast room resources can be more reasonably utilized, the distribution can be intelligently and automatically completed, the labor cost is reduced, and the distribution efficiency is improved. And the established live broadcast rooms are preferentially distributed, the resources of the live broadcast rooms in the resource pool module are not involved, and the resource exhaustion risk of the resource pool module is reduced, so that the proportion of the distributed live broadcast rooms in the resource pool module in the resources is not required to be continuously monitored, and the monitoring cost is reduced.
Referring to fig. 7, fig. 7 is a server according to an embodiment of the present invention, where the server includes: a receiving module 701, a confirming module 702 and a distributing module 703;
the receiving module 701 is used for receiving a live broadcast request sent by an audio and video acquisition end;
a confirming module 702, configured to confirm, according to the live broadcast request, the created live broadcast room whose attribute parameters meet preset conditions as an allocable live broadcast room;
and the distribution module 703 is configured to distribute a live broadcast room for the audio/video acquisition end from the distributable live broadcast room according to a preset distribution rule.
For details of the undescribed technology in the embodiment of the present invention, reference is made to the embodiments shown in fig. 2 and fig. 4, which are not described herein again.
In the embodiment of the invention, when a live broadcast request sent by an audio and video acquisition end is received, the server confirms the created live broadcast room with the attribute parameters meeting the preset conditions as the distributable live broadcast room, and distributes the live broadcast room for the audio and video acquisition end from the distributable live broadcast room according to the preset distribution rule, so that the distributed live broadcast room resources can be more reasonably utilized, the distribution can be intelligently and automatically completed, the labor cost is reduced, and the distribution efficiency is improved.
Referring to fig. 8, fig. 8 is a server according to another embodiment of the present invention, which is different from the server according to the embodiment shown in fig. 7 in that:
the allocating module 703 is further configured to determine, according to the live broadcast request, that there is no established live broadcast room of the audio/video acquisition end that sends live broadcast data to the server currently, as an allocable live broadcast room;
the allocation module 703 is further configured to determine, according to the live broadcast request, that there is no audio/video capture end that sends live broadcast data to the server currently and there is a live broadcast room created by the audio/video play end that requests the live broadcast data from the server, and that the live broadcast room is allocatable.
Further, the allocating module 703 includes:
a confirming submodule 7031, configured to confirm the distribution priority of the distributable live broadcast room according to a preset priority algorithm and the attribute parameter of the distributable live broadcast room;
the distributing submodule 7032 is configured to distribute a live broadcast room for the audio and video acquisition end from the distributable live broadcast room according to the order from high priority to low priority;
the distributing submodule 7032 is further configured to distribute live broadcast rooms to the audio and video capture ends from the distributable live broadcast rooms according to the sequence that the distribution priority of the audio and video capture ends is from high to low.
The distribution module 703 is specifically configured to obtain weight information of an audio/video playing end in the distributable live broadcast room; calculating the proportion of the audio and video playing ends with preset weight types in the audio and video playing ends in each distributable live broadcast room according to the weight information; confirming the priority of the distributable live broadcast room according to the preset priority algorithm and the occupied proportion; wherein the occupation proportion is in proportion to the priority of the distributable live broadcast room.
Further, the server further comprises:
the calculation module 801 is configured to, if the number of assignable live broadcast rooms is smaller than the number of audio and video acquisition ends sending live broadcast requests, obtain a waiting time according to waiting orders of the audio and video acquisition ends currently waiting for assignment in all the audio and video acquisition ends waiting for assignment and live broadcast end times of live broadcast rooms in live broadcast;
the prompting module 802 is used for prompting an audio and video acquisition end which is not allocated to a live broadcast room to wait for allocation and prompting the waiting time;
the pushing module 803 is configured to push the preset allocation rule to the audio/video acquisition end, where the preset allocation rule is displayed on an interface of the audio/video acquisition end that creates a live broadcast room.
The allocating module 703 is further configured to, when there is an audio/video acquisition end in the current live broadcast room to send live broadcast data, allocate another live broadcast room to the historical audio/video acquisition end if the historical audio/video acquisition end in the current live broadcast room sends a live broadcast request, and send prompt information in the current live broadcast room, where the prompt information includes information of the live broadcast room in which the historical audio/video acquisition end is located.
The allocating module 703 is further configured to, if it is determined that there is no corresponding priority in the distributable live broadcast room according to the preset priority algorithm, or the current audio/video acquisition end does not preset the distribution priority, divide the live broadcast room from a pre-created live broadcast room resource pool as the distributable live broadcast room.
For details of the undescribed technology in the embodiments of the present invention, reference is made to the embodiments shown in fig. 2, fig. 4, and fig. 7, which are not described herein again.
In the embodiment of the invention, when a live broadcast request sent by an audio and video acquisition end is received, the server confirms the created live broadcast room with the attribute parameters meeting the preset conditions as the distributable live broadcast room, and distributes the live broadcast room for the audio and video acquisition end from the distributable live broadcast room according to the preset distribution rule, so that the distributed live broadcast room resources can be more reasonably utilized, the distribution can be intelligently and automatically completed, the labor cost is reduced, and the distribution efficiency is improved. And the established live broadcast rooms are preferentially distributed, the resources of the live broadcast rooms in the resource pool module are not involved, and the resource exhaustion risk of the resource pool module is reduced, so that the proportion of the distributed live broadcast rooms in the resource pool module in the resources is not required to be continuously monitored, and the monitoring cost is reduced.
In the embodiments provided in the present application, it should be understood that the disclosed method and server may be implemented in other ways. For example, the above-described embodiments of the server are merely illustrative, and for example, the division of the modules is only one logical division, and the actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication link may be an indirect coupling or communication link of some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required of the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the above description, for those skilled in the art, there are variations on the embodiments and the application ranges according to the ideas of the present invention, and in summary, the content of the present specification should not be construed as limiting the present invention.

Claims (13)

1. A live broadcast room distribution method is applied to a server and is characterized by comprising the following steps:
receiving a live broadcast request sent by an audio and video acquisition end;
confirming the created live broadcast room with the attribute parameters meeting preset conditions as an allocable live broadcast room according to the live broadcast request;
according to a preset distribution rule, distributing a live broadcast room for the audio and video acquisition end from the distributable live broadcast room, and the method comprises the following steps: according to a preset priority algorithm and attribute parameters of the distributable live broadcast rooms, confirming distribution priorities of the distributable live broadcast rooms, and distributing the live broadcast rooms for the audio and video acquisition ends from the distributable live broadcast rooms according to the sequence of the priorities from high to low;
the step of confirming the created live broadcast room with the attribute parameters meeting the preset conditions as an allocable live broadcast room according to the live broadcast request comprises the following steps:
and according to the live broadcast request, confirming that the established live broadcast room of the audio and video acquisition terminal which does not send live broadcast data to the server currently exists as an allocable live broadcast room.
2. The method as claimed in claim 1, wherein the confirming the created live broadcast room with attribute parameters meeting preset conditions as allocable live broadcast room according to the live broadcast request comprises:
and according to the live broadcast request, confirming that the audio/video acquisition end which sends live broadcast data to the server does not exist currently and a created live broadcast room of the audio/video playing end which requests the live broadcast data from the server exists as an allocable live broadcast room.
3. The method according to claim 1, wherein the allocating live broadcast rooms for the audio and video acquisition ends from the allocable live broadcast rooms according to preset allocation rules comprises:
and according to the sequence of the distribution priority of the audio and video acquisition ends from high to low, distributing live broadcast rooms for the audio and video acquisition ends from the distributable live broadcast rooms.
4. The method according to claim 1, wherein the confirming the distribution priority of the distributable live broadcast room according to a preset priority algorithm and the attribute parameter of the distributable live broadcast room comprises:
acquiring weight information of an audio and video playing end in the distributable live broadcast room;
calculating the proportion of the audio and video playing ends with preset weight types in the audio and video playing ends in each distributable live broadcast room according to the weight information;
confirming the priority of the distributable live broadcast room according to the preset priority algorithm and the occupied proportion;
wherein the occupation proportion is in direct proportion to the priority of the distributable live broadcast room.
5. The method according to claim 3, characterized in that if the number of assignable live broadcast rooms is less than the number of audio/video acquisition ends sending live broadcast requests, the waiting time is obtained according to the waiting sequence positions of the audio/video acquisition ends currently waiting for assignment in all the audio/video acquisition ends waiting for assignment and the live broadcast ending time of each live broadcast room in the live broadcast, and the audio/video acquisition ends which are not assigned to the live broadcast rooms are prompted to wait for assignment and prompt the waiting time.
6. The method according to claim 1, wherein the step of distributing the live broadcast room for the audio and video acquisition end from the distributable live broadcast room according to a preset distribution rule comprises the following steps:
when an audio and video acquisition end sends live broadcast data in a current live broadcast room, if a historical audio and video acquisition end of the current live broadcast room sends a live broadcast request, distributing other live broadcast rooms for the historical audio and video acquisition end, and sending prompt information in the current live broadcast room, wherein the prompt information comprises information of the live broadcast room in which the historical audio and video acquisition end is located.
7. The method according to claim 3, characterized in that if it is determined that the assignable live broadcast room has no corresponding priority according to the preset priority algorithm, or the current audio/video acquisition end does not preset the assignment priority, the live broadcast room is divided from a pre-established live broadcast room resource pool as the assignable live broadcast room.
8. The method according to claim 1, wherein the step of distributing the live broadcast room for the audio and video acquisition end from the distributable live broadcast room according to a preset distribution rule comprises the following steps:
and pushing the preset distribution rule to the audio and video acquisition end, wherein the preset distribution rule is displayed on an interface of a live broadcast room established by the audio and video acquisition end.
9. The method of claim 1, further comprising:
acquiring preset type information sent by an audio and video acquisition end and an audio and video playing end of an allocated live broadcast room;
and if the preset type information is not received in the preset time length, recovering the distributed live broadcast room as a distributable live broadcast room.
10. A server, comprising:
the receiving module is used for receiving a live broadcast request sent by an audio and video acquisition end;
the confirming module is used for confirming the established live broadcast room with the attribute parameters meeting the preset conditions as an allocable live broadcast room according to the live broadcast request;
the distribution module is used for distributing the live broadcast rooms to the audio and video acquisition ends from the distributable live broadcast rooms according to preset distribution rules;
the confirmation module is further used for confirming that the established live broadcast room of the audio and video acquisition end which does not send live broadcast data to the server currently exists as an allocable live broadcast room according to the live broadcast request;
the distribution module includes:
the confirming submodule is used for confirming the distribution priority of the distributable live broadcast room according to a preset priority algorithm and the attribute parameters of the distributable live broadcast room;
and the distribution submodule is used for distributing the live broadcast rooms for the audio and video acquisition ends from the distributable live broadcast rooms according to the sequence of the priority from high to low.
11. The server according to claim 10,
the confirming module is further used for confirming that an audio and video acquisition end which sends live broadcast data to the server does not exist currently and a created live broadcast room of an audio and video playing end which requests the live broadcast data from the server exists as an allocable live broadcast room according to the live broadcast request.
12. The server according to claim 10, wherein the allocation submodule is further configured to allocate live broadcast rooms for the audio and video capture terminals from the allocable live broadcast rooms in an order from a high allocation priority to a low allocation priority of the audio and video capture terminals.
13. The server according to claim 10, further comprising:
the calculation module is used for obtaining waiting time according to waiting sequence positions of the audio and video acquisition ends waiting to be distributed currently in all the audio and video acquisition ends waiting to be distributed and live broadcast ending time of each live broadcast room in the live broadcast process if the number of the distributable live broadcast rooms is smaller than the number of the audio and video acquisition ends sending the live broadcast request;
the prompting module is used for prompting the audio and video acquisition end which is not allocated to the live broadcast room to wait for allocation and prompting the waiting time;
and the pushing module is used for pushing the preset distribution rule to the audio and video acquisition end, and the preset distribution rule is displayed on an interface of a live broadcast room established by the audio and video acquisition end.
CN201810458124.2A 2018-05-14 2018-05-14 Live broadcast room distribution method and server Active CN110213628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810458124.2A CN110213628B (en) 2018-05-14 2018-05-14 Live broadcast room distribution method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810458124.2A CN110213628B (en) 2018-05-14 2018-05-14 Live broadcast room distribution method and server

Publications (2)

Publication Number Publication Date
CN110213628A CN110213628A (en) 2019-09-06
CN110213628B true CN110213628B (en) 2022-02-18

Family

ID=67778850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810458124.2A Active CN110213628B (en) 2018-05-14 2018-05-14 Live broadcast room distribution method and server

Country Status (1)

Country Link
CN (1) CN110213628B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235593B (en) * 2020-10-16 2022-09-30 广州博冠信息科技有限公司 Live broadcast processing method and device, electronic equipment and computer readable storage medium
CN115086689B (en) * 2021-03-15 2024-04-05 阿里巴巴创新公司 Virtual live broadcast management method, electronic equipment and computer storage medium
CN113259704B (en) * 2021-05-19 2023-06-09 杭州米络星科技(集团)有限公司 Live broadcast room initialization method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082281A1 (en) * 2014-11-26 2016-06-02 广州华多网络科技有限公司 Video studio creating method and service device
CN105791443A (en) * 2016-05-13 2016-07-20 武汉斗鱼网络科技有限公司 Distributed cluster-based user service providing system and method applied to live broadcast websites
CN105872640A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Live broadcast video obtaining method, device and system
CN106021478A (en) * 2016-05-19 2016-10-12 武汉斗鱼网络科技有限公司 Method and apparatus for displaying home page direct broadcast room list in optimized manner through direct broadcast website
CN106993200A (en) * 2017-04-18 2017-07-28 腾讯科技(深圳)有限公司 A kind of live broadcasting method of data, relevant device and system
CN107592304A (en) * 2017-08-29 2018-01-16 武汉斗鱼网络科技有限公司 Live Resource Calculation distribution method, storage medium, electronic equipment and system
CN107613309A (en) * 2017-08-29 2018-01-19 武汉斗鱼网络科技有限公司 Live resource self-defined distribution method, storage medium, electronic equipment and system
CN107885578A (en) * 2017-11-13 2018-04-06 新华三云计算技术有限公司 A kind of resources of virtual machine distribution method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992621A (en) * 2005-12-27 2007-07-04 腾讯科技(深圳)有限公司 Method for implementing high capacity network live broadcasting and system thereof
CN103731281B (en) * 2013-12-30 2017-10-20 广州华多网络科技有限公司 Channel treating method and apparatus
KR101667603B1 (en) * 2015-05-06 2016-10-19 경희대학교 산학협력단 Method, system and chatting server for providing chatting by broadcast channel
CN106993204B (en) * 2017-03-29 2020-05-12 武汉斗鱼网络科技有限公司 Video live broadcast management method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082281A1 (en) * 2014-11-26 2016-06-02 广州华多网络科技有限公司 Video studio creating method and service device
CN105872640A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Live broadcast video obtaining method, device and system
CN105791443A (en) * 2016-05-13 2016-07-20 武汉斗鱼网络科技有限公司 Distributed cluster-based user service providing system and method applied to live broadcast websites
CN106021478A (en) * 2016-05-19 2016-10-12 武汉斗鱼网络科技有限公司 Method and apparatus for displaying home page direct broadcast room list in optimized manner through direct broadcast website
CN106993200A (en) * 2017-04-18 2017-07-28 腾讯科技(深圳)有限公司 A kind of live broadcasting method of data, relevant device and system
CN107592304A (en) * 2017-08-29 2018-01-16 武汉斗鱼网络科技有限公司 Live Resource Calculation distribution method, storage medium, electronic equipment and system
CN107613309A (en) * 2017-08-29 2018-01-19 武汉斗鱼网络科技有限公司 Live resource self-defined distribution method, storage medium, electronic equipment and system
CN107885578A (en) * 2017-11-13 2018-04-06 新华三云计算技术有限公司 A kind of resources of virtual machine distribution method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
多媒体互动直播系统的设计与实现;周丹;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160915;全文 *

Also Published As

Publication number Publication date
CN110213628A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN104967607B (en) A kind of information processing method, terminal and server
CN110213628B (en) Live broadcast room distribution method and server
CN111182343B (en) Method and apparatus for playing animation material, storage medium, and electronic apparatus
EP3176995A1 (en) Method, device, server, and system for synchronizing member benefits among multiple devices
CN106331783B (en) A kind of resource allocation methods, device and intelligent television system
CN112714329B (en) Display control method and device for live broadcasting room, storage medium and electronic equipment
CN110263276B (en) Message distribution method, device, equipment and storage medium
CN113824977B (en) Live broadcast room virtual gift giving method, system, device, equipment and storage medium
CN112316441A (en) Game live broadcast data processing method and device, electronic equipment and readable medium
WO2017101309A1 (en) Reservation message push method and device
CN113727130A (en) Message prompting method, system and device for live broadcast room and computer equipment
CN114286156A (en) Live broadcast interaction method and device, storage medium and computer equipment
CN112337104A (en) Live broadcast data processing method and device, electronic equipment and readable medium
CN113613027A (en) Live broadcast room recommendation method and device and computer equipment
CN104092754A (en) File storage system and method
CN111385593A (en) Cross-platform live content synchronization method and device, storage medium and server
CN111083504A (en) Interaction method, device and equipment
CN103209255B (en) Mobile terminal network games system
CN109948082A (en) Live information processing method and processing device, electronic equipment, storage medium
WO2022242470A1 (en) Cdn scheduling method, apparatus and device, and storage medium
CN113824689B (en) Edge computing network, data transmission method, device, equipment and storage medium
CN105681262A (en) Interaction message allocating method and system
CN110996114B (en) Live broadcast scheduling method and device, electronic equipment and storage medium
CN106612464B (en) A kind of method and device for establishing live streaming connection
CN112541023A (en) Online people counting method, electronic device and storage medium

Legal Events

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