CN113347456B - Live broadcast information updating method and device and electronic equipment - Google Patents

Live broadcast information updating method and device and electronic equipment Download PDF

Info

Publication number
CN113347456B
CN113347456B CN202110614327.8A CN202110614327A CN113347456B CN 113347456 B CN113347456 B CN 113347456B CN 202110614327 A CN202110614327 A CN 202110614327A CN 113347456 B CN113347456 B CN 113347456B
Authority
CN
China
Prior art keywords
user
live broadcast
live
chat
broadcast information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110614327.8A
Other languages
Chinese (zh)
Other versions
CN113347456A (en
Inventor
吴振民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202110614327.8A priority Critical patent/CN113347456B/en
Publication of CN113347456A publication Critical patent/CN113347456A/en
Application granted granted Critical
Publication of CN113347456B publication Critical patent/CN113347456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The disclosure provides a live broadcast information updating method and device and electronic equipment, and belongs to the technical field of live broadcast. The method comprises the following steps: receiving a first message sent by a server, wherein the first message is sent by the server under the condition that the server detects the change of the live broadcast state of a first user, the first message comprises live broadcast information of the first user, and the first user is a user in a chat group; and under the condition that the chat interface of the chat group is displayed, updating the live broadcast information of the first user in the chat interface according to the live broadcast state indicated by the first message. By the live broadcast information updating method provided by the embodiment of the disclosure, the problem that the live broadcast information on the client is not updated timely enough can be solved.

Description

Live broadcast information updating method and device and electronic equipment
Technical Field
The disclosure belongs to the technical field of live broadcast, and particularly relates to a live broadcast information updating method and device and electronic equipment.
Background
With the development of the live broadcast technology, more and more users use the client to watch live broadcast, and the requirement of the users on the convenience of obtaining live broadcast information is higher and higher.
Generally, when an application is started, a client can make a one-time interface request from a server to request which users are currently live, and then the client displays related live broadcast information on an interface according to data obtained by the request. For example, if the request is that 10 users are live, live information of the 10 users may be presented to the user.
However, in the above request manner for live broadcast data, some live broadcast users have already downloaded, and the user enters the live broadcast room according to the displayed live broadcast information, which may show that the live broadcast of the user has ended, thereby causing the update of the live broadcast information to be not timely enough.
Disclosure of Invention
The embodiment of the disclosure aims to provide a live broadcast information updating method and device and electronic equipment, which can solve the problem that live broadcast information on a client is not updated timely enough.
In order to solve the technical problem, the present disclosure is implemented as follows:
in a first aspect, an embodiment of the present disclosure provides a live broadcast information updating method, where the method includes: receiving a first message sent by a server, wherein the first message is sent by the server under the condition that the server detects the change of the live broadcast state of a first user, the first message comprises the live broadcast state of the first user, and the first user is a user in a chat group; and under the condition that the chat interface of the chat group is displayed, updating the live broadcast information of the first user in the chat interface according to the live broadcast state indicated by the first message.
In a second aspect, an embodiment of the present disclosure provides an update apparatus for live broadcast information, where the update apparatus for live broadcast information includes: the device comprises a receiving module and an updating module; the receiving module is used for receiving a first message sent by the server, wherein the first message is sent by the server when the change of the live broadcast state of the first user is detected, the first message comprises the live broadcast state of the first user, and the first user is a user in the chat group; and the updating module is used for updating the live broadcast information of the first user in the chat interface according to the live broadcast state indicated by the first message received by the receiving module under the condition of displaying the chat interface of the chat group.
In a third aspect, the disclosed embodiments provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the live broadcast information updating method according to the first aspect.
In a fourth aspect, the disclosed embodiments provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the live broadcast information updating method according to the first aspect.
In a fifth aspect, the present disclosure provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the live broadcast information updating method according to the first aspect.
In the embodiment of the disclosure, the client receives a first message sent by the server, and then the client can update the live broadcast information of the first user according to the live broadcast state indicated by the first message under the condition that the client displays the chat interface of the chat group. The first user is a user in the chat group, the first message is sent to the client by the server when detecting that the live broadcast state of the first user changes, for example, the server sends a message to the client to indicate the user to broadcast when detecting that the user broadcasts, and the server can also send a message to the client to indicate the user to broadcast when detecting that the user broadcasts, that is, the client can obtain the change of the live broadcast information of the first user in the chat group according to the first message in real time.
Drawings
Fig. 1 is a schematic flowchart of a live broadcast information updating method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a chat interface of a chat group according to an embodiment of the present disclosure;
fig. 3 is a second schematic view of a chat interface of a chat group according to the embodiment of the disclosure;
fig. 4 is a third schematic diagram of a chat interface of a chat group according to the embodiment of the disclosure;
fig. 5 is a schematic diagram of a chat list provided by an embodiment of the disclosure;
fig. 6 is a schematic view of a possible structure of an apparatus for updating live broadcast information according to an embodiment of the present disclosure;
fig. 7 is a second schematic structural diagram of a possible update of live broadcast information according to an embodiment of the present disclosure;
fig. 8 is a third schematic structural diagram illustrating a possible update of live broadcast information according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 10 is a hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The terms "first," "second," and the like in the description and in the claims of the present disclosure are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the disclosure may be practiced other than those illustrated or described herein, and that the objects identified as "first," "second," etc. are generally a class of objects and do not limit the number of objects, e.g., a first object may be one or more. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
The method for updating live broadcast information provided by the embodiments of the present disclosure is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of a live broadcast information updating method according to an embodiment of the present disclosure. As shown in fig. 1, the method includes the following S101 and S102:
s101, the client receives a first message sent by the server.
The first message is sent by the server side under the condition that the change of the live broadcast state of the first user is detected, the first message comprises live broadcast information of the first user, and the first user is a user in a chat group.
It is understood that the live state change of the first user may be a state in which the first user changes from a live state to a down-cast state, or a state in which the first user changes from a non-live state to an up-cast state. The live broadcast state may be that the first user is not live broadcast, or that the first user is live broadcast and currently in a down-broadcast state.
Illustratively, the live information may include at least one of: the user identification (head portrait and name) of the live user, the live state, the live platform, the live link, the live time and other information.
Typically, a chat group includes at least three users.
Illustratively, the chat group may be a chat group in a live application or a chat group in an instant messaging application, which is not specifically limited in this disclosure.
It should be noted that, in this embodiment of the present disclosure, after the live broadcast state of the first user changes, the server may send a first message to the client of the user in each chat group where the first user is located, so as to indicate that the live broadcast state of the first user has changed to other users in each chat group where the first user is located.
Illustratively, the first message may be transmitted in real time by the server and the client through a Socket (Socket). That is, the first message may be a real-time message of Socket.
Typically, a socket exists in the communication domain. The communication domain is an abstraction introduced to handle general thread communication through sockets. Socket can be regarded as an endpoint for processes between different hosts to perform inter-process communication, socket is an Application Programming Interface (API) for inter-process communication in a network environment, socket is combined by an Internet Protocol (IP) address and a port, and provides a mechanism for transmitting a data packet to an application layer process.
When the network applications of different hosts need to communicate, the network application on the first host writes a piece of information to be transmitted (for example, content in a first message) into a Socket of the first host, and the Socket of the first host transmits the piece of information into a Socket of the second host through a transmission medium connected to a Network Interface Controller (NIC), so that the network application of the second host can receive the piece of information.
S102, under the condition that the client displays the chat interface of the chat group, updating the live broadcast information of the first user in the chat interface according to the live broadcast state indicated by the first message.
Optionally, in this embodiment of the present disclosure, the client may display live information of group members in a chat interface of the chat group in the following two ways.
In the first display mode, the client displays the live broadcast information of each user who broadcasts on the client, and does not display the live broadcast information of the user who broadcasts off the client.
In the second display mode, the client displays the live broadcast state of each user, specific live broadcast information which is live broadcast can be displayed under the condition that the user broadcasts on the client, and the live broadcast state of the user can be displayed as the live broadcast state under the condition that the user broadcasts off the client.
It should be noted that the application program in which the chat group is located and the application program in which the group members live may be the same application program or different application programs, which is not specifically limited in this embodiment of the disclosure.
Illustratively, the client may display live information of group members in a preset area of the chat group, which may be any one of the areas in the chat interface. The live information of the group members can be displayed in a floating or overlapping mode in the chat interface of the chat group.
Fig. 2 is a schematic view of a chat interface of a chat group according to an embodiment of the present disclosure. As shown in fig. 2, the chat interface of a chat group is shown, and live information of 2 users, namely live information of user 1 on platform 1 and live information of user 2 on platform 1, are displayed in the top area of the chat interface.
It should be noted that, if the live broadcast information indicates that the first user broadcasts on the air, the live broadcast information of the first user may be displayed in each chat group where the first user is located.
Furthermore, after the client receives the input of the live broadcast information of the first user, the client can also display a live broadcast room interface of the first user, so that the user of the client can quickly enter the live broadcast room of the first user to watch. The live broadcast room of the first user can be a live broadcast room of the first user in any application providing a live broadcast function.
According to the method for updating the live broadcast information, the client receives the first message sent by the server, and then the client can update the live broadcast information of the first user according to the live broadcast state indicated by the first message under the condition that the client displays the chat interface of the chat group. The first user is a user in the chat group, the first message is sent to the client by the server when the change of the live broadcast state of the first user is detected, for example, the server sends a message to the client to indicate the user to broadcast when the change of the live broadcast state of the first user is detected, and the server can also send a message to the client to indicate the user to broadcast when the user to broadcast is detected, that is, the client can acquire the change of the live broadcast information of the first user in the chat group according to the first message in real time.
Optionally, in the live broadcast information updating method provided in this embodiment of the present disclosure, according to a difference in a live broadcast state of the first user, the above S102 may be specifically executed by the following mode 1 or mode 2:
mode 1: and if the first message indicates that the first user is on the air, the client displays the live broadcast information of the first user in a chat interface under the condition that the chat interface of the chat group is displayed.
Mode 2: and if the first message indicates that the first user downloads, the client cancels the display of the live broadcast information of the first user in the chat interface under the condition that the chat interface of the chat group is displayed.
In the first display mode, if the live broadcast information of other group members is not displayed in the chat interface, it indicates that none of the group members in the chat group are live broadcast; if the chat interface displays the live broadcast information of the group members, the live broadcast information indicates that the group members in the chat group are live broadcast.
Specifically, in the first display mode, when the first message indicates that the first user is on the air, "updating the live broadcast information of the first user in the chat interface" indicates that the client may add the live broadcast information of the first user in the chat interface for display; in the case that the first message indicates that the first user downloads, updating the live information of the first user in the chat interface indicates that the client cancels to display the live information of the first user in the live information displayed in the chat interface.
In conjunction with fig. 2, in the case where the first message indicates that the user 3 is on-air, as shown in fig. 3, the client may display on the top area of the chat interface live information that the user 3 is on-air on the platform 2. In conjunction with fig. 2, in the case where the first message indicates that the user 2 is on the air, the client may cancel the display of the live information that the user 2 is on the air on the platform 1 in the top area of the chat interface, as shown in fig. 4.
Based on the scheme, the client can flexibly adopt different display modes to update the live broadcast information in time under the condition that the states indicated by the first information are different. Under the condition that the first information indicates that the first user plays on the air, live broadcast information of the first user can be added in the chat interface, the user of the client can be prompted to start live broadcast of the first user in the chat group, other users can be attracted to the live broadcast user, and the probability of remaining watching of the user is improved; under the condition that the first information indicates that the first user downloads, the live broadcast information of the first user in the chat interface is cancelled, so that the user of the client can be prompted to download the first user in the chat group, the problem that the user finds that live broadcast is finished after clicking the live broadcast information can be avoided, and the live broadcast watching experience of the user is improved.
Optionally, in the live broadcast information updating method provided in this disclosure, in a case that the first message indicates that the first user is on broadcast, the above S102 may also be performed in the following manner 3:
mode 3: if the chat interface also comprises the live broadcast information of the M second users, the client-side displays the live broadcast information of the first user and the live broadcast information of the M second users in a scrolling manner in the chat interface. Wherein M is a positive integer.
Specifically, the specific value of M may be set according to the size of the area where the live broadcast information is displayed and the number of users who are live broadcast in the chat group, which is not specifically limited in the embodiment of the present disclosure.
It can be understood that under the condition that the number of live users is large, the size of the area for displaying the live information is limited, and the live information of each user can be displayed in the display area in a rolling display mode.
For example, in a case where the client displays live information of a plurality of users in a chat group, the client may display the live information in the group in a carousel manner by an effect of a ticker in a chat interface of the chat group.
Based on the scheme, under the condition that a plurality of users are on-line broadcast for live broadcast in the chat group, the client can display the live broadcast information of each live broadcast user in a rolling manner in the chat interface of the chat group, on one hand, the client can attract the users who watch the live broadcast user, and on the other hand, the client can select the live broadcast room for watching the live broadcast user according to the requirement.
Optionally, in the live broadcast information updating method provided in the embodiment of the present disclosure, if the client displays the chat list, after receiving the first message, if the first message indicates that the first user plays the chat list, the preset dynamic effect is updated on the avatar of the chat group in the chat list.
Illustratively, the preset dynamic effect may be a dynamically updated water ripple effect, a dynamically updated firework effect.
Fig. 5 is a schematic interface diagram of a chat list according to an embodiment of the present disclosure. In the chat list, dynamically changing ripples are displayed on the avatar of group 1 and the avatar of group 2, indicating that users are live in both group 1 and group 2.
It can be understood that through the updated dynamic effect, it can be prompted in the chat list that the user in the chat group corresponding to the avatar is live.
Based on the scheme, if a member in a chat group is in live broadcast, the client can update the preset dynamic effect on the group head portrait of the chat group in the chat list under the condition of displaying the chat list, so that the user of the client can be prompted that a user in the chat group is in live broadcast, the user who is watched by the live broadcast user can be attracted, and the phenomenon that the user in the chat group is not known to be in live broadcast and important live broadcast is missed can be avoided.
Optionally, in the live broadcast information updating method provided by the embodiment of the present disclosure, after the client receives the first message sent by the server, the client may cache the live broadcast information of the first user according to the first message.
Illustratively, the first user's live information may include at least one of: the method comprises the steps of a live broadcast state of a first user, a live broadcast platform used by the first user, a group identification of a chat group where the first user is located, a user identification of the first user and a live broadcast link of the first user.
For example, in the case of live on the first user, the client may locally cache that the live status of the first user is live; in the case of the live broadcast of the first user, the client may locally cache that the live broadcast status of the first user is not live broadcast, or delete the cached live broadcast information of the first user.
Furthermore, in the embodiment of the present disclosure, if the first user does not download the live information, and the client redisplays the chat interface of the chat group, the client displays the live information of the first user in the chat interface according to the cached live information of the first user.
It will be appreciated that the user may trigger the client to exit the chat interface of the chat group, and then may trigger the client to redisplay the chat interface again as needed.
It should be noted that, after the client caches the live broadcast information of the first user, if no information indicating that the live broadcast state of the first user changes is received, the first user continues live broadcast.
Specifically, if a chat group includes multiple users who are live, the client may restore live information of each user who is not live in the chat interface when the client redisplays the chat interface of the chat group.
Based on the scheme, after the client caches the live broadcast information of the first user, if the user exits from the chat interface of the chat group, the client is triggered to display the chat interface of the chat group again, the client can redisplay the live broadcast information of the first user in the chat interface according to the cached live broadcast information of the first user, and the client user can reenter the live broadcast room of the first user according to the redisplayed live broadcast information of the first user.
Optionally, in the live broadcast information updating method provided by the embodiment of the present disclosure, the client may cache the live broadcast information of the first user through the following steps.
Firstly, the client analyzes the first message to obtain the user identification of the first user, the group identification of the chat group where the first user is located and the live broadcast information of the first user. And then, under the condition that the live broadcast state of the first user is the live broadcast, the client takes the group identification as a key and takes the live broadcast information of the group members as a value to construct a live broadcast list of the chat group. And then, the client stores the live broadcast information of the first user in a live broadcast list of the chat group.
It should be noted that, in this solution, if the client does not store the live broadcast data of the user of the chat group, the live broadcast list of the chat group may be constructed according to the above-mentioned manner, and store the live broadcast information of the live broadcast user in the chat group. For example, the first user is the user who plays on the first in the chat group, the client may construct a live list of the chat group after receiving the first message.
Illustratively, a database of pre-built live information may be stored at the client and the query and access interfaces exposed. A live array cache management class (nimclvemanager) corresponding to a group identification (gid) may be constructed in advance, and a data structure (or data body) of a key-value pair, such as a HashMap data structure, may be maintained, where gid is used as a key (key) and the live array is used as a value (value). The client can acquire the live broadcast array of one chat group in the HashMap data through the gid. For example, when an application program where a chat group is located is initialized, the client may extract live broadcast information of a live broadcast array cached in the database.
It will be appreciated that through the HashMap data structure, a one-to-many relationship of the cluster to the live information in the cluster can be maintained.
In this embodiment of the present disclosure, a data format (or a message type) of a Socket real-time message sent by a server may be agreed in advance, and a preset field in the Socket real-time message may carry indication information indicating whether a first user is in an up-play mode or a down-play mode, for example, a preset indication end set 0 indicates the down-play mode, and a preset field set 1 indicates the up-play mode.
After receiving the Socket real-time message, the client may match the live list array of the group chat according to gid of the message body of the Socket real-time message, analyze whether the user is playing up or playing down according to the first field of the Socket real-time message, and then update live information of the user in the local database of the client.
It can be understood that after the Socket of the server issues the live related data, the client may cache the data in the local, and then may send the live event to the page (e.g., a chat interface) to dynamically refresh the live state, so as to update a User Interface (UI) of the live.
Illustratively, table 1 is an exemplary table of a live list array of a chat group provided in an embodiment of the present disclosure.
TABLE 1
Figure BDA0003097414710000101
The table includes live information for user 1, user 2, and user 3 in group 1. The client can restore the live information of user 1, user 2 and user 3 in the chat interface of group 1 at once according to the table.
Based on the scheme, the client can analyze the first message after receiving the first message, and according to each data obtained by analysis, the group identifier of the chat group is taken as a key in the key value pair, the live list array of the chat group is taken as a value in the key value pair, and the live list array comprises live information of each group member. Therefore, the client can locally cache the live broadcast information of each user in the group chat, and the client can timely update the live broadcast state of each user displayed in the chat group based on the cached live broadcast information in the group chat.
Optionally, in the method for updating live broadcast information provided in the embodiment of the present disclosure, after constructing a live broadcast list of a chat group, the method may further include the following steps:
and the client receives a second message sent by the server. Wherein the second message indicates a live status of a third user in the chat group. The third message is sent to the client by the server when the change of the live broadcast state of the third user is detected, and the third user is a user in the chat group where the first user is located.
Further, when the third user is on-air, the client adds live information of the third user to the live list of the chat group. And in the case of playing by the third user, the client deletes the live broadcast information of the third user in the live broadcast list of the chat group.
Illustratively, the client can update the live information displayed in the chat interface based on the live list of the chat group. Under the condition that the client adds the live broadcast information of the third user in the live broadcast list, the client can display the live broadcast information of the third user in a chat interface of the chat group based on the live broadcast list; in the case that the client deletes the live broadcast information of the third user in the live broadcast list, the client may cancel displaying the live broadcast information of the third user in the chat interface of the chat group based on the live broadcast list.
It should be noted that, if the client updates the live broadcast information of the third user in a chat group when the chat interface of the chat group is not displayed, and then the client displays the live broadcast information in the chat interface based on the updated live broadcast list of the chat group when the client displays the chat interface of the chat group.
For example, after receiving a Socket real-time message sent by the server, the client may parse and determine whether the Socket real-time message indicates that the user is playing up or playing down, then insert the parsed data into the database for caching, update HashMap data maintained in the live array cache management class, and send an update event to a location (for example, a display interface of a chat group) monitoring the data through an event bus (event bus), thereby performing interactive update. The client can also acquire the live broadcast array of the gid corresponding to the maintained HashMap data through the live broadcast array cache management type singles, can update and display the data in the live broadcast array to a chat interface in a horse race lamp mode, and can also dynamically update the water ripple effect on the group head portrait.
Based on the scheme, after the live list of the chat group is constructed, the client can update the live information of the users in the chat group in real time according to the real-time message sent by the server, the data is updated in time, and the client can update the live information of the users in the chat interface in time according to the live list of the chat group.
It should be noted that, in the live broadcast information updating method provided in the embodiment of the present disclosure, the execution subject may be a live broadcast information updating device, or a control module of the live broadcast information updating device that is used for executing a live broadcast information updating method. In the embodiment of the present disclosure, a method for executing live broadcast information update by using a live broadcast information update apparatus is taken as an example, and an apparatus for updating live broadcast information provided in the embodiment of the present disclosure is described.
Fig. 6 is a schematic structural diagram of an update apparatus of live broadcast information according to an embodiment of the present disclosure, as shown in fig. 6, the update apparatus 600 of live broadcast information includes: a receiving module 601 and an updating module 602; a receiving module 601, configured to receive a first message sent by a server, where the first message is sent by the server when a change in a live broadcast state of a first user is detected, the first message includes live broadcast information of the first user, and the first user is a user in a chat group; an updating module 602, configured to update, in a chat interface of the chat group, live broadcast information of the first user in the chat interface according to a live broadcast status indicated by the first message received by the receiving module 601, when the chat interface is displayed.
Optionally, the updating module 602 is specifically configured to: and if the first message indicates that the first user downloads, canceling the live broadcast information of the first user displayed in the chat interface of the chat group.
Optionally, the updating module 602 is specifically configured to: and if the first message indicates that the first user broadcasts on the chat screen, displaying the live broadcast information of the first user in a chat interface of the chat group.
Optionally, the updating module 602 is specifically configured to: and if the chat group also comprises live broadcast information of M second users, the live broadcast information of the first user and the live broadcast information of the M second users are displayed in a scrolling manner in a chat interface of the chat group, wherein M is a positive integer.
Optionally, the updating module 602 is further configured to update the preset dynamic effect on the avatar of the group of the chat group in the chat list if the first message indicates that the first user plays the chat.
Optionally, in conjunction with fig. 6, as shown in fig. 7, the live information updating apparatus 600 further includes: a buffer module 603 and a display module 604; the caching module 603 is configured to, after receiving a first message sent by a server, cache live broadcast information of a first user according to the first message; the display module 604 is configured to, if the first user does not download the live information from the first user, and the chat interface of the chat group is displayed again, display the live information of the first user in the chat interface according to the live information of the first user cached by the caching module 603.
Optionally, the caching module 603 is specifically configured to: analyzing the first message, and acquiring a user identifier of the first user, a group identifier of a chat group where the first user is located, and live broadcast information of the first user; under the condition that a first user is on the air, a live broadcast list of a chat group is constructed by taking a group identifier as a key and taking live broadcast information of group members as a value; and storing the live broadcast information of the first user in a live broadcast list of the chat group.
Optionally, with reference to fig. 7, as shown in fig. 8, the apparatus 600 for updating live broadcast information further includes: an add module 605 or a delete module 606; the receiving module 601 is further configured to receive a second message sent by the server after the cache module 603 constructs a live list of the chat group, where the second message indicates a live state of a third user in the chat group; an adding module 605, configured to add live broadcast information of the third user in the live broadcast list of the chat group in a case that the third user is on broadcast; and a deleting module 606, configured to delete live broadcast information of the third user in the live broadcast list of the chat group when the third user broadcasts the chat group.
According to the updating device for the live broadcast information provided by the embodiment of the disclosure, the updating device for the live broadcast information receives the first message sent by the server, and then the updating device for the live broadcast information can update the live broadcast information of the first user according to the live broadcast state indicated by the first message under the condition that the chat interface of the chat group is displayed. The first user is a user in the chat group, the first message is sent to the client by the server when detecting that the live broadcast state of the first user changes, for example, the server sends a message to the live broadcast information updating device to indicate the user to broadcast when detecting that the user broadcasts, and the server can also send a message to the live broadcast information updating device to indicate the user to broadcast when detecting that the user broadcasts, that is, the live broadcast information updating device can acquire the change of the live broadcast information of the first user in the chat group according to the first message in real time, so that the live broadcast information updated by the live broadcast information updating device in the chat interface is the latest live broadcast information, and the problem that the indicated live broadcast state and the actual live broadcast state do not conform to each other due to untimely acquisition of the live broadcast information can be avoided.
The updating device of the live broadcast information in the embodiment of the present disclosure may be a device, and may also be a component, an integrated circuit, or a chip in the terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. Illustratively, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the disclosed embodiments are not particularly limited.
The live information updating device in the embodiment of the present disclosure may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present disclosure.
The live broadcast information updating apparatus provided in the embodiment of the present disclosure can implement each process implemented by the method embodiments in fig. 1 to fig. 5, and is not described here again to avoid repetition.
Optionally, as shown in fig. 9, an embodiment of the present disclosure further provides an electronic device 900, which includes a processor 901, a memory 902, and a program or an instruction that is stored in the memory 902 and is executable on the processor 901, and when the program or the instruction is executed by the processor 901, the processes of the above live broadcast information update method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present disclosure includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present disclosure.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The embodiment of the disclosure provides an electronic device, where the electronic device receives a first message sent by a server, and then, under the condition that a chat interface of a chat group is displayed, the electronic device can update live broadcast information of a first user according to a live broadcast state indicated by the first message. Because the first user is a user in the chat group, the first message is sent to the client by the server when detecting that the live broadcast state of the first user changes, for example, the server sends a message to the electronic device to indicate the user to broadcast when detecting that the user broadcasts, and the server can also send a message to the electronic device to indicate the user to broadcast when detecting that the user broadcasts, that is, the electronic device can acquire the change of the live broadcast information of the first user in the chat group according to the first message in real time, therefore, the live broadcast information updated in the chat interface by the electronic device is the latest live broadcast information, and the problem that the indicated live broadcast state does not conform to the actual live broadcast state due to untimely acquisition of the live broadcast information can be avoided.
It is to be understood that, in the embodiment of the present disclosure, the input Unit 1004 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present disclosure further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above live broadcast information updating method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present disclosure further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above live broadcast information updating method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present disclosure may also be referred to as a system-on-chip, a system-on-chip or a system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element. Further, it is noted that the scope of the methods and apparatus in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes several instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods according to the embodiments of the present disclosure.
While the present disclosure has been described with reference to the embodiments illustrated in the drawings, which are intended to be illustrative rather than restrictive, it will be apparent to those of ordinary skill in the art in light of the present disclosure that many more modifications may be made without departing from the spirit of the disclosure and the scope of the appended claims.

Claims (10)

1. A live broadcast information updating method is applied to a client side, and is characterized by comprising the following steps:
receiving a first message sent by a server, wherein the first message is sent by the server when the change of a live broadcast state of a first user is detected, the first message comprises live broadcast information of the first user, and the first user is a user in a chat group;
under the condition that a chat interface of the chat group is displayed, updating live broadcast information of the first user in the chat interface according to the live broadcast state indicated by the first message, wherein the live broadcast information in the chat interface comprises the live broadcast state;
the updating the live broadcast information of the first user in the chat interface according to the live broadcast state indicated by the first message comprises the following steps:
and if the first message indicates that the first user plays the live broadcast, displaying the live broadcast information of the first user in the chat interface.
2. The method of claim 1, wherein the updating the live information of the first user in the chat interface according to the live status indicated by the first message comprises:
and if the first message indicates that the first user downloads the broadcast program, canceling the live broadcast information of the first user displayed in the chat interface.
3. The method of claim 1, wherein the updating the live information of the first user in the chat interface comprises:
and if the chat group further comprises live broadcast information of M second users, the live broadcast information of the first user and the live broadcast information of the M second users are displayed in a rolling mode in the chat interface, and M is a positive integer.
4. The method of claim 1, further comprising:
and if the first message indicates that the first user plays the chat group, updating a preset dynamic effect on the head portrait of the chat group in the chat list.
5. The method of claim 1, wherein after receiving the first message sent by the server, the method further comprises:
according to the first message, caching the live broadcast information of the first user;
and if the first user does not download the live information and the chat interface is displayed again, displaying the live information of the first user in the chat interface according to the cached live information of the first user.
6. The method of claim 5, wherein caching live information of the first user according to the first message comprises:
analyzing the first message to obtain a user identifier of the first user, a group identifier of the chat group where the first user is located and live broadcast information of the first user;
under the condition that the first user plays on the line, a live broadcast list of the chat group is constructed by taking a group identifier as a key and taking live broadcast information of group members as a value;
and storing the live broadcast information of the first user in a live broadcast list of the chat group.
7. The method of claim 6, wherein after constructing the live list of the chat group, the method further comprises:
receiving a second message sent by the server, wherein the second message indicates the live broadcast state of a third user in the chat group;
under the condition that the third user is on the air, adding live broadcast information of the third user in a live broadcast list of the chat group; alternatively, the first and second liquid crystal display panels may be,
and deleting the live broadcast information of the third user in the live broadcast list of the chat group under the condition that the third user plays the chat.
8. An updating apparatus of live broadcast information, comprising: the device comprises a receiving module and an updating module;
the receiving module is configured to receive a first message sent by a server, where the first message is sent by the server when a change in a live broadcast state of a first user is detected, the first message includes live broadcast information of the first user, and the first user is a user in a chat group;
the updating module is used for updating the live broadcast information of the first user in the chat interface according to the first message received by the receiving module under the condition that the chat interface of the chat group is displayed, wherein the live broadcast information in the chat interface comprises a live broadcast state;
the updating module comprises a live broadcast information displaying module configured to display live broadcast information of the first user in the chat interface if the first message indicates that the first user is on broadcast.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method of updating live information according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of a method for updating live information according to any one of claims 1 to 7.
CN202110614327.8A 2021-06-02 2021-06-02 Live broadcast information updating method and device and electronic equipment Active CN113347456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110614327.8A CN113347456B (en) 2021-06-02 2021-06-02 Live broadcast information updating method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110614327.8A CN113347456B (en) 2021-06-02 2021-06-02 Live broadcast information updating method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113347456A CN113347456A (en) 2021-09-03
CN113347456B true CN113347456B (en) 2023-04-07

Family

ID=77473065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110614327.8A Active CN113347456B (en) 2021-06-02 2021-06-02 Live broadcast information updating method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113347456B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234289A (en) * 2017-12-20 2018-06-29 盈东科技(北京)有限公司 A kind of message display method, device and mobile terminal

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959203B (en) * 2016-04-22 2019-09-20 北京小米移动软件有限公司 Head portrait setting method and device
CN106254311B (en) * 2016-07-15 2020-12-08 腾讯科技(深圳)有限公司 Live broadcast method and device and live broadcast data stream display method and device
CN106534978A (en) * 2016-10-14 2017-03-22 乐视控股(北京)有限公司 Live program state updating method and device
CN107071501A (en) * 2017-04-25 2017-08-18 北京潘达互娱科技有限公司 Direct broadcasting room display methods and device
CN108989881A (en) * 2018-06-04 2018-12-11 北京潘达互娱科技有限公司 A kind of main broadcaster's state determines method and device
CN111212294B (en) * 2018-11-22 2021-10-29 腾讯科技(深圳)有限公司 Method and device for updating state of live broadcast room and readable storage medium
CN110351572B (en) * 2019-07-10 2022-05-20 广州虎牙科技有限公司 Method, device and equipment for updating live broadcast room information and storage medium
CN110781149A (en) * 2019-10-23 2020-02-11 北京达佳互联信息技术有限公司 Method, device, equipment and storage medium for managing live broadcast room information
CN111163325A (en) * 2019-12-18 2020-05-15 深圳市云歌人工智能技术有限公司 Community live broadcast method and device and storage medium
CN112218175B (en) * 2020-12-09 2021-03-02 深圳市房多多网络科技有限公司 Processing method and device for live broadcast room state and computing equipment
CN112822528B (en) * 2020-12-29 2023-04-18 百果园技术(新加坡)有限公司 Live list service system, live list management method, server and medium
CN112631635B (en) * 2021-03-10 2021-06-22 武汉瓯越网视有限公司 Live broadcast client updating method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234289A (en) * 2017-12-20 2018-06-29 盈东科技(北京)有限公司 A kind of message display method, device and mobile terminal

Also Published As

Publication number Publication date
CN113347456A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
CN106534940B (en) Display method and device of live broadcast entry preview
US11029905B2 (en) Integrated learning using multiple devices
CN112764624B (en) Information screen display method and device
CN111669438B (en) Live broadcast message transmission method and device, electronic equipment and medium
CN113259221B (en) Message display method and device and electronic equipment
CN112383787B (en) Live broadcast room creating method and device, electronic equipment and storage medium
US9600152B2 (en) Providing feedback for screen sharing
CN112597361B (en) Ordering processing method and device, electronic equipment and storage medium
CN113179413A (en) Information processing method and device, electronic equipment and storage medium
CN112671635B (en) Sending method, device and electronic equipment
CN113141294A (en) Message prompting method and device and electronic equipment
CN113285866A (en) Information sending method and device and electronic equipment
US20150106531A1 (en) Multicast of stream selection from portable device
CN113242308B (en) Information pushing method, device, equipment and storage medium
US20120296939A1 (en) Preserving event data for lazily-loaded macro components in a publish/subscribe system
CN113347456B (en) Live broadcast information updating method and device and electronic equipment
CN105898596A (en) Display control method and display control device for live webcast room
CN113676395B (en) Information processing method, related device and readable storage medium
CN114124874B (en) Chat information sending method and device
CN113965640B (en) Message processing method and device
CN113891441A (en) Network connection method and device and electronic equipment
CN113163221A (en) Interactive processing method and device, electronic equipment and storage medium
CN113094577B (en) Information display method, related equipment and storage medium
CN114302165B (en) Live broadcast room virtual gift giving method, device, computer equipment and storage medium
CN115134327B (en) Message processing method and device, electronic equipment and storage medium

Legal Events

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