CN111970529A - Information processing method and device for live broadcast room, storage medium and electronic device - Google Patents

Information processing method and device for live broadcast room, storage medium and electronic device Download PDF

Info

Publication number
CN111970529A
CN111970529A CN202010852010.3A CN202010852010A CN111970529A CN 111970529 A CN111970529 A CN 111970529A CN 202010852010 A CN202010852010 A CN 202010852010A CN 111970529 A CN111970529 A CN 111970529A
Authority
CN
China
Prior art keywords
anchor
ranking
information
snapshot
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010852010.3A
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010852010.3A priority Critical patent/CN111970529A/en
Publication of CN111970529A publication Critical patent/CN111970529A/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/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/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4758End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for providing answers, e.g. voting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses an information processing method and device for a live broadcast room, a storage medium and an electronic device. The method comprises the following steps: responding to gift giving operations of a plurality of audience clients on different anchor broadcasts, and updating the ticket number information of the anchor broadcasts and the ranking information in the anchor ranking list, wherein the anchor ranking list is used for ranking the anchor broadcasts with preset number, and the preset number is smaller than the total number of the anchor broadcasts; determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list as a target anchor; and sending a broadcast message to a viewer client of a live broadcast room corresponding to the target anchor, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor. By the method and the device, the effect of reducing the pressure for processing the information of the live broadcast room is achieved.

Description

Information processing method and device for live broadcast room, storage medium and electronic device
Technical Field
The invention relates to the field of live broadcasting, in particular to an information processing method and device for a live broadcasting room, a storage medium and an electronic device.
Background
Currently, the rank of the anchor in the live broadcast system is generally determined according to the gifts or votes received by the anchor, and the rank information of the anchor corresponding to the live broadcast in the live broadcast room and the number of the gifts or votes received by the anchor are displayed in real time on the audience client or the anchor client. When the anchor receives gifts or votes, the number of corresponding ranking lists is increased, the ranking may change, and for the anchor which does not receive the gifts or votes, the ranking may also change correspondingly due to the rising of the ranking of other anchors.
Aiming at the problem that the pressure for processing the information of the live broadcast room in the prior art is large, an effective solution is not provided at present.
Disclosure of Invention
The invention mainly aims to provide an information processing method, an information processing device, a storage medium and an electronic device for a live broadcast room, and at least solves the technical problem of high processing pressure on information of the live broadcast room.
In order to achieve the above object, according to an aspect of the present invention, there is provided an information processing method of a live broadcast room. The method can comprise the following steps: responding to gift giving operations of a plurality of audience clients on different anchor broadcasts, and updating the ticket number information of the anchor broadcasts and the ranking information in the anchor ranking list, wherein the anchor ranking list is used for ranking the anchor broadcasts with preset number, and the preset number is smaller than the total number of the anchor broadcasts; determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list as a target anchor; and sending a broadcast message to a viewer client of a live broadcast room corresponding to the target anchor, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor.
Optionally, updating the ranking information in the anchor ranking list includes: calculating the current ticket number of the anchor according to the gifts or the votes corresponding to the gift giving operation; and updating the ticket number information of the anchor and the ranking information in the leader list according to the current ticket number of the anchor.
Optionally, the broadcast message is used to update a ranking plug-in of the viewer client for presenting the ticket information and ranking information of the target anchor on the viewer client.
Optionally, after determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor leaderboard as the target anchor, the method further includes: the identity of the target anchor is added to the target set.
Optionally, after adding the identity of the anchor to the target set, the method further comprises: extracting the identification of the target anchor from the target set every other first time period; determining channel information corresponding to the target anchor according to the identifier of the target anchor; and sending the broadcast message to a viewer client of a live broadcast room corresponding to the target anchor according to the channel information.
Optionally, before determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor leaderboard as the target anchor, the method further includes: acquiring first ranking snapshots of identifiers of different anchor at intervals of a second time period; acquiring a second ranking snapshot from the cache database, wherein the second ranking snapshot is a ranking snapshot adjacent to the first ranking snapshot and of the identification of the different anchor acquired last time; and comparing the first ranking snapshot with the second ranking snapshot to obtain the anchor with the changed ranking information.
Optionally, comparing the first ranking snapshot with the second ranking snapshot to obtain a host with changed ranking information, including: comparing a first anchor identification of each row of the first ranking snapshot with a second anchor identification of the same row of the second ranking snapshot under the condition that the row number of the first ranking snapshot is the same as that of the second ranking snapshot; and if the first anchor identification is different from the second anchor identification, determining the anchor corresponding to the first anchor identification and the anchor corresponding to the second anchor identification as the anchor with the changed ranking information.
Optionally, comparing the first ranking snapshot with the second ranking snapshot to obtain a host with changed ranking information, including: and under the condition that the row number of the first ranking snapshot is different from that of the second ranking snapshot, if an empty anchor identifier and a non-empty anchor identifier exist in the same row of the first ranking snapshot and the second ranking snapshot respectively, or the non-empty anchor identifier and the empty anchor identifier exist, determining the anchor corresponding to the non-empty anchor identifier as the anchor with the changed ranking information.
Optionally, comparing the first ranking snapshot with the second ranking snapshot to obtain a host with changed ranking information, including: and under the condition that the row number of the first ranking snapshot is different from that of the second ranking snapshot, if an empty anchor identifier and a non-empty anchor identifier exist in the same row of the first ranking snapshot and the second ranking snapshot respectively, or the non-empty anchor identifier and the empty anchor identifier exist, determining the anchor corresponding to the non-empty anchor identifier as the anchor with the changed ranking information.
In order to achieve the above object, according to another aspect of the present invention, another information processing method of a live broadcast room is also provided. The method can comprise the following steps: sending a gift giving request to a server, wherein the gift giving request is used for requesting gift giving operation on the target anchor, and updating the ticket number information of the target anchor and the ranking information in an anchor ranking list, the anchor ranking list is used for ranking the anchors with a preset number, and the preset number is smaller than the total number of the anchors; and acquiring a broadcast message issued by the server under the condition that the ticket number information changes and/or the ranking information in the main broadcasting ranking list changes, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target main broadcasting.
In order to achieve the above object, according to another aspect of the present invention, there is also provided an information processing apparatus of a live broadcast room. The apparatus may include: the updating unit is used for responding to gift giving operations of a plurality of audience clients on different anchor broadcasts, and updating the ticket number information of the anchor broadcasts and the ranking information in the anchor ranking list, wherein the anchor ranking list is used for ranking a preset number of anchor broadcasts, and the preset number is smaller than the total number of the anchor broadcasts; the determining unit is used for determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list as the target anchor; and the sending unit is used for sending a broadcast message to a viewer client of a live broadcast room corresponding to the target anchor, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor.
In order to achieve the above object, according to another aspect of the present invention, there is also provided another information processing apparatus of a live room. The apparatus may include: the second sending unit is used for sending a gift giving request to the server, wherein the gift giving request is used for requesting gift giving operation on the target anchor, ticket number information of the target anchor and ranking information in an anchor ranking list are updated, the anchor ranking list is used for ranking the anchors with preset number, and the preset number is smaller than the total number of the anchors; the acquisition unit is used for acquiring the broadcast message issued by the server under the condition that the ticket number information changes and/or the ranking information in the main broadcasting ranking list changes, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target main broadcasting.
In order to achieve the above object, according to another aspect of the present invention, there is provided a storage medium. The storage medium has stored therein a computer program, wherein the computer program is arranged to perform the method of data processing of an embodiment of the invention when executed.
In order to achieve the above object, according to another aspect of the present invention, an electronic device is provided. The electronic device comprises a memory and a processor, and is characterized in that the memory stores a computer program, and the processor is configured to run the computer program to execute the data processing method of the embodiment of the invention.
In the embodiment, in response to gift giving operations of a plurality of audience clients on different anchor broadcasts, ticket number information of the anchor broadcasts and ranking information in an anchor ranking list are updated, wherein the anchor ranking list is used for ranking a preset number of anchor broadcasts, and the preset number is smaller than the total number of the anchor broadcasts; determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list as a target anchor; and sending a broadcast message to a viewer client of a live broadcast room corresponding to the target anchor, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor. Therefore, the problem that the pressure of a server is increased due to the fact that broadcast messages are issued to all the client sides every time virtual resources are given to the main broadcast and a large number of broadcast messages are generated during the peak period of virtual resource giving is avoided, the frequency of the broadcast messages can be controlled, the processing of the information between the main broadcast is reduced, and the technical effect of reducing the pressure of processing the information between the main broadcast is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of an information processing method in a live broadcast room according to an embodiment of the present invention;
fig. 2 is a flowchart of an information processing method of a live broadcast room according to an embodiment of the present invention;
FIG. 3 is a flowchart of an information processing method of a live broadcast room according to an embodiment of the present invention
FIG. 4 is a schematic diagram of an overall architecture for processing virtual resources in accordance with the present invention;
FIG. 5 is a flowchart of an entire method for initiating gifting from a client to a service server and completing the processing according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for processing a snapshot server after receiving a list snapshot according to an embodiment of the present invention;
fig. 7 is a flowchart of a method for timing broadcasting of a service server according to an embodiment of the present invention;
FIG. 8A is an interface schematic of information for an active insert according to an embodiment of the present invention;
FIG. 8B is an interface diagram of information for another activity plug-in according to an embodiment of the invention;
fig. 9 is a schematic diagram of an information processing apparatus of a live room according to an embodiment of the present invention; and
fig. 10 is a schematic diagram of an information processing apparatus of another live room according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal, a server or a similar operation device. Taking the example of running on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of an information processing method of a live broadcast room according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a data processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The live broadcast network architecture can comprise a server and a plurality of terminals, client applications can be installed in the terminals, and the server provides live broadcast services for the client applications. For example, a user may install a live client application through a terminal or obtain a live service provided by a server through a browser client application. Generally, two types of users are involved in the live broadcast process, one type of user is a main broadcast user, and the other type of user is a spectator user, and based on this, the user terminals can be divided into a main broadcast end and a spectator end. The client application can provide a main broadcast live broadcast function and a live broadcast watching function, a main broadcast user can use the main broadcast live broadcast function provided by the client application to carry out video live broadcast, audience users can use the live broadcast watching function provided by the client application to watch live broadcast contents of the main broadcast user, the client can be used for giving virtual gifts or voting to the main broadcast user in the live broadcast watching process, and corresponding virtual special effects can be displayed after the virtual gifts or the voting are sent out.
In this embodiment, an information processing method running in a live broadcast room of the live broadcast network architecture is provided.
The following describes an information processing method of a live broadcast room according to an embodiment of the present invention from a server side.
Fig. 2 is a flowchart of an information processing method of a live broadcast room according to an embodiment of the present invention. As shown in fig. 2, the method may include the steps of:
step S202, responding to gift operations of a plurality of audience clients on different anchor broadcasts, and updating the ticket number information of the anchor broadcasts and the ranking information in an anchor ranking list, wherein the anchor ranking list is used for ranking a preset number of anchor broadcasts, and the preset number is smaller than the total number of the anchor broadcasts.
In the technical solution provided in step S202 of the present invention, in a live broadcast scene, a anchor is launched in a certain live broadcast room through an anchor client, and a viewer client is a client corresponding to a viewer who enters the live broadcast room of the anchor and watches live content of the anchor in the live broadcast room. The viewer client of this embodiment may be a plurality of clients, for example, viewer client 1, viewer client 2, viewer client 3 … … viewer client N (N is a natural number equal to or greater than 2).
In this embodiment, in response to gift operations of multiple audience clients on different anchor, the vote number information of the anchor and the ranking information in the anchor ranking list are updated, where the gift operations may include, but are not limited to, gift giving and voting operations in a live scene, which affect the vote number information of the anchor and the ranking information in the anchor ranking list, so that this embodiment updates the vote number information of the anchor and the ranking information in the anchor ranking list based on the gift operations, where the vote number information is used to indicate the number of anchor votes, and the anchor ranking list is used to perform on a preset number of anchors, including an identification of the preset number of anchors. It should be noted that the preset number in this embodiment is not the number of all anchor participating in live broadcast, but is smaller than the total number of all anchor participating in live broadcast, for example, top N of the total number of all anchor. For example, in the later stage of the anchor game, only the top 10 anchors compete for ranking, while the latter anchors do not really concern the change of their real-time ranking, and in order to reduce the pressure of the message broadcasting layer of the server and save the broadcasting traffic, only the top 10 anchor ranking lists can be generated each time, so that only the ranking information of the top 10 anchors can be updated in real time, thereby reducing the broadcasting amount of the server and reducing the pressure of the broadcasting layer service.
And step S204, determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list as the target anchor.
In the technical solution provided in step S204 of the present invention, after updating the vote number information of the anchor and the ranking information in the anchor ranking list in response to gift operations of the multiple audience clients to different anchors, the anchor with the changed vote number information and/or the anchor with the changed ranking information in the anchor ranking list may be determined as the target anchor.
In this embodiment, the increase or decrease of the votes of the anchor causes the change of the information of the votes of the anchor, the increase of the rank of one anchor may affect the decrease of the ranks of other anchors, or the decrease of the rank of one anchor may affect the increase of the ranks of other anchors, thereby causing the change of the ranking information in the leader board. The embodiment can broadcast the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list, that is, the embodiment broadcasts the necessary anchor and determines the anchor as the target anchor.
Step S206, sending a broadcast message to the audience client of the live broadcast room corresponding to the target anchor, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor.
In the technical solution provided by step S206 of the present invention, in which live broadcast room the viewer client watches, the corresponding broadcast information of the anchor can be seen. After the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list are determined as the target anchor, the broadcast message can be sent to the audience client side of the live broadcast room corresponding to the target anchor. The audience client entering the live broadcast room of the target anchor can see the broadcast message of the target anchor, and can send the broadcast message to the audience client of the live broadcast room corresponding to the target anchor, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor, and the ticket number information and the ranking information of the target anchor can be displayed on the audience client. Optionally, the anchor client of the target anchor of this embodiment may also receive the broadcast message.
In this embodiment, the service server may generate a broadcast message including the ticket number information and the ranking information based on the target anchor inquiring the ticket number information and the ranking information of the target anchor, and may transmit it to the message broadcasting layer by the broadcast timer, and the message broadcasting layer may process the broadcast message of each channel. Optionally, the message broadcast layer processes the broadcast message and sends the broadcast message to the viewer client. Therefore, the audience can see the real-time change of the ticket number information and the ranking information of the target anchor in a plurality of anchors with preset number.
Through the application from the step S202 to the step S206, responding to gift operations of a plurality of audience clients on different anchor broadcasts, updating the ticket number information of the anchor broadcasts and the ranking information in an anchor ranking list, wherein the anchor ranking list is used for ranking the anchor broadcasts with a preset number, and the preset number is smaller than the total number of the anchor broadcasts; determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list as a target anchor; and sending a broadcast message to a viewer client of a live broadcast room corresponding to the target anchor, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor. That is to say, the anchor ranking list of the embodiment is only for ranking the preset number of anchors, and the broadcast message is sent to the anchor with the changed ticket number information and/or the client corresponding to the anchor with the changed ranking information in the anchor ranking list, and the ranking information of all the anchors does not need to be sent each time, so that the problem that the broadcast message is sent to all the clients every time the anchor is gift-giving operation is performed on the anchor, and a large amount of broadcast messages are generated when the virtual resources are given at a peak time, which increases the pressure of the server is avoided.
The above-described method of this embodiment is further described below.
As an optional implementation manner, in step S202, updating the ranking information in the anchor chart includes: calculating the current ticket number of the anchor according to the gifts or the votes corresponding to the gift giving operation; and updating the ticket number information of the anchor and the ranking information in the leader list according to the current ticket number of the anchor.
In this embodiment, when updating the ranking information in the leaderboard of the anchor, a gift or a vote corresponding to a gift giving operation may be determined first, and the current number of tickets of the anchor is calculated according to the gift or the vote, wherein the current number of tickets of the anchor also increases as the gift or the vote increases, and then the current number of tickets of the anchor and the ranking information in the leaderboard of the anchor are updated according to the current number of tickets of the anchor, or the current number of tickets of the anchor and the predetermined number of tickets of other anchors are compared to determine the current number of tickets of the anchor and the current ranking information, so as to update the number of tickets of the anchor and the ranking information in the leaderboard of the anchor.
As an alternative embodiment, the broadcast message is used to update a ranking plug-in of the viewer client, which is used to present the vote information and ranking information of the target anchor on the viewer client.
In this embodiment, the ranking plug-in may also be referred to as an active plug-in, a live room plug-in. The plug-in information of the ranking plug-ins is visible to all clients (corresponding to one anchor and all viewers) in the live room, and thus the broadcast message of this embodiment may be received by all clients in the live room. The plug-in information may include ticket number information obtained by the anchor and ranking information, where the ranking information may be determined by gifts and ticket numbers obtained by the anchor client in the audience clients.
The embodiment updates the ranking plug-in of the viewer client through the broadcast message, and then presents the ticket number information and the ranking information of the target anchor on the viewer client.
In this embodiment, the viewer client may not display the hosted ticket information and ranking information for other live bays due to the limited ranking plug-in.
As an optional implementation manner, after determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor chart as the target anchor, the method further includes: the identity of the target anchor is added to the target set.
In this embodiment, the anchor identification may be an Identity Identification (ID) of the anchor, which is used to uniquely identify the anchor. In the embodiment, after the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list are determined as the target anchors, the identifier of the target anchor is added to the target set, the target set may include identifiers of a plurality of target anchors, the identifier of each target anchor may be an anchor identifier that triggers presentation or voting for the target anchor, or an anchor identifier with a changed ranking, the anchor corresponding to the identifier of each target anchor is broadcast in a live broadcast room (channel), and at least one audience client associated with the live broadcast room is to receive a corresponding broadcast message.
In this embodiment, the service server may query ranking information and ranking information corresponding to the identifier of the target anchor based on the identifier of the target anchor, generate a target broadcast message containing the ranking information, and may send the target broadcast message to the message broadcast layer by the broadcast timer, where the message broadcast layer may process broadcast messages of each channel. Optionally, the message broadcasting layer processes the broadcast message, sends an update message for updating the ranking plug-in to the viewer client, and then the viewer client updates the ranking plug-in by using the update message, which can update the ticket information and the ranking information of the target anchor presented by the ranking plug-in, so that the user can see the real-time change of the ranking information of the identifier of the target anchor in the plurality of anchor identifiers.
In this embodiment, the service server may maintain the target set, which includes the identities of a plurality of target anchor. When the target set is generated, the operation that gifts or votes need to be given to the target anchor is triggered, so that ranking information in the anchor and/or the anchor ranking list of the target anchor with the changed ticket number information is changed, and the target anchor is added to the target set.
In this embodiment, since gifting gifts or votes to the anchor is triggered, the number of votes and the rank of the anchor are changed, which both affect the update of the ranking plug-in, but in this embodiment, when gifting gifts or votes to the target anchor each time, the anchor identifier of the target anchor that needs to give gifts or votes is added to the target set first instead of directly broadcasting the corresponding broadcast message, so that the broadcast message is sent to the audience client in the live broadcast room corresponding to the target anchor corresponding to the extracted identifier every first time slot in the target set, thereby controlling the frequency of message broadcasting and reducing the pressure on information processing in the live broadcast room.
Optionally, the service server of this embodiment may further add, to the target set, an identifier of the target anchor whose rank changes every second target time period.
Optionally, when the identifier of the target anchor meeting the condition is added to the target set, the identifier of the target anchor may be stored in a set (set) data structure of a cache database (redis), where the set data structure has a characteristic that the same elements can be automatically merged, and the same value is stored in the set only once.
As an optional implementation, after adding the identity of the anchor to the target set, the method further comprises: extracting the identification of the target anchor from the target set every other first time period; determining channel information corresponding to the target anchor according to the identifier of the target anchor; and sending the broadcast message to a viewer client of a live broadcast room corresponding to the target anchor according to the channel information.
After the identifier of the anchor is added to the target set, a first time period may be set, the identifier of the target anchor is extracted from the target set every other first time period, channel information corresponding to the target anchor during live broadcast may be determined according to the identifier of the target anchor, and the channel information may be information of a gift sending channel, which is used to indicate a channel of the target anchor, and further send a broadcast message to a viewer client in a live broadcast room corresponding to the target anchor according to the channel information.
In this embodiment, the service server may extract the identifier of the target anchor from the target set every first time period, that is, in this embodiment, one target anchor identifier is extracted from the identifiers of the plurality of target anchors in the target set according to the timing frequency, and the service server determines at least one viewer client through the identifier of the one target anchor, which may be a live broadcast room where the anchor corresponding to the identifier of the one target anchor is located, and then determines at least one viewer client associated with the live broadcast room, and further sends a broadcast message corresponding to the identifier of the one target anchor to the at least one viewer client.
In this embodiment, the above timing frequency may be customized according to the traffic situation, wherein the higher the timing frequency, the more real-time the data update of the ranking plug-in is, but this also results in the larger the consumed broadcast traffic. Alternatively, this embodiment may use the identification of the target anchor from the target set every 2 seconds, so that in case of triggering a gift presentation or vote to the anchor, the data change of the ranking plug-in can be displayed after the corresponding trick play is finished, and the above timing logic is hardly perceptible to the user.
In the embodiment, the first time period is set, the identifier of the target anchor is determined from the target set every other first time period, and the broadcast message is sent to the audience client sides of the live broadcast room corresponding to the target anchor, so that the broadcast frequency of the broadcast message is controlled, the situation that the broadcast message is sent to all the audience client sides every time when the anchor gift is sent or voted is avoided, a large amount of broadcast messages are generated during the peak period of the gift sending, the pressure of the server is increased, the situation that other anchor identifiers with unchanged rank need to be updated during the process of sending the anchor gift or voted each time is avoided, the pressure of the server is further increased, and the technical problem that the pressure for processing the information in the live broadcast room is large is further solved.
As an optional implementation manner, in step S204, before the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor leader board is determined as the target anchor, the method further includes: acquiring first ranking snapshots of identifiers of different anchor at intervals of a second time period; acquiring a second ranking snapshot from the cache database, wherein the second ranking snapshot is a ranking snapshot adjacent to the first ranking snapshot and of the identification of the different anchor acquired last time; and comparing the first ranking snapshot with the second ranking snapshot to obtain the anchor with the changed ranking information.
In this embodiment, the service server may initiate a snapshot timer, which may be timed every second time period. The service server obtains first ranking snapshots of the identifiers of the different anchor broadcasts at intervals of a second time period, that is, the service server obtains the first ranking snapshots of the identifiers of the different anchor broadcasts according to a certain timing frequency, the first ranking snapshots are snapshots of the identifiers of the different anchor broadcasts at the current time, are lists in nature, and can also be called ranking list snapshots, and include ranking list information, the ranking list information is a sequential list, each row can contain information such as an anchor ID, the number of gifts, the number of tickets, and the nth row can represent the nth ranking. In this embodiment, the timing frequency may be customized according to specific service conditions, the higher the frequency, the more real-time the data update is, but the larger the consumed broadcast traffic is, and this embodiment may adopt an operation of performing 1 time per 2 seconds to obtain the first ranking snapshot of the identifiers of different anchor. The first ranked snapshot may be cached in a database as may be stored by the snapshot server for comparison with the ranked snapshot taken at the next second time period.
The service server in this embodiment may send snapshot information of the first ranking snapshot and callback interface information to the snapshot server, where the snapshot server may obtain a second ranking snapshot from the cache database, and compare the first ranking snapshot with the second ranking snapshot to obtain an anchor whose ranking information changes, where the second ranking snapshot is a ranking snapshot of identifiers of different anchors obtained last time adjacent to the first ranking snapshot, that is, a last snapshot, which is essentially a list. After the snapshot server obtains the identifier of the anchor with the changed rank, the identifier of the target anchor with the changed rank is sent to the service server, and the service server puts the identifier of the target anchor with the changed rank into a target set so as to send the broadcast message by a broadcast timer at regular time.
As an optional implementation manner, optionally, comparing the first ranking snapshot with the second ranking snapshot to obtain a host with changed ranking information, including: comparing a first anchor identification of each row of the first ranking snapshot with a second anchor identification of the same row of the second ranking snapshot under the condition that the row number of the first ranking snapshot is the same as that of the second ranking snapshot; and if the first anchor identification is different from the second anchor identification, determining the anchor corresponding to the first anchor identification and the anchor corresponding to the second anchor identification as the anchor with the changed ranking information.
In this embodiment, when comparing the first ranking snapshot with the second ranking snapshot to obtain an anchor whose ranking information changes, it may be determined whether the number of rows in the first ranking snapshot is the same as the number of rows in the second ranking snapshot, if it is determined that the number of rows in the first ranking snapshot is the same as the number of rows in the second ranking snapshot, a first anchor identifier of each row in the first ranking snapshot may be compared with a second anchor identifier of the same row in the second ranking snapshot, an aggregation may be initialized, and if the first anchor identifier is the same as the second anchor identifier, it is described that the rankings of the first anchor identifier and the second anchor identifier do not change, the row is ignored, and the next row in the first ranking snapshot and the second ranking snapshot is continuously compared; if the first anchor identification is different from the second anchor identification, the ranking of the first anchor identification and the ranking of the second anchor identification are changed, the anchor corresponding to the first anchor identification and the anchor corresponding to the second anchor identification are determined as the anchor with the changed ranking information, the anchor is determined as a target anchor, and the target anchor is added into the initialized set. In this implementation, the snapshot server may send the initialized set to the service server, and the service server adds an identifier of each target anchor in the initialized set to the target set, and optionally, the identifier of each target anchor may be stored in a set data structure of the cache database redis.
It should be noted that, in the embodiment, the anchor identifier with a changed rank obtained by the snapshot server may not affect the performance of the service server, and at the same time, the development amount of the service server is reduced.
As an optional implementation, comparing the first ranking snapshot with the second ranking snapshot to obtain a host with changed ranking information, includes: and under the condition that the row number of the first ranking snapshot is different from that of the second ranking snapshot, if an empty anchor identifier and a non-empty anchor identifier exist in the same row of the first ranking snapshot and the second ranking snapshot respectively, or the non-empty anchor identifier and the empty anchor identifier exist, determining the anchor corresponding to the non-empty anchor identifier as the anchor with the changed ranking information.
In this embodiment, if the snapshot server determines that the number of rows of the first ranked snapshot is not the same as the number of rows of the second ranked snapshot, it may be considered that one anchor identifier in the first ranked snapshot and the second ranked snapshot is empty, and at this time, the anchor identifier is handled as a case where the anchor identifiers are inconsistent, and the anchor identifier that is not empty may be determined as a target anchor identifier whose rank has changed, and then the target anchor identifier is added to the target set.
In this embodiment, the reason why the number of rows of the first ranked snapshot is different from the number of rows of the second ranked snapshot from a business perspective may be that the anchor identification is newly added to the second ranked snapshot or that the anchor identification is suddenly removed from the second ranked snapshot, in which case the number of rows of the first ranked snapshot obtained is different from the number of rows of the second ranked snapshot.
As an alternative embodiment, the first ranked snapshot and the second ranked snapshot include an identification of a preset number of anchor.
In this embodiment, the service server may further customize, according to actual service needs, the number of the identifiers of the anchor of the first ranking snapshot and the second ranking snapshot, and may only include the identifier of the anchor of the ranking topN, without sending ranking information of the identifiers of all the anchors each time, thereby further reducing the broadcast volume and relieving the pressure of the broadcast layer services.
In this embodiment, in the event that an event is triggered to gift or vote to the anchor, for example, the spectator client performs a gift operation on the identification of the target anchor, at which point the spectator client initiates a gift-offering request. The platform access side can determine that the present gift sending request is processed by the gift server, and then forwards the gift sending request to the gift server. The gift server processes the received gift sending request, and if the gift sending request fails to be processed, namely the gift sending of the user fails, for example, the balance of the user account is insufficient, the gift sending failure is determined, and thus no subsequent process is available. If the gift sending request fails to be processed, namely, the user succeeds in gift sending, the gift server generates a back package message and sends the back package message to a message broadcasting layer, the message broadcasting layer can broadcast messages on a gift sending channel, the audience client side processes the back package message, and all the audience client sides in the channel can display animations and documents sent by the gift.
The event of the embodiment giving away a gift or vote to the anchor may include an anchor identification that requires the addition of a virtual resource, e.g., including a gift ID; may include a main channel, such as a gift-giving channel, on which an identification of the main that presents gifts or votes needs to be added; may include a gift ID of the gift that needs to be given; the number of gifts to be given can be included, for example, information such as the number of gifts; the number of votes may also be included. The service server in this embodiment may analyze the event, read and write the database according to specific service logic, to complete logic of change of the ticket number information of the anchor and/or change of the ranking information in the leader board, for example, the service server may analyze information such as an anchor ID, a gift ID, and a gift number from the event, read the database according to the gift ID, query the ticketing weight of the gift in the database, calculate to obtain the current ticketing number which is the gift number and the gift ticketing weight, and then write the current ticketing number of the anchor ID into the database, thereby determining the ranking information of the anchor.
It should be noted that the association between the database and the service logic is strong, and the rules for calculating the number of votes for different services are different, and the current number of votes for the gift is the number of gifts and the weight of the gifts for the votes for the gift is merely an example of the embodiment of the present invention, and the logic for adding the virtual resources of the anchor of the present application is not limited.
The information processing method of the live broadcast room according to the embodiment of the present invention is described below from the client side.
Fig. 3 is a flowchart of an information processing method of a live broadcast room according to an embodiment of the present invention. As shown in fig. 3, the method may include the steps of:
step S302, a gift giving request is sent to a server, wherein the gift giving request is used for requesting gift giving operation on the target anchor, ticket number information of the target anchor and ranking information in an anchor ranking list are updated, the anchor ranking list is used for ranking the anchors with preset number, and the preset number is smaller than the total number of the anchors.
In the technical solution provided in step S302 of the present invention, in a live broadcast scene, a anchor is launched in a certain live broadcast room through an anchor client, and a viewer client is a client corresponding to a viewer who enters the live broadcast room of the anchor and watches live content of the anchor in the live broadcast room.
And the audience client generates a gift giving operation request to the server, so that the server responds to the gift giving operation of the audience client on the target anchor, and updates the ticket number information of the target anchor and the ranking information in the anchor ranking list.
The anchor ranking list of the embodiment is used for ranking a preset number of anchors. It should be noted that the preset number in this embodiment is not the number of all anchor participating in live broadcast, but is smaller than the total number of all anchor participating in live broadcast, for example, top N of the total number of all anchor.
Step S304, under the condition that the ticket number information changes and/or the ranking information in the main broadcasting ranking list changes, acquiring a broadcast message issued by a server, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target main broadcasting.
In the technical solution provided by step S304 of the present invention, the increase or decrease of the votes of the anchor changes the information of the votes of the anchor, the increase of the rank of one anchor may affect the decrease of the ranks of other anchors, or the decrease of the rank of one anchor may affect the increase of the ranks of other anchors, so that the ranking information in the leader board changes. The embodiment can broadcast the anchor with the changed ticket number information and/or the target anchor with the changed ranking information in the anchor ranking list, namely, the embodiment broadcasts the necessary anchors.
In the embodiment, the broadcast message sent by the server is acquired under the condition that the ticket number information changes and/or the ranking information in the main broadcasting ranking list changes. In this embodiment, the viewer client entering the live broadcast room of the target anchor can acquire the broadcast message of the target anchor, where the broadcast message is used to indicate the ticket number information and the ranking information of the target anchor, and the ticket number information and the ranking information of the target anchor can be displayed on the viewer client. Optionally, the anchor client of the target anchor of this embodiment may also receive the broadcast message.
The preferred implementation of this embodiment is further described below.
In this embodiment, when a gift sending event arrives, the server obtains the information of the anchor ID, the number of gifts, the live channel and the like of the gift sending event, operates in the database to add tickets to the anchor, calculates new ticket number and ranking information, and sends the new ticket number and ranking information to the clients of all users (including the anchor) in the live channel. The client receives the issued ticket number and the ranking information, and updates the numerical value display of the ranking plug-in, so that the user can see the increase of the ticket number and the ranking change after the gift is delivered.
In a live broadcast system, a main broadcast ranking list is generally ranked according to the number of gifts received by the main broadcast as the number of tickets, and the number of tickets and the ranking of the current main broadcast are displayed on a ranking plug-in component of a live broadcast room. When the anchor receives a certain amount of gifts, the corresponding ticket number is increased, the ranking is also possible to be increased, and the ticket number and the ranking are also updated by the activity plug-in the live broadcast room. However, although the number of tickets is unchanged, other anchor ranks are increased, which may result in the decrease of their own rank, and the ranking plug-in of these anchors should update the ranking information, which increases the amount of additional message broadcast. Meanwhile, the message broadcasting may be more frequent in the top-of-gift sending period, so that the broadcasting frequency needs to be controlled to a certain extent, the pressure of a broadcasting layer of the server is increased, and the client end can be blocked. Considering that each gift-sending also needs to update other anchor with descending rank, the pressure of the broadcasting layer is further increased.
In this embodiment, the service server maintains a target set including a anchor ID of a message to be broadcasted, and when a gift sending event arrives, the message is not directly broadcasted, but the anchor ID is put into the target set, and the broadcast timer takes out the anchor ID to be broadcasted from the target set every 2 seconds, and then broadcasts the message to all clients of the corresponding live broadcast room, so that the broadcast frequency of each anchor live broadcast room is limited to 1 time per 2 seconds. In addition, the service server starts a snapshot timer to generate a snapshot of the current ranking list every 2 seconds, and sends snapshot information and callback interface information to the snapshot server. When receiving snapshot information sent by the service server, the snapshot server compares the current snapshot with the last snapshot to find out all anchor IDs with changed ranks, then sends the anchor IDs back to the service server, the service server puts the anchor IDs into the target set, and a broadcast timer sends broadcast messages at regular time. The reason that the number of votes of the anchor is changed due to the gift sending event is added into the target set, the reason that the rank of the anchor is changed is detected to be added into the target set, and the information of the ranking plug-in includes the number of votes of the anchor and the rank, so that any information change in the number of votes of the anchor and the rank is considered to need to be updated.
FIG. 4 is a schematic diagram of an overall architecture for processing virtual resources in accordance with the present invention. As shown in fig. 4, the overall architecture of this embodiment includes: clients 41 (3 shown), platform access layer 42, message broadcast layer 43, gift server 44, service server 45, snapshot server 46, and database 47.
In this embodiment, the platform access layer 42 is mainly used to access the client 41, dispatch the client 41 message to different business processes for processing, and send a processing result return message of the business processes back to the client 41. Among them, the client 41 includes: the system comprises an anchor client and at least one audience client, wherein the anchor client is started in a certain live broadcast room (channel), and the audience client enters the live broadcast room to watch live broadcast.
The message broadcasting layer 43 is used to support the message broadcasting function of the service server 45 for all users in the channel.
The gift server 44 is configured to process a gift sending request of a viewer client among the clients 41, and notify the business server 45 of a gift sending event after the gift sending is successful.
The business server 45 is configured to process the ranking list business, read and write the database 47 after receiving the gift sending event, add a ticket to the anchor ranking list, add an anchor identifier to a target set to be broadcasted, and generate a list snapshot and send the list snapshot to the snapshot server 46; when receiving the notification message from the snapshot server 46, the service server 45 adds the anchor with the changed rank to the target set to be broadcasted; the anchor ID with broadcast may be periodically taken out of the target set 1 time every 2 seconds to generate a broadcast message to the message broadcast layer 43.
The snapshot server 46 is configured to compare the ranking list information at regular time, find out an anchor identifier with a changed ranking, and send the anchor identifier to the service server 45, so that the service server 45 adds the anchor identifier to the target set.
Fig. 5 is a flowchart of an entire method for initiating gift sending from a client to a service server and completing processing according to an embodiment of the present invention. As shown in fig. 5, the method may include the steps of:
step S501, the audience client carries out gift sending operation on the target anchor, and the audience client initiates a gift sending request.
Step S502, the platform access layer determines that the gift sending request is processed by the gift server, and forwards the gift sending request to the gift server.
In step S503, the gift server processes the gift sending request, and if the gift sending fails, there is no subsequent flow.
In this embodiment, if the account balance of the user is insufficient, a gift delivery failure may be determined.
In step S504, when the gift is successfully delivered, the gift server generates a package back message, and sends the package back message to the message broadcasting layer.
The message broadcast layer of the embodiment broadcasts the message to the gift sending channel, the client processes the message after receiving the message, and all users in the channel can see the animation and the file sent by the gift.
In step S505, when the gift sending is successful, the gift server notifies the business server of the gift sending event.
The information of the gift-offering event of this embodiment may include information of a gift-offering channel, a main broadcasting ID, a gift ID, the number of gifts, and the like.
And step S506, the business server analyzes the gift sending event, reads and writes the database according to specific business logic, and then the anchor ticket adding logic is completed.
In the embodiment, the read-write database is strongly associated with the business logic, and the rules for calculating the ticket adding quantity of different businesses are different. For example, the service server analyzes the anchor ID, the gift ID and the number of gifts from the gift-sending event, firstly, the ticket-adding weight of the gift is inquired from the gift ID reading database, then, the current ticket-adding number is calculated as the number of the gifts and the ticket-adding weight of the gift, and then, the current ticket-adding number of the anchor ID is written into the database.
Step S507, the service server adds the anchor ID to the target set to be broadcasted, and the anchor ID may be stored in a set data structure of the cache database redis.
The property of the set data structure of this embodiment is that the same elements can be automatically merged, with the same value being stored only once in the set.
Step S508, the snapshot timer of the service server generates a list at regular time, and sends the snapshot to the snapshot server.
In this embodiment, the timing frequency may be customized according to specific service conditions, and the higher the frequency, the more real-time the data update is, but the larger the consumed broadcast traffic is. This embodiment may employ performing the timing 1 time every 2 seconds. The list snapshot includes the ranking list information at the current time. The ranking list information is a sequential list, each row comprises an anchor ID and ticket number information, and the Nth row represents the Nth ranking.
The service server in this embodiment may also customize the size of the snapshot list according to actual service needs, and only send the data of the ranking topN, instead of sending complete list data each time. For example, only the top 10 anchor broadcasters compete for ranking in the later stage of the anchor race, while the later anchor broadcasters do not really care about the change of the real-time ranking, in order to relieve the pressure of a message broadcasting layer and save the broadcasting flow, only the data of the top 10 anchor broadcasters in the list is generated in each snapshot, so that only the real-time ranking update can be performed on the top 10 anchor broadcasters.
Fig. 6 is a flowchart of a method for processing a snapshot after receiving a list snapshot by a snapshot server according to an embodiment of the present invention. As shown in fig. 6, the method may include the steps of:
step S601, the snapshot server receives the list snapshot sent by the service server.
The embodiment may record the list snapshot sent by the service server as snapshot a.
Step S602, the snapshot server obtains the last time list snapshot from the caching database.
The embodiment can record the previous time list snapshot as snapshot B and write the current time list snapshot a into the cache database for comparison at the next time.
Step S603, the snapshot server compares the two snapshots to find out the anchor with changed rank.
This embodiment may compare snapshot a with snapshot B. Optionally, in this embodiment, the ith behaviors Ai and Bi of the snapshot a are recorded, a set S is initialized, and if the anchor ID in Ai and the anchor ID in Bi are consistent, it indicates that the rank of the anchor is not changed, and the row is ignored; and if the anchor ID in Ai is inconsistent with the anchor ID in Bi, the ranking of the two anchors is changed, and the two anchor IDs are added into the set S.
In this embodiment, for the case where the row numbers of snapshot a and snapshot B are not consistent, one of the anchor IDs Ai and Bi may be considered to be null, and at this time, the anchor ID is also treated as inconsistent, and the anchor ID that is not null is added to the set S.
From a business perspective, the reason why the number of the snapshots a and B are inconsistent may be that the anchor newly adds to the ranking list or is originally removed suddenly from the ranking list, in which case the ranking information of the anchor must also change, and therefore the broadcast update is also required.
Step S604, the snapshot server sends the anchor ID set S obtained by the comparison result to the service server.
Step S605, the service server adds each anchor ID in the set S to the target set to be broadcasted.
The operation method of this embodiment of adding each anchor ID to the target set to be broadcast is equivalent to S507.
Fig. 7 is a flowchart of a method for timing broadcast of a service server according to an embodiment of the present invention. As shown in fig. 7, the method may include the steps of:
step S701, the service server takes out all anchor IDs from the target set to be broadcasted.
Step S702, inquiring the channel and ranking information corresponding to each anchor ID, generating a message packet containing the ranking information and sending the message packet to a message broadcasting layer.
Step S703, the message broadcasting layer processes the message packet into a broadcast message of each channel.
Step S704, the client receives the broadcast message, and updates the ranking information on the arrangement plug-in through the broadcast message.
In this embodiment, both the anchor client and the viewer client in the same live room can display the live ranking change information via the ranking plug-in.
In this embodiment, the frequency of the timing may be customized according to specific service conditions, the higher the frequency, the more real-time data update is, but the larger the consumed broadcast traffic is, and this embodiment may adopt the timing performed every 2 seconds, so that the user sends out the gift, and can see the plug-in data change after the gift trick play is finished, and the user hardly perceives the timing logic.
FIG. 8A is a diagrammatic representation of an interface for information of an active insert in accordance with an embodiment of the present invention. As shown in fig. 8A, the information of the activity plug-in includes the number of anchor tickets and the ranking, wherein the number of anchor tickets may be 2435 tickets, the ranking of the leader board is 7, and the ranking of the total leader board is 35.
FIG. 8B is an interface diagram of information of another plug-in for activities, according to an embodiment of the invention. As shown in FIG. 8B, the campaign plug-in is updated compared to FIG. 8A, where the anchor ticket number may be 1 ticket, the leader board ranking is 14, and the total leader board ranking is 59.
The embodiment can broadcast messages to necessary clients according to the anchor identification with the changed ranking so as to update the ranking plug-in on the clients; the broadcasting frequency of the broadcast message is controlled, so that the pressure of the broadcast layer service can be relieved; the embodiment can support the service degradation according to the service characteristics, and only update the ranking plug-in of the anchor identifier with top N ranking change, thereby further reducing the broadcasting amount; the embodiment sets the independent ranking snapshot comparison service, does not affect the performance of the service server, reduces the development amount of the service party, solves the technical problem of high pressure on processing the information in the live broadcasting room, and further achieves the technical effect of reducing the pressure on processing the information in the live broadcasting room.
The embodiment of the invention also provides an information processing device of the live broadcast room. It should be noted that the information processing apparatus in the live broadcast room in this embodiment may be used to execute the information processing method in the live broadcast room shown in fig. 2 in the embodiment of the present invention.
Fig. 9 is a schematic diagram of an information processing apparatus of a live room according to an embodiment of the present invention. As shown in fig. 9, the information processing apparatus 90 of the live broadcast room includes: an updating unit 91, a determining unit 92 and a transmitting unit 93.
The updating unit 91 is configured to update the ticket number information of the anchor and the ranking information in the anchor ranking list in response to gift operations of the multiple audience clients on different anchors, where the anchor ranking list is used to rank a preset number of anchors, and the preset number is smaller than the total number of the anchors.
The determining unit 92 is configured to determine, as the target anchor, an anchor with changed ticket number information and/or an anchor with changed ranking information in an anchor ranking list.
And a sending unit 93, configured to send a broadcast message to a viewer client in a live broadcast room corresponding to the target anchor, where the broadcast message is used to indicate the ticket number information and the ranking information of the target anchor.
Fig. 10 is a schematic diagram of an information processing apparatus of another live room according to an embodiment of the present invention. As shown in fig. 10, the information processing apparatus 100 of the live broadcast room includes: a second transmitting unit 1001 and an acquiring unit 1002.
The second sending unit 1001 is configured to send a gift-giving request to the server, where the gift-giving request is used to request a gift-giving operation on the target anchor, and update the ticket number information of the target anchor and the ranking information in the anchor ranking list, and the anchor ranking list is used to rank the anchors with a preset number, where the preset number is smaller than the total number of the anchors.
The obtaining unit 1002 is configured to obtain a broadcast message sent by a server when the ticket number information changes and/or the ranking information in the anchor chart changes, where the broadcast message is used to indicate the ticket number information and the ranking information of the target anchor.
The information processing apparatus in the live broadcast room of the embodiment sets the first time period, determines the target anchor identifier from the anchor identifiers every other first time period, and issues the target broadcast message to the corresponding client at regular time, thereby controlling the broadcast frequency of the broadcast message, and avoiding the increase of the server pressure caused by the fact that the broadcast message is issued to all clients every time virtual resources are presented to the anchor, and a large amount of broadcast messages are generated during the peak period of virtual resource presentation.
Embodiments of the present invention also provide a computer-readable storage medium. The computer readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the computer readable storage medium controls a device to execute the information processing method of the live broadcast room according to the embodiment of the present invention.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. An information processing method of a live broadcast room is characterized by comprising the following steps:
responding to gift giving operations of a plurality of audience clients on different anchor broadcasts, and updating the vote number information of the anchor broadcasts and the ranking information in an anchor ranking list, wherein the anchor ranking list is used for ranking a preset number of anchor broadcasts, and the preset number is smaller than the total number of the anchor broadcasts;
determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list as a target anchor;
and sending a broadcast message to a viewer client of a live broadcast room corresponding to the target anchor, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor.
2. The method of claim 1, wherein updating the ranking information in the anchor leaderboard comprises:
calculating the current ticket number of the anchor according to the gifts or votes corresponding to the gifting operation;
and updating the ticket number information of the anchor and the ranking information in the ranking list of the anchor according to the current ticket number of the anchor.
3. The method of claim 1, wherein the broadcast message is used to update a ranking plug-in of the viewer client, wherein the ranking plug-in is used to present the ticket information and ranking information of the target host on the viewer client.
4. The method of claim 1, wherein sending a broadcast message to a viewer client of a live room corresponding to the target anchor comprises:
and sending the broadcast message to a viewer client of a live broadcast room corresponding to the target anchor at intervals of a first time period.
5. The method recited in claim 1, wherein after determining as a target anchor an anchor with the change in the ticket number information and/or an anchor with the change in the ranking information in the anchor leaderboard, the method further comprises:
and adding the identification of the target anchor to a target set.
6. The method of claim 5, wherein after adding the identity of the anchor to a target set, the method further comprises:
extracting the identification of the target anchor from the target set every other first time period;
determining channel information corresponding to the target anchor according to the identifier of the target anchor;
and sending a broadcast message to a viewer client of a live broadcast room corresponding to the target anchor according to the channel information.
7. The method recited in claim 5, further comprising, prior to determining a anchor with the changed ticket number information and/or an anchor with changed ranking information in the anchor leaderboard as a target anchor:
acquiring first ranking snapshots of the identifiers of the different anchor at intervals of a second time period;
acquiring a second ranking snapshot from a cache database, wherein the second ranking snapshot is a ranking snapshot of the identification of the different anchor acquired last time and adjacent to the first ranking snapshot;
and comparing the first ranking snapshot with the second ranking snapshot to obtain the anchor with the changed ranking information.
8. The method of claim 7, wherein comparing the first ranking snapshot with the second ranking snapshot to obtain a host with changed ranking information comprises:
comparing a first anchor identification of each row of the first ranked snapshot with a second anchor identification of the same row of the second ranked snapshot under the condition that the row number of the first ranked snapshot is the same as the row number of the second ranked snapshot;
and if the first anchor identification is different from the second anchor identification, determining the anchor corresponding to the first anchor identification and the anchor corresponding to the second anchor identification as the anchor with the changed ranking information.
9. The method of claim 7, wherein comparing the first ranking snapshot with the second ranking snapshot to obtain a host with changed ranking information comprises:
and under the condition that the line number of the first ranking snapshot is different from that of the second ranking snapshot, if an empty anchor identifier and a non-empty anchor identifier exist in the same line of the first ranking snapshot and the second ranking snapshot respectively, or the non-empty anchor identifier and the empty anchor identifier exist, determining the anchor corresponding to the non-empty anchor identifier as the anchor with the changed ranking information.
10. The method of claim 7, wherein the first ranked snapshot and the second ranked snapshot include an identification of the preset number of anchor.
11. An information processing method of a live broadcast room is characterized by comprising the following steps:
sending a gift giving request to a server, wherein the gift giving request is used for requesting gift giving operation on a target anchor, and updating the ticket number information of the target anchor and the ranking information in an anchor ranking list, the anchor ranking list is used for ranking a preset number of anchors, and the preset number is smaller than the total number of the anchors;
and acquiring a broadcast message issued by the server under the condition that the ticket number information changes and/or the ranking information in the anchor ranking list changes, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor.
12. An information processing apparatus of a live broadcast room, comprising:
the updating unit is used for responding to gift operations of a plurality of audience clients on different anchor broadcasts and updating the vote number information of the anchor broadcasts and the ranking information in an anchor ranking list, wherein the anchor ranking list is used for ranking a preset number of anchor broadcasts, and the preset number is smaller than the total number of the anchor broadcasts;
the determining unit is used for determining the anchor with the changed ticket number information and/or the anchor with the changed ranking information in the anchor ranking list as a target anchor;
and the first sending unit is used for sending a broadcast message to a viewer client of a live broadcast room corresponding to the target anchor, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor.
13. An information processing apparatus of a live broadcast room, comprising:
the second sending unit is used for sending a gift giving request to the server, wherein the gift giving request is used for requesting gift giving operation on a target anchor, and updating the ticket number information of the target anchor and the ranking information in an anchor ranking list, the anchor ranking list is used for ranking a preset number of anchors, and the preset number is smaller than the total number of the anchors;
and the acquisition unit is used for acquiring a broadcast message issued by the server under the condition that the ticket number information changes and/or the ranking information in the anchor ranking list changes, wherein the broadcast message is used for indicating the ticket number information and the ranking information of the target anchor.
14. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, controls an apparatus in which the computer-readable storage medium is located to carry out the method of any one of claims 1 to 11.
15. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 11.
CN202010852010.3A 2020-08-21 2020-08-21 Information processing method and device for live broadcast room, storage medium and electronic device Pending CN111970529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010852010.3A CN111970529A (en) 2020-08-21 2020-08-21 Information processing method and device for live broadcast room, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010852010.3A CN111970529A (en) 2020-08-21 2020-08-21 Information processing method and device for live broadcast room, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN111970529A true CN111970529A (en) 2020-11-20

Family

ID=73391559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010852010.3A Pending CN111970529A (en) 2020-08-21 2020-08-21 Information processing method and device for live broadcast room, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111970529A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112473149A (en) * 2020-11-26 2021-03-12 腾讯音乐娱乐科技(深圳)有限公司 Ranking list processing method
CN113128906A (en) * 2021-05-11 2021-07-16 广州博冠信息科技有限公司 Live data processing method and device, electronic equipment and computer readable medium
CN113657863A (en) * 2021-08-23 2021-11-16 交通银行股份有限公司 Centralized operation processing system and method thereof
CN115119019A (en) * 2022-06-20 2022-09-27 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268174A (en) * 2014-09-15 2015-01-07 广州华多网络科技有限公司 Information displaying method and client
CN106210793A (en) * 2016-06-28 2016-12-07 广州华多网络科技有限公司 A kind of method and apparatus sending main broadcaster's competition Information
CN106599251A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for displaying anchor rankings
CN107249140A (en) * 2017-07-12 2017-10-13 北京潘达互娱科技有限公司 List information acquisition method and its device
CN110278464A (en) * 2019-07-01 2019-09-24 广州酷狗计算机科技有限公司 The method and apparatus for showing list

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268174A (en) * 2014-09-15 2015-01-07 广州华多网络科技有限公司 Information displaying method and client
CN106210793A (en) * 2016-06-28 2016-12-07 广州华多网络科技有限公司 A kind of method and apparatus sending main broadcaster's competition Information
CN106599251A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for displaying anchor rankings
CN107249140A (en) * 2017-07-12 2017-10-13 北京潘达互娱科技有限公司 List information acquisition method and its device
CN110278464A (en) * 2019-07-01 2019-09-24 广州酷狗计算机科技有限公司 The method and apparatus for showing list

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112473149A (en) * 2020-11-26 2021-03-12 腾讯音乐娱乐科技(深圳)有限公司 Ranking list processing method
CN112473149B (en) * 2020-11-26 2022-10-25 腾讯音乐娱乐科技(深圳)有限公司 Ranking list processing method
CN113128906A (en) * 2021-05-11 2021-07-16 广州博冠信息科技有限公司 Live data processing method and device, electronic equipment and computer readable medium
CN113128906B (en) * 2021-05-11 2024-02-27 广州博冠信息科技有限公司 Live broadcast data processing method and device, electronic equipment and computer readable medium
CN113657863A (en) * 2021-08-23 2021-11-16 交通银行股份有限公司 Centralized operation processing system and method thereof
CN115119019A (en) * 2022-06-20 2022-09-27 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111970529A (en) Information processing method and device for live broadcast room, storage medium and electronic device
CN108235102B (en) Service processing method, device and storage medium
CN106487781B (en) Resource data processing method, device and system based on live broadcast
CN108900923B (en) Method and device for recommending live broadcast template
CN108900924B (en) Method and device for recommending friends in live broadcast room
US20160196604A1 (en) Call to action lockout system and method
CN110324680B (en) Video pushing method and device, server, client and storage medium
CN110287399B (en) Live broadcast information processing method and device, electronic equipment and storage medium
CN113438496A (en) Live broadcast service processing method and device, electronic equipment and storage medium
CN109428910B (en) Data processing method, device and system
CN114501047A (en) Virtual resource interaction method and device, storage medium and electronic device
CN111625353B (en) Virtual resource distribution processing method, device, server and storage medium
CN111372089B (en) Method, device and storage medium for updating activity list
CN113127723B (en) User portrait processing method, device, server and storage medium
CN113170216A (en) Live broadcast-based gift delivery method and device, equipment and storage medium
CN113315981B (en) Task data updating method, device and system, electronic equipment and storage medium
CN109847340B (en) Information processing method, device, equipment and medium
CN113034208A (en) Virtual resource processing method and device, electronic equipment and storage medium
CN107124660B (en) Method and device for triggering broadcast information of live broadcast room
CN111050217B (en) Video playing method and device
CN111083504B (en) Interaction method, device and equipment
CN114584807A (en) Skin setting method and device, and skin display method and device
CN114257873B (en) Information pushing method and card display method in network live broadcast scene
CN113473240B (en) Data processing method and device for live broadcasting room, electronic equipment and storage medium
CN112312151B (en) Data updating method, device and storage medium

Legal Events

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

Application publication date: 20201120