A method, device, computer equipment and storage medium for displaying live content

By identifying the first time information of the live broadcast screen and sending relevant requests to the server, the problem of inconsistent live broadcast progress of different clients is solved, and the unified display of live broadcast events is realized, and the audience experience is improved.

CN116074548BActive Publication Date: 2025-01-14DOUYIN VISION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310086724.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-16
Publication Date
2025-01-14
Estimated Expiration
2043-01-16

AI Technical Summary

Technical Problem

Due to different device processing capabilities and network transmission speeds, different live broadcast clients make it difficult to maintain unified real-time live broadcast progress, resulting in the problem of premature or late display of live broadcast events in different clients, affecting the audience's live viewing experience.

Method used

By identifying the first time information of the current live broadcast screen, an event acquisition request carrying the first time information and the current time information is sent to the target server. The receiving server determines and sends the live broadcast event based on this information to display and real in the live broadcast client. Live broadcast progress matching event.

Benefits of technology

Ensure the uniformity of live broadcast events display of different live broadcast clients, improve the user's real-time live broadcast content matching, and improve the live viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116074548B_ABST
    Figure CN116074548B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus, computer equipment and storage medium for displaying live content, wherein the method comprises: in response to satisfying an event pulling condition, identifying a currently displayed live screen, and determining first time information corresponding to the currently displayed live screen; sending an event acquisition request carrying the first time information and current time information to a target server; wherein the current time information is used to characterize the sending time of the event acquisition request; receiving a live event determined by the target server according to the first time information and the current time information, so as to display the live event in the live screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of live broadcast technology, and in particular to a method, device, computer equipment and storage medium for displaying live broadcast content. Background Art

[0002] With the rapid development of Internet technology, online live broadcasting is developing in full swing, and the types of live broadcasting content are becoming more and more diverse. The types of live broadcasting content include shopping live broadcasting, event live broadcasting, etc. Taking event live broadcasting as an example, some live broadcasting events such as goals will occur during the game. These live broadcasting events often have additional content display requirements to enrich the online viewing experience during the live broadcasting process. Therefore, the server needs to send relevant content of the live broadcasting event to the live broadcasting client, so that the live broadcasting client can display the live broadcasting content according to the received live broadcasting event.

[0003] In the related art, when a server sends a live broadcast event to a live broadcast client, it often determines the same live broadcast event for different live broadcast clients based on the live broadcast progress corresponding to the live broadcast data stream. However, due to factors such as different device processing capabilities corresponding to different live broadcast clients and different network transmission speeds, it is difficult to maintain uniformity in the real-time live broadcast progress corresponding to different live broadcast clients, which may cause the live broadcast event to be displayed too early or too late in different live broadcast clients, affecting the audience's live viewing experience. Summary of the invention

[0004] The embodiments of the present disclosure at least provide a method, apparatus, computer equipment and storage medium for displaying live content.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for displaying live content, including:

[0006] In response to satisfying the event pulling condition, identifying a currently displayed live screen, and determining first time information corresponding to the currently displayed live screen;

[0007] Sending an event acquisition request carrying the first time information and current time information to a target server; wherein the current time information is used to represent the sending time of the event acquisition request;

[0008] A live broadcast event determined by the target server according to the first time information and the current time information is received, so as to display the live broadcast event in a live broadcast screen.

[0009] In a possible implementation manner, the identifying the currently displayed live broadcast picture and determining the first time information corresponding to the currently displayed live broadcast picture includes:

[0010] Determine the live broadcast type of the current live broadcast;

[0011] Determine an identification area that matches the live broadcast type, and identify the first time information displayed by the identification area in the currently displayed live broadcast picture.

[0012] In a possible implementation manner, the identifying the currently displayed live broadcast picture and determining the first time information corresponding to the currently displayed live broadcast picture includes:

[0013] Determine the text recognition result of the currently displayed live screen;

[0014] The text content in the text recognition result, whose corresponding text form is a preset time text form, is used as the first time information.

[0015] In a possible implementation manner, the event pulling condition includes:

[0016] The interval from the last time an event acquisition request was sent reaches a preset interval; and / or, a request is made for acquiring a live broadcast image for the first time.

[0017] In a possible implementation manner, the receiving the live broadcast event determined by the target server according to the first time information and the current time information includes:

[0018] Receive a live broadcast event determined by the target server based on the first time information and the current time information; wherein the live broadcast event is an event within an event acquisition interval corresponding to the first time information; the event acquisition interval corresponding to the first time information is determined based on the first time information, the current time information, a preset interval interval, and the second time information when the target server receives the event acquisition request, wherein the preset interval interval is a preset interval for sending event acquisition requests.

[0019] In a possible implementation manner, the time information displayed on the live broadcast screen is a relative time relative to the start time of the live broadcast content;

[0020] The displaying of the live event in the live screen includes:

[0021] Acquire live event delay information corresponding to the live event; wherein the live event delay information is used to represent delay information displayed by the live event;

[0022] Based on the live event delay information corresponding to the live event and the live event, the live event is displayed in a live screen.

[0023] In a possible implementation manner, the acquiring the live event delay information corresponding to the live event includes:

[0024] Receiving live event delay information corresponding to the live event sent by the target server, wherein the live event delay information is the time interval between a first moment and a second moment, the first moment is the relative occurrence moment of the live event relative to the start moment, and the second moment is the moment when the live screen is displayed when the live event is received; or

[0025] The relative occurrence time corresponding to the live event sent by the target server is received, and based on the relative occurrence time and the time when the live screen is currently displayed, the live event delay information is determined.

[0026] In a second aspect, the present disclosure also provides a live content display device, including:

[0027] A determination module, configured to identify a currently displayed live screen in response to satisfying an event pulling condition, and determine first time information corresponding to the currently displayed live screen;

[0028] A sending module, used to send an event acquisition request carrying the first time information and current time information to a target server; wherein the current time information is used to represent the sending time of the event acquisition request;

[0029] The receiving module is used to receive the live broadcast event determined by the target server according to the first time information and the current time information, so as to display the live broadcast event in the live broadcast screen.

[0030] In a possible implementation manner, the determination module, when identifying the currently displayed live broadcast picture and determining the first time information corresponding to the currently displayed live broadcast picture, is used to:

[0031] Determine the live broadcast type of the current live broadcast;

[0032] Determine an identification area that matches the live broadcast type, and identify the first time information displayed by the identification area in the currently displayed live broadcast picture.

[0033] In a possible implementation manner, the determination module, when identifying the currently displayed live broadcast picture and determining the first time information corresponding to the currently displayed live broadcast picture, is used to:

[0034] Determine the text recognition result of the currently displayed live screen;

[0035] The text content in the text recognition result, whose corresponding text form is a preset time text form, is used as the first time information.

[0036] In a possible implementation manner, the event pulling condition includes:

[0037] The interval from the last time an event acquisition request was sent reaches a preset interval; and / or, a request is made for acquiring a live broadcast image for the first time.

[0038] In a possible implementation manner, when receiving the live broadcast event determined by the target server according to the first time information and the current time information, the receiving module is configured to:

[0039] Receive a live broadcast event determined by the target server based on the first time information and the current time information; wherein the live broadcast event is an event within an event acquisition interval corresponding to the first time information; the event acquisition interval corresponding to the first time information is determined based on the first time information, the current time information, a preset interval interval, and the second time information when the target server receives the event acquisition request, wherein the preset interval interval is a preset interval for sending event acquisition requests.

[0040] In a possible implementation manner, the time information displayed on the live broadcast screen is a relative time relative to the start time of the live broadcast content;

[0041] The receiving module, when displaying the live event, is used to:

[0042] Acquire live event delay information corresponding to the live event; wherein the live event delay information is used to represent delay information displayed by the live event;

[0043] Based on the live event delay information corresponding to the live event and the live event, the live event is displayed in a live screen.

[0044] In a possible implementation manner, when acquiring the live event delay information corresponding to the live event, the receiving module is used to:

[0045] Receiving live event delay information corresponding to the live event sent by the target server, wherein the live event delay information is the time interval between a first moment and a second moment, the first moment is the relative occurrence moment of the live event relative to the start moment, and the second moment is the moment when the live screen is displayed when the live event is received; or

[0046] The relative occurrence time corresponding to the live event sent by the target server is received, and based on the relative occurrence time and the time when the live screen is currently displayed, the live event delay information is determined.

[0047] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.

[0048] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.

[0049] The live content display method, device, computer equipment and storage medium provided by the embodiments of the present disclosure can more accurately determine the real live progress of the current live client by determining the first time information corresponding to the live screen currently displayed by the live client, and receive the live event determined and sent by the target server according to the first time information and the current time information after receiving the event acquisition request, so that the live event matching the current real live progress can be displayed on the live client. Compared with different live clients using a unified live progress to determine the live event to be displayed, since the first time information corresponding to the live screen currently displayed by the live client can better reflect the real live progress of the live client, the live event determined by the server according to the first time information can be more matched with the real-time live content watched by the user when displayed on the live client.

[0050] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0052] Figure 1 A flowchart of a live content display method provided by an embodiment of the present disclosure is shown;

[0053] Figure 2A schematic diagram of the architecture of a live content display device provided by an embodiment of the present disclosure is shown;

[0054] Figure 3 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0056] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0057] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0058] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0059] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0060] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0061] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0062] Research has found that when the server sends live events to the live client, it often determines the same live event for different live clients based on the live progress corresponding to the live data stream. However, due to factors such as different device processing capabilities and network transmission speeds corresponding to different live clients, it is difficult to maintain uniform real-time live progress corresponding to different live clients, which may cause the live event to be displayed too early or too late in different live clients, affecting the audience's live viewing experience.

[0063] Based on the above research, the present disclosure provides a live content display method, device, computer equipment and storage medium. By determining the first time information corresponding to the live screen currently displayed by the live client, the real live progress of the current live client can be determined more accurately, and the target server receives the live event determined and sent according to the first time information and the current time information after receiving the event acquisition request, so that the live event matching the current real live progress can be displayed on the live client. Compared with different live clients using a unified live progress to determine the live event to be displayed, since the first time information corresponding to the live screen currently displayed by the live client can better reflect the real live progress of the live client, the live event determined by the server according to the first time information can be more matched with the real-time live content watched by the user when displayed on the live client.

[0064] To facilitate understanding of this embodiment, a live content display method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the live content display method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device. The terminal device can be an intelligent terminal device with a display function, for example, a smart phone, a tablet computer, an intelligent wearable device, etc. In some possible implementations, the live content display method can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0065] See also Figure 1FIG. 1 is a flowchart of a live content display method provided by an embodiment of the present disclosure, wherein the method includes S101 to S103, wherein:

[0066] S101: In response to satisfying an event pulling condition, identifying a currently displayed live broadcast picture, and determining first time information corresponding to the currently displayed live broadcast picture.

[0067] S102: Sending an event acquisition request carrying the first time information and current time information to a target server; wherein the current time information is used to represent the sending time of the event acquisition request.

[0068] S103: receiving a live broadcast event determined by the target server according to the first time information and the current time information, so as to display the live broadcast event in a live broadcast screen.

[0069] The following is a detailed description of the above steps.

[0070] For S101,

[0071] Here, the event pulling condition indicates the conditions that need to be met for pulling the live broadcast event, and pulling the live broadcast event indicates obtaining the live broadcast event from the server; the live broadcast event is an event that occurs during the live broadcast process, and the event content of the live broadcast event can be displayed through content display forms such as pop-up windows and floating windows. Taking the live broadcast type of a football match as an example, the live broadcast event can be, for example, a goal scored by player A; the first time information corresponding to the currently displayed live broadcast screen can be a relative time representing the start time of the relative live broadcast content. Still taking the live broadcast type of a football match as an example, the first time information can be, for example, the game time after the start of the game.

[0072] The event pulling condition may include at least one of the following conditions:

[0073] Condition 1: The interval between the last time an event acquisition request was sent reaches the preset interval

[0074] Here, when sending an event acquisition request, the live broadcast client can send the event acquisition request to the target server at a preset interval by polling. Therefore, when it is detected that the interval between the current time and the time when the event acquisition request was last sent reaches the preset interval, it can be determined that the live broadcast client meets the event pulling conditions.

[0075] Among them, the preset interval can be pre-set according to the expected load of the target server, and the expected load of the target server is used to characterize the amount of data processing that the target server is expected to bear during its operation within the target time period; the expected load can be determined based on the live broadcast attribute information such as the live broadcast type and live broadcast content corresponding to the target time period.

[0076] For example, if the live broadcast attribute information corresponding to the target time period is a popular football match, the preset interval for sending event acquisition requests can be determined to be 10s based on the mapping relationship between the preset live broadcast attribute information and the time interval; if the live broadcast attribute information corresponding to the target time period is an unpopular football match, the preset interval for sending event acquisition requests can be determined to be 5s based on the mapping relationship between the preset live broadcast attribute information and the time interval. Therefore, the number of event acquisition requests received by the target server in real time can be adjusted according to the live broadcast attribute information of the live content corresponding to the target time period, thereby realizing load adjustment of the target server and improving the utilization efficiency of the hardware resources of the target server.

[0077] Condition 2: First request to obtain live broadcast image

[0078] Here, in order to avoid missing the display of the live broadcast event, the first request to obtain the live broadcast screen can be used as the event pulling condition. When the first request to obtain the live broadcast screen is detected, it can be determined that the live broadcast client meets the event pulling condition.

[0079] Specifically, when the live broadcast client enters the live broadcast room for the first time, it can send a live broadcast stream data acquisition request to the target server to request to obtain the live broadcast stream data corresponding to the live broadcast screen. While sending the live broadcast stream data to the live broadcast client, the target server can also send the live broadcast event determined according to the subsequent steps of this application. The specific process of determining the live broadcast event will be described below and will not be elaborated here.

[0080] In practical applications, when identifying the currently displayed live screen and determining the first time information corresponding to the currently displayed live screen, the first time information can be determined in a variety of ways, two of which are described below:

[0081] Method 1: Determine the first time information based on the live broadcast type.

[0082] Here, when determining the first time information based on the live broadcast type of the live broadcast, the following steps A1 to A2 may be performed:

[0083] A1: Determine the type of the current live broadcast.

[0084] Here, the live broadcast type is used to characterize the type of live broadcast content currently being broadcast, and the live broadcast type may include, for example, football live broadcast, basketball live broadcast, volleyball live broadcast, etc.

[0085] Specifically, when determining the live broadcast type of the current live broadcast, it can be determined based on the live broadcast type data in the live broadcast stream data that is used to characterize the live broadcast type of the current live broadcast. After obtaining the live broadcast type data in the live broadcast stream data, the live broadcast type of the current live broadcast can be determined based on the live broadcast type data.

[0086] In addition, when determining the live broadcast type of the current live broadcast, the current live broadcast screen can also be input into a pre-trained object recognition model to obtain a recognition result of a target object that matches the live broadcast type output by the object recognition network; wherein the target object is an object that matches the live broadcast type, such as a football, a football frame, a football shoe, etc. that matches a football live broadcast, and the model type of the object recognition model can be a neural network model that can perform image processing, such as a convolutional neural network (CNN), etc. The training method of the object recognition model can be supervised training, and the label used in the training process can be a category annotation box for the target object, and the category annotation box is used to annotate the category and position of the object in the image.

[0087] Specifically, when it is detected that there is a target object matching the live broadcast type in the current live broadcast picture, the live broadcast type of the current live broadcast can be determined according to the mapping relationship between the target object and the live broadcast type.

[0088] Furthermore, in order to ensure the accuracy of the live broadcast type finally determined, multiple frames of live broadcast images can be input into the object recognition model, and the live broadcast type corresponding to the current live broadcast image can be determined based on the object recognition results corresponding to the multiple frames of live broadcast images.

[0089] In addition, when determining the live broadcast type of the current live broadcast, the live broadcast type can also be determined based on the anchor attribute information corresponding to the current live broadcast; wherein the live broadcast attribute information is used to characterize the live broadcast attributes of the anchor, including anchor type information, etc.

[0090] Exemplarily, if the anchor type information in the live broadcast attribute information corresponding to the current live broadcast is a food zone anchor, then the live broadcast type of the current live broadcast can be determined as a food live broadcast.

[0091] A2: Determine an identification area that matches the live broadcast type, and identify the first time information displayed by the identification area in the currently displayed live broadcast picture.

[0092] Here, the display time areas corresponding to different live broadcast types may be different, so the first time information displayed in the identification area in the currently displayed live broadcast picture can be identified.

[0093] For example, if the live broadcast type is football live broadcast, the area for displaying the football live broadcast match time may be area A located in the upper right corner of the live broadcast screen, and the identification area matching the football live broadcast may be said area A; if the live broadcast type is basketball live broadcast, the area for displaying the basketball live broadcast match time may be area B located in the lower left corner of the live broadcast screen, and the identification area matching the basketball live broadcast may be said area B.

[0094] In this way, the first time information can be identified by identifying the text content in the identification area matching the live broadcast type in the currently displayed live broadcast picture.

[0095] Method 2: determining the first time information based on a preset time text format.

[0096] Here, when the first time information is determined based on the preset time text format, the following steps B1 to B2 may be performed:

[0097] B1: Determine the text recognition result of the currently displayed live broadcast picture.

[0098] Here, when determining the text recognition result of the currently displayed live broadcast picture, the text content recognition can be performed on the picture content of the currently displayed live broadcast picture by using a recognition method such as optical character recognition (OCR).

[0099] B2: Using the text content in the text recognition result, whose corresponding text form is a preset time text form, as the first time information.

[0100] Here, the preset time text format may be a text format of minutes and seconds, for example, 45:30, which may indicate that the game time corresponding to the current live broadcast screen is 45 minutes and 30 seconds.

[0101] In actual applications, since there may be other text contents that meet the time text format in the live broadcast picture, the text recognition result obtained after text recognition may include multiple text contents whose corresponding text format is the preset time text format. For example, the number of the player to be replaced and the number of the player after replacement displayed on the player replacement sign used for player replacement in a football match may be recognized as text content that meets the time text format of "minutes-seconds", which may affect the recognition accuracy of the first-time information.

[0102] Specifically, if there are multiple text contents in the text recognition results whose corresponding text forms are preset time text forms, the multiple text contents in the text recognition results whose corresponding text forms are preset time text forms can be verified to determine the first time information among the multiple text contents.

[0103] Among them, when verifying the text content, text content recognition can be performed on multiple frames of live broadcast pictures before the current live broadcast picture according to a preset recognition interval, and based on the text recognition result obtained after performing text content recognition according to the recognition interval, the text content whose corresponding text form in the text recognition result of the current live broadcast picture is in a preset time text form is verified, and the text content whose verification result satisfies the time change condition corresponding to the recognition interval is used as the first time information.

[0104] Exemplarily, taking the recognition interval of 1 second as an example, the time change condition corresponding to the recognition interval can be that the text recognition result increases by 1 second from the front to the back. In the text recognition results corresponding to the live broadcast images for several consecutive seconds, the text content that meets the time change condition corresponding to the recognition interval is the first time information. Since the display content on the display board such as the player change sign will not change accordingly with time in the text recognition results for several consecutive seconds, its impact on the accuracy of the first time information recognition can be effectively avoided.

[0105] In addition, when verifying the text content, you can also obtain a time value rule that matches a preset time text form, and verify the text content whose corresponding text form in the text recognition result of the current live screen is the preset time text form according to the time value rule.

[0106] Exemplarily, taking the live broadcast of football as an example, the time value rule may be that the value corresponding to "minute" is less than 130, and the value corresponding to "second" is less than 60.

[0107] In this way, by using the text content in the preset time text format corresponding to the text recognition result of the currently displayed live screen as the first time information, and verifying the text content by combining any of the above-mentioned multiple verification methods, the first time information in the live screen can be accurately identified.

[0108] For S102 and S103,

[0109] Here, the target server may be a live data stream push server, which is used to determine and send live events while pushing live streams; or, the target server may also be an event server set up separately for live events, which is used to handle live events in live broadcasts; the live events determined by the target server may be uploaded in real time or pre-set, such as the live event "Player A scores a goal" in a football match may be uploaded in real time; the current time information is used to characterize the sending time of the event acquisition request, and the sending time is the real time corresponding to the moment of sending the event acquisition request, and the real time is an absolute time, such as the system time corresponding to the live broadcast client.

[0110] In actual applications, since the target server often needs to process live events of multiple live clients in the live broadcast room, in order to reduce the number of requests processed in real time by the target server, after receiving the event acquisition request initiated by the live broadcast client, the live broadcast events within a certain time period can be determined, so that the live broadcast client does not need to initiate a live event acquisition request again within a certain time period.

[0111] In a possible implementation, the live event may be an event within an event acquisition interval corresponding to the first time information; the event acquisition interval corresponding to the first time information is determined based on the first time information, the current time information, a preset interval interval, and the second time information when the target server receives the event acquisition request, wherein the preset interval interval is a preset interval for sending event acquisition requests.

[0112] Here, the value of the preset interval can be the same as the value of the preset interval for sending the event acquisition request. For example, the preset interval for sending the event acquisition request can be 6s, and the interval of a determined event can also be 6s, that is, the live broadcast client requests a live broadcast event once every 6s, and each live broadcast event requested is a live broadcast event that occurs within 6s.

[0113] Specifically, when determining the event acquisition interval, the following formula may be used:

[0114] Among them, represents the left boundary of the event acquisition interval; represents the right boundary of the event acquisition interval; represents the first time information; represents the second time information; represents the current time information; represents the preset interval interval; the physical meaning of is the time required for the event acquisition request to be sent from the live broadcast client to the target server, that is, the data transmission time corresponding to the request sent by the live broadcast client to the target server; the physical meaning of is the sum of the time required for the event acquisition request to be sent from the live broadcast client to the target server and the time required for the target server to send the live broadcast event to the live broadcast client, that is, the time interval between the initial moment when the live broadcast client sends the request to the target server and the end moment when the live broadcast client receives the live broadcast event sent by the target server; the physical meaning of is the moment when the live broadcast client receives the live broadcast event sent by the target server, relative to the start moment of the live broadcast content; the physical meaning of is to add the preset interval interval on the basis of the above to form a complete event acquisition interval.

[0115] In this way, by calculating the event acquisition interval through the above formula, the live events that can be used by the live broadcast client to display content within a certain time period can be determined based on the inferred time when the user receives the live broadcast event and the interval interval. The calculation process fully considers the request transmission time required for the event acquisition request sent by the live broadcast client to transmit the event to the target server, and the data transmission time required for the live broadcast event sent by the target server to the live broadcast client. Therefore, the live broadcast events within the determined event acquisition interval are more in line with the real-time live viewing progress of the live broadcast user, so that the live broadcast events are more matched with the real-time live content watched by the user when being displayed.

[0116] In a possible implementation manner, when displaying a live event in a live screen, the following steps C1 to C2 may be performed:

[0117] C1: Obtaining live event delay information corresponding to the live event; wherein the live event delay information is used to represent delay information displayed by the live event.

[0118] Here, the delay information is used to represent the time interval between the to-be-displayed moment corresponding to the live broadcast event and the current live broadcast moment, that is, how long it takes to display the live broadcast event after continuing to watch the live broadcast according to the current live broadcast progress.

[0119] When acquiring the live event delay information corresponding to the live event, any one of the following methods may be used:

[0120] Method 1: receiving the live event delay information corresponding to the live event sent by the target server.

[0121] Here, the live event delay information is the time interval between a first moment and a second moment, the first moment is the relative occurrence moment of the live event relative to the start moment, and the second moment is the moment when the live screen is displayed when the live event is received.

[0122] Specifically, for any live event, when determining the live event delay information corresponding to the live event, the difference between the first moment corresponding to the live event and the second moment corresponding to the live event can be calculated, and the obtained difference can be used as the live event delay information corresponding to the live event.

[0123] Furthermore, after the target server determines the live event delay information corresponding to each live event, in order to reduce the amount of data when the target server sends the live event delay information corresponding to the live event to the live client, the live event and the live event delay information corresponding to the live event can be sent to the live client together in the form of key-value pairs.

[0124] In this way, the live event delay information corresponding to each live event is calculated by the server, and the live event and the live event delay information are sent to the live client, so that after receiving the live event and the live event delay information, the live client can display the live content based on the live event according to the live event delay information corresponding to each live event.

[0125] Method 2: receiving the relative occurrence time corresponding to the live event sent by the target server, and determining the live event delay information based on the relative occurrence time and the time when the live screen is currently displayed.

[0126] Here, for any live broadcast event, the target server sends the relative occurrence time corresponding to the live broadcast event, which is the same as the first time corresponding to the live broadcast event; the time currently displayed on the live broadcast screen is used to represent the current live broadcast progress.

[0127] Specifically, for any live broadcast event, when determining the live broadcast event delay information corresponding to the live broadcast event based on the relative occurrence time and the time when the live broadcast screen is currently displayed, the difference between the relative occurrence time corresponding to the live broadcast event and the time when the live broadcast screen is currently displayed can be used as the live broadcast event delay information corresponding to the live broadcast event.

[0128] For example, taking the relative occurrence time corresponding to live event A as 30 minutes and 15 seconds, and the time at which the live screen of the live client is currently displayed as 30 minutes and 10 seconds, the live event delay information corresponding to the live event A is 5 seconds.

[0129] C2: Based on the live event delay information corresponding to the live event and the live event, display the live event in the live screen.

[0130] Here, after obtaining the live event delay information corresponding to the live event, a display task corresponding to the live event can be established based on the live event delay information corresponding to the live event. The display content of the display task is the display content corresponding to the live event. The display time of the display task is the display time determined according to the live event delay information. The display task can be triggered by a timer. The timer can trigger the display task after detecting that the elapsed time reaches the time corresponding to the live event delay information, so as to display the display content corresponding to the live event on the client page of the live client.

[0131] The live content display method provided by the embodiment of the present disclosure can more accurately determine the real live progress of the current live client by determining the first time information corresponding to the live screen currently displayed by the live client, and receive the live event determined and sent by the target server according to the first time information and the current time information after receiving the event acquisition request, so that the live event matching the current real live progress can be displayed on the live client. Compared with different live clients using a unified live progress to determine the live event to be displayed, since the first time information corresponding to the live screen currently displayed by the live client can better reflect the real live progress of the live client, the live event determined by the server according to the first time information can be more matched with the real-time live content watched by the user when displayed on the live client.

[0132] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0133] Based on the same inventive concept, the embodiment of the present disclosure also provides a live content display device corresponding to the live content display method. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned live content display method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0134] Reference Figure 2 , which is a schematic diagram of the architecture of a live content display device provided by an embodiment of the present disclosure, the device includes: a determination module 201, a sending module 202, and a receiving module 203; wherein,

[0135] The determination module 201 is used to identify the currently displayed live screen in response to satisfying the event pulling condition, and determine the first time information corresponding to the currently displayed live screen;

[0136] The sending module 202 is used to send an event acquisition request carrying the first time information and current time information to a target server; wherein the current time information is used to represent the sending time of the event acquisition request;

[0137] The receiving module 203 is used to receive the live broadcast event determined by the target server according to the first time information and the current time information, so as to display the live broadcast event in the live broadcast screen.

[0138] In a possible implementation manner, the determination module 201, when identifying the currently displayed live broadcast picture and determining the first time information corresponding to the currently displayed live broadcast picture, is used to:

[0139] Determine the live broadcast type of the current live broadcast;

[0140] Determine an identification area that matches the live broadcast type, and identify the first time information displayed by the identification area in the currently displayed live broadcast picture.

[0141] In a possible implementation manner, the determination module 201, when identifying the currently displayed live broadcast picture and determining the first time information corresponding to the currently displayed live broadcast picture, is used to:

[0142] Determine the text recognition result of the currently displayed live screen;

[0143] The text content in the text recognition result, whose corresponding text form is a preset time text form, is used as the first time information.

[0144] In a possible implementation manner, the event pulling condition includes:

[0145] The interval from the last time an event acquisition request was sent reaches a preset interval; and / or, a request is made for acquiring a live broadcast image for the first time.

[0146] In a possible implementation manner, when receiving the live broadcast event determined by the target server according to the first time information and the current time information, the receiving module 203 is configured to:

[0147] Receive a live broadcast event determined by the target server based on the first time information and the current time information; wherein the live broadcast event is an event within an event acquisition interval corresponding to the first time information; the event acquisition interval corresponding to the first time information is determined based on the first time information, the current time information, a preset interval interval, and the second time information when the target server receives the event acquisition request, wherein the preset interval interval is a preset interval for sending event acquisition requests.

[0148] In a possible implementation manner, the time information displayed on the live broadcast screen is a relative time relative to the start time of the live broadcast content;

[0149] The receiving module 203, when displaying the live event, is used to:

[0150] Acquire live event delay information corresponding to the live event; wherein the live event delay information is used to represent delay information displayed by the live event;

[0151] Based on the live event delay information corresponding to the live event and the live event, the live event is displayed in a live screen.

[0152] In a possible implementation manner, when acquiring the live event delay information corresponding to the live event, the receiving module 203 is used to:

[0153] Receiving live event delay information corresponding to the live event sent by the target server, wherein the live event delay information is the time interval between a first moment and a second moment, the first moment is the relative occurrence moment of the live event relative to the start moment, and the second moment is the moment when the live screen is displayed when the live event is received; or

[0154] The relative occurrence time corresponding to the live event sent by the target server is received, and based on the relative occurrence time and the time when the live screen is currently displayed, the live event delay information is determined.

[0155] The live content display device provided by the embodiment of the present disclosure can more accurately determine the real live progress of the current live client by determining the first time information corresponding to the live screen currently displayed by the live client, and receive the live event determined and sent by the target server according to the first time information and the current time information after receiving the event acquisition request, so that the live event matching the current real live progress can be displayed on the live client. Compared with different live clients using a unified live progress to determine the live event to be displayed, since the first time information corresponding to the live screen currently displayed by the live client can better reflect the real live progress of the live client, the live event determined by the server according to the first time information can be more matched with the real-time live content watched by the user when displayed on the live client.

[0156] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0157] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 3 As shown, it is a schematic diagram of the structure of a computer device 300 provided in an embodiment of the present disclosure, including a processor 301, a memory 302, and a bus 303. Among them, the memory 302 is used to store execution instructions, including a memory 3021 and an external memory 3022; the memory 3021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 301, and the data exchanged with the external memory 3022 such as a hard disk. The processor 301 exchanges data with the external memory 3022 through the memory 3021. When the computer device 300 is running, the processor 301 communicates with the memory 302 through the bus 303, so that the processor 301 executes the following instructions:

[0158] In response to satisfying the event pulling condition, identifying a currently displayed live screen, and determining first time information corresponding to the currently displayed live screen;

[0159] Sending an event acquisition request carrying the first time information and current time information to a target server; wherein the current time information is used to represent the sending time of the event acquisition request;

[0160] A live broadcast event determined by the target server according to the first time information and the current time information is received, so as to display the live broadcast event in a live broadcast screen.

[0161] In a possible implementation manner, in the instruction of the processor 301, the identifying the currently displayed live screen and determining the first time information corresponding to the currently displayed live screen includes:

[0162] Determine the live broadcast type of the current live broadcast;

[0163] Determine an identification area that matches the live broadcast type, and identify the first time information displayed by the identification area in the currently displayed live broadcast picture.

[0164] In a possible implementation manner, in the instruction of the processor 301, the identifying the currently displayed live screen and determining the first time information corresponding to the currently displayed live screen includes:

[0165] Determine the text recognition result of the currently displayed live screen;

[0166] The text content in the text recognition result, whose corresponding text form is a preset time text form, is used as the first time information.

[0167] In a possible implementation manner, in the instruction of the processor 301, the event pulling condition includes:

[0168] The interval from the last time an event acquisition request was sent reaches a preset interval; and / or, a request is made for acquiring a live broadcast image for the first time.

[0169] In a possible implementation manner, in the instruction of the processor 301, the receiving the live broadcast event determined by the target server according to the first time information and the current time information includes:

[0170] Receive a live broadcast event determined by the target server based on the first time information and the current time information; wherein the live broadcast event is an event within an event acquisition interval corresponding to the first time information; the event acquisition interval corresponding to the first time information is determined based on the first time information, the current time information, a preset interval interval, and the second time information when the target server receives the event acquisition request, wherein the preset interval interval is a preset interval for sending event acquisition requests.

[0171] In a possible implementation manner, in the instruction of the processor 301, the time information displayed on the live screen is a relative time relative to the start time of the live content;

[0172] The displaying of the live event in the live screen includes:

[0173] Acquire live event delay information corresponding to the live event; wherein the live event delay information is used to represent delay information displayed by the live event;

[0174] Based on the live event delay information corresponding to the live event and the live event, the live event is displayed in a live screen.

[0175] In a possible implementation manner, in the instruction of the processor 301, the acquiring the live event delay information corresponding to the live event includes:

[0176] Receiving live event delay information corresponding to the live event sent by the target server, wherein the live event delay information is the time interval between a first moment and a second moment, the first moment is the relative occurrence moment of the live event relative to the start moment, and the second moment is the moment when the live screen is displayed when the live event is received; or

[0177] The relative occurrence time corresponding to the live event sent by the target server is received, and based on the relative occurrence time and the time when the live screen is currently displayed, the live event delay information is determined.

[0178] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the live content display method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0179] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the live content display method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0180] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0181] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0182] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0183] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0184] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0185] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for displaying live content, characterized in that: include: In response to satisfying the event pulling condition, identifying a currently displayed live screen, and determining first time information corresponding to the currently displayed live screen; Sending an event acquisition request carrying the first time information and current time information to a target server; wherein the current time information is used to represent the sending time of the event acquisition request; receiving a live broadcast event determined by the target server according to the first time information and the current time information, so as to display the live broadcast event in a live broadcast screen, Among them, the live broadcast event is an event within the event acquisition interval corresponding to the first time information; the event acquisition interval corresponding to the first time information is determined based on the first time information, the current time information, the preset interval interval, and the second time information when the target server receives the event acquisition request, wherein the preset interval interval is the preset interval for sending event acquisition requests.

2. The method according to claim 1, characterized in that The step of identifying the currently displayed live screen and determining the first time information corresponding to the currently displayed live screen includes: Determine the live broadcast type of the current live broadcast; Determine an identification area that matches the live broadcast type, and identify the first time information displayed by the identification area in the currently displayed live broadcast picture.

3. The method according to claim 1, characterized in that The step of identifying the currently displayed live screen and determining the first time information corresponding to the currently displayed live screen includes: Determine the text recognition result of the currently displayed live screen; The text content in the text recognition result, whose corresponding text form is a preset time text form, is used as the first time information.

4. The method according to claim 1, characterized in that: The event pulling conditions include: The interval from the last time an event acquisition request was sent reaches a preset interval; and / or, a request is made for acquiring a live broadcast image for the first time.

5. The method according to claim 1, characterized in that: The time information displayed on the live broadcast screen is the relative time relative to the start time of the live broadcast content; The displaying of the live event in the live screen includes: Acquire live event delay information corresponding to the live event; wherein the live event delay information is used to represent delay information displayed by the live event; Based on the live event delay information corresponding to the live event and the live event, the live event is displayed in a live screen.

6. The method according to claim 5, characterized in that The acquiring the live event delay information corresponding to the live event includes: Receiving live event delay information corresponding to the live event sent by the target server, wherein the live event delay information is the time interval between a first moment and a second moment, the first moment is the relative occurrence moment of the live event relative to the start moment, and the second moment is the moment when the live screen is displayed when the live event is received; or The relative occurrence time corresponding to the live event sent by the target server is received, and based on the relative occurrence time and the time when the live screen is currently displayed, the live event delay information is determined.

7. A live content display device, characterized in that: include: A determination module, configured to identify a currently displayed live screen in response to satisfying an event pulling condition, and determine first time information corresponding to the currently displayed live screen; A sending module, used to send an event acquisition request carrying the first time information and current time information to a target server; wherein the current time information is used to represent the sending time of the event acquisition request; a receiving module, configured to receive a live broadcast event determined by the target server according to the first time information and the current time information, so as to display the live broadcast event in a live broadcast screen, Among them, the live broadcast event is an event within the event acquisition interval corresponding to the first time information; the event acquisition interval corresponding to the first time information is determined based on the first time information, the current time information, the preset interval interval, and the second time information when the target server receives the event acquisition request, wherein the preset interval interval is the preset interval for sending event acquisition requests.

8. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the live content display method as described in any one of claims 1 to 6 are performed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the live content display method as described in any one of claims 1 to 6 are executed.

Citation Information

Patent Citations

  • Method, apparatus and system for live video streaming

    CN110024412A

  • Live broadcast list updating method and device, server and storage medium

    CN112954413A