CN114501082B - Live broadcast room distribution method and device - Google Patents
Live broadcast room distribution method and device Download PDFInfo
- Publication number
- CN114501082B CN114501082B CN202210142714.0A CN202210142714A CN114501082B CN 114501082 B CN114501082 B CN 114501082B CN 202210142714 A CN202210142714 A CN 202210142714A CN 114501082 B CN114501082 B CN 114501082B
- Authority
- CN
- China
- Prior art keywords
- live
- room
- live broadcast
- information
- target
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000003993 interaction Effects 0.000 claims abstract description 95
- 238000004364 calculation method Methods 0.000 claims description 9
- 230000002452 interceptive effect Effects 0.000 claims description 9
- 238000005034 decoration Methods 0.000 claims description 5
- 230000010076 replication Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 17
- 230000008569 process Effects 0.000 description 8
- 230000001680 brushing effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
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/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
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application provides a live broadcast room distribution method and a device, wherein the live broadcast room distribution method is applied to a live broadcast platform and comprises the following steps: receiving a live broadcast room creation request, and generating a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request; receiving a viewing request of a target user for managing the live broadcast room, and determining a target work live broadcast room corresponding to the target user according to the viewing request; receiving an interaction request of a target user aiming at a target work live broadcast room, and determining information to be stored according to the interaction request; and updating a target storage database corresponding to the target work live broadcasting room according to the information to be stored. By creating and managing the live broadcast room and the n corresponding working live broadcast rooms and configuring an independent storage database for each working live broadcast room, the splitting of data is realized, the problem that data updating is slow due to a plurality of watching users in the single live broadcast room is solved, and the availability under high access quantity and the watching experience of the users are improved.
Description
Technical Field
The application relates to the technical field of network live broadcasting, in particular to a live broadcasting room distribution method. The application also relates to a live room distribution device, a computing device and a computer readable storage medium.
Background
With advances in network communication technology and the speed of broadband networks, live broadcast has been increasingly developed and applied. In the existing live broadcast, when a user watches the live broadcast, information such as popularity, gift number, beat name and the like in a live broadcast room is updated at the front end of a page in real time. During peak hours, there may be a large number of users entering a room for viewing at the same time, for example: in the large-scale event period, the number of viewers in the room can reach millions, and in order to increase the loading speed and resist the bearing pressure of the database, a buffer memory is added for storing related data, but when tens of thousands or hundreds of thousands of persons send out a bullet screen and send out a gift at the same time, the access pressure of the buffer memory/the database is large, and a large amount of data can cause queuing to update data, so that the phenomenon that the information in the living broadcasting room cannot be updated in time is caused.
In addition, when millions of users watch the same live broadcast room, the live broadcast stream of the live broadcast room carries access of the millions of users, and when the live broadcast stream shakes, bad watching experience is brought to the millions of watching users. Therefore, how to update the data information of the live broadcasting room in time under the condition of multi-person watching and poor user watching experience in the live broadcasting room caused by the abnormality of a single live broadcasting stream are the problems to be solved in the present day.
Disclosure of Invention
In view of this, the embodiment of the application provides a live room distribution method. The application also relates to a live broadcasting room distribution device, a computing device and a computer readable storage medium, which are used for solving the problems that in the prior art, data information of a live broadcasting room cannot be updated in time under the condition of high access quantity and user watching experience in the live broadcasting room is poor due to single live broadcasting flow abnormality.
According to a first aspect of an embodiment of the present application, there is provided a live room distribution method, applied to a live platform, including:
receiving a live broadcast room creation request, and generating a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request;
receiving a viewing request of a target user for the management live broadcast room, and determining a target work live broadcast room corresponding to the target user according to the viewing request;
receiving an interaction request of the target user aiming at the target work live broadcasting room, and determining information to be stored according to the interaction request;
and updating a target storage database corresponding to the target work live broadcasting room according to the information to be stored.
According to a second aspect of an embodiment of the present application, there is provided a live room distribution apparatus, including:
The generation module is configured to receive a live broadcast room creation request, and generate a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request;
the first determining module is configured to receive a viewing request of a target user for the management live broadcast room, and determine a target work live broadcast room corresponding to the target user according to the viewing request;
the second determining module is configured to receive an interaction request of the target user for the target work live broadcast room, and determine information to be stored according to the interaction request;
and the updating module is configured to update the target storage database corresponding to the target work live broadcasting room according to the information to be stored.
According to a third aspect of embodiments of the present application, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the live room distribution method when executing the computer instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the live room distribution method.
The application provides a live broadcast room distribution method, which is applied to a live broadcast platform and comprises the following steps:
receiving a live broadcast room creation request, and generating a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request; receiving a viewing request of a target user for the management live broadcast room, and determining a target work live broadcast room corresponding to the target user according to the viewing request; receiving an interaction request of the target user aiming at the target work live broadcasting room, and determining information to be stored according to the interaction request; and updating a target storage database corresponding to the target work live broadcasting room according to the information to be stored.
According to the method and the device, at least two working live rooms corresponding to the management live room and the management live room are created in advance, users of different watching management live rooms are respectively distributed to the plurality of working live rooms, the problem that data update is slow due to the fact that more watching users exist in a single live room is solved, the bearing capacity of the live rooms is improved, and meanwhile watching experience of watching users is improved.
Drawings
Fig. 1 is a flowchart of a method for distributing a live broadcast room according to an embodiment of the present application;
FIG. 2 is a block diagram of a management live room and a work live room according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a live studio storing data information according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a live studio reading data information according to an embodiment of the present application;
fig. 5 is a process flow diagram of a live room distribution method applied to a live game according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a live room distribution device according to an embodiment of the present application;
FIG. 7 is a block diagram of a computing device according to one embodiment of the application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. The present application may be embodied in many other forms than those herein described, and those skilled in the art will readily appreciate that the present application may be similarly embodied without departing from the spirit or essential characteristics thereof, and therefore the present application is not limited to the specific embodiments disclosed below.
The terminology used in the one or more embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the application. As used in one or more embodiments of the application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of the application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of one or more embodiments of the application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
First, terms related to one or more embodiments of the present application will be explained.
Live stream: the transmission of video-on-demand data, which can be transmitted as a steady and continuous stream over a network to a viewer for viewing.
Pushing flow: the anchor obtains the push address from the live broadcast platform through the business server (i.e. anchor client), and the collected streaming media is pushed to the receiving end of the live broadcast platform in real time through the push address.
And (3) drawing: pulling refers to the process by which a user pulls a direct-cast stream through a live platform to a designated source station.
Live-broadcast popularity: the numerical values calculated according to a certain proportion, such as the number of people watched, the number of connected barrages, the number of gifts and the like, are used for ranking according to the popularity of people on a live broadcast platform.
QPS: query rate per second (query-per-second) is a measure of how much traffic a particular server is handling in a specified time.
In the existing live broadcast, a situation that a plurality of users enter a live broadcast room to watch live broadcast occurs during a late peak period, or in the live broadcast period of large-scale activities, millions of watching users in the live broadcast room can normally configure a cache for the database in order to increase the loading speed of the live broadcast room and the loading pressure of the database, and data in the relevant live broadcast room can be stored in the cache. When one user watches the live broadcasting room, the information of popularity, gift number, ranking and the like of the current live broadcasting room can be obtained from the front end of the page of the client in real time, the picture watched by the user is a live broadcasting stream pushed by the main broadcasting of the current live broadcasting room, and under the condition that millions of users watch the live broadcasting stream, the live broadcasting stream can bear the access of millions of users.
The user obtains the information such as the number of people, gifts, bullet screen number and the like in the current live broadcasting room through the front end of the page, namely the client queries the data information in the current live broadcasting room. The storage structure of the data information of the live broadcasting room in the cache is key: the value is structured, for example, the live room barrage table is "room number: number of barrages). When a plurality of users watch the same live broadcast room at the same time, a situation that a large number of users send barrages simultaneously occurs, the sending barrages update the cache and the database, and in order to enable all users in the room to watch the current barrages in real time, the cache needs to be queried, so that a hot key problem (one key is accessed in a large amount) is easy to occur.
In the process of updating the cache/database, in order to ensure the accuracy of the data, a lock table is provided, wherein the lock table is that the data cannot be updated or read by other data temporarily in the updating process, so that error data is generated. In the case of high QPS, a large amount of data can be updated in a queuing form, and network blocking and long queuing time can be caused due to the phenomenon of lock list, so that data inquiry is overtime and barrage data cannot be updated in time.
Aiming at the phenomena and problems, a multi-cache data source backup strategy is adopted at present: i.e. to configure multiple caches for the same database. Taking 10 caches configured for the same database as an example, when updating data, the data in the database is updated first, and then 10 caches are updated sequentially. When the data is queried, hash calculation is performed according to the unique identification of the user, the residual percentage is 10, the corresponding cache is determined in the 10 caches, and the data is queried in the corresponding cache. This strategy can be implemented to reduce the access to individual keys, i.e., to reduce the QPS to 1/10 of the original. In addition, the strategy is easy to have hidden trouble of data asynchronous among a plurality of caches, for example, 9 caches in 10 caches are successfully updated, and 1 cache is not successfully updated, so that the conditions of data error query and data inaccuracy caused by data asynchronous can occur. In addition, each service needs to make similar strategies, such as a number service, a gift service and a barrage service, has larger change and has lower reusability compared with the original structure.
In addition, for the live stream of a single live broadcast room, the live stream of the live broadcast room needs to bear a large number of user views, and if 100 thousands of users currently view at the same time, the viewing experience of millions of users can be affected when the live stream is jittered. The problem is solved by pushing multiple live streams with the same picture, in the method, the watching users are randomly distributed to one live stream, so that when the problem occurs, the number of the affected watching users is reduced. However, the biggest problem of the method is that one computer can only install one push software (such as OBS push software), only one live stream can be pushed at a time, if multiple computers are needed to push multiple live streams, and the problem that different computers push live streams to cause picture asynchronization can occur.
Based on this, a live room distribution method is provided in the present application, and the present application relates to a live room distribution apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 shows a flowchart of a live room distribution method according to an embodiment of the present application, which specifically includes the following steps:
Step 102: and receiving a live broadcast room creation request, and generating a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request.
The live broadcasting room creation request can be understood as a corresponding live broadcasting room created for the current live broadcasting before the current live broadcasting, and the live broadcasting room creation request can carry live broadcasting room configuration information, creation information and the like. The configuration information of the live broadcasting room can be information such as room number, room capacity and the like of the live broadcasting room, and the creation information can be information such as creation time, creation mode and the like.
Specifically, the management live broadcast room is a virtual live broadcast room, and the work live broadcast room is a real live broadcast room;
the at least two work live rooms corresponding to the management live room comprise:
the virtual live broadcasting room comprises at least two real live broadcasting rooms, wherein the live broadcasting room attribute information of each real live broadcasting room is the same, and the live broadcasting room attribute information comprises live broadcasting room configuration information and live broadcasting room decoration information.
The management live broadcast room can be understood as a created virtual live broadcast room, the virtual live broadcast room is actually formed by changing the configuration and the decoration of n rooms into complete consistency, and when a user enters the virtual live broadcast room for watching, the user is allocated to the corresponding room according to the unique identification of the user. The working live broadcasting room can be understood as a live broadcasting room with the same configuration and decoration in the management live broadcasting room, the live broadcasting room configuration information can be live broadcasting platform information, live stream code rate information and the like, and the live broadcasting room decoration information can be live broadcasting room cover information, live broadcasting room title information and the like, and the working live broadcasting room is a real live broadcasting room in the virtual live broadcasting room. As shown in fig. 2, fig. 2 shows a block diagram of a management live broadcast room and a work live broadcast room provided by an embodiment of the present application, in the diagram, when a user clicks into the management live broadcast room through a user terminal, a live broadcast platform performs hash calculation according to a unique identifier of the user, and distributes the user to a corresponding work live broadcast room for viewing according to a calculation result.
In practical application, when some large activities are about to develop live broadcast, the live broadcast platform side can create a management live broadcast room and n corresponding work live broadcast rooms for the management live broadcast room in advance, so that the problem that the user watching experience is poor due to the fact that a large number of users enter the same live broadcast room and the bearing pressure of the live broadcast room is large is solved, the management live broadcast room and the n corresponding work live broadcast rooms are created, a single key can be split into a plurality of keys on a physical layer, for example, when only one live broadcast room exists originally, the storage structure is preset as' key: in the case of value ", the stored data of the number of shots in the live room is" room ID: the bullet screen number ", under the condition that 1 million users watch at the same time, all users can see the current bullet screen number in real time, namely all users can inquire the bullet screen number, so that the situation that the access amount of the stored data in the live broadcasting room is too high can occur; based on creation management living broadcast rooms and n corresponding working living broadcast rooms, each working living broadcast room is provided with a respective storage database, each working living broadcast room stores storage data of the living broadcast room, and a plurality of users are distributed to different working living broadcast rooms for watching, so that the access quantity of single keys of each room is not excessively high, and the situation that one key is accessed in a large quantity is avoided.
In practical application, a live broadcast platform side can send a live broadcast room creation request, the live broadcast platform receives the live broadcast room creation request, and n working live broadcast rooms corresponding to the live broadcast rooms are created and managed according to the number of predicted viewers and the bearing capacity of the working live broadcast rooms. For example, the number of watching persons is predicted to be 10000, and each work live broadcast room cannot be abnormal when watching by 1000 users at most, then 11 work live broadcast rooms can be configured for the management live broadcast room corresponding to the current live broadcast, wherein 10 work live broadcast rooms are used for normal operation, and 1 work live broadcast room is used for standby operation when the number of persons is more than 10000. When the live broadcast is started, if the number of actual watching persons exceeds the number of predicted watching persons too much, a plurality of working live broadcast rooms can be temporarily created for managing the live broadcast rooms, so that normal live broadcast of activities and watching experience of watching users are ensured.
The management living room is configured with virtual room numbers that map to room numbers of the n work living rooms. For example, the virtual room number of the management live broadcast room is 120, when the user searches 120 on the live broadcast platform, the live broadcast platform service queries 120 that the virtual room number is mapped to two working live broadcast rooms A and B, and then the user is distributed to one of the working live broadcast rooms A or B according to the identification information of the user so as to provide live broadcast watching service for the user.
In a specific embodiment of the present application, the live broadcast platform receives a live broadcast room creation request, and generates 2 working live broadcast rooms a1 and a2 corresponding to the management live broadcast room a and the management live broadcast room a according to the live broadcast room creation request.
In order to reduce the bearing capacity of the original single live stream, the live stream can be forwarded to each working live broadcast room after the live stream pushed by the main broadcast is received, as shown in fig. 2, after the main broadcast pushes the live stream to the live broadcast platform through the main broadcast end, the live broadcast platform forwards the live stream to each working live broadcast room respectively. Specifically, the method further comprises:
receiving the live stream of the management live broadcasting room;
generating a sub-live stream corresponding to each working live broadcasting room according to the live streams;
and forwarding each sub live stream to a corresponding working live room.
The live broadcast stream can be understood as a stream pushed by a main broadcasting end, the main broadcasting end can push the live broadcast stream to a live broadcast platform after starting live broadcast, under normal conditions, one live broadcast stream exists in one live broadcast room, the main broadcasting pushes one live broadcast stream A, and a user watches and pulls the live broadcast stream A in real time to play.
In practical application, because a large number of users watch in the same live broadcasting room, the watching amount of live broadcasting streams in the live broadcasting room can be high, so that the live broadcasting streams are easy to cause problems due to high bearing pressure, and when the live broadcasting streams cause problems, watching users who pull the live broadcasting streams can be influenced. In order to ensure the stability of the live stream and reduce the number of users affected when the problem of transmission is solved, in the above-mentioned scene, after receiving the push stream of the main cast, the live stream is copied and forwarded to the working live broadcasting room for managing the mapping of the live broadcasting room by using the forwarding module of the ngix, so that the live stream can be received by the working live broadcasting room, and the problem of picture asynchronism can be avoided.
In a specific embodiment of the present application, along the above example, the live broadcast platform receives a live broadcast stream Z pushed by a main broadcast Z, and generates a sub-live broadcast stream corresponding to each working live broadcast room according to the replication of the live broadcast stream Z by using a forwarding module of the nginx, where the sub-live broadcast streams generated by the replication are Z1 and Z2, and the sub-live broadcast streams are respectively forwarded to two working live broadcast rooms a1 and a2 corresponding to a management live broadcast room.
Step 104: receiving a viewing request of a target user for the management live broadcast room, and determining a target work live broadcast room corresponding to the target user according to the viewing request.
The target user may be understood as a user ready to watch the management live broadcast room, and before the target user wants to watch the management live broadcast room, a watching request for the management live broadcast room is sent to the live broadcast platform. The viewing request may be understood as a request for a user to view a management living room, and the viewing request may include room identification information to be viewed, user identification information, and the like. According to the watching request of the target user, the target user can be distributed to the corresponding live broadcast room.
In practical application, after the live broadcasting in the live broadcasting room is managed, a large number of users can flow into the live broadcasting room to watch, at this time, the live broadcasting platform receives the watching request of each user, and distributes the users according to the watching request of each user. Specifically, hash calculation may be performed on the identification information of each user, to obtain an identification hash value of each user, and allocation processing may be performed on each user according to the identification hash value of each user. For example, the user viewing set to the identification hash value 0-1000000 in the work live broadcast room 1, the user viewing set to the identification hash value 1000001-2000000 in the work live broadcast room 2, and when the identification hash value of the user U is 300, the user U is allocated to the work live broadcast room 1 for viewing.
In a specific embodiment of the present application, in the above example, a viewing request of a target user U for managing the live broadcast room a is received, a target work live broadcast room corresponding to the target user U is determined as a2 according to the viewing request, and the target user U is allocated to the target work live broadcast room a2.
Specifically, determining the target work live broadcast room corresponding to the target user according to the viewing request includes:
acquiring user identification information in the watching request;
and determining a target work live broadcast room corresponding to the target user according to the user identification information.
The user identification information may be understood as information indicating a unique identity of the user, for example, a unique ID of the user, an account number of the user, etc., and it may be determined which live working room the target user belongs to according to the user identification information.
In practical application, in order to reduce the bearing capacity of each work live broadcast room, millions of users are divided into a plurality of work live broadcast rooms in the same live broadcast room to provide watching for the users, for example, when a certain game live broadcast is originally watched, 1 million users may watch, after one management live broadcast room and n corresponding work live broadcast rooms are created, 1 million users may be evenly distributed to n work live broadcast rooms, so that the access amount of each work live broadcast room is reduced.
The specific allocation method can allocate according to the user identification information of each user, and when the user clicks the management live broadcast room to watch, the user can send a watching request carrying the user identification information, and the corresponding live broadcast room can be allocated to the user according to the user identification information. For example, there are 3 live workshops, where the 1 st live workshops are watched with user IDs of "1-100000", the 2 nd live workshops are watched with user IDs of "100001-200000", and the 3 rd live workshops are watched with users of "200001-300000", and when the user with user ID of 123456 enters the administrative live workshops, the user ID is allocated to the 2 nd live workshops for viewing.
In a specific embodiment of the present application, along the above example, user identification information of the target user U in a viewing request for managing the live broadcasting room a is obtained, where the user identification information of the target user U is "ID:76000: ", work live room a1 is assigned user" ID:1-50000", work live room a2 is assigned user" ID: 50001-100000' can be watched, and the target live studio is determined to be the live studio a2 according to the ID identification information of the target user U.
Specifically, determining the target work live broadcast room corresponding to the target user according to the user identification information comprises the following steps:
Carrying out hash calculation on the user identification information to obtain an identification hash value corresponding to the target user;
and determining a target work live broadcast room corresponding to the target user according to the identification hash value.
The hash calculation is to convert the input with any length of the hash function into the output with a fixed length, wherein the output is a hash value, the identification hash value corresponding to the target user is obtained through the input of the user identification information, and the identification hash value corresponding to each user is unique.
In practical application, a user identification hash value interval corresponding to each working live broadcast room can be set, and determining the target working live broadcast room corresponding to the target user according to the identification hash value can be understood as determining the target working live broadcast room according to the mapping position of the identification information of the user on the hash ring.
In a specific embodiment of the present application, in the above example, hash calculation is performed on the identification information of the target user U, so as to obtain an identification hash value "1800000" corresponding to the target user U, and the target work live broadcast room corresponding to the target user is determined to be the a2 work live broadcast room according to the identification hash value.
In practical application, after the target users are distributed to the corresponding target work live broadcast rooms, the target users enter the target work live broadcast rooms to watch, and the target work live broadcast rooms can send live broadcast streams to the target users, so that the users can play the live broadcast streams in real time.
Specifically, after receiving a viewing request of a target user for the management live broadcast room and determining a target work live broadcast room corresponding to the target user according to the viewing request, the method further comprises:
determining the target sub-live stream according to the target work live room;
and sending the target sub-live stream to the target user.
The target sub live stream is a live stream corresponding to the target work live broadcasting room, and the target sub live stream is sent to the target user to be understood as a target user pulling stream for playing and watching.
In a specific embodiment of the present application, along the above example, the target sub-live stream z2 is determined according to the target work live room a2, and the target sub-live stream z2 is sent to the target user.
Step 106: and receiving an interaction request of the target user aiming at the target work live broadcasting room, and determining information to be stored according to the interaction request.
The target user can understand that the target user sends interactive requests such as barrages, brushing gifts and the like in the target work live broadcast room aiming at the interactive requests of the target work live broadcast room. The information to be stored may be understood as interaction information generated after a user initiates an interaction with respect to a work live room. For example, the user sends a barrage in the live broadcast room, and the information to be stored may be "barrage: bullet screen content).
In practical application, the operation data related to data update, such as gift delivering/bullet screen sending, generated by the interactive operation of the user in the working live broadcasting room is the same as the original operation data, namely, the information to be stored is stored in the database corresponding to the live broadcasting room, so that the information to be stored in the database is respectively stored in the database corresponding to each working live broadcasting room, the data splitting is completed, and the accuracy of the data is ensured.
In a specific embodiment of the present application, along the above example, the target user U sends 3 barrages in the live working room a2, and the live broadcasting platform receives an interaction request of the target user U for the live working room a2, and determines that the information to be stored is "barrages" according to the interaction request: looking well, barrages: 666, barrage: true to severe.
Determining the information to be stored first requires determining an interaction type and interaction information, specifically determining the information to be stored according to the interaction request, including:
determining an interaction type and interaction information according to the interaction request;
and determining the information to be stored according to the interaction type and the interaction information.
The interaction type can be understood as an interaction mode of a user aiming at a live studio, the interaction type can be types of bullet screen sending, gift brushing, attention clicking and the like, the interaction information can be understood as interaction content corresponding to each interaction type, for example, when the interaction type is bullet screen sending, the interaction information is bullet screen content; when the interaction type is brushing gifts, the interaction information is the type of the gifts, the value of the gifts and the like.
In practical applications, before determining information to be stored, it is necessary to determine interactive operation and operation content of a user for a live broadcast room from an interactive request, so as to generate the information to be stored.
In a specific embodiment of the present application, along the above example, the target user U sends a barrage "anchor 666" in the live broadcasting room a2, the live broadcasting platform receives the interaction request of the target user U for the live broadcasting room a2, determines the interaction type as the barrage according to the interaction request, and determines the information to be stored as the barrage according to the interaction type and the interaction information, where the interaction information is "anchor 666: anchor 666).
Step 108: and updating a target storage database corresponding to the target work live broadcasting room according to the information to be stored.
The target storage database can be understood as a database of the target work live broadcast room, and in order to complete the splitting of data, each work live broadcast room is configured with an independent database to store the data information of each work live broadcast room, so that the problem of locking the table row according to the database under the condition that a large amount of data needs to be updated and stored can be solved. Because the updated data in one live broadcasting room can be split into n live broadcasting rooms according to the number of the live broadcasting rooms, the storage conflict of each database is greatly reduced, the data information of the live broadcasting rooms can be stored rapidly, and the accuracy and the timeliness of data updating are ensured.
In practical application, all data information in a live broadcast room is stored in a database corresponding to the live broadcast room, and a large amount of data is required to be written into the database due to a plurality of watching users, so that a large amount of data can generate queuing update data, network blocking is caused, data writing is not timely, and accordingly data inquiry is overtime, and bad watching experience is brought to users. And the user is distributed to different work live rooms, so that the information to be stored generated by the user aiming at the operation of the different work live rooms can be stored in the database corresponding to each work live room, and the workload of each database is greatly reduced. Fig. 3 is a schematic diagram of data information stored in a live studio according to an embodiment of the present application, where fig. 3 is a schematic diagram provided on the basis of a structure diagram of the live studio and the live studio shown in fig. 2, and in fig. 3, the live studio receives an interaction request sent by a user, generates corresponding information to be stored according to the interaction request, and stores the generated information in a storage database corresponding to the live studio.
In one embodiment of the present application, along the above example, the information to be stored "barrage: the anchor 666 "stores the data in the target storage database s2 for the target live studio a2 to complete the update of the data so that the data can be queried later.
Specifically, updating the target storage database corresponding to the target live studio according to the information to be stored, including:
determining a target storage database corresponding to the target work live broadcasting room;
and storing the live broadcasting room identification of the target work live broadcasting room and the information to be stored into the target storage database.
The target storage database can be understood as a database corresponding to the target work live broadcasting room, and information to be stored generated by a target user aiming at an interaction request of the target work live broadcasting room is stored in the corresponding target storage database, but not in storage databases corresponding to other work live broadcasting rooms. The live broadcast room identification can be understood as a live broadcast room number of a target work live broadcast room, and each work live broadcast room has a unique live broadcast room identification.
In practical application, n working live broadcast rooms are provided with the corresponding storage databases, and the information to be stored in each working live broadcast room is only stored in the corresponding storage database, so that the corresponding storage databases of the working live broadcast rooms are required to be determined. After the storage database is determined, the identification of the live broadcasting room of the target work live broadcasting room and the information to be stored are stored into the storage database together according to a preset storage structure. For example, the information to be stored, "barrage number 100", and the live room identifier is live room number "2000", then according to the preset storage structure "key: value ", will" 2000: the bullet screen number 100 "is stored in the corresponding storage database of the live broadcast room.
In a specific embodiment of the present application, along the above example, it is determined that the target storage database corresponding to the target work live broadcast room a2 is the s2 database, and the room number of the live broadcast room corresponding to the target work live broadcast room and the information to be stored are stored in the target storage database s 2.
For some values that can be viewed by the user, it is necessary to read from a stored database and present it to the live room for viewing by the user.
Specifically, the method further comprises:
acquiring display information according to a storage database corresponding to each working live broadcasting room;
and displaying the display information in the target work live broadcast room.
The presentation information may be understood as data information that can be directly viewed by a user, for example, the number of gifts/the popularity value/the number of bullet screens, etc. Displaying the presentation information within the target workplace is understood to mean retrieving the presentation information from a database and providing it for viewing by the user within the workplace.
In practical application, the original display method is to read the cache/database, and the data is queried and displayed from the cache/database at regular time according to the preset acquisition time by managing the proxy service in the live broadcasting room instead. Because n working live broadcast rooms are arranged in the management live broadcast room, the data information of each working live broadcast room is stored in a respective database, and therefore, after the data information in each working live broadcast room is acquired, the data information with the same type is accumulated and stored in a local cache, and the storage information in each working live broadcast room is summarized through proxy service, so that each user is prevented from directly accessing the storage data in the cache/database of the working live broadcast room, and the access quantity of a single key can be reduced. Fig. 4 is a schematic diagram of data information read by a live studio according to an embodiment of the present application, where fig. 4 is a schematic diagram provided on the basis of the schematic diagram of data information stored by the live studio shown in fig. 3, and the proxy service in fig. 4 obtains presentation information from a database in each live studio and presents the presentation information to each live studio, and a user may view the live studio through a user side and obtain relevant presentation information.
It should be noted that the data information seen by the user is actually data in the local cache, and the speed of direct local access is very fast, basically in the order of milliseconds or even nanoseconds, the speed of access depends on the load of the CPU and the memory, if the load is insufficient to directly expand the virtual storage, hundreds of thousands or millions of reads of the original cache/database are directly reduced to the order of M, which depends on the number of virtual storage deployments.
In practical application, the storage database of each working live broadcast room also stores the corresponding relationship between the management live broadcast room and the working live broadcast room, and the corresponding relationship between the live broadcast rooms can be understood as the corresponding relationship between room numbers. For example, the storage database of the work living room A1 may store therein the room number of the work living room A1 and the room number of the corresponding management living room a, namely, "2000-1 (work living room A1 room number): 2000 When the proxy service of the virtual live broadcasting room A gathers the storage information in each working live broadcasting room, the corresponding storage databases of the working live broadcasting room are selected from all the storage databases according to the corresponding relation, and the corresponding storage information is acquired from the databases to finish the gathering. In another implementation manner, the corresponding relationship between the working live broadcast room and the management live broadcast room can be stored in a local cache of the proxy service of the management live broadcast room, and the specific storage manner of the corresponding relationship between the live broadcast rooms can be determined according to actual situations.
In a specific embodiment of the present application, along the above example, the display information in the storage databases s1 and s2 corresponding to the live broadcasting room a1 and the live broadcasting room a2 is obtained, the display information is a barrage, a barrage number, a live broadcasting popularity, and a watching user number, and the display information is displayed in each live broadcasting room.
In practical application, part of the display information needs to be accumulated and displayed in each working live broadcast room. The display information for data accumulation can be the number of barrages, the number of people, and the like, and the display information without data accumulation can be barrage content, gift content, and the like.
Specifically, the display information comprises attribute information and interaction information;
acquiring display information according to a storage database corresponding to each working live broadcasting room, wherein the method comprises the following steps:
acquiring attribute information and interaction information in each storage database;
counting each attribute information and generating target attribute information;
and generating display information according to the target attribute information and each piece of interaction information.
Specifically, the attribute information includes information on the number of viewers and information on the number of barrages; the interactive information includes barrage content information and gift content information. The attribute information may be understood as information of live broadcasting room attribute information to be accumulated, the attribute information may be information of number of viewers, bullet screen number and the like of each live broadcasting room, the interactive information may be information of bullet screen content, gift content and the like, and the target attribute information may be information of accumulated attribute information of each live broadcasting room, for example, the number of viewers of the live broadcasting room 1 and the number of viewers of the live broadcasting room 2 are accumulated.
In practical applications, after the proxy service obtains the attribute information and the interaction information in each storage database, the proxy service replaces the live studio identifier in the attribute information and the interaction information with the virtual live studio identifier, for example, obtains the attribute information "A1" in the storage database of the live studio A1: the number of viewers 200", attribute information" A2 "in the storage database of the work living room A2: the number of viewers 400", after the agent service managing the live broadcasting room a acquires the two pieces of attribute information, the viewers in the two pieces of attribute information are accumulated, and the stored key is replaced by the room number of the virtual live broadcasting room, and the counted target attribute information is" a: the number of viewers 600″ can be displayed in the working live broadcast rooms A1 and A2 according to the item target attribute information, so that the information synchronization of the two working live broadcast rooms is ensured, and the problem that the data update is not timely due to the fact that a single key is accessed by a large number of users is avoided.
In a specific embodiment of the present application, along the above example, the bullet screen information, the gift information, the number of watching people information and the live air information of each work live broadcast room are obtained according to the storage databases s1 and s2 corresponding to the work live broadcast rooms a1 and a2, the bullet screen number in the bullet screen information is accumulated, the number of watching people in the number of watching people information is accumulated, the live air in the live air information is accumulated, the accumulated bullet screen content and the gift content in the gift information are directly displayed in the work live broadcast rooms a1 and a 2.
By the live broadcasting room distribution method provided by the application, the consistency of data can be ensured in the reading process: because each working live broadcasting room is provided with a corresponding storage database, the problem that a plurality of data sources stored in a cache are not synchronous in the reading process is avoided.
The usability is high: for n working live rooms under the management live room, different caches/databases are respectively used and deployed on different physical machines, so that when the caches/databases in any one of the n rooms are abnormal, the influence on the whole is reduced to 1/n.
The reusability is large: each working live broadcasting room is provided with a storage database, data synchronization and backup are not needed, all functions of the virtual storage are finished by the upper layer service, the original logic is multiplexed to the greatest extent, and the virtual storage system is small in change and high in availability.
The application provides a live broadcasting room distribution method, which is applied to a live broadcasting platform and comprises the following steps: receiving a live broadcast room creation request, and generating a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request; receiving a viewing request of a target user for the management live broadcast room, and determining a target work live broadcast room corresponding to the target user according to the viewing request; receiving an interaction request of the target user aiming at the target work live broadcasting room, and determining information to be stored according to the interaction request; and updating a target storage database corresponding to the target work live broadcasting room according to the information to be stored. By creating and managing the live broadcast room and the n corresponding working live broadcast rooms and configuring a separate storage database for each working live broadcast room, the splitting of data is realized, the access quantity of each working live broadcast room is reduced, the problem that the data update is slow due to a plurality of watching users in a single live broadcast room is solved, the usability under the condition of high access quantity is improved, and the watching experience of users is improved.
The method for distributing the live broadcasting room is further described below by taking the application of the method for distributing the live broadcasting room in the live broadcasting game as an example with reference to fig. 5. Fig. 5 shows a process flow chart of a live room distribution method applied to a live game according to an embodiment of the present application, which specifically includes the following steps:
step 502: and receiving a live broadcast room creation request, and generating a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request.
In a specific embodiment of the present application, before a live broadcast game, a live broadcast platform receives a live broadcast room creation request of the live broadcast game, and generates a management live broadcast room and 10 work live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request, where each work live broadcast room can receive 10 ten thousand user viewing requests.
Step 504: receiving a viewing request of a target user for the management live broadcast room, acquiring user identification information in the viewing request, and determining a target work live broadcast room corresponding to the target user according to the user identification information.
In a specific embodiment of the present application, in the above example, a viewing request of a target user U1 for managing a live broadcast room is received, user identification information of the target user U1 is obtained, the user identification information is a unique user ID of the target user U1, and the target user U1 is allocated to a 3 rd working live broadcast room according to the unique user ID of the target user U1.
Step 506: and receiving an interaction request of the target user aiming at the target work live broadcasting room, determining an interaction type and interaction information according to the interaction request, and determining information to be stored according to the interaction type and the interaction information.
In a specific embodiment of the present application, in the above example, an interaction request of the target user U for the 3 rd working live broadcasting room is received, the interaction type is determined to be a brushing gift according to the interaction request, the interaction information is a gift name "rocket", and the information to be stored is determined according to the interaction type and the interaction information.
Step 508: and updating a target storage database corresponding to the target work live broadcasting room according to the information to be stored.
In a specific embodiment of the present application, the information to be stored is stored in the 3 rd storage database corresponding to the 3 rd working live broadcasting room according to the above example.
Step 510: acquiring attribute information and interaction information in each storage database, counting each attribute information, generating target attribute information, generating display information according to the target attribute information and each interaction information, and displaying the display information in the target work live broadcast room.
In a specific embodiment of the present application, according to the above example, attribute information and interaction information in 10 storage databases are obtained, each attribute information is accumulated to generate target attribute information, display information is generated according to the target attribute information and each interaction information, and the display information is displayed in 10 live workshops.
The application provides a live room distribution method applied to live games, which comprises the following steps: and receiving a live broadcast room creation request, and generating a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request. Receiving a viewing request of a target user for the management live broadcast room, acquiring user identification information in the viewing request, and determining a target work live broadcast room corresponding to the target user according to the user identification information. And receiving an interaction request of the target user aiming at the target work live broadcasting room, determining an interaction type and interaction information according to the interaction request, and determining information to be stored according to the interaction type and the interaction information. And updating a target storage database corresponding to the target work live broadcasting room according to the information to be stored. Acquiring attribute information and interaction information in each storage database, counting each attribute information, generating target attribute information, generating display information according to the target attribute information and each interaction information, and displaying the display information in the target work live broadcast room. Before a large-scale direct broadcast match, a management direct broadcast room and n corresponding work direct broadcast rooms are created, each watching user is distributed to different work direct broadcast rooms, the access quantity of the work direct broadcast rooms is reduced, meanwhile, an independent storage database is configured for each work direct broadcast room, so that data information of each work direct broadcast room can be stored in different databases, the problems of network blocking and untimely data updating caused by a large amount of data waiting and updating are solved, and the data information in each storage database is read and summarized at fixed time when the information is displayed, so that the display information in each work direct broadcast room can be synchronously displayed, and the watching experience of the user is improved.
Corresponding to the method embodiment, the application also provides an embodiment of the live room distribution device, and fig. 6 shows a schematic structural diagram of the live room distribution device according to an embodiment of the application. As shown in fig. 6, the apparatus includes:
the generation module 602 is configured to receive a live broadcast room creation request, and generate a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request;
a first determining module 604, configured to receive a viewing request of a target user for the managed live broadcast room, and determine a target work live broadcast room corresponding to the target user according to the viewing request;
a second determining module 606, configured to receive an interaction request of the target user for the target live studio, and determine information to be stored according to the interaction request;
and the updating module 608 is configured to update a target storage database corresponding to the target live studio according to the information to be stored.
The first determining module 604 is further configured to:
acquiring user identification information in the watching request;
and determining a target work live broadcast room corresponding to the target user according to the user identification information.
The first determining module 604 is further configured to:
carrying out hash calculation on the user identification information to obtain an identification hash value corresponding to the target user;
and determining a target work live broadcast room corresponding to the target user according to the identification hash value.
The second determining module 606 is further configured to:
determining an interaction type and interaction information according to the interaction request;
and determining the information to be stored according to the interaction type and the interaction information.
The update module 608 is further configured to:
determining a target storage database corresponding to the target work live broadcasting room;
and storing the information to be stored into the target storage database.
The live room distribution device further comprises:
the display module is configured to acquire display information according to the corresponding storage database of each working live broadcasting room; and displaying the display information in the target work live broadcast room.
The display module is further configured to:
acquiring attribute information and interaction information in each storage database;
counting each attribute information and generating target attribute information;
and generating display information according to the target attribute information and each piece of interaction information.
The live room distribution device further comprises:
A forwarding module configured to:
receiving the live stream of the management live broadcasting room;
generating a sub-live stream corresponding to each working live broadcasting room according to the live streams;
and forwarding each sub live stream to a corresponding working live room.
The live room distribution device further comprises:
a transmission module configured to: determining the target sub-live stream according to the target work live room;
and sending the target sub-live stream to the target user.
The application provides a live broadcasting room distribution device, which comprises: the generation module is configured to receive a live broadcast room creation request, and generate a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request; the first determining module is configured to receive a viewing request of a target user for the management live broadcast room, and determine a target work live broadcast room corresponding to the target user according to the viewing request; the second determining module is configured to receive an interaction request of the target user for the target work live broadcast room, and determine information to be stored according to the interaction request; and the updating module is configured to update the target storage database corresponding to the target work live broadcasting room according to the information to be stored. By creating the management live broadcast room and the n corresponding work live broadcast rooms and configuring an independent storage database for each work live broadcast room, the splitting of data is realized, the access quantity of each work live broadcast room is reduced, the availability under high access quantity is improved, and the watching experience of a user is improved.
The foregoing is a schematic solution of a live room distribution device of the present embodiment. It should be noted that, the technical solution of the live broadcast room distribution device and the technical solution of the live broadcast room distribution method belong to the same concept, and details of the technical solution of the live broadcast room distribution device, which are not described in detail, can be referred to the description of the technical solution of the live broadcast room distribution method.
Fig. 7 illustrates a block diagram of a computing device 700 provided in accordance with an embodiment of the present application. The components of computing device 700 include, but are not limited to, memory 710 and processor 720. Processor 720 is coupled to memory 710 via bus 730, and database 750 is used to store data.
Computing device 700 also includes access device 740, access device 740 enabling computing device 700 to communicate via one or more networks 760. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 740 may include one or more of any type of network interface, wired or wireless (e.g., a Network Interface Card (NIC)), such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 700, as well as other components not shown in FIG. 7, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device illustrated in FIG. 7 is for exemplary purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 700 may be any type of stationary or mobile computing device including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smart phone), wearable computing device (e.g., smart watch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 700 may also be a mobile or stationary server.
Wherein the processor 720 performs the steps of the live room distribution method when executing the computer instructions.
The foregoing is a schematic illustration of a computing device of this embodiment. It should be noted that, the technical solution of the computing device and the technical solution of the live broadcast room distribution method belong to the same concept, and details of the technical solution of the computing device, which are not described in detail, can be referred to the description of the technical solution of the live broadcast room distribution method.
An embodiment of the application also provides a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the live room distribution method as described above.
The above is an exemplary version of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the live broadcasting room distribution method belong to the same concept, and details of the technical solution of the storage medium which are not described in detail can be referred to the description of the technical solution of the live broadcasting room distribution method.
The foregoing describes certain embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, randomAccess Memory), an electrical carrier signal, a telecommunication signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the application disclosed above are intended only to assist in the explanation of the application. Alternative embodiments are not intended to be exhaustive or to limit the application to the precise form disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and the full scope and equivalents thereof.
Claims (14)
1. A live room distribution method, applied to a live platform, comprising:
receiving a live broadcast room creation request sent by a live broadcast platform side, and generating a management live broadcast room and at least two working live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request, wherein the attribute information of the live broadcast room of each working live broadcast room is the same, and the corresponding sub live broadcast stream of each working live broadcast room is generated according to the corresponding live broadcast stream replication of the management live broadcast room;
receiving a viewing request of a target user for the management live broadcast room, and determining a target work live broadcast room corresponding to the target user according to the viewing request;
receiving an interaction request of the target user aiming at the target work live broadcasting room, and determining information to be stored according to the interaction request;
and updating a target storage database corresponding to the target work live broadcasting room according to the information to be stored.
2. The method for distributing living broadcast rooms according to claim 1, wherein determining a target working living broadcast room corresponding to the target user according to the viewing request comprises:
acquiring user identification information in the watching request;
and determining a target work live broadcast room corresponding to the target user according to the user identification information.
3. The live room distribution method of claim 2, wherein determining the target work live room corresponding to the target user according to the user identification information comprises:
carrying out hash calculation on the user identification information to obtain an identification hash value corresponding to the target user;
and determining a target work live broadcast room corresponding to the target user according to the identification hash value.
4. The live room distribution method of claim 1, wherein determining information to be stored according to the interaction request comprises:
determining an interaction type and interaction information according to the interaction request;
and determining the information to be stored according to the interaction type and the interaction information.
5. The live room distribution method of claim 1, wherein updating the target storage database corresponding to the target work live room according to the information to be stored comprises:
determining a target storage database corresponding to the target work live broadcasting room;
and storing the live broadcasting room identification of the target work live broadcasting room and the information to be stored into the target storage database.
6. The live room distribution method of claim 1, wherein the method further comprises:
Acquiring display information according to a storage database corresponding to each working live broadcasting room;
and displaying the display information in the target work live broadcast room.
7. The live room distribution method of claim 6, wherein the presentation information includes attribute information and interactive information;
acquiring display information according to a storage database corresponding to each working live broadcasting room, wherein the method comprises the following steps:
acquiring attribute information and interaction information in each storage database;
counting each attribute information and generating target attribute information;
and generating display information according to the target attribute information and each piece of interaction information.
8. The live room distribution method of claim 1, wherein the method further comprises:
receiving the live stream of the management live broadcasting room;
generating a sub-live stream corresponding to each working live broadcasting room according to the live streams;
and forwarding each sub live stream to a corresponding working live room.
9. The method for distributing living broadcast room according to claim 8, wherein after receiving a viewing request of a target user for the managed living broadcast room and determining a target work living broadcast room corresponding to the target user according to the viewing request, further comprises:
Determining a target sub-live stream according to the target work live room;
and sending the target sub-live stream to the target user.
10. The live room distribution method of claim 1, wherein the management live room is a virtual live room, and the work live room is a real live room;
the at least two work live rooms corresponding to the management live room comprise:
the virtual live broadcasting room comprises at least two real live broadcasting rooms, wherein the live broadcasting room attribute information of each real live broadcasting room is the same, and the live broadcasting room attribute information comprises live broadcasting room configuration information and live broadcasting room decoration information.
11. The live room distribution method of claim 7, wherein the attribute information includes viewer number information, bullet screen number information; the interactive information includes barrage content information and gift content information.
12. A live room distribution device, comprising:
the generation module is configured to receive a live broadcast room creation request sent by a live broadcast platform side, generate a management live broadcast room and at least two work live broadcast rooms corresponding to the management live broadcast room according to the live broadcast room creation request, wherein the attribute information of the live broadcast room of each work live broadcast room is the same, and the corresponding sub live broadcast flow of each work live broadcast room is generated according to the live broadcast flow replication corresponding to the management live broadcast room;
The first determining module is configured to receive a viewing request of a target user for the management live broadcast room, and determine a target work live broadcast room corresponding to the target user according to the viewing request;
the second determining module is configured to receive an interaction request of the target user for the target work live broadcast room, and determine information to be stored according to the interaction request;
and the updating module is configured to update the target storage database corresponding to the target work live broadcasting room according to the information to be stored.
13. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor, when executing the computer instructions, performs the steps of the method of any one of claims 1-11.
14. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method of any one of claims 1-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210142714.0A CN114501082B (en) | 2022-02-16 | 2022-02-16 | Live broadcast room distribution method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210142714.0A CN114501082B (en) | 2022-02-16 | 2022-02-16 | Live broadcast room distribution method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114501082A CN114501082A (en) | 2022-05-13 |
CN114501082B true CN114501082B (en) | 2023-10-27 |
Family
ID=81479704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210142714.0A Active CN114501082B (en) | 2022-02-16 | 2022-02-16 | Live broadcast room distribution method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114501082B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534905A (en) * | 2016-12-09 | 2017-03-22 | 武汉斗鱼网络科技有限公司 | Method and system for intercommunication between video bullet screen live platform and bullet screen of third-party platform |
CN107172443A (en) * | 2017-06-29 | 2017-09-15 | 北京小米移动软件有限公司 | Net cast methods, devices and systems |
CN107613309A (en) * | 2017-08-29 | 2018-01-19 | 武汉斗鱼网络科技有限公司 | Live resource self-defined distribution method, storage medium, electronic equipment and system |
CN109040232A (en) * | 2018-08-01 | 2018-12-18 | 广州视源电子科技股份有限公司 | Load balancing method, device and equipment for video conference and storage medium thereof |
CN111586461A (en) * | 2020-04-08 | 2020-08-25 | 微梦创科网络科技(中国)有限公司 | Live broadcasting method and system for synchronous playing of multiple paths of streams |
CN111770355A (en) * | 2020-07-09 | 2020-10-13 | 北京达佳互联信息技术有限公司 | Media server determination method, device, server and storage medium |
CN112887752A (en) * | 2021-02-08 | 2021-06-01 | 北京安锐卓越信息技术股份有限公司 | Live broadcast establishing method and device based on multiple live broadcast platforms and storage medium |
CN113515336A (en) * | 2021-05-24 | 2021-10-19 | 腾讯科技(深圳)有限公司 | Live broadcast room joining method, live broadcast room creating method, live broadcast room joining device, live broadcast room creating device, live broadcast room equipment and storage medium |
CN113905252A (en) * | 2021-09-16 | 2022-01-07 | 广州虎牙科技有限公司 | Data storage method and device for live broadcast room, electronic equipment and storage medium |
-
2022
- 2022-02-16 CN CN202210142714.0A patent/CN114501082B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534905A (en) * | 2016-12-09 | 2017-03-22 | 武汉斗鱼网络科技有限公司 | Method and system for intercommunication between video bullet screen live platform and bullet screen of third-party platform |
CN107172443A (en) * | 2017-06-29 | 2017-09-15 | 北京小米移动软件有限公司 | Net cast methods, devices and systems |
CN107613309A (en) * | 2017-08-29 | 2018-01-19 | 武汉斗鱼网络科技有限公司 | Live resource self-defined distribution method, storage medium, electronic equipment and system |
CN109040232A (en) * | 2018-08-01 | 2018-12-18 | 广州视源电子科技股份有限公司 | Load balancing method, device and equipment for video conference and storage medium thereof |
CN111586461A (en) * | 2020-04-08 | 2020-08-25 | 微梦创科网络科技(中国)有限公司 | Live broadcasting method and system for synchronous playing of multiple paths of streams |
CN111770355A (en) * | 2020-07-09 | 2020-10-13 | 北京达佳互联信息技术有限公司 | Media server determination method, device, server and storage medium |
CN112887752A (en) * | 2021-02-08 | 2021-06-01 | 北京安锐卓越信息技术股份有限公司 | Live broadcast establishing method and device based on multiple live broadcast platforms and storage medium |
CN113515336A (en) * | 2021-05-24 | 2021-10-19 | 腾讯科技(深圳)有限公司 | Live broadcast room joining method, live broadcast room creating method, live broadcast room joining device, live broadcast room creating device, live broadcast room equipment and storage medium |
CN113905252A (en) * | 2021-09-16 | 2022-01-07 | 广州虎牙科技有限公司 | Data storage method and device for live broadcast room, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114501082A (en) | 2022-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20110196888A1 (en) | Correlating Digital Media with Complementary Content | |
CN109936749B (en) | Special effect implementation method and device and readable storage medium | |
CN105159845A (en) | Memory reading method | |
JP2022531339A (en) | Resource configuration method, resource configuration device, computer equipment, and computer program | |
CN107888666A (en) | A kind of cross-region data-storage system and method for data synchronization and device | |
CN103581207A (en) | Cloud terminal data storage system and data storing and sharing method based on cloud terminal data storage system | |
CN110083579A (en) | Incremental data synchronous method, apparatus, computer equipment and computer storage medium | |
CN103997662A (en) | Program pushing method and system | |
CN103763368A (en) | Cross-data-center data synchronism method | |
CN112422592B (en) | Information recommendation method and device, electronic equipment and storage medium | |
CN111625353A (en) | Virtual resource distribution processing method, device, server and storage medium | |
CN111314747B (en) | Resource outage control method, device, equipment and storage medium | |
CN115712660B (en) | Data storage method, device, server and storage medium | |
CN106570006B (en) | Multimedia file recommendation system and delivery information storage method | |
CN102982034A (en) | Internet website information search method and search system | |
KR102392531B1 (en) | Method for communicating between artist and fan and server performing the same | |
CN114501082B (en) | Live broadcast room distribution method and device | |
CN112104910B (en) | Video searching method, device and system | |
CN111930927B (en) | Evaluation information display method and device, electronic equipment and readable storage medium | |
CN113596493B (en) | Interactive special effect synchronization method and related device | |
CN116193174A (en) | Media resource processing method and system | |
CN109189813A (en) | A kind of data sharing method and device | |
CN111857931B (en) | Processing method and device for animation display of virtual article | |
CN105791350B (en) | Project data processing method and system | |
CN111192077A (en) | Advertisement traffic multiplexing method and device, storage medium and electronic device |
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 |