CN112770126A - Live broadcast room pushing method and device, server and storage medium - Google Patents

Live broadcast room pushing method and device, server and storage medium Download PDF

Info

Publication number
CN112770126A
CN112770126A CN202011602875.0A CN202011602875A CN112770126A CN 112770126 A CN112770126 A CN 112770126A CN 202011602875 A CN202011602875 A CN 202011602875A CN 112770126 A CN112770126 A CN 112770126A
Authority
CN
China
Prior art keywords
live broadcast
broadcast room
watching
target
room
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011602875.0A
Other languages
Chinese (zh)
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011602875.0A priority Critical patent/CN112770126A/en
Publication of CN112770126A publication Critical patent/CN112770126A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4667Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4668Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present disclosure relates to a push method, a device, a server and a storage medium for a live broadcast room, wherein the method comprises the following steps: responding to a live broadcast viewing request of an account to be pushed, acquiring a live broadcast matched with the live broadcast viewing request and acquiring viewing duration data associated with the target version identification; the watching duration data comprise watching duration data of the account to be pushed to each historical live broadcast room, and the target version identification is determined according to the time point of the starting live broadcast room watching request; acquiring a target live broadcast room from the live broadcast room matched with the live broadcast room watching request based on the watching duration data of the account to be pushed to each historical live broadcast room; the target live broadcast room is a live broadcast room of which the watching time length data accord with preset time length; and marking the target live broadcast room with a watching label, and pushing the live broadcast room containing the target live broadcast room marked with the watching label to an account to be pushed. By adopting the method, the query efficiency of the recently viewed live broadcast room is improved.

Description

Live broadcast room pushing method and device, server and storage medium
Technical Field
The present disclosure relates to the field of live broadcast processing technologies, and in particular, to a push method and apparatus for a live broadcast room, a server, a storage medium, and a computer program product.
Background
With the continuous development of internet technology, browsing multimedia resources such as videos through a network becomes one of important ways for people to entertain, and the content forms of the multimedia resources are increasingly rich, for example, various live videos such as a singing live video, a dancing live video, a shopping live video and the like appear; each live video corresponds to a live room.
In the related art, in order to check which live broadcast rooms are recently viewed in a page with a plurality of live broadcast rooms, a user needs to click and jump to a historical viewing record viewing page from a current page, and determine which live broadcast rooms are recently viewed through one-to-one comparison, so that the process is complicated.
Disclosure of Invention
The present disclosure provides a push method, apparatus, server, storage medium, and computer program product for a live broadcast room, so as to at least solve the problem that the process of viewing a live broadcast room that has been viewed most recently in the related art is complicated. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a push method for a live broadcast room is provided, including:
responding to a live broadcast room watching request of an account to be pushed, acquiring a live broadcast room matched with the live broadcast room watching request and acquiring watching duration data associated with a target version identifier, wherein the watching duration data comprise watching duration data of the account to be pushed to each historical live broadcast room, and the target version identifier is determined according to a time point for initiating the live broadcast room watching request;
acquiring a target live broadcast room from the live broadcast room matched with the live broadcast room watching request based on the watching duration data of the account to be pushed to each historical live broadcast room; the target live broadcast room is a live broadcast room of which the watching time length data accord with preset time length;
and marking a watching label on the target live broadcast room, and pushing the live broadcast room containing the target live broadcast room marked with the watching label to the account to be pushed.
In an exemplary embodiment, before obtaining the viewing duration data associated with the target version identification, the method further includes:
reading the watching duration data and the watching time of the account to be pushed to each historical live broadcast room from the offline data;
acquiring a version identifier associated with a time range to which the viewing time belongs;
storing the watching duration data of the account to be pushed to each historical live broadcast room into a preset database according to the version identification;
the acquiring of the viewing duration data associated with the target version identifier includes:
and querying the preset database according to the target version identification to acquire viewing duration data associated with the target version identification.
In an exemplary embodiment, before obtaining a target live broadcast room from a live broadcast room matched with the live broadcast room viewing request based on the viewing duration data of the account to be pushed to each historical live broadcast room, the method further includes:
acquiring a live broadcast room to be marked from a live broadcast room matched with the live broadcast room watching request;
the acquiring of the target live broadcast room from the live broadcast room matched with the live broadcast room watching request based on the watching duration data of the account to be pushed to each historical live broadcast room comprises the following steps:
and acquiring a target live broadcast room from the live broadcast room to be marked based on the watching duration data of the account to be pushed to each historical live broadcast room.
In an exemplary embodiment, the obtaining a live broadcast room to be marked from a live broadcast room matched with the live broadcast room viewing request includes:
acquiring a verification code matched with the live broadcast room watching request in a bloom filter associated with the target version identifier; the bloom filter stores verification codes matched with the historical live broadcast rooms associated with the target version identifications, and is used for screening out live broadcast rooms to be marked from the live broadcast rooms matched with the live broadcast room watching requests;
and filtering at least one verification code in the matched verification codes from the live broadcast rooms matched with the live broadcast room watching requests and the live broadcast rooms with unmatched preset verification codes to obtain the live broadcast rooms to be marked.
In an exemplary embodiment, before obtaining the verification code matched with the live broadcast watching request in the bloom filter associated with the target version identification, the method further comprises:
reading viewing duration data associated with each version identifier from the preset database;
determining a historical live broadcast room associated with each version identifier according to the viewing duration data associated with each version identifier;
acquiring verification codes matched with the historical live broadcast rooms associated with the version identifications, and constructing bloom filters associated with the version identifications according to the verification codes matched with the historical live broadcast rooms associated with the version identifications;
and acquiring the bloom filter associated with the target version identifier from the bloom filters associated with the version identifiers.
In an exemplary embodiment, the obtaining a target live broadcast room from the live broadcast room to be marked based on the viewing duration data of the account to be pushed to each historical live broadcast room includes:
acquiring target watching duration data with duration longer than the preset duration from the watching duration data of the account to be pushed to each historical live broadcast room;
and taking the live broadcast room matched with the target watching duration data as the target live broadcast room from the live broadcast room to be marked.
In an exemplary embodiment, the tagging of the target live room with a view tag includes:
generating a viewing label matched with the target live broadcast room;
and marking the target live broadcast room to obtain the target live broadcast room marked with the watching label.
In an exemplary embodiment, the pushing the live broadcast room containing the target live broadcast room marked with the viewing tag to the account to be pushed includes:
sequencing the live broadcast rooms including the target live broadcast rooms marked with the watching labels according to a preset sequencing sequence;
and pushing the sequenced live broadcast rooms to the account to be pushed according to a preset frequency.
According to a second aspect of the embodiments of the present disclosure, there is provided a push device for a live broadcast room, including:
the data acquisition unit is configured to execute a live broadcast watching request responding to an account to be pushed, acquire a live broadcast matched with the live broadcast watching request and acquire watching duration data associated with a target version identifier, wherein the watching duration data comprise watching duration data of the account to be pushed to each historical live broadcast, and the target version identifier is determined according to a time point for initiating the live broadcast watching request;
the live broadcast room screening unit is configured to execute watching duration data of each historical live broadcast room based on the account to be pushed, and acquire a target live broadcast room from the live broadcast room matched with the live broadcast room watching request; the target live broadcast room is a live broadcast room of which the watching time length data accord with preset time length;
and the live broadcast room marking unit is configured to mark a watching tag on the target live broadcast room and push the live broadcast room containing the target live broadcast room marked with the watching tag to the account to be pushed.
In an exemplary embodiment, the device further comprises a data storage unit configured to perform reading of viewing duration data and viewing time of the account to be pushed for each historical live broadcast room from offline data; acquiring a version identifier associated with a time range to which the viewing time belongs; storing the watching duration data of the account to be pushed to each historical live broadcast room into a preset database according to the version identification;
the data acquisition unit is further configured to execute querying the preset database according to the target version identifier, and acquire viewing duration data associated with the target version identifier.
In an exemplary embodiment, the apparatus further includes a live broadcast room acquiring unit configured to perform acquiring a live broadcast room to be marked from a live broadcast room matched with the live broadcast room viewing request;
the live broadcast room screening unit is further configured to execute watching duration data of each historical live broadcast room based on the account to be pushed, and acquire a target live broadcast room from the live broadcast room to be marked.
In an exemplary embodiment, the live broadcast room acquiring unit is further configured to perform acquiring a verification code matched by a live broadcast room matched with the live broadcast room viewing request in a bloom filter associated with the target version identification; the bloom filter stores verification codes matched with the historical live broadcast rooms associated with the target version identifications, and is used for screening out live broadcast rooms to be marked from the live broadcast rooms matched with the live broadcast room watching requests; and filtering at least one verification code in the matched verification codes from the live broadcast rooms matched with the live broadcast room watching requests and the live broadcast rooms with unmatched preset verification codes to obtain the live broadcast rooms to be marked.
In an exemplary embodiment, the apparatus further includes a filter obtaining unit configured to perform reading of viewing duration data associated with each version identifier from the preset database; determining a historical live broadcast room associated with each version identifier according to the viewing duration data associated with each version identifier; acquiring verification codes matched with the historical live broadcast rooms associated with the version identifications, and constructing bloom filters associated with the version identifications according to the verification codes matched with the historical live broadcast rooms associated with the version identifications; and acquiring the bloom filter associated with the target version identifier from the bloom filters associated with the version identifiers.
In an exemplary embodiment, the live broadcast room screening unit is further configured to execute obtaining target viewing duration data larger than the preset duration from the viewing duration data of the account to be pushed to each historical live broadcast room; and taking the live broadcast room matched with the target watching duration data as the target live broadcast room from the live broadcast room to be marked.
In an exemplary embodiment, the live room tagging unit is further configured to perform generating a viewing tag matching the target live room; and marking the target live broadcast room to obtain the target live broadcast room marked with the watching label.
In an exemplary embodiment, the live broadcast room marking unit is further configured to perform sorting the live broadcast rooms including the target live broadcast room marked with the viewing tag according to a preset sorting order; and pushing the sequenced live broadcast rooms to the account to be pushed according to a preset frequency.
According to a third aspect of the embodiments of the present disclosure, there is provided a server, including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement a live-room push method as described in any embodiment of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium comprising: the instructions in the computer readable storage medium, when executed by a processor of a server, enable the server to perform the live-room push method described in any embodiment of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, the program product comprising a computer program, the computer program being stored in a computer-readable storage medium, from which the at least one processor of the device reads and executes the computer program, so that the device performs the push method of the live broadcast room as described in any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method comprises the steps that a live broadcast room watching request of an account to be pushed is responded, a live broadcast room matched with the live broadcast room watching request is obtained, watching duration data associated with a target version identification are obtained, the watching duration data comprise watching duration data of the account to be pushed to each historical live broadcast room, and the target version identification is determined according to a time point for initiating the live broadcast room watching request; then acquiring a target live broadcast room from the live broadcast room matched with the live broadcast room watching request based on the watching duration data of the account to be pushed to each historical live broadcast room; the target live broadcast room is a live broadcast room of which the watching time length data accord with preset time length; finally, a watching label is marked on the target live broadcast room, and the live broadcast room containing the target live broadcast room marked with the watching label is pushed to an account to be pushed; the purpose that the target live broadcast room with the watching time length data meeting the preset time length is marked is achieved in the process of pushing the live broadcast room, the user is not required to conduct complicated query operation on the recently watched live broadcast room, the query process of the recently watched live broadcast room is simplified, and the query efficiency of the recently watched live broadcast room is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a diagram illustrating an application environment of a push method for a live broadcast room according to an exemplary embodiment.
Fig. 2 is a flow diagram illustrating a push method of a live room in accordance with an example embodiment.
FIG. 3 is an illustration of an interface of a marked live room, shown in accordance with an exemplary embodiment.
Fig. 4 is a flow diagram illustrating another method of pushing in a live room in accordance with an example embodiment.
Fig. 5 is a flow diagram illustrating yet another method of pushing a live broadcast room in accordance with an example embodiment.
Fig. 6 is a block diagram illustrating a push device of a live broadcast room according to an example embodiment.
Fig. 7 is an internal block diagram of a server according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The push method of the live broadcast room provided by the present disclosure can be applied to the application environment shown in fig. 1. Wherein the terminal 110 interacts with the server 120 through the network. Referring to fig. 1, in response to a live broadcast viewing request of an account to be pushed on a terminal 110, a server 120 acquires a live broadcast matching the live broadcast viewing request and acquires viewing duration data associated with a target version identifier, where the viewing duration data includes viewing duration data of the account to be pushed for each historical live broadcast, and the target version identifier is determined according to a time point at which the live broadcast viewing request is initiated; acquiring a target live broadcast room from the live broadcast room matched with the live broadcast room watching request based on the watching duration data of the account to be pushed to each historical live broadcast room; the target live broadcast room is a live broadcast room of which the watching time length data accord with preset time length; marking a watching label on the target live broadcast room, and pushing the live broadcast room containing the target live broadcast room marked with the watching label to a terminal 110 corresponding to the account to be pushed; the terminal 110 displays the received live broadcast room through a terminal interface, wherein the live broadcast room comprises a target live broadcast room marked with a watching tag. The terminal 110 may be, but is not limited to, various smart phones, tablet computers, notebook computers, or the like, and the server 120 may be implemented by an independent server or a server cluster formed by a plurality of servers.
Fig. 2 is a flowchart illustrating a live broadcast push method according to an exemplary embodiment, where as shown in fig. 2, the live broadcast push method is used in the server shown in fig. 1, and includes the following steps:
in step S210, in response to the live broadcast viewing request of the account to be pushed, a live broadcast matching the live broadcast viewing request is obtained, and viewing duration data associated with the target version identifier is obtained, where the viewing duration data includes viewing duration data of the account to be pushed to each historical live broadcast, and the target version identifier is determined according to a time point at which the live broadcast viewing request is initiated.
The account refers to a registered account of an application program in the terminal, such as a registered account of a short video application program, a registered account of a video browsing program, and the like. The account to be pushed refers to an authorized account which needs to be processed and analyzed, and specifically refers to a pushing object in a live broadcast room.
The live broadcast room is a live broadcast room opened by a main broadcast user in the live broadcast process, and can be a game live broadcast room, a singing live broadcast room, a goods selling live broadcast room and the like; the live broadcast rooms corresponding to different anchor users are different. In an actual scene, when a anchor user wants to initiate a live broadcast, a click operation can be performed on an icon which indicates that the live broadcast is initiated in a home page interface of a live broadcast application program displayed by the anchor terminal, the live broadcast application program is triggered to enter a live broadcast room of an anchor account corresponding to the anchor user, information of the live broadcast room corresponding to the live broadcast room is pushed to a server, and the server is issued to a viewer terminal where a viewer account of the live broadcast room entering the anchor account is located through a content distribution network.
The live broadcast watching request refers to a watching request of an account for a certain type of live broadcast room (such as a game type live broadcast room, a singing type live broadcast room and the like), and live broadcast rooms matched with the watching requests of different live broadcast rooms are different; for example, when the account clicks a game live broadcast room, a game live broadcast room watching request is generated in a triggering mode, the game live broadcast room watching request is sent to a corresponding server through a terminal, and the server obtains the game live broadcast room matched with the game live broadcast room watching request.
The version identification refers to an identification associated with a time range of viewing time of the account to be pushed to the historical live broadcast room; the time range and the version identifier have a one-to-one correspondence relationship, for example, if the viewing time of the account to be pushed to a certain historical live broadcast room is within the time range a, and the version identifier corresponding to the time range a is a, the version identifier associated with the viewing duration data of the account to be pushed to the historical live broadcast room is a, and if the viewing time of the account to be pushed to a certain historical live broadcast room is within the time range B, and the version identifier corresponding to the time range B is B, the version identifier associated with the viewing duration data of the account to be pushed to the historical live broadcast room is B.
The target version identification refers to an identification associated with a time range to which a time point for initiating a live broadcast watching request belongs; the watching duration data associated with the target version identification refers to the watching duration data of the account to be pushed to each historical live broadcast room in the time range of the time point of the live broadcast room watching request; the viewing duration data associated with the version identification refers to the viewing duration data of the account to be pushed to each historical live broadcast room in the time range corresponding to the version identification; in an actual scene, the viewing duration data of the account to be pushed to the live broadcast room specifically refers to the viewing duration of the audience user corresponding to the account to be pushed to the live broadcast room.
It should be noted that the viewing duration data associated with different version identifiers is different, for example, the version identifier corresponding to the viewing duration data generated today is different from the version identifier corresponding to the viewing duration data generated yesterday.
Specifically, the audience terminal responds to the live broadcast viewing operation of the account to be pushed, generates a live broadcast viewing request of the account to be pushed, and sends the live broadcast viewing request of the account to be pushed to the corresponding server; the server responds to a live broadcast watching request of the account to be pushed, and acquires a live broadcast matched with the live broadcast watching request from a live broadcast database; meanwhile, the server analyzes the live broadcast viewing request of the account to be pushed to obtain a time point for initiating the live broadcast viewing request, obtains a version identification associated with a time range to which the time point for initiating the live broadcast viewing request belongs, uses the version identification as a target version identification, and queries the database according to the target version identification to obtain viewing duration data associated with the target version identification, namely viewing duration data of each historical live broadcast room by the account to be pushed in the time range to which the time point for initiating the live broadcast viewing request belongs.
For example, if a viewer user wants to watch a certain type of live broadcast room, the viewer user may click an icon indicating the type of live broadcast room in a video application program interface displayed by the viewer terminal, trigger the viewer terminal to generate a corresponding live broadcast room watching request, and send the live broadcast room watching request to a corresponding server; the server responds to the live broadcast room watching request, obtains live broadcast rooms which accord with audience users, such as live broadcast rooms of anchor users concerned by the audience users, live broadcast rooms of anchor users favored by the audience users, live broadcast rooms with high playing heat and the like, and takes the live broadcast rooms matched with the live broadcast room watching request; meanwhile, the server acquires the viewing duration data associated with the target version identifier from a database in which the viewing duration data of the plurality of version identifiers are stored.
In step S220, based on the viewing duration data of the account to be pushed to each historical live broadcast room, acquiring a target live broadcast room from the live broadcast room matched with the viewing request of the live broadcast room; the target live broadcast room is a live broadcast room with watching time length data according with preset time length.
The live broadcast room with the watching duration data conforming to the preset duration refers to a live broadcast room with the watching duration data larger than the preset duration; in an actual scene, the target live broadcast room is a live broadcast room which is watched by the audience user corresponding to the account to be pushed. The preset duration is used for judging whether the live broadcast room watched by the account to be pushed is the target live broadcast room or not.
Specifically, the server screens out live broadcast rooms with watching duration data meeting preset duration from the live broadcast rooms matched with the live broadcast room watching requests according to watching duration data of the account to be pushed to each historical live broadcast room, and the live broadcast rooms are used as target live broadcast rooms. Therefore, the target live broadcast room is obtained from the live broadcast room matched with the account to be pushed through the watching time length data of the account to be pushed to each historical live broadcast room, so that the target live broadcast room can be marked in a follow-up mode, and the purpose of marking the target live broadcast room in real time when the live broadcast room is sent is achieved.
For example, based on the viewing duration data of each historical live broadcast room by the audience users, the server screens out live broadcast rooms with viewing duration data larger than 0.5 hour from live broadcast rooms matched with the accounts to be pushed, and the live broadcast rooms are used as live broadcast rooms which are viewed by the audience users most recently and are used as target live broadcast rooms.
In step S230, the target live broadcast room is marked with a viewing tag, and the live broadcast room including the target live broadcast room marked with the viewing tag is pushed to the account to be pushed.
Specifically, the server marks a watching tag on the obtained target live broadcast room according to a preset live broadcast room marking instruction, for example, marks a watching tag which is 'recently watched'; then, the server pushes the live broadcast room including the target live broadcast room marked with the viewing tag to the audience terminal corresponding to the account to be pushed, and displays the live broadcast room including the target live broadcast room marked with the viewing tag through a terminal interface of the audience terminal, as shown in fig. 3. Therefore, on the interface displaying the delivered live broadcast rooms, the audience user can directly see which live broadcast rooms are watched most recently, so that the watched live broadcast rooms are prevented from being watched repeatedly; meanwhile, the audience user is not required to perform complicated query operation on the recently watched live broadcast room, so that the query efficiency of the recently watched live broadcast room is improved.
Further, the server can also sequence the live broadcast rooms including the target live broadcast rooms marked with the watching tags, for example, the target live broadcast rooms are arranged in front, other live broadcast rooms are arranged behind, and the like, and push the sequenced live broadcast rooms to the account to be pushed.
In the push method of the live broadcast room, the live broadcast room matched with the live broadcast room watching request is obtained and the watching duration data associated with the target version identification is obtained by responding to the live broadcast room watching request of the account to be pushed, the watching duration data comprises the watching duration data of the account to be pushed to each historical live broadcast room, and the target version identification is determined according to the time point of the live broadcast room watching request; then acquiring a target live broadcast room from the live broadcast room matched with the live broadcast room watching request based on the watching duration data of the account to be pushed to each historical live broadcast room; the target live broadcast room is a live broadcast room of which the watching time length data accord with preset time length; finally, a watching label is marked on the target live broadcast room, and the live broadcast room containing the target live broadcast room marked with the watching label is pushed to an account to be pushed; the purpose that the target live broadcast room with the watching time length data meeting the preset time length is marked is achieved in the process of pushing the live broadcast room, the user is not required to conduct complicated query operation on the recently watched live broadcast room, the query process of the recently watched live broadcast room is simplified, and the query efficiency of the recently watched live broadcast room is further improved.
In an exemplary embodiment, before obtaining the viewing duration data associated with the target version identification in step S210, the method further includes: reading the watching duration data and the watching time of the account to be pushed to each historical live broadcast room from the offline data; acquiring a version identifier associated with a time range to which the viewing time belongs; and storing the watching duration data of the account to be pushed to each historical live broadcast room into a preset database according to the version identification.
The method comprises the steps that the watching duration data of an account to be pushed to each historical live broadcast room are counted according to the time range of the watching time; for example, if the viewing time of the account to be pushed to the historical live broadcast room M is within the time range a, and in the time range a, the viewing duration data of the account to be pushed to the historical live broadcast room M is a1, and the version identifier associated with the time range a is a, the viewing duration data of the account to be pushed to the historical live broadcast room M is a1 under the version identifier a; if the viewing time of the account to be pushed to the historical live broadcast room M is within the time range B, and the viewing duration data of the account to be pushed to the historical live broadcast room M is B1 within the time range B, and the version identifier associated with the time range B is B, the viewing duration data of the account to be pushed to the historical live broadcast room M is B1 under the version identifier B.
Specifically, the viewing duration data and the viewing time of each historical live broadcast room by an account are uploaded to offline data, and the offline data comprises the viewing duration data and the viewing time of each historical live broadcast room by a plurality of accounts; then, the server reads the viewing time length data and the viewing time of the account to be pushed to each historical live broadcast room from the offline data, acquires the version identification associated with the viewing time range of the account to be pushed to each historical live broadcast room according to the association relationship between the viewing time range and the version identification, and correspondingly takes the version identification as the viewing time length data of the account to be pushed to each historical live broadcast room, wherein the version identification and the viewing time length data have an association relationship at this moment; and then, the server stores the watching time length data of the account to be pushed to each historical live broadcast room into a preset database in a classified manner according to the version identification of the watching time length data of the account to be pushed to each historical live broadcast room, so that the watching time length data associated with a plurality of version identifications are stored in the preset database.
Then, in step S210, obtaining the viewing duration data associated with the target version identifier specifically includes: and querying a preset database according to the target version identification to acquire viewing duration data associated with the target version identification. For example, the server queries a preset database storing viewing duration data associated with a plurality of version identifiers to obtain viewing duration data associated with the version identifier matched with the target version identifier as the viewing duration data associated with the target version identifier.
According to the technical scheme provided by the embodiment of the disclosure, the watching duration data and the watching time of the account to be pushed to each historical live broadcast room are read from the offline database, and the watching duration data of the account to be pushed to each historical live broadcast room are stored into the preset database in a classified manner according to the version identification associated with the time range of the watching time of the account to be pushed to each historical live broadcast room, so that the watching duration data associated with the target version identification can be acquired from the preset database directly in the follow-up process; meanwhile, the watching time length data associated with the target version identification are acquired, so that the target live broadcast room is acquired from the live broadcast room matched with the account to be pushed, and the target live broadcast room is marked, and the purpose of marking the target live broadcast room in real time when the live broadcast room is issued is achieved.
In an exemplary embodiment, in step S220, before acquiring a target live broadcast from a live broadcast matching the live broadcast viewing request based on the viewing duration data of the account to be pushed to each historical live broadcast, the method further includes the following steps: and acquiring the live broadcast room to be marked from the live broadcast room matched with the live broadcast room watching request.
The live broadcast room to be marked is the live broadcast room which is preliminarily determined from the live broadcast room matched with the live broadcast room watching request and needs to be marked, and the range of the live broadcast room to be marked is much smaller than that of the live broadcast room matched with the live broadcast room watching request.
Specifically, the server filters the live broadcast room matched with the live broadcast room watching request according to a preset live broadcast room screening instruction, so as to filter the live broadcast room which does not need to be marked, and obtain the live broadcast room to be marked. The live broadcast room screening instruction is an instruction capable of automatically acquiring a live broadcast room to be marked from the live broadcast room.
The technical scheme provided by the embodiment of the disclosure obtains the live broadcast room to be marked from the live broadcast room corresponding to the account to be pushed, can filter most of the live broadcast rooms not to be marked, greatly reduces the influence on the request of the current pull live broadcast room, and improves the efficiency of subsequently obtaining the target live broadcast room.
In an exemplary embodiment, in step S220, based on the viewing duration data of the account to be pushed to each historical live broadcast room, the target live broadcast room is obtained from the live broadcast room matched with the account to be pushed, where the target live broadcast room specifically includes the following contents: and acquiring a target live broadcast room from the live broadcast room to be marked based on the watching duration data of the account to be pushed to each historical live broadcast room.
Specifically, the server screens out live broadcast rooms with watching duration data meeting preset duration from the live broadcast rooms to be marked according to the watching duration data of the accounts to be pushed to each historical live broadcast room, for example, the live broadcast rooms with the watching duration data larger than 0.5 hour are screened out from the live broadcast rooms to be marked and used as target live broadcast rooms.
According to the technical scheme, the target live broadcast room is obtained from the live broadcast room to be marked, the obtaining efficiency of the target live broadcast room is improved, and the defect that the process of directly obtaining the target live broadcast room from all the live broadcast rooms in pulling is complex is overcome.
In an exemplary embodiment, the live broadcast room to be marked is obtained from the live broadcast room matched with the live broadcast room viewing request, and specifically includes the following contents: acquiring a verification code matched with a live broadcast room watching request in a bloom filter associated with a target version identifier in the live broadcast room; the bloom filter stores verification codes matched with the historical live broadcast rooms associated with the target version identifications, and is used for screening out the live broadcast rooms to be marked from the live broadcast rooms matched with the live broadcast room watching requests; and filtering at least one verification code in the matched verification codes from the live broadcast rooms matched with the live broadcast room watching requests and the live broadcast rooms with unmatched preset verification codes to obtain the live broadcast rooms to be marked.
The verification code is verification information used for identifying a live broadcast room and can be 1; the bloom filter is a data structure used for storing verification codes matched with a plurality of live broadcast rooms, a plurality of verification codes are matched with each live broadcast room, and the positions of the verification codes matched with the same live broadcast room, which are occupied in the bloom filter, are different.
The bloom filters associated with different version identifications are different for the same account to be pushed; the bloom filter associated with the target version identifier is constructed according to a historical live broadcast room determined by the viewing time data associated with the target version identifier, and a verification code matched with the historical live broadcast room associated with the target version identifier is stored in the bloom filter associated with the target version identifier; in an actual scene, a bloom filter is constructed by combining different hash functions according to a live broadcast room watched by the same account to be pushed within a certain time range; for example, the account to be pushed sees live broadcast room a and live broadcast room B, hash values of live broadcast room a in 3 hash functions are 1, 4, and 7, hash values of live broadcast room B in 3 hash functions are 2, 5, and 8, respectively, so that positions occupied by live broadcast room a in the bloom filter are 1, 4, and 7, and the corresponding verification codes of these positions are 1; the positions occupied by the live broadcast room B in the bloom filter are 2, 5 and 8, and the verification codes corresponding to the positions are all 1, so that the bloom filter with the hash values of 1, 2, 4, 5, 7 and 8 pointing to the positions with the verification codes of 1 is constructed.
It should be noted that at least one of the verification codes corresponding to the live broadcast rooms in the bloom filter is not 0, which indicates that at least one of the verification codes corresponding to the live broadcast rooms in the bloom filter is not matched with a preset verification code (for example, 1).
It should be noted that, the bloom filter can accurately filter out live broadcast rooms that the account to be pushed has not been viewed, that is, most of live broadcast rooms that do not need to be marked are filtered out.
It should be noted that, the verification code matched with the history live broadcast room associated with the target version identifier is stored through the bloom filter associated with the target version identifier, and the history live broadcast room associated with the target version identifier is not directly stored, so that the storage space is saved, and the query efficiency of the live broadcast room is improved.
Specifically, the server acquires a bloom filter associated with the target version identifier, and acquires hash values corresponding to different hash functions of each live broadcast room in the live broadcast rooms matched with the live broadcast room viewing requests according to a preset hash value statistical instruction; determining the corresponding verification code position of each live broadcast room in the bloom filter associated with the target version identification according to the corresponding hash value of each live broadcast room in different hash functions; inquiring the bloom filter associated with the target version identification according to the corresponding verification code position of each live broadcast room in the bloom filter associated with the target version identification to obtain the corresponding verification code of each live broadcast room in the bloom filter associated with the target version identification; and screening out at least one verification code in the corresponding verification codes from each live broadcast room, wherein the verification code is not matched with the preset verification code, and filtering out at least one verification code in the corresponding verification codes from the live broadcast rooms, so as to obtain the rest live broadcast rooms serving as the live broadcast rooms to be marked. For example, the hash values corresponding to the live broadcast room C are 3, 6, and 9, the verification codes of these hash values at the verification code positions corresponding to the bloom filters associated with the target version identifier are 0, 1, and 1, respectively, where one of the verification codes is 0, which indicates that the live broadcast room C is not stored in the bloom filter associated with the target version identifier, and therefore, the live broadcast room C can be filtered out.
According to the technical scheme, the verification codes matched with the target version identification in the bloom filter in each live broadcast room in the live broadcast room matched with the live broadcast room watching request can be used for quickly filtering most of live broadcast rooms which do not need to be marked, unnecessary time consumption is avoided being increased, and therefore the acquisition process of the live broadcast room to be marked is more efficient.
In an exemplary embodiment, before obtaining the verification code matched with the live broadcast watching request in the bloom filter associated with the target version identification, the method further comprises: reading viewing duration data associated with each version identifier from a preset database; determining a historical live broadcast room associated with each version identifier according to the viewing duration data associated with each version identifier; acquiring verification codes matched with the historical live broadcast rooms associated with the version identifications, and constructing bloom filters associated with the version identifications according to the verification codes matched with the historical live broadcast rooms associated with the version identifications; and acquiring the bloom filter associated with the target version identifier from the bloom filters associated with the version identifiers.
And the bloom filters associated with different version identifications are different for the same account to be pushed.
Specifically, the server reads the viewing duration data associated with each version identifier from the viewing duration data stored with a plurality of version identifier associations; the viewing duration data represents viewing duration data of the account to be pushed to the historical live broadcast room, so that the historical live broadcast room associated with each version identifier can be obtained by analyzing the viewing duration data associated with each version identifier; acquiring hash values corresponding to different hash functions of historical live broadcast rooms associated with various version identifications according to a preset hash value counting instruction; determining the verification codes in the verification code positions of the historical live broadcast rooms associated with the version identifications in corresponding initial bloom filters (the verification codes at the verification code positions in the initial bloom filters are all 0) according to the corresponding hash values of the historical live broadcast rooms associated with the version identifications in different hash functions, and correspondingly taking the verification codes as the verification codes matched with the historical live broadcast rooms associated with the version identifications in the corresponding initial bloom filters; configuring the corresponding initial bloom filter according to the verification code matched in the corresponding initial bloom filter in the history live broadcast room associated with each version identification to obtain the bloom filter associated with each version identification; and then storing bloom filters associated with the version identifications of the account to be pushed through a multi-level cache path. Then, the server analyzes the live broadcast viewing request to obtain a time point for initiating the live broadcast viewing request, and then a bloom filter associated with the target version identification is obtained through a multi-level cache path; for example, the localcache cache is queried first, and then the redis cache is queried, so as to obtain the version identifier associated with the time range to which the time point belongs, and the version identifier is used as the target version identifier; and determining bloom filters associated with the version identifications of the account to be pushed through a multi-level cache path, such as querying a localcache cache and then querying a redis cache, and taking the bloom filter associated with the version identification matched with the target version identification as the bloom filter associated with the target version identification from the bloom filters associated with the version identifications.
According to the technical scheme provided by the embodiment of the disclosure, the bloom filters associated with the version identifications of the account to be pushed are stored through the multi-level cache paths, and the bloom filters associated with the target version identifications are obtained through the multi-level cache paths, so that high-concurrency request quantity can be effectively resisted; meanwhile, the version identification is associated with the bloom filter, so that the bloom filter is up-to-date every day, and the timeliness of the subsequently determined target live broadcast room is improved.
In an exemplary embodiment, based on the viewing duration data of the account to be pushed to each historical live broadcast room, the target live broadcast room is obtained from the live broadcast room to be marked, and the target live broadcast room specifically includes the following contents: acquiring target watching duration data with duration greater than preset duration from the watching duration data of the account to be pushed to each historical live broadcast room; and taking the live broadcast room matched with the target watching duration data as a target live broadcast room from the live broadcast room to be marked.
And the watching duration data corresponding to different version identifications of the same account to be pushed are different. In an actual scene, a server reads viewing duration data of an account to be pushed to each historical live broadcast room from offline data, and stores the viewing duration data of the account to be pushed to each historical live broadcast room in a redis cache according to a version identifier; therefore, by introducing a version number mechanism, the full coverage of the daily watching duration data can be realized, and the marking information of the daily live broadcast room is marked according to the latest watching duration data.
Specifically, the server obtains viewing duration data of the account to be pushed to the historical live broadcast room through a multi-level cache path, such as first querying a memcache cache and then querying a redis cache; then, the server acquires viewing duration data corresponding to the target version identification from viewing duration data of the account to be pushed to the historical live broadcast room as target viewing duration data; comparing the target watching duration data with preset duration to obtain target watching duration data larger than the preset duration; and screening out a live broadcast room corresponding to the target watching time length data with the time length longer than the preset time length from the live broadcast rooms to be marked, for example, screening out a live broadcast room with the target watching time length data longer than 0.5 hour as a target live broadcast room.
According to the technical scheme provided by the embodiment of the disclosure, the target live broadcast room is screened from the live broadcast rooms to be marked by acquiring the watching time length data associated with the target version identification and according to the watching time length data associated with the target version identification, so that the quick determination of which live broadcast rooms are watched by the user is facilitated, the complicated query operation of the user on the live broadcast room which is watched most recently is not required, the query process of the live broadcast room which is watched most recently is simplified, and the query efficiency of the live broadcast room which is watched most recently is further improved; meanwhile, the method is beneficial to improving the acquisition efficiency of the target live broadcast room, and the defect that the process of directly acquiring the target live broadcast room from all the pulled live broadcast rooms is complex is overcome.
In an exemplary embodiment, in step S230, the target live broadcast room is marked with a viewing tag, which specifically includes the following contents: generating a watching label matched with the target live broadcast room; and marking the target live broadcast room to obtain the target live broadcast room marked with the watching label.
The viewing tag matched with the target live broadcast room may be a "recently viewed" tag, as shown in fig. 3.
Specifically, the server generates a watching tag matched with a target live broadcast room according to a preset tag generation instruction; and marking the corresponding target live broadcast room according to the watching label matched with the target live broadcast room to obtain the target live broadcast room marked with the watching label.
The technical scheme provided by the embodiment of the disclosure is favorable for pushing the direct broadcasting room containing the target direct broadcasting room marked with the watching label to the account to be pushed by marking the target direct broadcasting room, so that on the interface displaying the delivered direct broadcasting room, the audience user can directly see which direct broadcasting rooms are watched most recently, the repeated watching of the watched direct broadcasting rooms is avoided, and meanwhile, the query efficiency of the recently watched direct broadcasting rooms is improved.
In an exemplary embodiment, in step S230, the live broadcast room including the target live broadcast room marked with the viewing tag is pushed to the account to be pushed, where the content specifically includes the following: sequencing live broadcast rooms including the target live broadcast rooms marked with watching according to a preset sequencing sequence; and pushing the sequenced live broadcast rooms to the account to be pushed according to the preset frequency.
The preset arrangement sequence is used for representing the arrangement sequence of the live broadcast rooms, for example, the target live broadcast room is arranged in front, and other live broadcast rooms are arranged behind.
The preset frequency refers to a push frequency of a live broadcast room, for example, 10 live broadcast rooms are pushed at a time.
For example, the server sorts the live broadcast rooms including the target live broadcast room marked with the watching tag according to the sequence that the target live broadcast room is arranged in front of the server and other live broadcast rooms are arranged behind the server, so as to obtain the sorted live broadcast rooms; and pushing the sorted live broadcast rooms to audience terminals corresponding to the accounts to be pushed according to a preset frequency, and displaying the live broadcast rooms including the target live broadcast rooms marked with the watching labels through terminal interfaces of the audience terminals, wherein the display is specifically shown in fig. 3.
According to the technical scheme provided by the embodiment of the disclosure, on the interface displaying the delivered live broadcast rooms, the audience user can directly see which live broadcast rooms are watched most recently, and the audience user is not required to perform complicated query operation on the live broadcast rooms watched most recently, so that the query efficiency of the live broadcast rooms watched recently is improved.
Fig. 4 is a flowchart illustrating another live broadcast push method according to an exemplary embodiment, where as shown in fig. 4, the live broadcast push method is used in the server shown in fig. 1, and includes the following steps:
in step S401, in response to a live view request of the account to be pushed, a live view matching the live view request is obtained.
In step S402, viewing duration data associated with the target version identifier is acquired; the watching duration data comprise watching duration data of the account to be pushed to each historical live broadcast room, and the target version identification is determined according to the time point of the starting live broadcast room watching request.
In step S403, acquiring a verification code matched with the live broadcast room viewing request in the bloom filter associated with the target version identifier; the bloom filter stores verification codes matched with the historical live broadcast rooms associated with the target version identifications, and is used for screening out the live broadcast rooms to be marked from the live broadcast rooms matched with the live broadcast room watching requests.
In step S404, from the live broadcast rooms matched with the live broadcast room viewing request, the live broadcast rooms in which at least one verification code of the matched verification codes is not matched with the preset verification code are filtered out to obtain the live broadcast room to be marked.
In step S405, obtaining target viewing duration data greater than a preset duration from viewing duration data of the account to be pushed to each historical live broadcast room; and taking the live broadcast room matched with the target watching duration data as a target live broadcast room from the live broadcast room to be marked.
In step S406, a viewing tag matching the target live broadcast is generated; and marking the target live broadcast room to obtain the target live broadcast room marked with the watching label.
In step S407, sorting live broadcast rooms including target live broadcast rooms marked with viewing tags according to a preset sorting order; and pushing the sequenced live broadcast rooms to the account to be pushed according to the preset frequency.
According to the push method of the live broadcast room, the purpose that the target live broadcast room with the watching time length data conforming to the preset time length is marked in the process of pushing the live broadcast room is achieved, a user does not need to perform complicated query operation on the live broadcast room which is watched most recently, the query process of the live broadcast room which is watched most recently is simplified, and the query efficiency of the live broadcast room which is watched most recently is further improved.
In an exemplary embodiment, as shown in fig. 5, in order to clarify the technical solution provided by the embodiment of the present disclosure more clearly, an application example of the push method of the live broadcast room of the present disclosure is described in detail below, and the specific content of the application example is as follows:
aiming at a user-anchor watching duration processing task, the server judges whether the live data (watching duration data of the user to the anchor) in the redis cache is read or not; if the Hive data of the current day is not read, requesting to read the data of the current day in the Hive, and acquiring the data of the current day returned by the Hive; requesting to acquire a version number from a redis cache and acquiring the version number returned from the redis cache; storing the viewing duration data of the user to the main broadcast into a redis cache according to the version number; and generating a bloom filter based on the viewing duration data of the user to the main broadcast, storing the generated bloom filter into a redis cache according to the version number, updating the version number in the redis cache and marking that the data in the current day is read. In this way, the viewing duration data and the bloom filter associated with the version number are stored in the redis cache.
Aiming at the task of pulling the live broadcast room by the user, when the user wants to watch the live broadcast, the user can request to pull the live broadcast rooms in batches through the user terminal, and the server responds to the request of the user terminal to pull the live broadcast room in batches; acquiring a currently associated version number by inquiring a localcache cache and a redis cache; acquiring a bloom filter associated with the version number by inquiring a localcache cache and a redis cache; judging live broadcast rooms needing to be marked from the batch pulled live broadcast rooms according to the bloom filter; if the live broadcast room list needing to be marked is empty, directly returning the pulled batch live broadcast rooms to the user terminal; if the live broadcasting room list needing to be marked is not empty, namely live broadcasting rooms to be marked exist in the pulled batch of live broadcasting rooms, acquiring watch time length data of the user on the main broadcasting, which is associated with the version number, by inquiring the memcache cache and the redis cache, screening out the live broadcasting room which is watched most recently by the user from the live broadcasting rooms to be marked according to the watch time length data of the user on the main broadcasting, wherein the live broadcasting room is the most target live broadcasting room, and marking the target live broadcasting room with a 'latest watch' label; then, the batch live broadcast room including the target live broadcast room marked with the viewing tag is returned to the user terminal, and the batch live broadcast room including the target live broadcast room marked with the viewing tag is displayed through a terminal interface of the user terminal, as shown in fig. 3.
In fig. 5, api refers to an interface, localcache, memcache, and redis refer to a cache, task refers to a task, and Hive is a data warehouse tool based on Hadoop, and may be used to extract, convert, and load data.
The technical scheme provided by the embodiment of the disclosure can achieve the following technical effects: (1) the latest offline data every day is ensured through the multi-version mechanism; (2) through a multi-level cache mechanism, high-concurrency requests can be effectively resisted; (3) by introducing the bloom filter, most live broadcast room marks which do not need to be filtered can be filtered, and the influence on the existing request for pulling the live broadcast room is greatly reduced.
It should be understood that although the steps in the flowcharts of fig. 2 and 4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
Fig. 6 is a block diagram illustrating a push device of a live broadcast room according to an example embodiment. Referring to fig. 6, the apparatus includes a data acquisition unit 610, a live room filtering unit 620, and a live room marking unit 630.
The data obtaining unit 610 is configured to execute a live broadcast room watching request responding to the account to be pushed, obtain a live broadcast room matched with the live broadcast room watching request, and obtain watching duration data associated with a target version identifier, wherein the watching duration data comprise watching duration data of the account to be pushed to each historical live broadcast room, and the target version identifier is determined according to a time point of the live broadcast room watching request.
A live broadcast room screening unit 620 configured to execute acquisition of a target live broadcast room from a live broadcast room matched with the live broadcast room viewing request based on viewing duration data of the account to be pushed to each historical live broadcast room; the target live broadcast room is a live broadcast room with watching time length data according with preset time length.
And a live broadcast room marking unit 630 configured to mark the target live broadcast room with a viewing tag, and push the live broadcast room including the target live broadcast room marked with the viewing tag to the account to be pushed.
In an exemplary embodiment, the pushing device of the live broadcast room provided by the present disclosure further includes a data storage unit configured to perform reading of viewing duration data and viewing time of the account to be pushed for each historical live broadcast room from the offline data; acquiring a version identifier associated with a time range to which the viewing time belongs; storing the watching duration data of the account to be pushed to each historical live broadcast room into a preset database according to the version identification;
the data obtaining unit 610 is further configured to perform querying the preset database according to the target version identifier, and obtain the viewing duration data associated with the target version identifier.
In an exemplary embodiment, the push device of the live broadcast room of the present disclosure further includes a live broadcast room obtaining unit configured to obtain a live broadcast room to be marked from a live broadcast room matched with the live broadcast room viewing request;
the live broadcast room screening unit 620 is further configured to execute obtaining of a target live broadcast room from the live broadcast rooms to be marked based on the viewing duration data of the account to be pushed to each historical live broadcast room.
In an exemplary embodiment, the live broadcast room acquiring unit is further configured to perform acquiring a verification code matched by a live broadcast room matched with the live broadcast room viewing request in a bloom filter associated with the target version identification; the bloom filter stores verification codes matched with the historical live broadcast rooms associated with the target version identifications, and is used for screening out the live broadcast rooms to be marked from the live broadcast rooms matched with the live broadcast room watching requests; and filtering at least one verification code in the matched verification codes from the live broadcast rooms matched with the live broadcast room watching requests and the live broadcast rooms with unmatched preset verification codes to obtain the live broadcast rooms to be marked.
In an exemplary embodiment, the push device of a live broadcast room of the present disclosure further includes a filter obtaining unit configured to perform reading of viewing duration data associated with each version identifier from a preset database; determining a historical live broadcast room associated with each version identifier according to the viewing duration data associated with each version identifier; acquiring verification codes matched with the historical live broadcast rooms associated with the version identifications, and constructing bloom filters associated with the version identifications according to the verification codes matched with the historical live broadcast rooms associated with the version identifications; and acquiring the bloom filter associated with the target version identifier from the bloom filters associated with the version identifiers.
In an exemplary embodiment, the live broadcast room screening unit 620 is further configured to perform obtaining target viewing duration data with duration greater than a preset duration from the viewing duration data of the account to be pushed to each historical live broadcast room; and taking the live broadcast room matched with the target watching duration data as a target live broadcast room from the live broadcast room to be marked.
In an exemplary embodiment, the live room tagging unit 630 is further configured to perform generating a viewing tag matching the target live room; and marking the target live broadcast room to obtain the target live broadcast room marked with the watching label.
In an exemplary embodiment, the live room marking unit 630 is further configured to perform sorting live rooms including target live rooms marked with viewing tags according to a preset sorting order; and pushing the sequenced live broadcast rooms to the account to be pushed according to the preset frequency.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an apparatus 700 for performing the push method of the live room described above according to an exemplary embodiment. For example, device 700 may be a server. Referring to fig. 7, device 700 includes a processing component 720 that further includes one or more processors, and memory resources, represented by memory 722, for storing instructions, such as applications, that are executable by processing component 720. The application programs stored in memory 722 may include one or more modules that each correspond to a set of instructions. Further, the processing component 720 is configured to execute instructions to perform the push method of the live room described above.
The device 700 may also include a power component 724 configured to perform power management of the device 700, a wired or wireless network interface 726 configured to connect the device 700 to a network, and an input/output (I/O) interface 727. The device 700 may operate based on an operating system stored in memory 722, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a storage medium comprising instructions, such as memory 722 comprising instructions, executable by a processor of device 700 to perform the above-described method is also provided. The storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product, which includes a computer program stored in a computer-readable storage medium, from which at least one processor of a device reads and executes the computer program, so that the device performs the push method of a live broadcast described in any one of the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A push method of a live broadcast room is characterized by comprising the following steps:
responding to a live broadcast room watching request of an account to be pushed, acquiring a live broadcast room matched with the live broadcast room watching request and acquiring watching duration data associated with a target version identifier, wherein the watching duration data comprise watching duration data of the account to be pushed to each historical live broadcast room, and the target version identifier is determined according to a time point for initiating the live broadcast room watching request;
acquiring a target live broadcast room from the live broadcast room matched with the live broadcast room watching request based on the watching duration data of the account to be pushed to each historical live broadcast room; the target live broadcast room is a live broadcast room of which the watching time length data accord with preset time length;
and marking a watching label on the target live broadcast room, and pushing the live broadcast room containing the target live broadcast room marked with the watching label to the account to be pushed.
2. The live broadcast push method according to claim 1, further comprising, before obtaining the viewing duration data associated with the target version id:
reading the watching duration data and the watching time of the account to be pushed to each historical live broadcast room from the offline data;
acquiring a version identifier associated with a time range to which the viewing time belongs;
storing the watching duration data of the account to be pushed to each historical live broadcast room into a preset database according to the version identification;
the acquiring of the viewing duration data associated with the target version identifier includes:
and querying the preset database according to the target version identification to acquire viewing duration data associated with the target version identification.
3. The live broadcast room pushing method according to claim 2, before acquiring a target live broadcast room from the live broadcast room matched with the live broadcast room viewing request based on the viewing duration data of the account to be pushed to each historical live broadcast room, further comprising:
acquiring a live broadcast room to be marked from a live broadcast room matched with the live broadcast room watching request;
the acquiring of the target live broadcast room from the live broadcast room matched with the live broadcast room watching request based on the watching duration data of the account to be pushed to each historical live broadcast room comprises the following steps:
and acquiring a target live broadcast room from the live broadcast room to be marked based on the watching duration data of the account to be pushed to each historical live broadcast room.
4. The live broadcast room pushing method according to claim 3, wherein the obtaining of the live broadcast room to be marked from the live broadcast room matched with the live broadcast room viewing request comprises:
acquiring a verification code matched with the live broadcast room watching request in a bloom filter associated with the target version identifier; the bloom filter stores verification codes matched with the historical live broadcast rooms associated with the target version identifications, and is used for screening out live broadcast rooms to be marked from the live broadcast rooms matched with the live broadcast room watching requests;
and filtering at least one verification code in the matched verification codes from the live broadcast rooms matched with the live broadcast room watching requests and the live broadcast rooms with unmatched preset verification codes to obtain the live broadcast rooms to be marked.
5. The live broadcast push method according to claim 4, wherein before obtaining the verification code matched in the bloom filter associated with the target version identification, by the live broadcast matching the live broadcast viewing request, the method further comprises:
reading viewing duration data associated with each version identifier from the preset database;
determining a historical live broadcast room associated with each version identifier according to the viewing duration data associated with each version identifier;
acquiring verification codes matched with the historical live broadcast rooms associated with the version identifications, and constructing bloom filters associated with the version identifications according to the verification codes matched with the historical live broadcast rooms associated with the version identifications;
and acquiring the bloom filter associated with the target version identifier from the bloom filters associated with the version identifiers.
6. The live broadcast room information pushing method according to claim 3, wherein the obtaining of the target live broadcast room from the live broadcast room to be marked based on the viewing duration data of the account to be pushed to each historical live broadcast room comprises:
acquiring target watching duration data with duration longer than the preset duration from the watching duration data of the account to be pushed to each historical live broadcast room;
and taking the live broadcast room matched with the target watching duration data as the target live broadcast room from the live broadcast room to be marked.
7. A push device for a live broadcast room, comprising:
the data acquisition unit is configured to execute a live broadcast watching request responding to an account to be pushed, acquire a live broadcast matched with the live broadcast watching request and acquire watching duration data associated with a target version identifier, wherein the watching duration data comprise watching duration data of the account to be pushed to each historical live broadcast, and the target version identifier is determined according to a time point for initiating the live broadcast watching request;
the live broadcast room screening unit is configured to execute watching duration data of each historical live broadcast room based on the account to be pushed, and acquire a target live broadcast room from the live broadcast room matched with the live broadcast room watching request; the target live broadcast room is a live broadcast room of which the watching time length data accord with preset time length;
and the live broadcast room marking unit is configured to mark a watching tag on the target live broadcast room and push the live broadcast room containing the target live broadcast room marked with the watching tag to the account to be pushed.
8. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the live-room push method of any of claims 1-6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of a server, enable the server to perform a live room push method as claimed in any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the push method of a live broadcast room of any one of claims 1 to 6.
CN202011602875.0A 2020-12-29 2020-12-29 Live broadcast room pushing method and device, server and storage medium Pending CN112770126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011602875.0A CN112770126A (en) 2020-12-29 2020-12-29 Live broadcast room pushing method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011602875.0A CN112770126A (en) 2020-12-29 2020-12-29 Live broadcast room pushing method and device, server and storage medium

Publications (1)

Publication Number Publication Date
CN112770126A true CN112770126A (en) 2021-05-07

Family

ID=75697262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011602875.0A Pending CN112770126A (en) 2020-12-29 2020-12-29 Live broadcast room pushing method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN112770126A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315989A (en) * 2021-05-28 2021-08-27 北京沃东天骏信息技术有限公司 Live broadcast processing method, live broadcast platform, device, system, medium and equipment
CN113411627A (en) * 2021-06-17 2021-09-17 广州博冠信息科技有限公司 Data pushing method and device, readable storage medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833503A (en) * 2012-09-14 2012-12-19 高亿实业有限公司 Method and device for intelligently selecting channels of television
CN103491441A (en) * 2013-09-09 2014-01-01 东软集团股份有限公司 Recommendation method and system of live television programs
CN106131703A (en) * 2016-06-28 2016-11-16 青岛海信传媒网络技术有限公司 A kind of method of video recommendations and terminal
CN106231379A (en) * 2016-07-29 2016-12-14 广州酷狗计算机科技有限公司 A kind of methods, devices and systems playing live video
CN106792210A (en) * 2016-12-07 2017-05-31 Tcl集团股份有限公司 The sorting technique and system of a kind of TV user
CN108304888A (en) * 2018-02-28 2018-07-20 广州虎牙信息科技有限公司 Platform user sorting technique and computer storage media, terminal is broadcast live
CN108536814A (en) * 2018-04-04 2018-09-14 武汉斗鱼网络科技有限公司 Direct broadcasting room recommends method, computer readable storage medium and electronic equipment
CN109218769A (en) * 2018-09-30 2019-01-15 武汉斗鱼网络科技有限公司 A kind of recommended method and relevant device of direct broadcasting room
CN110362266A (en) * 2019-07-19 2019-10-22 北京字节跳动网络技术有限公司 Prompt information display methods, system, electronic equipment and computer-readable medium
CN111107399A (en) * 2018-10-25 2020-05-05 武汉斗鱼网络科技有限公司 Attention list optimization method, storage medium, device and system
CN111866528A (en) * 2020-04-30 2020-10-30 火币(广州)区块链科技有限公司 Live program pushing method and readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833503A (en) * 2012-09-14 2012-12-19 高亿实业有限公司 Method and device for intelligently selecting channels of television
CN103491441A (en) * 2013-09-09 2014-01-01 东软集团股份有限公司 Recommendation method and system of live television programs
CN106131703A (en) * 2016-06-28 2016-11-16 青岛海信传媒网络技术有限公司 A kind of method of video recommendations and terminal
CN106231379A (en) * 2016-07-29 2016-12-14 广州酷狗计算机科技有限公司 A kind of methods, devices and systems playing live video
CN106792210A (en) * 2016-12-07 2017-05-31 Tcl集团股份有限公司 The sorting technique and system of a kind of TV user
CN108304888A (en) * 2018-02-28 2018-07-20 广州虎牙信息科技有限公司 Platform user sorting technique and computer storage media, terminal is broadcast live
CN108536814A (en) * 2018-04-04 2018-09-14 武汉斗鱼网络科技有限公司 Direct broadcasting room recommends method, computer readable storage medium and electronic equipment
CN109218769A (en) * 2018-09-30 2019-01-15 武汉斗鱼网络科技有限公司 A kind of recommended method and relevant device of direct broadcasting room
CN111107399A (en) * 2018-10-25 2020-05-05 武汉斗鱼网络科技有限公司 Attention list optimization method, storage medium, device and system
CN110362266A (en) * 2019-07-19 2019-10-22 北京字节跳动网络技术有限公司 Prompt information display methods, system, electronic equipment and computer-readable medium
CN111866528A (en) * 2020-04-30 2020-10-30 火币(广州)区块链科技有限公司 Live program pushing method and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315989A (en) * 2021-05-28 2021-08-27 北京沃东天骏信息技术有限公司 Live broadcast processing method, live broadcast platform, device, system, medium and equipment
CN113315989B (en) * 2021-05-28 2022-12-27 北京沃东天骏信息技术有限公司 Live broadcast processing method, live broadcast platform, device, system, medium and equipment
CN113411627A (en) * 2021-06-17 2021-09-17 广州博冠信息科技有限公司 Data pushing method and device, readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11659220B2 (en) System and method for surveying broadcasting ratings
CN106792242B (en) Method and device for pushing information
US10311103B2 (en) Information search method, device, server and storage medium
CN109688479B (en) Bullet screen display method, bullet screen display device and bullet screen display server
CN108108491B (en) Multimedia data recommendation method and device
US20210248198A1 (en) Content Recommendation Method and Apparatus, Mobile Terminal, and Server
CN109429103B (en) Method and device for recommending information, computer readable storage medium and terminal equipment
CN111125497A (en) Information recommendation method, device, processor and storage medium
CN112507163B (en) Duration prediction model training method, recommendation method, device, equipment and medium
CN108197336B (en) Video searching method and device
CN112770126A (en) Live broadcast room pushing method and device, server and storage medium
KR20130123750A (en) System and method for providing video service based on image data
CN111046292A (en) Live broadcast recommendation method and device, computer-readable storage medium and electronic device
CN112861963A (en) Method, device and storage medium for training entity feature extraction model
CN114071237A (en) Intelligent television personalized topic recommendation method based on user portrait
CN111949807A (en) Data processing method, data processing device, computer equipment and storage medium
CN115329131A (en) Material label recommendation method and device, electronic equipment and storage medium
CN114461920A (en) Data processing method, device, medium and equipment for list information recommendation
CN110750719A (en) IPTV-based information accurate pushing system and method
CN110049358B (en) Television-based article pushing method and system
CN105589873B (en) Data searching method, terminal and server
CN114938458B (en) Object information display method and device, electronic equipment and storage medium
CN113158040A (en) Method, device and equipment for extracting hotspot tag of smart television and recommending related videos
CN112561636A (en) Recommendation method, recommendation device, terminal equipment and medium
CN112487018A (en) List generation method, apparatus electronic device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210507

RJ01 Rejection of invention patent application after publication