CN107249140B - List information acquisition method and apparatus - Google Patents

List information acquisition method and apparatus Download PDF

Info

Publication number
CN107249140B
CN107249140B CN201710566549.0A CN201710566549A CN107249140B CN 107249140 B CN107249140 B CN 107249140B CN 201710566549 A CN201710566549 A CN 201710566549A CN 107249140 B CN107249140 B CN 107249140B
Authority
CN
China
Prior art keywords
live broadcast
broadcast room
list content
list
content corresponding
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
CN201710566549.0A
Other languages
Chinese (zh)
Other versions
CN107249140A (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.)
Beijing longzhixin Technology Co.,Ltd.
Original Assignee
Beijing Panda Mutual Entertainment Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Panda Mutual Entertainment Technology Co Ltd filed Critical Beijing Panda Mutual Entertainment Technology Co Ltd
Priority to CN201710566549.0A priority Critical patent/CN107249140B/en
Publication of CN107249140A publication Critical patent/CN107249140A/en
Application granted granted Critical
Publication of CN107249140B publication Critical patent/CN107249140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • 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/488Data services, e.g. news ticker

Abstract

the embodiment of the invention discloses a list information acquisition method and a device thereof, wherein the method comprises the following steps: receiving list subscription information sent by a server when the list content corresponding to the first live broadcast room changes, wherein the list subscription information comprises a first live broadcast room identifier and new list content corresponding to the first live broadcast room; inquiring whether old list content corresponding to the first live broadcast room is cached locally or not according to the first live broadcast room identifier; if the local cache exists, updating the old list content into new list content; when a first request sent by a client for acquiring the list content corresponding to the first live broadcast room is received, the new list content cached locally is sent to the client so as to be displayed in a first live broadcast room interface of the client. The list information acquisition method and the list information acquisition device disclosed by the embodiment of the invention solve the technical problems of high background server pressure and poor information timeliness when the information of the main broadcast live broadcast room is acquired in the field of video live broadcast at the present stage.

Description

List information acquisition method and apparatus
Technical Field
the invention belongs to the field of computers, and particularly relates to a list information acquisition method and a list information acquisition device.
Background
At present, live video is increasingly popular as a new media, and a live video platform plays a very important role as a link between many viewers and a main broadcast. When a user enters a live broadcast room of an anchor, the personal information of the anchor and the information of the anchor such as the ranking of the anchor on a video live broadcast platform and user contribution information are required to be acquired, the information of the anchor live broadcast room is stored in a background server of the video live broadcast platform, a large number of users acquire the information of the anchor live broadcast room on a plurality of live broadcast platforms from the background server at the same time, so that the background server is over stressed, the information display of the anchor live broadcast room is easy to delay and be incomplete, even information errors occur, and the like.
in short, the technical problems of high background server pressure and poor information timeliness exist when the information of the main broadcast live broadcast room is acquired in the video live broadcast field at the present stage.
Disclosure of Invention
In view of this, the embodiment of the invention provides a list information acquisition method and a list information acquisition device, which are used for solving the technical problems of high background server pressure and poor information timeliness when acquiring anchor live broadcast room information in the video live broadcast field at the present stage.
The embodiment of the invention provides a list information acquisition method, which comprises the following steps:
Receiving list subscription information sent by a server when list content corresponding to a first live broadcast room changes, wherein the list subscription information comprises a first live broadcast room identifier and new list content corresponding to the first live broadcast room;
Inquiring whether old list content corresponding to the first live broadcast room is cached locally or not according to the first live broadcast room identifier;
If the cache exists locally, updating the old list content into the new list content;
when a first request sent by a client for acquiring the list content corresponding to the first live broadcast room is received, the new list content cached locally is sent to the client so as to be displayed in the first live broadcast room interface of the client.
Further, the method further comprises:
Receiving a second request for acquiring the list content corresponding to a second live broadcast room, wherein the second request carries a second live broadcast room identifier;
According to the second live broadcast room identification, whether list content corresponding to the second live broadcast room is cached locally or not is inquired;
if the local cache does not exist, sending a third request for acquiring the list content corresponding to the second live broadcast room to the server;
and locally caching the list content corresponding to the second live broadcast room fed back by the server, and sending the list content corresponding to the second live broadcast room to the client for displaying in the second live broadcast room interface of the client.
further, the method further comprises:
Based on locally cached list content corresponding to at least one live broadcast room, establishing an information communication mechanism for subscribing the list content corresponding to the at least one live broadcast room with the server, so that the server sends list subscription information when the list content corresponding to any one or more live broadcast rooms in the at least one live broadcast room changes.
further, the method further comprises:
and when the cache invalidation event occurs, deleting part or all of the list content corresponding to the at least one local cache live broadcast room.
Further, the method further comprises:
Recording the caching time of the corresponding list content of the third live broadcast room;
And if the time length from the caching time to the current time exceeds a threshold value, triggering and deleting the caching failure event of the corresponding list content of the third live broadcast room.
The embodiment of the invention also provides a list information acquisition device, which comprises:
The receiving module is used for receiving list subscription information sent by a server when list content corresponding to a first live broadcast room changes, and the list subscription information comprises the first live broadcast room identification and new list content corresponding to the first live broadcast room;
The query module is used for querying whether old list content corresponding to the first live broadcast room is cached locally or not according to the first live broadcast room identifier;
the updating module is used for inquiring that a local cache exists in the inquiring module and updating the old list content into the new list content;
the sending module is used for sending the locally cached new list content to the client side when the receiving module receives a first request sent by the client side for obtaining the list content corresponding to the first live broadcast room, so as to display the new list content in the first live broadcast room interface of the client side.
Further, the receiving module is further configured to receive a second request sent by the client to acquire the list content corresponding to the second live broadcast room, where the second request carries the identifier of the second live broadcast room;
The query module is further used for querying whether list content corresponding to the second live broadcast room is cached locally or not according to the second live broadcast room identifier;
the sending module is further used for the query module to query that no cache exists locally and sending a third request for obtaining the list content corresponding to the second live broadcast room to the server;
The device further comprises:
The storage module is used for locally caching the list content corresponding to the second live broadcast room fed back by the server;
The sending module is further configured to send the list content corresponding to the second live broadcast room to the client, so as to be displayed in the second live broadcast room interface of the client.
further, the apparatus further comprises:
And the subscription establishing module is used for establishing an information communication mechanism for subscribing the list content corresponding to the at least one live broadcast room with the server based on the locally cached list content corresponding to the at least one live broadcast room, so that the server sends the list subscription information when the list content corresponding to any one or more live broadcast rooms in the at least one live broadcast room changes.
further, the apparatus further comprises:
And the deleting module is used for deleting part or all of the list content corresponding to at least one live broadcast room of the local cache when the cache invalidation event occurs.
Further, the apparatus further comprises:
the recording module is used for recording the caching time of the corresponding list content of the third live broadcast room;
The deleting module is further configured to trigger deletion of a cache invalidation event of the list content corresponding to the third live broadcast room if the duration of the cache time recorded by the recording module from the current time exceeds a threshold.
according to the list information acquisition method and the device thereof provided by the embodiment of the invention, through receiving list subscription information sent by the server, the old list content cached locally is updated into new list content, and the request of the client is received to send the new list content to the client for displaying, so that the problem that the server is over stressed due to the fact that the client directly obtains the list content from the server is avoided; the problem that the updated content is not sent to the client in time after the list content of the server is updated is solved, and the technical problems that the background server is high in pressure and the information timeliness is poor when the information of the anchor broadcast live broadcast room is obtained in the field of video live broadcast in the current stage are solved.
drawings
in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
fig. 1 is a flowchart of a method of a list information obtaining method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method of a list information obtaining method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method of a list information obtaining method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method of a list information obtaining method according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method of a list information obtaining method according to a fifth embodiment of the present invention;
fig. 6 is a block diagram of a list information obtaining apparatus according to a sixth embodiment of the present invention;
fig. 7 is a block diagram of still another structure of the list information acquiring apparatus according to the sixth embodiment of the present invention;
Fig. 8 is a block diagram of a list information obtaining apparatus according to a seventh embodiment of the present invention;
fig. 9 is a block diagram of a list information acquiring apparatus according to an eighth embodiment of the present invention;
fig. 10 is a block diagram of a list information obtaining apparatus according to a ninth embodiment of the present invention.
Detailed Description
in order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
it should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
it should be understood that although the terms first, second, third, etc. may be used to describe XXX in embodiments of the present invention, these XXX should not be limited to these terms. These terms are only used to distinguish XXX from each other. For example, a first XXX may also be referred to as a second XXX, and similarly, a second XXX may also be referred to as a first XXX, without departing from the scope of embodiments of the present invention.
the words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
it is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
Example one
Referring to fig. 1, a flowchart of a method of a list information obtaining method according to an embodiment of the present invention is shown, where the method includes the following steps:
step S101, receiving list subscription information sent by a server when list content corresponding to a first live broadcast room changes, wherein the list subscription information comprises a first live broadcast room identifier and new list content corresponding to the first live broadcast room;
Step S102, according to the first live broadcast room identification, whether old list content corresponding to the first live broadcast room is cached locally or not is inquired;
Step S103, if the local cache exists, updating the old list content into the new list content;
Step S104, when a first request sent by a client for obtaining the list content corresponding to the first live broadcast room is received, sending the new list content cached locally to the client for displaying in the first live broadcast room interface of the client.
In step S101, the server refers to a background server including a live broadcast room such as the first live broadcast room, and the server has video live broadcast files of each live broadcast room and list subscription information of each live broadcast room; specifically, when the list content corresponding to the first live broadcast room changes, list subscription information sent by the server is received, where the list subscription information includes the first live broadcast room identifier and new list content corresponding to the first live broadcast room. Here, the first live broadcast room identifier may be ID information of the first live broadcast room, such as information included in a main broadcast of a video live broadcast in the first live broadcast room; the new list content corresponding to the first live broadcast room refers to content after the list content corresponding to the first live broadcast room changes, namely the latest list content on the server, and the list content refers to a contribution ranking list of audiences in a video live broadcast platform to a main broadcast of the first live broadcast room, and includes ID information of the first live broadcast room.
receiving the step S101, in step S102, according to the first live broadcast room identifier, querying whether an old list content corresponding to the first live broadcast room is cached locally; specifically, according to the ID information of the first live broadcast, whether an old list content corresponding to the first live broadcast exists locally is queried, where whether the list content is new or old is determined, and according to the time of generating the list content, the old list content may be determined if the time is earlier than the current time.
In step S103, if an old list content corresponding to the first live broadcast room is locally cached, the old list content is updated to the new list content, and specifically, the update method may be to replace the old list content with the new list content; and if the old list content corresponding to the first live broadcast room is not cached locally, the received list content is the latest list content.
receiving step S103, in step S104, when a first request sent by the client to obtain the list content corresponding to the first live broadcast room is received, where the first request may be sent by the user when the user enters the first live broadcast room, it is to be pointed out that the user may enter the first live broadcast room by logging in an account, or the user may enter the first live broadcast room by using a visitor identity, that is, when the first live broadcast room is opened, the first request to obtain the list content corresponding to the first live broadcast room is sent; when the first request is received, sending the locally cached new list content to the client to be displayed in the first live broadcasting room interface of the client, namely displaying the new list content in the first live broadcasting room of the client, for example, displaying a contribution ranking list of audiences to a main broadcasting of the first live broadcasting room in a live broadcasting picture of the first live broadcasting room.
In the above embodiment, by receiving the list subscription information sent by the server, the old list content cached locally is updated to the new list content, and receiving the request of the client to send the new list content to the client for display, the problem that the server is over stressed due to the fact that the client directly obtains the list content from the server is avoided, the problem that the updated content is not timely sent to the client after the list content of the server is updated is avoided, and the technical problems that the background server is under high pressure and the information timeliness is poor when the main broadcast live broadcast room information is obtained in the video live broadcast field in the current stage are solved.
example two
Referring to fig. 2, a flowchart of a method of the list information obtaining method according to the second embodiment of the present invention is shown, where in this embodiment, on the basis of the first embodiment, the method further includes the following steps:
Step S201, receiving a second request sent by a client for acquiring list content corresponding to a second live broadcast room, wherein the second request carries a second live broadcast room identifier;
step S202, according to the second live broadcast room identification, whether list content corresponding to the second live broadcast room is cached locally or not is inquired;
step S203, if no cache exists locally, sending a third request for acquiring the list content corresponding to the second live broadcast room to the server;
Step S204, locally caching the list content corresponding to the second live broadcast room fed back by the server, and sending the list content corresponding to the second live broadcast room to the client for displaying in the second live broadcast room interface of the client.
In step S201, when the user enters a certain live broadcast room, such as a second live broadcast room, a second request for obtaining the list content corresponding to the second live broadcast room is sent, where it is to be noted that when the user enters the second live broadcast room, it may be that the user logs in an account to enter the second live broadcast room, or that the user enters the second live broadcast room with a visitor identity, that is, when the second live broadcast room is opened, the second request for obtaining the list content corresponding to the second live broadcast room is sent, where the second request carries an identifier of the second live broadcast room, such as ID information of the second live broadcast room.
Receiving the step S201, in step S202, according to the identifier of the second live broadcast room, querying whether list content corresponding to the second live broadcast room is cached locally; specifically, whether the list content corresponding to the second live broadcast room exists locally is queried according to the ID information of the second live broadcast room.
In step S203, if the list content corresponding to the second live broadcast room is cached locally, the operation of sending the list content to the client may be performed; and if the list content corresponding to the second live broadcast room is not locally cached, sending a third request for obtaining the list content corresponding to the second live broadcast room to the server, wherein the second request sent by the client is converted into the third request sent to the server when the local cache is not available.
After the step S203, in step S204, after receiving the third request, the server may feed back the third request, that is, feed back the list content corresponding to the second live broadcast. Specifically, the list content corresponding to the second live broadcast room fed back by the server is cached locally, and then the list content corresponding to the second live broadcast room is sent to the client, so that the second request for the client is completed, the list content is displayed in the second live broadcast room interface of the client, that is, the list content is displayed in the second live broadcast room of the client, and for example, the contribution ranking list of the audience to the main broadcast of the second live broadcast room is displayed in the live broadcast picture of the second live broadcast room.
in the embodiment, the request of the client is received, the request is sent to the server when the list content is not cached locally, the list content fed back by the server is cached locally and sent to the client for displaying, the problem that the server is over-stressed due to the fact that the client directly obtains the list content from the server is avoided, and the technical problem that the background server is over-stressed when the anchor live broadcasting room information is obtained in the video live broadcasting field at the present stage is further solved.
EXAMPLE III
Referring to fig. 3, a flowchart of a method of a list information obtaining method according to a third embodiment of the present invention is shown, where on the basis of the first embodiment or the second embodiment, the method further includes the following steps:
Step S300, establishing an information communication mechanism for subscribing the list content corresponding to the at least one live broadcast room with the server based on the locally cached list content corresponding to the at least one live broadcast room, so that the server sends the list subscription information when the list content corresponding to any one or more live broadcast rooms in the at least one live broadcast room changes.
Specifically, a subscription information communication mechanism is established between the locally stored list content corresponding to at least one live broadcast room and the server, and after the list content of the corresponding live broadcast room in the server changes, the new list content after the change sent by the server is received in time. Here, the change in the list contents of the live broadcast rooms means that the list contents of one or more live broadcast rooms in the live broadcast rooms change, in other words, the change in the list contents of the live broadcast rooms is regarded as a change in the list contents of the live broadcast rooms. The reason for establishing the subscription information communication mechanism with the server is to enable the server to send the list subscription information when the list content corresponding to any one or more of the at least one live broadcast rooms changes.
Example four
referring to fig. 4, a flowchart of a method of the list information obtaining method according to the fourth embodiment of the present invention is shown, where on the basis of the first embodiment or the second embodiment, the method further includes the following steps:
In step S400, when a cache invalidation event occurs, deleting part or all of the list content corresponding to the at least one local cache live broadcast room.
specifically, because the storage space of the local cache is limited, the list content sent by the server is not stored unlimitedly, and the list content in the local cache also needs to be cleared, that is, when a cache failure event occurs, part or all of the list content corresponding to at least one live broadcast room of the local cache is deleted, where the cache failure event may be that a request for obtaining the list content from the client is not received for a long time, that a main broadcast account of the live broadcast room logs off on a live broadcast platform, or that the number of viewers who pay attention to the main broadcast of the live broadcast room is less than a certain number.
the specific situation of the cache invalidation event is not specifically limited, and it is only necessary to emphasize that when the cache invalidation event occurs, part or all of the list content corresponding to the at least one local cache live broadcast room is deleted, where it is to be noted that the deletion may be the whole content of the list or the partial content of the list.
EXAMPLE five
Referring to fig. 5, a flowchart of a method of the list information obtaining method according to the fifth embodiment of the present invention is shown, where in this embodiment, on the basis of the fourth embodiment, the method further includes the following steps:
step S501, recording the caching time of the corresponding list content of the third live broadcast room;
step S502, if the time length from the caching moment to the current moment exceeds a threshold value, the caching failure event of the corresponding list content of the third live broadcast room is triggered to be deleted.
In step S501, when the list content sent by the server is cached, a caching time of the list content corresponding to the live broadcast room is recorded, for example, the cached list content includes a generation time of the list content.
in step S502, performing difference processing on the caching time and the current time to obtain a time difference between the caching time and the current time, and when the time difference exceeds a threshold, for example, 72 hours, triggering to delete the cache invalidation event of the list content corresponding to the third live broadcast room, and triggering the cache invalidation event, that is, to delete part or all of the locally cached list content corresponding to the third live broadcast room.
By triggering the cache invalidation event, part or all of the list content of the local cache is deleted, the redundant cache can be timely cleaned, and the local cache pressure is reduced.
EXAMPLE six
referring to fig. 6 to 7, which are block diagrams of a list information obtaining apparatus according to a sixth embodiment of the present invention, respectively, the list information obtaining apparatus 1 is connected to a server 2 and a client 3, where the connection may be mutual communication connection through the internet, and the number of the server 2 and the client 3 may be determined according to specific situations, and may be one-to-one, or one-to-many, and is not limited herein.
The list information acquiring apparatus 1 includes a receiving module 110, a querying module 120, an updating module 130, and a sending module 140.
The receiving module 110 is configured to receive list subscription information sent by the server 2 when the list content corresponding to the first live broadcast room changes, where the list subscription information includes the first live broadcast room identifier and new list content corresponding to the first live broadcast room;
The query module 120 is configured to query whether the old list content corresponding to the first live broadcast room is cached locally according to the first live broadcast room identifier;
the updating module 130 is configured to query that there is a local cache in the querying module 120, and update the old list content to the new list content;
the sending module 140 is configured to send the locally cached new list content to the client 3 when the receiving module 110 receives a first request sent by the client 3 to obtain the list content corresponding to the first live broadcast room, so as to be displayed in the first live broadcast interface of the client 3.
In the above embodiment, the receiving module receives the list subscription information sent by the server, the updating module updates the locally cached old list content into the new list content, and after the receiving module receives the request of the client, the sending module sends the new list content to the client for display, thereby avoiding the problem that the server is over-stressed due to the fact that the client directly obtains the list content from the server, and avoiding the problem that the updated content is not timely sent to the client after the list content of the server is updated, and solving the technical problems that the background server is under high pressure and the information timeliness is poor when the information of the main broadcast live broadcast room is obtained in the video live broadcast field at the present stage.
EXAMPLE seven
Referring to fig. 8, which are block diagrams of a chart information acquiring apparatus according to a seventh embodiment of the present invention, respectively, the chart information acquiring apparatus 1 further includes a storage module 150
the receiving module 110 is further configured to receive a second request sent by the client 3 for obtaining the list content corresponding to a second live broadcast room, where the second request carries an identifier of the second live broadcast room;
The query module 120 is further configured to query whether list content corresponding to the second live broadcast room is cached locally according to the identifier of the second live broadcast room;
The sending module 140 is further configured to query that there is no local cache by the querying module 120, and send a third request for obtaining the list content corresponding to the second live broadcast room to the server 2;
The storage module 150 is configured to locally cache the list content corresponding to the second live broadcast room fed back by the server 2;
The sending module 140 is further configured to send the list content corresponding to the second live broadcast room to the client 3, so as to be displayed in the second live broadcast room interface of the client 3.
in the above embodiment, the receiving module receives a request of the client, the sending module sends the request to the server when the list content is not cached locally, the storage module locally caches the list content fed back by the server and sends the list content to the client for display through the sending module, so that the problem that the server is over-stressed due to the fact that the client directly obtains the list content from the server is avoided, and the technical problem that the background server is over-stressed when the anchor live broadcasting room information is obtained in the video live broadcasting field in the current stage is further solved.
Example eight
referring to fig. 9, which are respectively a block diagram of a list information obtaining apparatus according to an eighth embodiment of the present invention, the list information obtaining apparatus 1 further includes a subscription establishment module 160.
the subscription establishing module 160 is configured to establish, with the server 2, an information communication mechanism for subscribing to the list content corresponding to the at least one live broadcast room based on locally cached list content corresponding to the at least one live broadcast room, so that the server 2 sends the list subscription information when the list content corresponding to any one or more live broadcast rooms in the at least one live broadcast room changes.
Example nine
referring to fig. 10, which are respectively a block diagram of a list information acquiring apparatus according to a ninth embodiment of the present invention, the list information acquiring apparatus 1 further includes a deleting module 170 and a recording module 180.
The deleting module 170 is configured to delete part or all of the list content corresponding to the at least one locally cached live broadcast room when the cache invalidation event occurs.
Further, the recording module 180 is configured to record a caching time of the list content corresponding to the third live broadcast room;
The deleting module 170 is further configured to trigger to delete the cache invalidation event of the list content corresponding to the third live broadcast room if the duration of the cache time recorded by the recording module 180 from the current time exceeds a threshold.
It should be noted that, in the above embodiments, the first, second, third, fourth, and fifth embodiments are embodiments of the list information obtaining method, respectively, and the sixth, seventh, eighth, and ninth embodiments are embodiments of the list information obtaining apparatus, respectively, and in the apparatus embodiment, where it is unclear, the description of the method embodiment may be referred to, or all embodiments of the present invention may be referred to each other.
the above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A list information acquisition method is characterized by comprising the following steps:
Receiving list subscription information sent by a server when list content corresponding to a first live broadcast room changes, wherein the list subscription information comprises a first live broadcast room identifier and new list content corresponding to the first live broadcast room;
Inquiring whether old list content corresponding to the first live broadcast room is cached locally or not according to the first live broadcast room identifier;
if the cache exists locally, updating the old list content into the new list content;
When a first request sent by a client for acquiring the list content corresponding to the first live broadcast room is received, the new list content cached locally is sent to the client so as to be displayed in the first live broadcast room interface of the client.
2. the method of claim 1, further comprising:
Receiving a second request for acquiring the list content corresponding to a second live broadcast room, wherein the second request carries a second live broadcast room identifier;
according to the second live broadcast room identification, whether list content corresponding to the second live broadcast room is cached locally or not is inquired;
If the local cache does not exist, sending a third request for acquiring the list content corresponding to the second live broadcast room to the server;
and locally caching the list content corresponding to the second live broadcast room fed back by the server, and sending the list content corresponding to the second live broadcast room to the client for displaying in the second live broadcast room interface of the client.
3. The method of claim 1 or 2, further comprising:
Based on locally cached list content corresponding to at least one live broadcast room, establishing an information communication mechanism for subscribing the list content corresponding to the at least one live broadcast room with the server, so that the server sends list subscription information when the list content corresponding to any one or more live broadcast rooms in the at least one live broadcast room changes.
4. The method of claim 1 or 2, further comprising:
And when the cache invalidation event occurs, deleting part or all of the list content corresponding to the at least one local cache live broadcast room.
5. The method of claim 4, further comprising:
recording the caching time of the corresponding list content of the third live broadcast room;
And if the time length from the caching time to the current time exceeds a threshold value, triggering and deleting the caching failure event of the corresponding list content of the third live broadcast room.
6. A list information acquisition apparatus, comprising:
the receiving module is used for receiving list subscription information sent by a server when list content corresponding to a first live broadcast room changes, and the list subscription information comprises the first live broadcast room identification and new list content corresponding to the first live broadcast room;
The query module is used for querying whether old list content corresponding to the first live broadcast room is cached locally or not according to the first live broadcast room identifier;
The updating module is used for inquiring that a local cache exists in the inquiring module and updating the old list content into the new list content;
the sending module is used for sending the locally cached new list content to the client side when the receiving module receives a first request sent by the client side for obtaining the list content corresponding to the first live broadcast room, so as to display the new list content in the first live broadcast room interface of the client side.
7. the apparatus of claim 6,
the receiving module is further configured to receive a second request, sent by the client, for acquiring the list content corresponding to the second live broadcast room, where the second request carries the identifier of the second live broadcast room;
The query module is further used for querying whether list content corresponding to the second live broadcast room is cached locally or not according to the second live broadcast room identifier;
the sending module is further used for the query module to query that no cache exists locally and sending a third request for obtaining the list content corresponding to the second live broadcast room to the server;
The device further comprises:
the storage module is used for locally caching the list content corresponding to the second live broadcast room fed back by the server;
the sending module is further configured to send the list content corresponding to the second live broadcast room to the client, so as to be displayed in the second live broadcast room interface of the client.
8. the apparatus of claim 6 or 7, further comprising:
And the subscription establishing module is used for establishing an information communication mechanism for subscribing the list content corresponding to the at least one live broadcast room with the server based on the locally cached list content corresponding to the at least one live broadcast room, so that the server sends the list subscription information when the list content corresponding to any one or more live broadcast rooms in the at least one live broadcast room changes.
9. the apparatus of claim 6 or 7, further comprising:
And the deleting module is used for deleting part or all of the list content corresponding to at least one live broadcast room of the local cache when the cache invalidation event occurs.
10. the apparatus of claim 9, further comprising:
the recording module is used for recording the caching time of the corresponding list content of the third live broadcast room;
The deleting module is further configured to trigger deletion of a cache invalidation event of the list content corresponding to the third live broadcast room if the duration of the cache time recorded by the recording module from the current time exceeds a threshold.
CN201710566549.0A 2017-07-12 2017-07-12 List information acquisition method and apparatus Active CN107249140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710566549.0A CN107249140B (en) 2017-07-12 2017-07-12 List information acquisition method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710566549.0A CN107249140B (en) 2017-07-12 2017-07-12 List information acquisition method and apparatus

Publications (2)

Publication Number Publication Date
CN107249140A CN107249140A (en) 2017-10-13
CN107249140B true CN107249140B (en) 2019-12-10

Family

ID=60015222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710566549.0A Active CN107249140B (en) 2017-07-12 2017-07-12 List information acquisition method and apparatus

Country Status (1)

Country Link
CN (1) CN107249140B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256122A (en) * 2018-02-23 2018-07-06 武汉斗鱼网络科技有限公司 Data capture method, device and terminal device based on card
CN111225223A (en) * 2018-11-27 2020-06-02 武汉斗鱼网络科技有限公司 Method, system, server and storage medium for optimizing list information of live broadcast platform
CN109788307A (en) * 2019-02-11 2019-05-21 北京字节跳动网络技术有限公司 Processing method, device, storage medium and the electronic equipment of video list
CN112312145B (en) * 2019-07-31 2023-04-18 上海幻电信息科技有限公司 Access server, burst traffic caching method, system, computer device and readable storage medium
CN110795446A (en) * 2019-10-29 2020-02-14 北京字节跳动网络技术有限公司 List updating method and device, readable medium and electronic equipment
CN111970529A (en) * 2020-08-21 2020-11-20 网易(杭州)网络有限公司 Information processing method and device for live broadcast room, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323594A (en) * 2015-10-26 2016-02-10 广州华多网络科技有限公司 Online live-broadcast list generation method and device
CN105611422A (en) * 2015-10-26 2016-05-25 广州华多网络科技有限公司 Online live broadcast method based on multi-media list and apparatus thereof
CN106210793A (en) * 2016-06-28 2016-12-07 广州华多网络科技有限公司 A kind of method and apparatus sending main broadcaster's competition Information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102287510B1 (en) * 2014-04-10 2021-08-06 엘지전자 주식회사 Server, apparatus for providing image, and system including the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323594A (en) * 2015-10-26 2016-02-10 广州华多网络科技有限公司 Online live-broadcast list generation method and device
CN105611422A (en) * 2015-10-26 2016-05-25 广州华多网络科技有限公司 Online live broadcast method based on multi-media list and apparatus thereof
CN106210793A (en) * 2016-06-28 2016-12-07 广州华多网络科技有限公司 A kind of method and apparatus sending main broadcaster's competition Information

Also Published As

Publication number Publication date
CN107249140A (en) 2017-10-13

Similar Documents

Publication Publication Date Title
CN107249140B (en) List information acquisition method and apparatus
US11601730B2 (en) Non-temporal advertising
EP3591941B1 (en) Live video stream guiding method, ccl server and system
CN106878769B (en) Live video quality monitoring method and device
CN113923518B (en) Tracking pixels and COOKIE for television event viewing
US9191439B2 (en) Method and system for data synchronization in content delivery network
US20110307586A1 (en) Partial object distribution in content delivery network
CN107231350B (en) Message processing method and device
KR102086524B1 (en) Using messaging associated with adaptive bitrate streaming to perform media monitoring for mobile platforms
US7698304B2 (en) Caching data in a distributed system
CN111131843A (en) Network live broadcast system and method
CN107087232B (en) User real-time state detection method and system
CN109600635B (en) System and method for pushing information according to intelligent television video on demand
CN103024477A (en) Method, device and system for implementing IPTV (internet protocol television) system advertisements
CN107277624B (en) Duration calculation method and device
US11293780B2 (en) Data transmission method for an smart gas service system based on compound IoT
US20100080141A1 (en) Network system, monitoring device, information processing device, information processing method, computer-readable recording medium
CN114631324B (en) System and method for delivering target content in real time in streaming content
CN103595960A (en) Interesting information monitoring and pushing method and device
CN101459484A (en) System and method for resumable data transmission
CN112396432A (en) Return visit task generation system, return visit task generation method, return visit task generation equipment and return visit task generation medium
CN103294683A (en) Automatic subtitle matching system and method for video file
CN112104888B (en) Method and system for grouping live broadcast users
KR20070003902A (en) Hierarchical broadcast of ui assets
CN112887806A (en) Subtitle processing method, subtitle processing device, electronic equipment and subtitle processing 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
TR01 Transfer of patent right

Effective date of registration: 20210309

Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing

Patentee after: Beijing longzhixin Technology Co.,Ltd.

Address before: 100041 room 120, 4th floor, building 17, yard 30, Shixing street, Shijingshan District, Beijing

Patentee before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right