CN110971918A - Live broadcast data sorting method, server and device - Google Patents

Live broadcast data sorting method, server and device Download PDF

Info

Publication number
CN110971918A
CN110971918A CN201811141864.XA CN201811141864A CN110971918A CN 110971918 A CN110971918 A CN 110971918A CN 201811141864 A CN201811141864 A CN 201811141864A CN 110971918 A CN110971918 A CN 110971918A
Authority
CN
China
Prior art keywords
data
live broadcast
live
sequencing
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811141864.XA
Other languages
Chinese (zh)
Other versions
CN110971918B (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.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya Information Technology 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 Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201811141864.XA priority Critical patent/CN110971918B/en
Publication of CN110971918A publication Critical patent/CN110971918A/en
Application granted granted Critical
Publication of CN110971918B publication Critical patent/CN110971918B/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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/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
    • H04N21/26258Content 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 for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list

Abstract

The application discloses a live data sorting method, a server and a device, wherein the live data sorting method is applied to the server and comprises the following steps: acquiring live broadcast data respectively corresponding to a plurality of current live broadcast rooms; acquiring preset multiple attribute data; and sequencing the live broadcast data corresponding to the at least one attribute data according to a preset data structure to form a plurality of groups of sequencing data combinations, so as to provide the sequencing data combinations for the client to obtain. Through the mode, the response speed of the live broadcast system can be improved.

Description

Live broadcast data sorting method, server and device
Technical Field
The present application relates to the field of live broadcast technologies, and in particular, to a live broadcast data sorting method, a server, and an apparatus.
Background
With the rapid development of the internet technology and the popularization of intelligent equipment, people can perform various transaction processing and entertainment activities through the intelligent equipment at any time and any place, live broadcast is popular with people at present, and the live broadcast market is very active. The current live broadcast platform has diversified live broadcast contents, such as online entertainment or game live broadcast. It is therefore very important to provide people with a good live or watching live experience.
Currently, when a client performs a relevant request, a live broadcast system processes relevant data through synchronization and then sends the data to the client.
Disclosure of Invention
The method, the server and the device mainly solve the technical problem that the response efficiency of a live broadcast system in the prior art is low can be improved.
In order to solve the technical problem, the application adopts a technical scheme that: the live broadcast data sorting method is applied to a server and comprises the following steps:
acquiring live broadcast data respectively corresponding to a plurality of current live broadcast rooms;
acquiring preset multiple attribute data;
and sequencing the live broadcast data corresponding to the at least one attribute data according to a preset data structure to form a plurality of groups of sequencing data combinations, so as to provide the sequencing data combinations for the client to obtain.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a server comprising: the device comprises an acquisition module, a processing module and a sending module.
The acquisition module is used for acquiring live broadcast data respectively corresponding to a plurality of current live broadcast rooms. The acquisition module is further used for acquiring preset multiple attribute data. The processing module is used for combining the live data set and at least one attribute data in the attribute data set to form a plurality of combined data sets. The sending module is used for sequencing the live broadcast data corresponding to the at least one attribute data according to a preset data structure to form a plurality of groups of sequencing data combinations, and accordingly the sequencing data combinations are provided for the client side to obtain.
In order to solve the above technical problem, the present application adopts another technical solution: a server includes a communication circuit and a processor, the communication circuit and the processor being connected.
The processor is used for acquiring live broadcast data respectively corresponding to a plurality of current live broadcast rooms. The processor is used for acquiring preset multiple attribute data. The processor is used for sequencing the live broadcast data corresponding to the at least one attribute data according to a preset data structure to form a plurality of groups of sequencing data combinations, and accordingly the sequencing data combinations are provided for the client side to obtain.
In order to solve the above technical problem, the present application adopts another technical solution that: there is provided a device having a storage function, the device having the storage function storing program data executable to implement the steps involved in the method of providing live data sorting as described in the above-mentioned application.
Compared with the prior art, the beneficial effects of this application are: the method comprises the steps of obtaining live broadcast data of a plurality of current live broadcast rooms, obtaining various attribute data related to the live broadcast rooms, and conducting multi-dimensional sequencing on the live broadcast data corresponding to at least one attribute data according to a preset data structure in advance to form a plurality of groups of sequencing data combinations. When a client request is received, the corresponding sequencing data combination can be directly called and sent to the client, synchronous processing is not needed when the client requests, so that the response efficiency can be improved, and the burden of a live broadcast system is reduced.
Drawings
Fig. 1 is a schematic block diagram of a live broadcast system in a first embodiment of a live broadcast data sorting method according to the present application;
fig. 2 is a schematic flow chart of a first embodiment of a live data sorting method according to the present application;
fig. 3 is another schematic block diagram of the live broadcast system in the first embodiment of the live broadcast data sorting method of the present application;
FIG. 4 is a schematic interaction flow diagram of a second embodiment of a live data sorting method according to the present application;
FIG. 5 is a schematic interaction flow diagram of a third embodiment of a live data sorting method according to the present application;
FIG. 6 is a block diagram schematically illustrating the structure of a first embodiment of the server according to the present application;
FIG. 7 is a block diagram schematically illustrating the structure of a second embodiment of the server according to the present application;
fig. 8 is a block diagram schematically illustrating the structure of an embodiment of the apparatus with storage function according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The current live broadcast platform often generates a large amount of data, which requires a very high data processing capability for the live broadcast platform. The inventor researches and discovers that the current live broadcast technology is used for synchronously responding to requests of a client, such as some data viewing requests, namely synchronously processing data after receiving the requests, but the problems of response timeout and the like are frequently caused due to large data volume, large synchronous processing load, low efficiency and slow response. In order to improve the above problems, the following embodiments are proposed:
referring to fig. 1 and fig. 2, a first embodiment of the live data sorting method of the present application, applied to a server 11, that is, a live server, includes:
step S101: the server 11 acquires live broadcast data corresponding to each of the plurality of live broadcast rooms.
Specifically, a plurality of live rooms, for example, 1000 live rooms are registered on the live system. Of course the number of live rooms can be increased or decreased. A live room refers to, for example, a platform in a live system for a host to live through a network and facilitate viewing by viewers. Each live broadcast room corresponds to live broadcast data, for example, data related to the live broadcast room, such as popularity data, number of fans, number of gifts, and the like. In this embodiment, the live data is variable, for example, the number of viewers in the live room varies.
In this embodiment, for example, the server 11 obtains live broadcast data respectively corresponding to a plurality of current live broadcast rooms through the taf (total Application framework). The TAF is a distributed epoll-based multithreaded, non-blocking, high-performance and supports a synchronous, asynchronous, one-way call RPC framework. The frame isolates the network thread from the service thread, realizes communication between the network thread and the service thread through the queue and the pipeline, and realizes maintenance of the network connection queue, the data receiving queue and the data sending queue by the frame. The framework supports multi-language development and integrates excellent characteristics of high availability, high performance, high concurrency, high efficiency and the like. According to the embodiment, live broadcast data respectively corresponding to a plurality of current live broadcast rooms can be accurately and effectively acquired by using the TAF.
Optionally, the live data includes live room IDs and popularity data corresponding to the plurality of live rooms. In some embodiments, the popularity data of the live room is, for example, the number of people watching the live room.
Step S102: the server 11 acquires a plurality of preset attribute data.
In the present embodiment, the attribute data refers to data indicating or indicating what type each of the plurality of live rooms belongs to. For example, the plurality of attribute data includes live type data, game type data, type data related to a main cast, broadcast language data, and upper and lower line status data. The live broadcast type data is data formed by live broadcast types respectively corresponding to a plurality of live broadcast rooms. The game types can include network games, stand-alone games, mobile phone games, PC side games, leisure games and the like, and can also specifically include A games, B games and the like. Broadcast languages such as english, chinese, etc. The types associated with the anchor are, for example, male anchor, female anchor, age, region, nationality, etc. Each live broadcast room can be set with relevant types when registering, for example, the starting language of a certain live broadcast room is English, the age of the anchor is 28 years, the live broadcast type is game live broadcast room, and the live broadcast game is A game. The online and offline state refers to whether the live broadcast room is currently in an online live broadcast state.
Step S103: the server 11 sorts the live broadcast data corresponding to at least one attribute data according to a preset data structure to form a plurality of groups of sorted data combinations, and the sorted data combinations are provided for the client 12 to be obtained.
In this embodiment, the client 12 refers to an application of a live broadcast system, such as an application program or APP, and may run on a PC and/or a mobile terminal. Mobile terminals such as smart phones, tablet computers, smart wearable devices, and the like.
Specifically, each attribute data corresponds to a live broadcast room corresponding to the attribute, for example, in 1000 live broadcast rooms, the number of live broadcast rooms of which the live broadcast room type is a game live broadcast room is 500, and the server 11 sorts the live broadcast data of the 500 live broadcast rooms according to a preset data structure to form a sorted data combination corresponding to the game live broadcast room. The combination of the attribute data also corresponds to a corresponding live broadcast room, for example, the number of live broadcast rooms corresponding to the combination of the game live broadcast room and the game a is 200, and the server 11 sorts the live broadcast data of the 200 live broadcast rooms according to a preset data structure to form a sorted data combination corresponding to "game live broadcast room + game a".
Stated another way, for example, at least one attribute data is combined with the live broadcast data to form a data set with attributes as tags, for example, the data set is in a list form and includes live broadcast room ID, attribute data and popularity data, and the attribute data or the combination of the attribute data corresponding to the live broadcast room in the data set is the same. For example, attribute data corresponding to the type of the a game and live broadcast data of a live broadcast room for playing the a game are combined to form a data set, and the corresponding live broadcast room in the set can be part of the live broadcast rooms for playing the a game in a plurality of live broadcast rooms. For example, live data is popularity data, such as the total number of people currently watching the live broadcast. The server 11 sorts the live data in the set according to a preset data structure, that is, according to the preset data structure, for example, the popularity is sorted from high to low, thereby forming a sorted data combination.
In this embodiment, the server 11 sorts the live data corresponding to at least one attribute data, that is, the attribute data and the corresponding live data may form a plurality of data sets, so as to sort the data sets respectively. For example, in some embodiments, the plurality of attribute data are arranged and combined to form the plurality of data sets with the corresponding live data, all possible combinations are combined to form the data sets, so that the live data in all the data sets are sorted respectively to form all possible sorted data combinations, and the client 12 obtains the corresponding sorted data combinations through the parameters corresponding to the attribute data. For example, the attribute data a, the attribute data B, and the attribute data C form a data set including: attribute data A + live data; attribute data B + live data; attribute data C + live data; attribute data A and B + live data; attribute data A and C + live data; attribute data B and C + live data; attribute data A, B and C + live data.
In the present embodiment, the preset data structure is, for example, a Sortset (ordered set) structure. The inventor finds that the Sortset structure is used as a sort set type, can effectively improve the accuracy of sorting when being applied to real-time live broadcast data processing, and simultaneously enables the processing speed to be faster.
Step S103 is explained with an example:
the server 11 obtains the live broadcast room ID and the popularity data of a corresponding part of the plurality of live broadcast rooms according to at least one attribute data of the live broadcast type data, the game type data, the broadcast content language data, and the upper and lower line status data of the live broadcast rooms.
Specifically, live type data, game type data, broadcast content language data, and upper and lower line status data, such as live room ID and popularity data of the live room in which permutation and combination is performed, form a data set.
The server 11 sorts the popularity data of part of the live broadcast rooms corresponding to at least one attribute data according to a sortset (ordered set) structure to form a plurality of groups of sorted data combinations.
Specifically, the popularity data in the multiple data sets are sorted respectively according to the sorset structure, or the popularity data in each data set is sorted, so as to form a plurality of groups of sorted data combinations, which is equivalent to performing multi-dimensional sorting on the popularity data. The user inputs the parameter "game" on the interface corresponding to the client 12, the server 11 accordingly retrieves the ranking data combination corresponding to the "game live broadcast" and sends the data combination to the client 12, and the corresponding popularity data ranking is displayed on the client 12.
In the embodiment, live data and attribute data of a plurality of current live rooms are acquired, and multi-dimensional sequencing is performed on the live data corresponding to the attribute data according to a preset data structure in advance without depending on a request of the client 12, so that a plurality of sequencing possible sequencing data combinations are formed, so that when a request or an instruction of the client 12 is received, a directly processed corresponding sequencing data combination can be directly called and sent to the client 12, the client 12 quickly receives the corresponding sequencing data combination to perform corresponding operation or display, and therefore, the embodiment does not need to process data synchronously when the request of the client 12 is received, so that response efficiency can be improved, and the burden of a live system is reduced.
Referring to fig. 3, the server 11 optionally includes a plurality of sub-servers 111, and the plurality of sub-servers 111 are arranged in a multi-available area manner and are respectively located in different areas, so as to prevent an area disaster and improve high-availability disaster tolerance of the server 11.
With continued reference to fig. 3, optionally, the server 11 includes a first database 112 and a second database 113, the first database 112 is used for storing a plurality of attribute data, and the second database 113 is used for storing a plurality of sets of ordered data combinations, wherein the first database 112 is a MySQL database, and the second database 113 is a Redis database. Of course, the first database 112 and the second database 113 may exist as separate storage devices, each being independent of the server 11.
Specifically, the server 11 acquires live data of a plurality of live rooms at present. The server 11 acquires various attribute data from the first database 112. The server 11 sorts the live broadcast data corresponding to the at least one attribute data according to a preset data structure to obtain a plurality of groups of sorted data combinations, and stores the groups of sorted data combinations in the second database 113. When the server 11 receives the instruction of the client 12, the corresponding sorting data combination is directly extracted from the second database 113 and sent to the client. In addition, the use of Redis as the second database can accelerate the read-write speed with the server 11, and improve the response speed of the server 11.
In this embodiment, the sequence of the steps is only a description sequence, and is not limited to be the sequence in the specific execution, for example, the sequence of the step S101 and the sequence of the step S102 may be interchanged, and the steps may be composed of multiple steps or split into multiple steps in the actual specific execution, and the steps may also be combined, which may be determined according to the actual situation.
Referring to fig. 4, on the basis of the first embodiment of the live data sorting method, the step of updating the live data is described in detail, and the steps of the second embodiment of the live data sorting method are the same as those of the first embodiment of the live data sorting method, and are not described again here. The embodiment comprises the following steps:
step S201: the server 11 acquires live broadcast data corresponding to each of the plurality of live broadcast rooms.
Step S202: the server 11 acquires a plurality of preset attribute data.
Step S203: the server 11 obtains the update data every first preset time to update the live broadcast data respectively corresponding to the plurality of live broadcast rooms.
Specifically, a timing task is set, for example, a deployment sets the timing task using a Springboot + Quartz distributed service framework, and step S203 and step S204 described below are performed by the timing task.
At least part of the live broadcast data of the live broadcast room may change due to different time, such as changes of the popularity data. In this embodiment, for example, the server 11 may acquire live broadcast data of live broadcast rooms that are online and in which live broadcast data changes every first preset time period, as update data, and update live broadcast data of a plurality of live broadcast rooms with the update data. That is, each first preset duration updates live broadcast data of live broadcast rooms with live broadcast data changing among the multiple live broadcast rooms, so that the live broadcast data respectively corresponding to the multiple live broadcast rooms are in a continuously adjusted state, and higher accuracy is kept.
Optionally, the first preset time period is, for example, 2s to 10s, optionally 3s to 5 s.
Step S204: the server 11 sorts the live broadcast data of the live broadcast room corresponding to the at least one attribute data according to a preset data structure to form a plurality of groups of sorting combinations, so as to provide the live broadcast data to the client 12 when the client 12 requests the data.
That is, after updating the live broadcast data of the plurality of live broadcast rooms with the update data, the server 11 reorders the live broadcast data corresponding to the at least one attribute data according to the preset data structure.
Step S205: the server 11 acquires live broadcast data respectively corresponding to all live broadcast rooms at intervals of a second preset time length, wherein the second preset time length is determined by performing random modulo operation on the server 11 within a preset time length range, and the second preset time length is greater than the first preset time length.
In this embodiment, the server 11 acquires live broadcast data of all live broadcast rooms in the live broadcast system every second preset time period. In this embodiment, the number of live rooms in the live system may be increased or decreased, and thus the number of live rooms may be changed, for example, the number is 1000, and after a second preset time interval, the number may be changed to 1010, or may be changed to 999. The server 11 corrects the number of all live broadcast rooms every second preset duration, and simultaneously corrects the respectively corresponding live broadcast data of all live broadcast rooms comprehensively. In this embodiment, the second preset duration is greater than the first preset duration, and the second preset duration is determined by randomly taking a modulus within a preset duration range, for example, using an algorithm (system. currenttimeMillis/1000)% T1> T2, a preset duration range (T1, T2), for example, randomly taking a modulus within a range of (20s,30s) each time as the second preset duration, for example, randomly taking 23s within a range of (20s,30 s). In this embodiment, the second preset duration determined by the random modulo operation each time is random, and the live broadcast data in all the live broadcast rooms are updated by using the randomly determined second preset duration, so that the accuracy of the live broadcast data can be better ensured.
Step S206: the server 11 sorts the live broadcast data of the live broadcast room corresponding to the at least one attribute data according to a preset data structure to form a plurality of groups of sorting combinations, and provides the groups of sorting combinations to the client 12 when responding to the request of the client 12.
That is, the server 11 sorts the live broadcast data of the corresponding live broadcast room of all the live broadcast rooms corresponding to the at least one attribute data according to the preset data structure. At least part of live broadcast data of at least one live broadcast room corresponding to at least one attribute in all live broadcast rooms, for example, the part of all live broadcast rooms belonging to the male live broadcast room, the server 11 continuously sorts the live broadcast data of the male live broadcast room according to a preset data structure.
Referring to fig. 5, the interaction process with the client 12 is described in detail in the third embodiment of the live data sorting method according to the present application on the basis of the first embodiment of the live data sorting method according to the present application, and the steps of the third embodiment of the live data sorting method according to the present application are the same as those of the first embodiment of the live data sorting method according to the present application, and are not described again here. The embodiment comprises the following steps:
step S301: the server 11 acquires live broadcast data corresponding to each of the plurality of live broadcast rooms.
Step S302: the server 11 acquires a plurality of preset attribute data.
Step S303: the server 11 sorts the live broadcast data corresponding to at least one attribute data according to a preset data structure to form a plurality of groups of sorted data combinations.
Step S304: the server 11 acquires a call instruction of the client 12.
Specifically, when the user queries the live broadcast room through the client 12, the user inputs a corresponding "keyword", such as "game", "beauty", and the like, and the client 12 generates a call instruction according to the input "keyword", and sends the call instruction to the server 11.
Step S305: the server 11 analyzes the call instruction to obtain the sorting parameters corresponding to the attribute data.
Specifically, when receiving the call instruction, the server 11 parses the call instruction to obtain the sorting parameter corresponding to the attribute data, that is, obtains the sorting parameter corresponding to the "keyword". For example, the keyword "game", the corresponding attribute data of the ranking parameter is "game live room" data. If the keywords are "game" and "beauty", the ranking parameter corresponds to a combination of the attribute data "live game room" and "gender on the lead".
Step S306: the server 11 extracts the sorting data combination corresponding to the sorting parameters according to the sorting parameters and sends the sorting data combination to the client 12.
Specifically, after the sorting parameters are obtained, the sorting parameters and the corresponding sorting data combination are extracted and sent to the client 12, and after the client 12 receives the sorting combination, the corresponding result is displayed. For example, after the user inputs the keyword "game" at the client 12, the server 11 extracts the sorting data with the attribute data of "game live room" to combine with the client 12, and the client 12 displays the current sorting condition of the live data in the game live room.
The present embodiment may be combined with the second embodiment of the live data sorting method of the present application.
Referring to fig. 6, a first embodiment of the server according to the present application is a device implementation of the server 11 in a functional form in the first embodiment of the live data sorting method according to the present application, and the present embodiment includes an obtaining module 1101, a processing module 1102, and a sending module 1103.
The obtaining module 1101 is configured to obtain live broadcast data corresponding to a plurality of live broadcast rooms respectively.
The obtaining module 1101 is further configured to obtain a plurality of preset attribute data.
The processing module 1102 is configured to combine the live data set with at least one attribute data in the attribute data set to form a plurality of combined data sets.
The processing module 1102 is further configured to sort, according to a preset data structure, live broadcast data corresponding to at least one attribute data, to form a plurality of sets of sorted data combinations.
The sending module 1103 is configured to send the corresponding sorting data combination to the client 12 according to the request of the client 12.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, in the embodiments, each functional module may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
For further explanation of each functional module in this embodiment, please refer to the first embodiment to the third embodiment of the live data sorting method of the present application, which is not described herein again.
Referring to fig. 7, the second embodiment of the server according to the present application is a device in hardware form of the server 11 according to the first embodiment of the live data sorting method according to the present application, and the second embodiment of the server according to the present application includes a communication circuit 1112 and a processor 1111, where the communication circuit 1112 is connected to the processor 1111.
The processor 1111 is configured to obtain live broadcast data corresponding to a plurality of live broadcast rooms at present.
The processor 1111 is configured to obtain a plurality of preset attribute data.
The processor 1111 is configured to sort the live broadcast data corresponding to the at least one attribute data according to a preset data structure to form a plurality of sets of sorted data combinations, so as to provide the sorted data combinations to the client 12 for obtaining through the communication circuit 1112.
In this embodiment, the processor 1111 may also be referred to as a CPU (Central Processing Unit). The processor 1111 may be an integrated circuit chip having signal processing capabilities. The processor 1111 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
For more details of the processor 1111 and the communication circuit 1112 in this embodiment, please refer to the first embodiment to the third embodiment of the live data sorting method of the present application, which are not described herein again.
Referring to fig. 8, in the embodiment of the device with storage function of the present application, the device with storage function 14 stores program data, and the program data can be executed to implement the steps of the first embodiment to the third embodiment of the live data sorting method of the present application.
The steps involved in the first to third embodiments of the live data sorting method of the present application, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product stored in a storage device 14, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned means 14 comprise: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or other devices, such as a computer, including a storage medium.
The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (10)

1. A live data sorting method is applied to a server and is characterized by comprising the following steps:
acquiring live broadcast data respectively corresponding to a plurality of current live broadcast rooms;
acquiring preset multiple attribute data;
and sequencing the live broadcast data corresponding to at least one kind of attribute data according to a preset data structure to form a plurality of groups of sequencing data combinations, so as to provide the sequencing data combinations for a client to obtain.
2. The sorting method according to claim 1, further comprising:
acquiring updating data every other first preset time length so as to update the live broadcast data respectively corresponding to the plurality of live broadcast rooms;
and acquiring the live broadcast data respectively corresponding to all the live broadcast rooms at intervals of a second preset time length, wherein the second preset time length is determined by randomly taking a module by the server within a preset time length range, and the second preset time length is greater than the first preset time length.
3. The sorting method according to claim 2, wherein: the update data is the live broadcast data of the live broadcast room with the change of the live broadcast data sending, the first preset time length is 2-5 seconds, and the preset time length range is 20-30 seconds.
4. The sorting method according to claim 1, wherein: the method further comprises:
acquiring a calling instruction of a client;
analyzing the calling instruction to obtain a sequencing parameter corresponding to the at least one attribute data;
and extracting the corresponding sorting data combination according to the sorting parameters and sending the sorting data combination to the client.
5. The sequencing method of claim 4, wherein the server comprises a first database and a second database, the first database is used for storing the plurality of attribute data, the second database is used for storing the plurality of sequencing data combinations, and the first database is a MySQL database and the second database is a Redis database.
6. The sorting method according to claim 1, wherein: the live broadcast data comprises a live broadcast room ID and popularity data; the multiple attribute data comprise live broadcast type data, game type data, broadcast content language data and up-down line state data of the live broadcast room.
7. The sorting method according to claim 6, wherein: the step of sequencing the live broadcast data corresponding to at least one kind of attribute data according to a preset data structure to form a plurality of groups of sequencing data combinations, so as to provide the sequencing data combinations for a client to obtain comprises the following steps:
acquiring live broadcast room IDs and popularity data of corresponding partial live broadcast rooms in the plurality of live broadcast rooms according to at least one attribute data of live broadcast type data, game type data, broadcast content language data and upper and lower line state data of the live broadcast rooms;
and sequencing the popularity data of the partial live broadcast rooms according to a Sortset (ordered set) structure to form the plurality of groups of sequencing data combinations.
8. A server, comprising:
the acquisition module is used for acquiring live broadcast data respectively corresponding to a plurality of current live broadcast rooms;
the acquisition module is further used for acquiring preset various attribute data;
the processing module is used for combining the live data set with at least one attribute data in the attribute data set to form a plurality of combined data sets;
and the sending module is used for sequencing the live broadcast data corresponding to at least one kind of attribute data according to a preset data structure to form a plurality of groups of sequencing data combinations, so as to provide the sequencing data combinations for a client to obtain.
9. A server comprising a communication circuit and a processor, the communication circuit and the processor being connected; wherein:
the processor is used for acquiring live broadcast data respectively corresponding to a plurality of current live broadcast rooms;
the processor is used for acquiring preset multiple attribute data;
the processor is used for sequencing the live broadcast data corresponding to at least one kind of attribute data according to a preset data structure to form a plurality of groups of sequencing data combinations, and accordingly the sequencing data combinations are provided for a client to obtain.
10. An apparatus with storage functionality, characterized in that the apparatus with storage functionality stores program data executable to implement the steps of a live data processing method according to any of claims 1-7.
CN201811141864.XA 2018-09-28 2018-09-28 Live broadcast data sorting method, server and device Active CN110971918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811141864.XA CN110971918B (en) 2018-09-28 2018-09-28 Live broadcast data sorting method, server and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811141864.XA CN110971918B (en) 2018-09-28 2018-09-28 Live broadcast data sorting method, server and device

Publications (2)

Publication Number Publication Date
CN110971918A true CN110971918A (en) 2020-04-07
CN110971918B CN110971918B (en) 2022-01-11

Family

ID=70027801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811141864.XA Active CN110971918B (en) 2018-09-28 2018-09-28 Live broadcast data sorting method, server and device

Country Status (1)

Country Link
CN (1) CN110971918B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113823109A (en) * 2021-08-02 2021-12-21 阿波罗智联(北京)科技有限公司 Live broadcast method and device, electronic equipment and storage medium
CN113891102A (en) * 2021-08-18 2022-01-04 北京达佳互联信息技术有限公司 Live broadcast room processing method and device, server and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130136423A1 (en) * 2011-11-28 2013-05-30 Microsoft Corporation Identifying series candidates for digital video recorder
CN105323594A (en) * 2015-10-26 2016-02-10 广州华多网络科技有限公司 Online live-broadcast list generation method and device
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
CN106599251A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for displaying anchor rankings
CN107172498A (en) * 2017-04-25 2017-09-15 北京潘达互娱科技有限公司 Live room methods of exhibiting and device
CN108495195A (en) * 2018-03-13 2018-09-04 武汉斗鱼网络科技有限公司 A kind of network direct broadcasting ranking list generation method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130136423A1 (en) * 2011-11-28 2013-05-30 Microsoft Corporation Identifying series candidates for digital video recorder
CN105323594A (en) * 2015-10-26 2016-02-10 广州华多网络科技有限公司 Online live-broadcast list generation method and device
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
CN106599251A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for displaying anchor rankings
CN107172498A (en) * 2017-04-25 2017-09-15 北京潘达互娱科技有限公司 Live room methods of exhibiting and device
CN108495195A (en) * 2018-03-13 2018-09-04 武汉斗鱼网络科技有限公司 A kind of network direct broadcasting ranking list generation method, device, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113823109A (en) * 2021-08-02 2021-12-21 阿波罗智联(北京)科技有限公司 Live broadcast method and device, electronic equipment and storage medium
CN113823109B (en) * 2021-08-02 2023-01-17 阿波罗智联(北京)科技有限公司 Live broadcast method and device, electronic equipment and storage medium
CN113891102A (en) * 2021-08-18 2022-01-04 北京达佳互联信息技术有限公司 Live broadcast room processing method and device, server and storage medium
CN113891102B (en) * 2021-08-18 2023-09-19 北京达佳互联信息技术有限公司 Live broadcast room processing method, device, server and storage medium

Also Published As

Publication number Publication date
CN110971918B (en) 2022-01-11

Similar Documents

Publication Publication Date Title
US20190335011A1 (en) Method and device for information pushin
CN106021421B (en) method and device for accelerating webpage rendering
CN109508218B (en) APP message pushing display control method, device, equipment and storage medium
US20240086450A1 (en) Content search method, apparatus, device, and medium
CN110971918B (en) Live broadcast data sorting method, server and device
CN111339418B (en) Page display method, page display device, electronic equipment and computer readable medium
CN110263276B (en) Message distribution method, device, equipment and storage medium
US20230101302A1 (en) Method and apparatus for displaying live broadcast interface
CN112532748B (en) Message pushing method, device, equipment, medium and computer program product
US20210149961A1 (en) Learning affinities through design variations
CN109218817B (en) Method and device for displaying virtual gift prompting message
KR20170022138A (en) Apparatus, method and computer program for providing contents sharing service
CN112487018B (en) Method and device for generating list, electronic equipment and computer readable storage medium
CN113139082A (en) Multimedia content processing method, apparatus, device and medium
US20230083565A1 (en) Image data processing method and apparatus, storage medium, and electronic device
CN108694205B (en) Method and device for matching target field
CN116185545A (en) Page rendering method and device
CN114880580A (en) Information recommendation method and device, electronic equipment and medium
CN112672202B (en) Bullet screen processing method, equipment and storage medium
CN113891121A (en) Video subtitle processing method, video subtitle display method and device
CN113905248A (en) Live video data transmission method, device, equipment and storage medium
CN107659830B (en) Interactive activity access method, system and terminal equipment
US20220138799A1 (en) Streamless content aware ad insertion
CN113286187B (en) Video loading playing method, device, equipment and storage medium
CN113032040B (en) Method, apparatus, device, medium, and article for processing tasks

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