CN112839235B - Display method, comment sending method, video frame pushing method and related equipment - Google Patents

Display method, comment sending method, video frame pushing method and related equipment Download PDF

Info

Publication number
CN112839235B
CN112839235B CN202011604818.6A CN202011604818A CN112839235B CN 112839235 B CN112839235 B CN 112839235B CN 202011604818 A CN202011604818 A CN 202011604818A CN 112839235 B CN112839235 B CN 112839235B
Authority
CN
China
Prior art keywords
video frame
comment
version information
client
carried
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
CN202011604818.6A
Other languages
Chinese (zh)
Other versions
CN112839235A (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011604818.6A priority Critical patent/CN112839235B/en
Publication of CN112839235A publication Critical patent/CN112839235A/en
Application granted granted Critical
Publication of CN112839235B publication Critical patent/CN112839235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4668Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies

Landscapes

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

Abstract

The disclosure relates to a display method, a comment sending method, a video frame pushing method and related equipment. The display method is applied to the first client and comprises the following steps: responding to a comment message sent by a second client, and acquiring comment content and version information carried by the comment message, wherein the version information carried by the comment message is the version information of a video frame corresponding to the comment content; identifying version information carried by a currently playing video frame, the version information carried by the currently played video frame is the version information of the currently played video frame; and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, delaying the display of the comment content. According to the method and the device, the comment content can be displayed in a delayed mode when the currently played video frame does not correspond to the video frame corresponding to the comment content and the version information of the video frame corresponding to the comment content is higher than that of the currently played video frame, so that the probability that the video frame displayed by the electronic equipment corresponds to the comment content can be improved, and the display effect of the electronic equipment is improved.

Description

Display method, comment sending method, video frame pushing method and related equipment
Technical Field
The present disclosure relates to the field of live broadcast technologies, and in particular, to a display method, a comment sending method, a video frame pushing method, and a related device.
Background
In recent years, the scale of live webcast users has been greatly increased, and live webcasts are gradually applied to various aspects of daily life, such as product marketing, enterprise meetings or large-scale activities.
On one hand, in the process of watching the webcast, there often exists a certain delay in the video frames of the live video seen by the viewers, and the video frame delay of the live video is sometimes different for different viewers watching the same live broadcast, for example, assuming that the viewer a and the viewer B are watching the same live broadcast, for a certain video frame pushed by the anchor, the viewer a may watch the video frame in the 4 th second after the anchor pushes the video frame, and the viewer B may watch the video frame in the 11 th second after the anchor pushes the video frame.
On the other hand, in the process of watching the webcast, the viewers sometimes also send comment content to the video frames of the live video, when a certain viewer sends comment content to a certain video frame of the live video, there is often a certain delay in the time when other viewers see the comment content, and the delay conditions of different viewers are sometimes different, for example, assuming that the viewer a, the viewer B, and the viewer C watch the same live video, and the viewer a sends comment content to a certain video frame of the live video, then the viewer B may see the comment content only 3 seconds after the viewer a sends the comment content, and the viewer B may see the comment content only 5 seconds after the viewer a sends the comment content.
Because the video frame of the live video and the comment content published for the video frame of the live video are delayed to a certain extent, and the delay conditions of different audiences are sometimes different, the probability that the comment content currently seen by the audience and the video frame currently seen by the audience are not corresponding is higher in the process of watching the live webcast, for example, if the audience A and the audience B watch the same live webcast, the audience A watches the target video frame pushed by the anchor end in a delayed manner for 3 seconds, the audience B watches the target video frame in a delayed manner for 10 seconds, the audience A watches the comment content published for the target video frame when watching the target video frame, and the comment content is watched by the audience B in a delayed manner for 2 seconds, then, as a result, the audience B sees the comment content first and sees the target video frame after seeing the comment content for 5 seconds.
In summary, in the related art, there is a technical problem that a display effect of the electronic device is poor due to a high probability that a video frame displayed by the electronic device does not correspond to the comment content.
Disclosure of Invention
The disclosure provides a display method, a comment sending method, a video frame pushing method and related equipment, and at least solves the problem that in related technologies, the display effect of electronic equipment is poor due to the fact that the probability that a video frame displayed by the electronic equipment does not correspond to comment content is high. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a display method, applied to a first client, including:
responding to a comment message sent by a second client, and acquiring comment content and version information carried by the comment message, wherein the version information carried by the comment message is the version information of a video frame corresponding to the comment content;
identifying version information carried by a currently played video frame, wherein the version information carried by the currently played video frame is the version information of the currently played video frame;
and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, delaying the display of the comment content.
Optionally, after obtaining the comment content and the version information carried in the comment message and identifying the version information carried in the currently played video frame, the display method further includes:
and when the version information carried by the comment message is lower than or equal to the version information carried by the currently played video frame, displaying the comment content on the currently played video frame.
Optionally, before identifying the version information carried by the currently played video frame, the display method further includes:
receiving a video frame sent by a third client and forwarded by a server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a played video frame, and the version number is generated according to the playing time of the played video frame;
and the currently played video frame is the video frame which is sent by the third client and forwarded by the server.
Optionally, when the version information carried in the comment message is higher than the version information carried in the currently played video frame, delaying to display the comment content includes:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, displaying the comment content after the target video frame is played, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
According to a second aspect of the embodiments of the present disclosure, there is provided a comment sending method, applied to a second client, including:
receiving comment content input aiming at a played video frame, and acquiring version information carried by the played video frame;
and sending a comment message, wherein the comment message carries the comment content and the version information, so that a first client responds to the comment message sent by a second client to obtain the comment content and the version information carried by the comment message, the first client identifies the version information carried by the currently played video frame, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays to display the comment content.
Optionally, the sending the comment message includes:
and sending a comment message to a server so that the server sends the comment message to the first client in response to the comment message sent by the second client.
Optionally, before the receiving the comment content input for the played video frame and acquiring the version information carried by the played video frame, the comment sending method further includes:
receiving a video frame sent by a third client and forwarded by a server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a played video frame, and the version number is generated according to the playing time of the played video frame;
and the played video frame is the video frame which is sent by the third client and forwarded by the server.
Optionally, when the version information carried in the comment message is higher than the version information carried in the currently played video frame, the first client delays displaying the comment content, including:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
According to a third aspect of the embodiments of the present disclosure, there is provided a video frame pushing method, applied to a third client, including:
collecting a video frame and determining version information of the video frame;
sending the video frame carrying the version information to enable a second client to obtain the version information carried by the video frame and send a comment message, wherein the comment message carries comment content and the version information carried by the video frame, and enabling the first client to respond to the comment message sent by the second client to obtain the comment content and the version information carried by the comment message, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays to display the comment content.
Optionally, the sending the video frame carrying the version information includes:
sending the video frame carrying the version information to a server, so that the server responds to the video frame carrying the version information sent by the third client, and sends the video frame carrying the version information to the first client and the second client, wherein the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame.
Optionally, the determining version information of the video frame includes:
and determining the version number of the video frame according to the playing time of the video frame.
Optionally, when the version information carried in the comment message is higher than the version information carried in the currently played video frame, the first client delays displaying the comment content, including:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a display apparatus applied to a first client, including:
the obtaining module is configured to execute responding to a comment message sent by a second client, and obtain comment content and version information carried by the comment message, wherein the version information carried by the comment message is version information of a video frame corresponding to the comment content;
the identification module is configured to identify version information carried by a currently played video frame, wherein the version information carried by the currently played video frame is the version information of the currently played video frame;
a first display module configured to delay display of the comment content when the version information carried by the comment message is higher than the version information carried by the currently played video frame.
Optionally, the display device further includes:
a second display module configured to perform, when the version information carried by the comment message is lower than or equal to the version information carried by the currently played video frame, displaying the comment content on the currently played video frame.
Optionally, the display device further includes:
the receiving module is configured to receive a video frame which is sent by a third client and forwarded by the server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame;
and the currently played video frame is the video frame which is sent by the third client and forwarded by the server.
Optionally, the first display module is configured to perform:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, displaying the comment content after the target video frame is played, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a comment sending apparatus applied to a second client, including:
the comment module is configured to accept comment content input aiming at a played video frame and acquire version information carried by the played video frame;
the sending module is configured to execute sending of a comment message, the comment message carries the comment content and the version information, so that a first client responds to the comment message sent by a second client to obtain the comment content and the version information carried by the comment message, the first client identifies the version information carried by a currently played video frame, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays displaying of the comment content.
Optionally, the sending module is configured to perform:
and sending a comment message to a server so that the server sends the comment message to the first client in response to the comment message sent by the second client.
Optionally, the comment sending apparatus further includes:
the receiving module is configured to receive a video frame which is sent by a third client and forwarded by the server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame;
and the played video frame is the video frame which is sent by the third client and forwarded by the server.
Optionally, the first client is configured to perform:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a video frame pushing apparatus, applied to a third client, including:
a capture module configured to perform capturing a video frame and determine version information of the video frame;
the sending module is configured to execute sending of the video frame carrying the version information, so that a second client obtains the version information carried by the video frame and sends a comment message, the comment message carries comment content and the version information carried by the video frame, the first client responds to the comment message sent by the second client, obtains the comment content and the version information carried by the comment message, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays displaying of the comment content.
Optionally, the sending module is configured to perform:
sending the video frame carrying the version information to a server, so that the server responds to the video frame carrying the version information sent by the third client, and sends the video frame carrying the version information to the first client and the second client, wherein the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame.
Optionally, the acquisition module is configured to perform:
and determining the version number of the video frame according to the playing time of the video frame.
Optionally, the first client is configured to perform:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the display method according to the first aspect, or implement the comment sending method according to the second aspect, or implement the video frame pushing method according to the third aspect.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the display method according to the first aspect, or perform the comment sending method according to the second aspect, or perform the video frame pushing method according to the third aspect.
According to a ninth aspect of embodiments of the present disclosure, there is provided a computer program product comprising: executable instructions which, when run on a computer, enable the computer to implement a display method as described in the first aspect, or implement a comment sending method as described in the second aspect, or implement a video frame pushing method as described in the third aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the comment content and the version information carried by the comment message are obtained in response to the comment message sent by the second client, the version information carried by the comment message is the version information of the video frame corresponding to the comment content, the version information carried by the currently played video frame is identified, the version information carried by the currently played video frame is the version information of the currently played video frame, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the comment content is displayed in a delayed manner, so that the first client can display the comment content in a delayed manner when the currently played video frame does not correspond to the video frame corresponding to the comment content and the version information of the video frame corresponding to the comment content is higher than the version information of the currently played video frame, the probability that the electronic device displays the video frame corresponding to the comment content can be improved, and the display effect of the electronic device can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a block diagram illustrating a live interactive system in accordance with an exemplary embodiment.
FIG. 2 is a flow chart illustrating a display method according to an exemplary embodiment.
Fig. 3 is a flow diagram illustrating a method of sending comments in accordance with an exemplary embodiment.
Fig. 4 is a flow chart illustrating a video frame push method according to an example embodiment.
FIG. 5 is an example diagram illustrating one method of interaction in accordance with an illustrative embodiment.
Fig. 6 is a block diagram illustrating a display device according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a comment transmitting apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a video frame push apparatus according to an example embodiment.
FIG. 9 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a block diagram of a live interactive system to which an embodiment of the present disclosure is applicable, and as shown in fig. 1, includes a first client 11, a second client 12, a third client 13, and a server 14. The first client 11, the second client 12, and the third client 13 may be terminal-side devices such as a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), or a Wearable Device (Wearable Device). The server 14 may be a network-side device currently serving the first client 11, the second client 12, and the third client 13, or may be a network-side device where the first client 11, the second client 12, and the third client 13 currently reside.
It should be noted that the specific types of the first client 11, the second client 12, the third client 13 and the server 14 are not limited in the embodiments of the present disclosure.
Fig. 2 is a flowchart illustrating a display method according to an exemplary embodiment, which may be applied to the first client terminal 11 described above. As shown in fig. 1, the display method may include the following steps.
In step S21, in response to a comment message sent by a second client, comment content and version information carried in the comment message are obtained, where the version information carried in the comment message is version information of a video frame corresponding to the comment content.
In this embodiment, the comment message sent in response to the second client may be a comment message sent in response to the second client 12 and forwarded via the server 14. The comment content may be characters, symbols, expressions or the like input by the user of the second client 12 for the video frame played by the second client 12; and the video frame corresponding to the comment content may be a video frame for which the user inputs the comment content.
The version information may be used to identify a video frame to which the version information corresponds. The version information may include at least one of: number, version number, push time or play time. Here, the version number may be used to indicate a version of the video frame corresponding to the version information, and the version number may specifically be a combination of numbers, letters, characters, or alphanumeric characters; the push time may be used to indicate a pushed time of a video frame corresponding to the version information; the playing time may be used to indicate a time at which the video frame corresponding to the version information is played.
Specifically, when the version information includes a number, each video frame of the live video may correspond to a number, and each video frame may be identified as which frame of the live video through the number. When the version information includes a version number, each video frame of the live video may correspond to a version number, and which frame of the live video each video frame is identified by the version number, for example, a version number of a first frame image of the live video may be set to 1, a version number of a second frame image may be set to 2, a version number of the second frame image may be set to 3, and the following frames of images may be analogized in sequence. When the version information includes the push time, each video frame of the live video may correspond to one push time, and which frame of the live video each video frame is identified by the push time, where the push time of each video frame is used to indicate a time when the third client 13 pushes the video frame to the server 14. When the version information includes the playing time, each video frame of the live video may correspond to one playing time, and the playing order of each video frame may be determined according to the playing time. The aforementioned version number may be generated according to the aforementioned play time.
In step S22, the version information carried by the currently played video frame is identified, where the version information carried by the currently played video frame is the version information of the currently played video frame.
In this embodiment, the currently played video frame may refer to a video frame currently being played by the first client 11. The version information of the currently played video frame may be used to identify the currently played video frame.
In step S23, when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the comment content is delayed from being displayed.
In this embodiment, the higher the version information of the video frame, the later the playing order of the video frame is, that is, the version information of the video frame with the prior playing order is lower than the version information of the video frame with the subsequent playing order, for example, if the first client 11 receives A, B, C three video frames in sequence, and then the first client plays A, B, C three video frames in sequence, then according to the foregoing rule, the version information of the C video frame is higher than the version information of the B video frame, and the version information of the B video frame is higher than the version information of the a video frame. That is to say, the version information carried in the comment message is higher than the version information carried in the currently played video frame, which may mean that the currently played video frame is not the video frame corresponding to the comment content, and the playing order of the currently played video frame is before the playing order of the video frame corresponding to the comment content. For ease of understanding, the following are exemplified herein:
in an example, it is assumed that each video frame of a live video corresponds to a version number, where a version number of a first frame image of the live video is 1, a version number of a second frame image is 2, a version number of the second frame image is 3, and the following frame images are analogized in sequence, the identification information is a version number, and the version information includes a version number, so that when a version number carried by a comment message is greater than a version number of a currently played video frame (for example, the version number of the currently played video frame is 6 and the version number carried by the comment message is 8), it may be considered that a playing order of the video frame corresponding to the comment content in the live video is later than a playing order of the currently played video frame, and the comment content is displayed in a delayed manner.
Example two, assuming that each video frame of the live video corresponds to a push time, where the push time of each video frame is used to indicate a time when the third client 13 pushes the video frame to the server 14, and the version information includes the push time, when the push time carried by the comment message is later than the push time of the currently played video frame (for example, the push time of the currently played video frame is 30 minutes and 3 seconds when the push time is 8 months and 1 st 18 s in 2020, 30 minutes and 4 seconds when the push time carried by the comment message is 18 s in 8 months and 1 st 18 s in 2020), it may be considered that the play order of the video frame corresponding to the comment content in the live video is later than the play order of the currently played video frame, and at this time, the comment content is displayed in a delayed manner.
In a third example, assuming that each video frame of the live video corresponds to a playing time, where the playing time of each video frame is used to indicate the time when the video frame is played, and the version information includes the playing time, when the playing time carried by the comment message is later than the playing time of the currently played video frame (for example, the playing time of the currently played video frame is 30 minutes and 3 seconds when the playing time is 8/1/18/2020 and the push time carried by the comment message is 30 minutes and 4 seconds when the pushing time is 18/8/1/2020), it may be considered that the playing order of the video frame corresponding to the comment content in the live video is later than the playing order of the currently played video frame, and the comment content is displayed in a delayed manner.
In this embodiment, a first client acquires comment content and version information carried by a comment message in response to the comment message sent by a second client, where the version information carried by the comment message is version information of a video frame corresponding to the comment content, and identifies version information carried by a currently played video frame, where the version information carried by the currently played video frame is the version information of the currently played video frame, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the comment content is displayed in a delayed manner, so that the first client can delay the display of the comment content when the currently played video frame does not correspond to the video frame corresponding to the comment content, and the version information of the video frame corresponding to the comment content is higher than the version information of the currently played video frame, thereby improving the probability that the video frame displayed by an electronic device corresponds to the comment content, and further improving the display effect of the electronic device.
Optionally, after obtaining the comment content and the version information carried in the comment message and identifying the version information carried in the currently played video frame, the display method further includes:
and when the version information carried by the comment message is lower than or equal to the version information carried by the currently played video frame, displaying the comment content on the currently played video frame.
In this implementation, the version information carried in the comment message is lower than the version information carried in the currently played video frame, which may mean that the currently played video frame is not the video frame corresponding to the comment content, and the playing order of the currently played video frame is arranged after the playing order of the video frame corresponding to the comment content.
The version information carried in the comment message is equal to the version information carried in the currently played video frame, which may mean that the currently played video frame is a video frame corresponding to the comment content.
When the version information carried by the comment message is lower than the version information carried by the currently played video frame, the comment content is displayed on the currently played video frame, so that the first client can display the comment content on the currently played video frame when the currently played video frame does not correspond to the video frame corresponding to the comment content and the version information of the video frame corresponding to the comment content is lower than the version information of the currently played video frame, and thus the display time difference between the comment content and the video frame corresponding to the comment content can be reduced as much as possible, and the display effect of the electronic equipment can be better guaranteed.
When the version information carried by the comment message is equal to the version information carried by the currently played video frame, the comment content is displayed on the currently played video frame, so that the first client can display the comment content on the currently played video frame when the currently played video frame is the video frame corresponding to the comment content, and synchronous display of the comment content and the video frame corresponding to the comment content is realized.
Optionally, before the identifying the version information carried in the currently played video frame, the display method further includes:
receiving a video frame which is sent by a third client and forwarded by a server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a played video frame, and the version number is generated according to the playing time of the played video frame;
and the currently played video frame is the video frame which is sent by the third client and forwarded by the server.
In this embodiment, the third client 13 may first send the acquired video frame to the server 14, the video frame sent by the third client 13 to the server 14 carries version information of the video frame, and then the server 14 receives the video frame sent by the third client 13 and forwards the video frame to the first client 11.
The played video frame may refer to the currently played video frame. The playing time of the playing video frames may be used to indicate the time when the playing video frames are played, that is, each video frame of the live video may correspond to a playing time, and the earlier the playing time indicates that the playing order of the video frames is closer to the front, and the later the playing time indicates that the playing order of the video frames is closer to the back.
Further, according to the playing time of each video frame of the live video, the version number of each video frame of the live video can be respectively determined, specifically, the version number determined by the video frame with the earlier playing time is lower, for example, when the playing time of the video frame is 2020, 8, 1, 18, 30 minutes and 3 seconds, the version number of the video frame can be determined to be 1, and when the playing time of the video frame is 2020, 8, 1, 18, 30 minutes and 4 seconds, the version number of the video frame can be determined to be 2, so that the playing sequence of the video frames can be determined by comparing the levels of the version numbers of the video frames, and the method is more convenient.
Before the identifying the version information carried by the currently played video frame, the display method further includes: the method comprises the steps of receiving a video frame sent by a third client and forwarded by a server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a played video frame, the version number is generated according to the playing time of the played video frame, and the currently played video frame is the video frame sent by the third client and forwarded by the server, so that the playing sequence of the video frame can be determined by comparing the version number of the video frame, therefore, whether comment content corresponds to the video frame can be judged more conveniently and rapidly, the probability of the electronic equipment that the video frame displayed corresponds to the comment content is improved, and the display effect of the electronic equipment is improved.
Optionally, when the version information carried in the comment message is higher than the version information carried in the currently played video frame, delaying to display the comment content includes:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, displaying the comment content after the target video frame is played, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
In this embodiment, when the version number carried in the comment message is higher than the version number carried in the currently played video frame, it means that the playing time of the video frame corresponding to the comment content is later than the playing time of the currently played video frame, at this time, the comment content is displayed in a delayed manner, and specifically, when the video frame corresponding to the comment content is displayed, the comment content is displayed. That is to say, when the version number carried in the comment message is higher than the version number carried in the currently played video frame, it means that the playing time of the video frame corresponding to the comment content is later than the playing time of the currently played video frame; the version number carried by the target video frame is equal to the version number carried by the comment message, which means that the playing time of the target video frame is equal to the playing time of the video frame corresponding to the comment content, i.e. that the target video frame is the video frame corresponding to the comment content.
Since when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the comment content is delayed to be displayed, the method includes: and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, delaying to display the comment content when a target video frame is played, wherein the version number carried by the target video frame is equal to the version number carried by the comment message, so that synchronous display of the comment content and the target video frame corresponding to the comment content can be realized, the probability of the electronic equipment displaying the video frame corresponding to the comment content can be improved, and the display effect of the electronic equipment can be improved.
Fig. 3 is a flowchart illustrating a comment sending method that may be applied to the second client 12 shown in fig. 1 according to an exemplary embodiment. As shown in fig. 3, the comment sending method may include the following steps.
In step S31, the comment content input for the played video frame is accepted, and the version information carried by the played video frame is acquired.
In this embodiment, the played video frame may be a video frame of a live video currently being played by the second client 12. The second client 12 and the first client 11 may play the same live video. The comment content may be characters, symbols, expressions or the like.
The version information may be used to identify a video frame to which the version information corresponds. The version information may include at least one of: number, version number, push time or play time. Here, the version number may be used to indicate a version of the video frame corresponding to the version information, and the version number may specifically be a combination of numbers, letters, characters, or alphanumeric characters; the push time may be used to indicate a pushed time of a video frame corresponding to the version information; the playing time may be used to indicate a time at which the video frame corresponding to the version information is played.
Specifically, when the version information includes a number, each video frame of the live video may correspond to a number, and each video frame may be identified as which frame of the live video through the number. When the version information includes a version number, each video frame of the live video may correspond to a version number, and which frame of the live video each video frame is identified by the version number, for example, a version number of a first frame image of the live video may be set to 1, a version number of a second frame image may be set to 2, a version number of the second frame image may be set to 3, and the following frames of images may be analogized in sequence. When the version information includes the push time, each video frame of the live video may correspond to one push time, and which frame of the live video each video frame is identified by the push time, where the push time of each video frame is used to indicate a time when the third client 13 pushes the video frame to the server 14. When the version information includes the playing time, each video frame of the live video may correspond to one playing time, and the playing order of each video frame may be determined according to the playing time. The version number may be generated according to the playing time.
In step S32, a comment message is sent, where the comment message carries the comment content and the version information, so that the first client responds to the comment message sent by the second client to obtain the comment content and the version information carried in the comment message, where the first client identifies the version information carried in the currently played video frame, and when the version information carried in the comment message is higher than the version information carried in the currently played video frame, the first client delays displaying the comment content.
In this embodiment, the currently played video frame may refer to a video frame currently being played by the first client 11. The version information of the currently played video frame may be used to identify the currently played video frame.
The higher the version information of the video frame is, the later the playing order of the video frame is, that is, the version information of the video frame with the prior playing order is lower than the version information of the video frame with the later playing order, that is, the version information carried by the comment message is higher than the version information carried by the currently playing video frame, and the higher the playing order of the currently playing video frame is, the more the playing order of the video frame with the current playing video frame is before the playing order of the video frame with the comment content. For ease of understanding, the following are exemplified herein:
for example, it is assumed that each video frame of a live video corresponds to a version number, where a version number of a first frame image of the live video is 1, a version number of a second frame image is 2, a version number of the second frame image is 3, and the following frame images are analogized in sequence, the identification information is a version number, and the version information includes a version number, so that when a version number carried in a comment message is greater than a version number of a currently played video frame (for example, the version number of the currently played video frame is 6 and the version number carried in the comment message is 8), it may be considered that a playing order of the video frame corresponding to the comment content in the live video is later than a playing order of the currently played video frame, and at this time, the first client 11 displays the comment content in a delayed manner.
Example two, assuming that each video frame of the live video corresponds to a push time, where the push time of each video frame is used to indicate a time when the third client 13 pushes the video frame to the server 14, and the version information includes the push time, when the push time carried by the comment message is later than the push time of the currently played video frame (for example, the push time of the currently played video frame is 30 minutes and 3 seconds when the push time is 8, 1, 18 in 2020, and 30 minutes and 4 seconds when the push time carried by the comment message is 18 in 8, 1, 18 in 2020, the play order of the video frame corresponding to the comment content in the live video can be considered to be later than the play order of the currently played video frame, and at this time, the first client 11 will delay to display the comment content.
In a third example, assuming that each video frame of the live video corresponds to a playing time, where the playing time of each video frame is used to indicate a time when the video frame is played, and the version information includes the playing time, when the playing time carried by the comment message is later than the playing time of the currently played video frame (for example, the playing time of the currently played video frame is 30 minutes and 3 seconds when the playing time is 8/1/18/2020 and the push time carried by the comment message is 30 minutes and 4 seconds when the pushing time is 18/8/1/2020), it may be considered that the playing order of the video frame corresponding to the comment content in the live video is later than the playing order of the currently played video frame, and at this time, the first client 11 will display the comment content in a delayed manner.
In this embodiment, the second client receives comment content input for a played video frame, acquires version information carried by the played video frame, and sends a comment message, where the comment message carries the comment content and the version information, so that the first client responds to the comment message sent by the second client to acquire the comment content and the version information carried by the comment message, and identifies the version information carried by the currently played video frame, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays to display the comment content, so that the first client does not correspond to the video frame corresponding to the comment content in the currently played video frame, and when the version information of the video frame corresponding to the comment content is higher than the version information of the currently played video frame, delays to display the comment content, thereby improving a probability that the video frame displayed by the electronic device corresponds to the comment content, and further improving a display effect of the electronic device.
Optionally, the sending the comment message includes:
and sending a comment message to a server so that the server sends the comment message to the first client in response to the comment message sent by the second client.
In this embodiment, the second client 12 may first send the comment message carrying the comment content and the version information to the server 14, and then the server 14 forwards the comment message sent by the second client 12 to the first client 11.
Due to the sending of the comment message, the method comprises the following steps: and sending a comment message to a server so that the server responds to the comment message sent by the second client and sends the comment message to the first client, thereby improving the probability that the video frame of the live video displayed by the electronic equipment corresponds to the comment content and improving the display effect of the electronic equipment.
Optionally, before the receiving the comment content input for the played video frame and acquiring the version information carried by the played video frame, the comment sending method further includes:
receiving a video frame sent by a third client and forwarded by a server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a played video frame, and the version number is generated according to the playing time of the played video frame;
and the played video frame is the video frame which is sent by the third client and forwarded by the server.
In this embodiment, the third client 13 may first send the acquired video frame to the server 14, the video frame sent by the third client 13 to the server 14 carries version information of the video frame, and then the server 14 forwards the video frame sent by the third client 13 to the first client 11.
The played video frame may refer to the currently played video frame. The playing time of the playing video frames may be used to indicate the time when the playing video frames are played, that is, each video frame of the live video may correspond to a playing time, and the earlier the playing time indicates that the playing order of the video frames is closer to the front, and the later the playing time indicates that the playing order of the video frames is closer to the back.
Further, according to the playing time of each video frame of the live video, the version number of each video frame of the live video can be respectively determined, specifically, the version number of the video frame with the earlier playing time is lower, for example, when the playing time of the video frame is 30 minutes and 3 seconds at 8 months and 1 day 18 in 2020, the version number of the video frame can be determined to be 6, and when the playing time of the video frame is 30 minutes and 4 seconds at 8 months and 1 day 18 in 2020, the version number of the video frame can be determined to be 8, so that the playing sequence of the video frames can be determined by comparing the levels of the version numbers of the video frames, and the method is more convenient.
Before the receiving the comment content input for the played video frame and acquiring the version information carried by the played video frame, the comment sending method further includes: the method comprises the steps of receiving a video frame sent by a third client and forwarded by a server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a played video frame, the version number is generated according to playing time of the played video frame, and the played video frame is the video frame sent by the third client and forwarded by the server, so that the playing sequence of the video frame can be determined by comparing the version number of the video frame, whether comment content corresponds to the video frame can be judged more conveniently and rapidly, the probability of the electronic equipment that the video frame displayed corresponds to the comment content is improved, and the display effect of the electronic equipment is improved.
Optionally, when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays displaying the comment content, and comprises the following steps:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
In this embodiment, when the version number carried in the comment message is higher than the version number carried in the currently played video frame, it means that the playing time of the video frame corresponding to the comment content is later than the playing time of the currently played video frame, at this time, the first client may delay displaying the comment content, and the first client may display the comment content when displaying the video frame corresponding to the comment content. That is to say, when the version number carried by the comment message is higher than the version number carried by the currently played video frame, it means that the playing time of the video frame corresponding to the comment content is later than the playing time of the currently played video frame; the version number carried by the target video frame is equal to the version number carried by the comment message, which means that the playing time of the target video frame is equal to the playing time of the video frame corresponding to the comment content, i.e. that the target video frame is the video frame corresponding to the comment content.
Since the first client delays displaying the comment content when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the method includes: when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client delays to display the comment content when the target video frame is played, wherein the version number carried by the target video frame is equal to the version number carried by the comment message, so that synchronous display of the comment content and the target video frame corresponding to the comment content can be realized, the probability of the electronic equipment for displaying the video frame and the comment content can be improved, and the display effect of the electronic equipment is improved.
Fig. 4 is a flowchart illustrating a video frame pushing method according to an exemplary embodiment, which may be applied to the second client 13 shown in fig. 1. As shown in fig. 4, the video frame push method may include the following steps.
In step S41, a video frame is captured, and version information of the video frame is determined.
In this embodiment, the third client 33 collects video frames and determines version information of each collected video frame. The capturing of the video frame may specifically be capturing the video frame by a camera.
The version information may be used to identify a video frame to which the version information corresponds. The version information may include at least one of: number, version number, push time or play time. Here, the version number may be used to indicate a version of the video frame corresponding to the version information, and the version number may specifically be a combination of numbers, letters, characters, or alphanumeric characters; the push time may be used to indicate a pushed time of a video frame corresponding to the version information; the playing time may be used to indicate a time at which the video frame corresponding to the version information is played.
Specifically, when the version information includes a number, each video frame of the live video may correspond to a number, and each video frame may be identified as which frame of the live video through the number. When the version information includes a version number, each video frame of the live video may correspond to a version number, and each video frame may be identified as which frame of the live video by the version number, for example, the version number of a first frame image of the live video may be set to 1, the version number of a second frame image may be set to 2, the version number of the second frame image may be set to 3, and each subsequent frame image may be analogized in turn. When the version information includes the push time, each video frame of the live video may correspond to one push time, and which frame of the live video each video frame is identified by the push time, where the push time of each video frame is used to indicate a time when the third client 13 pushes the video frame to the server 14. When the version information includes the playing time, each video frame of the live video may correspond to one playing time, and the playing order of each video frame may be determined according to the playing time. The aforementioned version number may be generated according to the aforementioned play time.
In step S42, the video frame carrying the version information is sent, so that a second client obtains the version information carried by the video frame and sends a comment message, where the comment message carries comment content and the version information carried by the video frame, and the first client obtains the comment content and the version information carried by the comment message in response to the comment message sent by the second client, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays displaying the comment content.
In this embodiment, the comment content may be comment content corresponding to the video frame. The currently played video frame is referred to as a video frame currently being played by the first client 11. The version information of the currently played video frame may be used to identify the currently played video frame.
The higher the version information of the video frame is, the later the playing order of the video frame is, that is, the version information of the video frame with the prior playing order is lower than the version information of the video frame with the later playing order, that is, the version information carried by the comment message is higher than the version information carried by the currently playing video frame, and the higher the playing order of the currently playing video frame is, the more the playing order of the video frame with the current playing video frame is before the playing order of the video frame with the comment content. For ease of understanding, the following are exemplified herein:
in an example, it is assumed that each video frame of a live video corresponds to a version number, where a version number of a first frame image of the live video is 1, a version number of a second frame image is 2, a version number of the second frame image is 3, and the following frame images are analogized in sequence, the identification information is a version number, and the version information includes a version number, so that when a version number carried by a comment message is greater than a version number of a currently played video frame (for example, the version number of the currently played video frame is 6 and the version number carried by the comment message is 8), a playing order of the video frame corresponding to the comment content in the live video can be considered to be later than a playing order of the currently played video frame, and at this time, the first client displays the comment content in a delayed manner.
Example two, assuming that each video frame of the live video corresponds to a push time, where the push time of each video frame is used to indicate a time when the third client 13 pushes the video frame to the server 14, and the version information includes the push time, when the push time carried by the comment message is later than the push time of the currently played video frame (for example, the push time of the currently played video frame is 30 minutes and 3 seconds when the push time is 8, 1, and 18 in 2020, 30 minutes and 4 seconds when the push time carried by the comment message is 18 in 8, 1, and 18 in 2020), it may be considered that the play order of the video frame corresponding to the comment content in the live video is later than the play order of the currently played video frame, and at this time, the first client displays the comment content with a delay.
In a third example, assuming that each video frame of the live video corresponds to a playing time, where the playing time of each video frame is used to indicate the time when the video frame is played, and the version information includes the playing time, when the playing time carried by the comment message is later than the playing time of the currently played video frame (for example, the playing time of the currently played video frame is 30 minutes and 3 seconds when the playing time is 8/1/18/2020 and the push time carried by the comment message is 30 minutes and 4 seconds when the pushing time is 18/8/1/2020), it may be considered that the playing order of the video frame corresponding to the comment content in the live video is later than the playing order of the currently played video frame, and at this time, the first client will display the comment content in a delayed manner.
In this embodiment, the third client sends the video frame carrying the version information by acquiring a video frame and determining the version information of the video frame, so that the second client obtains the version information carried by the video frame and sends a comment message, the comment message carries comment content and the version information carried by the video frame, and the first client responds to the comment message sent by the second client to obtain the comment content and the version information carried by the comment message, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays displaying the comment content, so that the first client does not correspond to the video frame corresponding to the comment content in the currently played video frame, and when the version information of the video frame corresponding to the comment content is higher than the version information of the currently played video frame, the comment content is delayed to be displayed, thereby improving the probability of the electronic device corresponding to the video frame and the comment content, and further improving the display effect of the electronic device.
Optionally, the sending the video frame carrying the version information includes:
sending the video frame carrying the version information to a server, so that the server responds to the video frame carrying the version information sent by the third client, and sends the video frame carrying the version information to the first client and the second client, wherein the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame.
In this embodiment, the third client 13 may first send the video frame carrying the version information to the server 14, and then the server 14 forwards the video frame carrying the version information sent by the third client 13 to the first client 11 and the second client 12.
The above-mentioned played video frame may refer to the video frame. The playing time of the playing video frames may be used to indicate the time when the playing video frames are played, that is, each video frame of the live video may correspond to a playing time, and the earlier the playing time indicates that the playing order of the video frames is closer to the front, and the later the playing time indicates that the playing order of the video frames is closer to the back.
Further, according to the playing time of each video frame of the live video, the version number of each video frame of the live video can be respectively determined, specifically, the version number of the video frame with the earlier playing time is lower, for example, when the playing time of the video frame is 30 minutes and 3 seconds at 12 months, 1 day and 18 days in 2020, the version number of the video frame can be determined to be 3, and when the playing time of the video frame is 30 minutes and 4 seconds at 12 months, 1 day and 18 days in 2020, the version number of the video frame can be determined to be 4, so that the playing sequence of the video frames can be determined by comparing the levels of the version numbers of the video frames, and the method is more convenient.
Since the sending the video frame carrying the version information includes: sending the video frame carrying the version information to a server, so that the server responds to the video frame carrying the version information sent by the third client, and sends the video frame carrying the version information to the first client and the second client, wherein the version information comprises a version number of a played video frame, and the version number is generated according to playing time of the played video frame, so that the playing sequence of the video frame can be determined by comparing the version number of the video frame, therefore, whether the comment content corresponds to the video frame can be judged more conveniently and rapidly, the probability of the video frame displayed by the electronic equipment corresponding to the comment content is improved, and the display effect of the electronic equipment is improved.
Optionally, the determining version information of the video frame includes:
and determining the version number of the video frame according to the playing time of the video frame.
In this embodiment, the earlier the playing time of the video frame is, the lower the determined version number is; or, the later the playing time of the video frame is, the lower the determined version number is, so that by comparing the version numbers of the video frames, the playing sequence of the video frames can be determined.
The determining the version information of the video frame includes: and determining the version number of the video frame according to the playing time of the video frame, so that the playing sequence of the video frame can be determined by comparing the version number of the video frame, thus, whether the comment content corresponds to the video frame can be judged more conveniently and rapidly, the probability of the electronic equipment that the video frame displayed corresponds to the comment content is improved, and the display effect of the electronic equipment is improved.
Optionally, when the version information carried in the comment message is higher than the version information carried in the currently played video frame, the first client delays displaying the comment content, including:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
In this embodiment, when the version number carried in the comment message is higher than the version number carried in the currently played video frame, it means that the playing time of the video frame corresponding to the comment content is later than the playing time of the currently played video frame, at this time, the first client may delay displaying the comment content, and the first client may display the comment content when displaying the video frame corresponding to the comment content. That is to say, when the version number carried by the comment message is higher than the version number carried by the currently played video frame, it means that the playing time of the video frame corresponding to the comment content is later than the playing time of the currently played video frame; the version number carried by the target video frame is equal to the version number carried by the comment message, which means that the playing time of the target video frame is equal to the playing time of the video frame corresponding to the comment content, i.e. that the target video frame is the video frame corresponding to the comment content.
Since the first client delays displaying the comment content when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the method includes: when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client delays to display the comment content when the target video frame is played, wherein the version number carried by the target video frame is equal to the version number carried by the comment message, so that synchronous display of the comment content and the target video frame corresponding to the comment content can be realized, the probability of the electronic equipment for displaying the video frame and the comment content can be improved, and the display effect of the electronic equipment is improved.
For ease of understanding, this is illustrated herein in connection with FIG. 5. Assuming that a user a and a user B watch the same live broadcast, where the electronic device used by the user B is a first electronic device, the electronic device used by the user a is a second electronic device, the electronic device used by the anchor broadcast performing the live broadcast is a third electronic device, and the server includes a world wide web (web) service, a long connection, and a Content Delivery Network (CDN), where the first electronic device may be understood as the first client, the second electronic device may be understood as the second client, and the third electronic device may be understood as the third client, then an interaction process between the electronic devices may be as follows:
and step 1, the anchor starts live broadcast through third electronic equipment.
And 2, adding a version number to the pushed video frame of the live video by the third electronic equipment, assuming that the version number of the pushed first video frame is 1, the version number of the pushed second video frame is 2, the version number of the pushed third video frame is 3, and the like.
Here, the version number may be understood as the above-described version information.
And step 3, the anchor pushes the video frame added with the version number to the web service through the third electronic equipment.
And 4, forwarding the video frame pushed by the third electronic device to the CDN by the web service.
And step 5, the user A pulls the video frame pushed by the anchor from the CDN through the second electronic device, wherein the video frame pulled by the user A is supposed to be delayed for 3 seconds relative to the video frame pushed by the anchor, namely the video frame is supposed to be displayed by the first electronic device after the third electronic device pushes the video frame for 3 seconds.
Step 6, the user B pulls the video frame pushed by the anchor from the CDN through the first electronic device, and it is assumed here that the video frame pulled by the user B is delayed by 10 seconds with respect to the video frame pushed by the anchor, that is, it is assumed that the second electronic device displays the video frame 10 seconds after the third electronic device pushes the video frame.
And 7, inputting comment content aiming at the target video frame played by the second electronic equipment by the user A, and sending a comment message to the web service by the second electronic equipment, wherein the comment message comprises the comment content and the version number of the target video frame.
And 8, aggregating the comments of the audiences through the live broadcast long connection.
And 9, sending live comments to other users in the live broadcast room through the live broadcast long connection, including the user B.
And step 10, when the user B pulls the comment message through the first electronic equipment, the first electronic equipment extracts the version number in the comment message.
And step 11, comparing the version number in the comment message with the version number of the video frame currently playing by the first electronic equipment.
And step 12, if the version number in the comment message is higher than the version number of the video frame currently played by the first electronic device, the target video frame corresponding to the comment content is not played yet, at this time, the comment content is stored, and the comment content in the comment message is played again when the target video frame is to be played.
Here, storing the comment content, and playing the comment content in the comment message when the target video frame is to be played may be understood as displaying the comment content in a delayed manner as described above.
And step 13, if the version number in the comment message is equal to or lower than the version number of the video frame currently played by the first electronic device, which means that the target video frame corresponding to the comment content is being played or has been played, immediately playing the comment content in the comment message on the video frame currently being played at this time.
Here, immediately playing the comment content in the comment message on the currently playing video frame may be understood as displaying the comment content on the currently playing video frame as described above.
According to the embodiment, when the currently played video frame does not correspond to the video frame corresponding to the comment content and the version information of the video frame corresponding to the comment content is higher than that of the currently played video frame, the first client can delay display of the comment content, so that the probability that the video frame displayed by the electronic equipment corresponds to the comment content can be improved, and the display effect of the electronic equipment can be improved.
Fig. 6 is a block diagram illustrating a display device according to an exemplary embodiment. Referring to fig. 6, the display apparatus 600 may be applied to the first client 11, and the display apparatus 600 includes an obtaining module 601, an identifying module 602, and a first display module 603.
The obtaining module 601 is configured to execute, in response to a comment message sent by a second client, obtaining comment content and version information carried in the comment message, where the version information carried in the comment message is version information of a video frame corresponding to the comment content;
an identifying module 602 configured to identify version information carried by a currently playing video frame, where the version information carried by the currently playing video frame is the version information of the currently playing video frame;
a first display module 603 configured to perform, when the version information carried by the comment message is higher than the version information carried by the currently played video frame, delaying display of the comment content.
Optionally, the display device 600 further includes:
a second display module configured to perform, when the version information carried by the comment message is lower than or equal to the version information carried by the currently played video frame, displaying the comment content on the currently played video frame.
Optionally, the display device 600 further includes:
the receiving module is configured to receive a video frame which is sent by a third client and forwarded by the server, the video frame sent by the third client carries version information, the version information comprises a version number of a played video frame, and the version number is generated according to the playing time of the played video frame;
and the currently played video frame is the video frame which is sent by the third client and forwarded by the server.
Optionally, the first display module 603 is configured to perform:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, displaying the comment content after the target video frame is played, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
With regard to the apparatus 600 in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the embodiment, the first client can delay the display of the comment content when the currently played video frame does not correspond to the video frame corresponding to the comment content and the version information of the video frame corresponding to the comment content is higher than the version information of the currently played video frame, so that the probability that the video frame displayed by the electronic equipment corresponds to the comment content can be improved, and the display effect of the electronic equipment can be improved.
Fig. 7 is a block diagram illustrating a comment transmitting apparatus according to an exemplary embodiment. Referring to fig. 7, the comment sending apparatus 700 may be applied to the second client 12 described above, and the comment sending apparatus 700 includes a comment module 701 and a sending module 702.
A comment module 701 configured to accept comment content input for a played video frame and acquire version information carried by the played video frame;
a sending module 702, configured to execute sending of a comment message, where the comment message carries the comment content and the version information, so that a first client, in response to the comment message sent by a second client, obtains the comment content and the version information carried in the comment message, where the first client identifies the version information carried in a currently played video frame, and when the version information carried in the comment message is higher than the version information carried in the currently played video frame, the first client delays displaying the comment content.
Optionally, the sending module is configured to perform:
and sending a comment message to a server so that the server sends the comment message to the first client in response to the comment message sent by the second client.
Optionally, the comment sending apparatus further includes:
the receiving module is configured to receive a video frame which is sent by a third client and forwarded by the server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame;
and the played video frame is the video frame which is sent by the third client and forwarded by the server.
Optionally, the first client is configured to perform:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
With regard to the apparatus 700 in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the embodiment, when the currently played video frame does not correspond to the video frame corresponding to the comment content and the version information of the video frame corresponding to the comment content is higher than that of the currently played video frame, the first client can delay display of the comment content, so that the probability that the video frame displayed by the electronic equipment corresponds to the comment content can be improved, and the display effect of the electronic equipment can be improved.
Fig. 8 is a block diagram illustrating a video frame push apparatus according to an example embodiment. Referring to fig. 8, the video frame pushing apparatus 800 may be applied to the third client 13, and the video frame pushing apparatus 800 includes a capture module 801 and a sending module 802.
An acquisition module 801 configured to perform acquiring a video frame and determine version information of the video frame;
a sending module 802, configured to execute sending the video frame carrying the version information, so that a second client obtains the version information carried by the video frame and sends a comment message, where the comment message carries comment content and the version information carried by the video frame, and the first client obtains the comment content and the version information carried by the comment message in response to the comment message sent by the second client, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays displaying the comment content.
Optionally, the sending module 802 is configured to perform:
sending the video frame carrying the version information to a server, so that the server responds to the video frame carrying the version information sent by the third client, and sends the video frame carrying the version information to the first client and the second client, wherein the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame.
Optionally, the acquisition module 801 is configured to perform:
and determining the version number of the video frame according to the playing time of the video frame.
Optionally, the first client is configured to perform:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
With respect to the apparatus 800 in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the embodiment, when the currently played video frame does not correspond to the video frame corresponding to the comment content and the version information of the video frame corresponding to the comment content is higher than that of the currently played video frame, the first client can delay display of the comment content, so that the probability that the video frame displayed by the electronic equipment corresponds to the comment content can be improved, and the display effect of the electronic equipment can be improved.
Fig. 9 is a block diagram illustrating an electronic device 900 in accordance with an example embodiment. As shown in fig. 9, the electronic device 900 comprises a processor 901 and a memory 902 for storing instructions executable by the processor 901. The processor 901 is configured to execute the instructions to implement the steps of the display method in the method embodiment corresponding to fig. 2, or implement the steps of the comment sending method in the method embodiment corresponding to fig. 3, or implement the steps of the video frame pushing method in the method embodiment corresponding to fig. 4, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The embodiment of the present disclosure further provides a storage medium including instructions, where the instructions in the storage medium are executed by a processor of an electronic device, so that the electronic device can perform the steps of the display method in the embodiment of the method corresponding to fig. 2, or perform the steps of the comment sending method in the embodiment of the method corresponding to fig. 3, or perform the steps of the video frame pushing method in the embodiment of the method corresponding to fig. 4, and may achieve the same technical effects, and in order to avoid repetition, details are not repeated here. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Embodiments of the present disclosure also provide a computer program product, including: an executable instruction, when running on a computer, enables the computer to implement the steps of the display method in the embodiment of the method corresponding to fig. 2, or implement the steps of the comment sending method in the embodiment of the method corresponding to fig. 3, or implement the steps of the video frame pushing method in the embodiment of the method corresponding to fig. 4, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (26)

1. A display method is applied to a first client side, and is characterized by comprising the following steps:
responding to a comment message sent by a second client, and acquiring comment content and version information carried by the comment message, wherein the version information carried by the comment message is the version information of a video frame corresponding to the comment content;
identifying version information carried by a currently played video frame, wherein the version information carried by the currently played video frame is the version information of the currently played video frame;
and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, delaying the display of the comment content.
2. The display method according to claim 1, wherein after obtaining the comment content and the version information carried in the comment message and identifying the version information carried in the currently played video frame, the display method further comprises:
and when the version information carried by the comment message is lower than or equal to the version information carried by the currently played video frame, displaying the comment content on the currently played video frame.
3. The display method according to claim 1, wherein before the identifying version information carried by the currently played video frame, the display method further comprises:
receiving a video frame sent by a third client and forwarded by a server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a played video frame, and the version number is generated according to the playing time of the played video frame;
and the currently played video frame is the video frame which is sent by the third client and forwarded by the server.
4. The display method according to claim 3, wherein the delaying of the display of the comment content when the version information carried by the comment message is higher than the version information carried by the currently played video frame comprises:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, displaying the comment content after the target video frame is played, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
5. A comment sending method is applied to a second client side and is characterized by comprising the following steps:
receiving comment content input aiming at a played video frame, and acquiring version information carried by the played video frame;
and sending a comment message, wherein the comment message carries the comment content and the version information, so that a first client responds to the comment message sent by a second client to obtain the comment content and the version information carried by the comment message, the first client identifies the version information carried by the currently played video frame, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays to display the comment content.
6. The comment sending method according to claim 5, wherein the sending of the comment message includes:
and sending a comment message to a server so that the server sends the comment message to the first client in response to the comment message sent by the second client.
7. The comment sending method according to claim 5, wherein before accepting comment content input for a played video frame and acquiring version information carried by the played video frame, the comment sending method further comprises:
receiving a video frame sent by a third client and forwarded by a server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a played video frame, and the version number is generated according to the playing time of the played video frame;
and the played video frame is the video frame which is sent by the third client and forwarded by the server.
8. The comment sending method according to claim 7, wherein when the version information carried in the comment message is higher than the version information carried in the currently played video frame, the first client delays displaying the comment content, and the method includes:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
9. A video frame pushing method is applied to a third client, and is characterized by comprising the following steps:
collecting a video frame and determining version information of the video frame;
and sending the video frame carrying the version information to enable a second client to acquire the version information carried by the video frame and send a comment message, wherein the comment message carries comment content and the version information carried by the video frame, and enabling a first client to respond to the comment message sent by the second client to acquire the comment content and the version information carried by the comment message, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays to display the comment content.
10. The method of claim 9, wherein the sending the video frame carrying the version information comprises:
sending the video frame carrying the version information to a server, so that the server responds to the video frame carrying the version information sent by the third client, and sends the video frame carrying the version information to the first client and the second client, wherein the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame.
11. The method of claim 9, wherein the determining the version information of the video frame comprises:
and determining the version number of the video frame according to the playing time of the video frame.
12. The video frame pushing method according to claim 11, wherein when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays displaying the comment content, including:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
13. A display device applied to a first client side is characterized by comprising:
the obtaining module is configured to execute a comment message sent by a second client, and obtain comment content and version information carried by the comment message, wherein the version information carried by the comment message is version information of a video frame corresponding to the comment content;
the identification module is configured to identify version information carried by a currently played video frame, wherein the version information carried by the currently played video frame is the version information of the currently played video frame;
a first display module configured to delay display of the comment content when the version information carried by the comment message is higher than the version information carried by the currently played video frame.
14. The display device according to claim 13, further comprising:
a second display module configured to perform, when the version information carried by the comment message is lower than or equal to the version information carried by the currently played video frame, displaying the comment content on the currently played video frame.
15. The display device according to claim 13, further comprising:
the receiving module is configured to receive a video frame which is sent by a third client and forwarded by the server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame;
and the currently played video frame is the video frame which is sent by the third client and forwarded by the server.
16. The display device according to claim 15, wherein the first display module is configured to perform:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, displaying the comment content after the target video frame is played, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
17. A comment sending device applied to a second client side is characterized by comprising:
the comment module is configured to accept comment content input aiming at a played video frame and acquire version information carried by the played video frame;
the sending module is configured to execute sending of a comment message, the comment message carries the comment content and the version information, so that a first client responds to the comment message sent by a second client to obtain the comment content and the version information carried by the comment message, the first client identifies the version information carried by a currently played video frame, and when the version information carried by the comment message is higher than the version information carried by the currently played video frame, the first client delays displaying of the comment content.
18. The comment transmitting apparatus of claim 17, wherein the transmitting module is configured to perform:
and sending a comment message to a server so that the server sends the comment message to the first client in response to the comment message sent by the second client.
19. The comment transmitting apparatus according to claim 17, characterized by further comprising:
the receiving module is configured to receive a video frame which is sent by a third client and forwarded by the server, wherein the video frame sent by the third client carries version information, the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame;
and the played video frame is the video frame which is sent by the third client and forwarded by the server.
20. The comment sending apparatus of claim 19, wherein the first client is configured to perform:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
21. A video frame pushing apparatus applied to a third client, comprising:
a capture module configured to perform capturing a video frame and determine version information of the video frame;
the sending module is configured to execute sending of the video frame carrying the version information, so that a second client obtains the version information carried by the video frame and sends a comment message, the comment message carries comment content and the version information carried by the video frame, the first client responds to the comment message sent by the second client, obtains the comment content and the version information carried by the comment message, and when the version information carried by the comment message is higher than the version information carried by a currently played video frame, the first client delays displaying of the comment content.
22. The video frame pushing apparatus according to claim 21, wherein the sending module is configured to perform:
sending the video frame carrying the version information to a server, so that the server responds to the video frame carrying the version information sent by the third client, and sends the video frame carrying the version information to the first client and the second client, wherein the version information comprises a version number of a playing video frame, and the version number is generated according to the playing time of the playing video frame.
23. The video frame pushing apparatus according to claim 21, wherein the capturing module is configured to perform:
and determining the version number of the video frame according to the playing time of the video frame.
24. The video frame pushing apparatus according to claim 23, wherein the first client is configured to perform:
and when the version number carried by the comment message is higher than the version number carried by the currently played video frame, the first client displays the comment content after delaying to play the target video frame, wherein the version number carried by the target video frame is equal to the version number carried by the comment message.
25. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the display method according to any one of claims 1 to 4, or to implement the comment sending method according to any one of claims 5 to 8, or to implement the video frame pushing method according to any one of claims 9 to 12.
26. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the display method of any one of claims 1 to 4, or perform the comment sending method of any one of claims 5 to 8, or perform the video frame pushing method of any one of claims 9 to 12.
CN202011604818.6A 2020-12-30 2020-12-30 Display method, comment sending method, video frame pushing method and related equipment Active CN112839235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011604818.6A CN112839235B (en) 2020-12-30 2020-12-30 Display method, comment sending method, video frame pushing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011604818.6A CN112839235B (en) 2020-12-30 2020-12-30 Display method, comment sending method, video frame pushing method and related equipment

Publications (2)

Publication Number Publication Date
CN112839235A CN112839235A (en) 2021-05-25
CN112839235B true CN112839235B (en) 2023-04-07

Family

ID=75925295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011604818.6A Active CN112839235B (en) 2020-12-30 2020-12-30 Display method, comment sending method, video frame pushing method and related equipment

Country Status (1)

Country Link
CN (1) CN112839235B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108260016A (en) * 2018-03-13 2018-07-06 北京小米移动软件有限公司 Processing method, device, equipment, system and storage medium is broadcast live
CN108495152A (en) * 2018-03-30 2018-09-04 武汉斗鱼网络科技有限公司 A kind of net cast method, apparatus, electronic equipment and medium
CN110933509A (en) * 2019-12-09 2020-03-27 北京字节跳动网络技术有限公司 Information publishing method and device, electronic equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006137762A1 (en) * 2005-06-23 2006-12-28 Telefonaktiebolaget Lm Ericsson (Publ) Method for synchronizing the presentation of media streams in a mobile communication system and terminal for transmitting media streams
CN104135667B (en) * 2014-06-10 2015-06-24 腾讯科技(深圳)有限公司 Video remote explanation synchronization method, terminal equipment and system
CN106993239B (en) * 2017-03-29 2019-12-10 广州酷狗计算机科技有限公司 Information display method in live broadcast process
CN108668158B (en) * 2017-03-31 2020-07-10 武汉斗鱼网络科技有限公司 Bullet screen synchronization method, client and bullet screen server
WO2018213481A1 (en) * 2017-05-16 2018-11-22 Sportscastr.Live Llc Systems, apparatus, and methods for scalable low-latency viewing of integrated broadcast commentary and event video streams of live events, and synchronization of event information with viewed streams via multiple internet channels
CN107277594B (en) * 2017-07-06 2020-04-28 广州华多网络科技有限公司 Method and device for synchronizing video and audio with bullet screen
CN110166788B (en) * 2018-08-02 2021-11-02 腾讯科技(深圳)有限公司 Information synchronous playing method, device and storage medium
CN110290414B (en) * 2019-06-14 2021-09-17 湖南国科微电子股份有限公司 Live television barrage method and system based on set top box
CN110971926B (en) * 2019-12-02 2022-01-25 咪咕视讯科技有限公司 Video playing method, video processing device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108260016A (en) * 2018-03-13 2018-07-06 北京小米移动软件有限公司 Processing method, device, equipment, system and storage medium is broadcast live
CN108495152A (en) * 2018-03-30 2018-09-04 武汉斗鱼网络科技有限公司 A kind of net cast method, apparatus, electronic equipment and medium
CN110933509A (en) * 2019-12-09 2020-03-27 北京字节跳动网络技术有限公司 Information publishing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112839235A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN106454407B (en) Video live broadcasting method and device
CN108366278B (en) User interaction implementation method and device in video playing
US8737813B2 (en) Automatic content recognition system and method for providing supplementary content
US10735792B2 (en) Using OCR to detect currently playing television programs
CN107682714B (en) Method and device for acquiring online video screenshot
US10873788B2 (en) Detection of common media segments
US20160295269A1 (en) Information pushing method, device and system
US20200374590A1 (en) Interaction based on live webcast
US9060206B2 (en) Sampled digital content based syncronization of supplementary digital content
CN112752114B (en) Method and device for generating live broadcast playback interactive message, server and storage medium
CN105704504B (en) Method, device, equipment and storage medium for inserting push information in live video
US8893166B2 (en) Method of surveying watching of image content, and broadcast receiving apparatus and server employing the same
US20140157294A1 (en) Content providing apparatus, content providing method, image displaying apparatus, and computer-readable recording medium
US20160164970A1 (en) Application Synchronization Method, Application Server and Terminal
US9489421B2 (en) Transmission apparatus, information processing method, program, reception apparatus, and application-coordinated system
CN111147911A (en) Video clipping method and device, electronic equipment and storage medium
CN111107434A (en) Information recommendation method and device
KR20170063860A (en) Promotion information processing method, device, and apparatus, and non-volatile computer storage medium
CN111050204A (en) Video clipping method and device, electronic equipment and storage medium
KR20160062382A (en) Electronic device and method for providing advertising service
CN111263183A (en) Singing state identification method and singing state identification device
CN112839235B (en) Display method, comment sending method, video frame pushing method and related equipment
CN107995538B (en) Video annotation method and system
US20240129580A1 (en) Audio Synchronisation
EP2914010A1 (en) Content switching method and apparatus

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