CN111901658B - Comment information display method and device, terminal and storage medium - Google Patents
Comment information display method and device, terminal and storage medium Download PDFInfo
- Publication number
- CN111901658B CN111901658B CN201910371248.1A CN201910371248A CN111901658B CN 111901658 B CN111901658 B CN 111901658B CN 201910371248 A CN201910371248 A CN 201910371248A CN 111901658 B CN111901658 B CN 111901658B
- Authority
- CN
- China
- Prior art keywords
- comment information
- target
- display
- time period
- video
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4314—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4882—Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a comment information display method, a comment information display device, a comment information display terminal and a comment information display storage medium, and belongs to the technical field of multimedia. The method comprises the following steps: acquiring target comment information of a target video; according to the setting operation of the target comment information, a first display position and a first playing time period of the target comment information in the target video are determined; displaying the target comment information at the first display position within the first play time period of the target video. According to the method and the device, the display position and the playing time period of the comment information in the video are determined according to the setting operation, and the comment information can be displayed at the set display position in the playing time period of the video after being determined, so that the comment information and the video content are closely linked, the relevance is strong, the viewpoint of a user can be expressed more accurately, the accuracy and the display efficiency of the comment information can be effectively improved through the display mode, and the display effect is good.
Description
Technical Field
The invention relates to the technical field of multimedia, in particular to a comment information display method, a comment information display device, a comment information display terminal and a comment information display storage medium.
Background
With the development of multimedia technology, people can generally play videos through multimedia playing applications, and can also make comments when watching videos, and display comments in a video playing interface.
Currently, a comment information display method is generally as follows: the user comments the video, so that comment information of the video can be obtained, and when the publishing operation is detected, the comment information can be displayed in a video playing interface in a moving mode from right to left.
The comment information display method only allows the comment of the whole video, the comment information cannot be focused on specific content in the played video, and the relevance of the comment information and the content in the video is weak, so that the viewpoint of a user cannot be accurately expressed.
Disclosure of Invention
The embodiment of the invention provides a comment information display method, a comment information display device, a comment information display terminal and a comment information storage medium, and can solve the problems of low accuracy, low display efficiency and poor display effect in the related art. The technical scheme is as follows:
in one aspect, a comment information display method is provided, and the method includes:
acquiring target comment information of a target video;
determining a first display position and a first playing time period of the target comment information in the target video according to the setting operation of the target comment information;
displaying the target comment information at the first display position within the first playing time period of the target video.
In one possible implementation, the method further includes:
receiving at least one piece of first comment information of the target video, wherein the at least one piece of first comment information carries a second display area and a second playing time period which are in the target video respectively;
and displaying the at least one piece of first comment information at a second display position within a second playing time period of the at least one piece of first comment information in the target video.
In one possible implementation manner, the displaying the at least one first comment information at a second display position within a second playing time period of each of the at least one first comment information in the target video includes:
when second display positions of a plurality of pieces of first comment information which need to be displayed in any time period are determined to be overlapped according to a second playing time period of the at least one piece of first comment information, regarding any one piece of first comment information in the plurality of pieces of first comment information, if a position which does not need to display any piece of first comment information is included in a target position range taking the second display position of the piece of first comment information as a reference, the position which does not need to display any piece of first comment information is used as a third display position of the piece of first comment information;
and if the position which does not need to display any first comment information is not included in the target position range based on the second display position of the first comment information, taking at least one position which meets the target condition as the third display position of the first comment information according to at least one of the number of the first comment information which needs to be simultaneously displayed at any position, the display remaining time of each first comment information and the distance between the third display position of each first comment information candidate and the respective second display position.
In one possible implementation manner, if a position where no first comment information needs to be displayed is included in the target position range based on the second display position of the first comment information, the setting the position where no first comment information needs to be displayed as the third display position of the first comment information includes:
and if a plurality of positions which do not need to display any first comment information are included in the target position range based on the second display position of the first comment information, taking the position with the minimum distance from the second display position of the first comment information in the plurality of positions as a third display position of the first comment information.
In one possible implementation, the method further comprises:
when the target comment information of the target video is obtained or the setting operation of the target comment information is executed, a first display position and a first play time period of the target comment information in the target video are determined, and the target video is paused;
the target comment information is displayed at the first display position in the first playing time period of the target video, and the target comment information includes any one of:
playing the target video by taking a starting point of a first playing time period as a playing starting point, and in the playing process, executing the step of displaying the target comment information on the first display position in the first playing time period of the target video;
when the target video is played again, the target comment information is displayed at the first display position within the first playing time period of the target video.
In one possible implementation manner, the display style of the comment information published by the home terminal user is different from that of the comment information published by other users.
In one aspect, there is provided a comment information display apparatus, the apparatus including:
the acquisition module is used for acquiring target comment information of a target video;
the determining module is used for determining a first display position and a first playing time period of the target comment information in the target video according to the setting operation of the target comment information;
and the display module is used for displaying the target comment information on the first display position in the first playing time period of the target video.
In one aspect, a terminal is provided and includes one or more processors and one or more memories, where at least one instruction is stored in the one or more memories, and the instruction is loaded and executed by the one or more processors to implement the operation performed by the comment information display method.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operation performed by the comment information display method.
The embodiment of the invention supports the setting of the display position and the playing time period of the comment information in the video, the display position and the playing time period of the comment information in the video can be determined according to the setting operation for the comment information, and the comment information can be displayed at the set display position in the playing time period of the video after the determination, so that the comment information and the video content are closely related, the relevance between the comment information and the target video is strong, the viewpoint of a user can be more accurately expressed, other users can easily link the comment information and the content of the video when watching the comment information, and the idea of a publisher of the comment information can be accurately known, therefore, the display mode can effectively improve the accuracy and the display efficiency of the comment information and has good display effect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an implementation environment of a comment information display method provided by an embodiment of the present invention;
fig. 2 is a flowchart of a comment information display method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 4 is a schematic diagram of a terminal interface according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a terminal interface according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a terminal interface according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a terminal interface according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 9 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 10 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 11 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 12 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 13 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 14 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 15 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 16 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 17 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 18 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 19 is a schematic diagram of a method for correcting the position of an overlap condition according to an embodiment of the present invention;
fig. 20 is a flowchart of a comment information display method according to an embodiment of the present invention;
FIG. 21 is a diagram of a comment information display architecture provided by an embodiment of the present invention;
fig. 22 is a schematic structural diagram of a comment information display apparatus provided by an embodiment of the present invention;
fig. 23 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is an implementation environment of a comment information display method according to an embodiment of the present invention, and referring to fig. 1, the implementation environment may include a terminal 101, at least one terminal 102, and a server 103, where the terminal 101 and the at least one terminal 102 may be connected to the server 103 through a network, and the server 103 may provide a network service for the terminal 101 and the at least one terminal 102.
The terminal 101 may be a terminal where a producer of the target video is located, each terminal 102 may be a terminal where a viewer watching the target video is located, the terminal 101 may transmit the target video to the server 103, and when the terminal 102 requests the target video from the server 103, the server may transmit the target video to the terminal 102, so that the terminal 102 may play the target video.
In the embodiment of the present invention, if a user of a certain terminal 102 wants to comment on a target video when playing the target video, the terminal 102 may execute a comment information display method shown in the following method embodiment to acquire and display target comment information, the terminal 102 may also send the target comment information to the terminal 101 through the server 103, and of course, the target comment information may also be synchronized with other terminals 102. Comment information of other terminals 102 may also be synchronized to the terminal 101 or the terminal 102. If the user of the terminal 101 comments on the target video, the comment information can also be synchronized to the terminal 102 through the server 103, so that the terminal 101 or the terminal 102 displays the comment information.
Fig. 2 is a flowchart of a comment information display method according to an embodiment of the present invention, where the method may be applied to the terminal 102, and may also be applied to the terminal 101. Referring to fig. 2, the method may include the steps of:
201. and the terminal acquires the target comment information of the target video.
In the embodiment of the invention, the terminal has a video playing function and a comment function, can play the video, and in the playing process, the comment information of the video and the display information of the comment information are obtained based on the comment operation of the user, and the comment information can be displayed based on the display information.
The user can play the target video on the terminal, and the terminal can acquire the target video and play the target video when detecting the playing operation. When a user wants to comment on a certain target object in a target video at a certain time point while watching the target video, the user may perform a comment operation, where the target object may be a certain object in the target video or a certain background content in the target video, and the target object may also be content in other forms in the target video, such as a video frame, and the like. The terminal can execute the method steps provided by the embodiment of the invention to acquire and display the target comment information.
In a possible implementation manner, the target comment information may be obtained based on an information input operation, that is, a user may perform an information input operation on a terminal, so that the terminal may obtain the target comment information of the target video according to the information input operation on the target video. Specifically, the information input operation may be an information input operation on an information input box, and the terminal may acquire information in the information input box as target comment information of the target video.
In a specific possible embodiment, the display of the information input box is triggered by a long press operation on the target video or a touch operation on a target button. The target button is used for starting an input function of comment information. For example, as shown in fig. 3, the user may press the target video for a long time, and the terminal may display the information input box when detecting a long press operation on the target video, or the user may click or press a target button for a long time, and the terminal may also display the information input box when detecting a touch operation on the target button, for example, the target button may be a "Pin" button. Wherein, the original meaning of Pin means: fixing (with a tack, etc.), fixing, and nailing; so that the bullet cannot move; pressing; and clamping, etc. in the embodiment of the present invention, a Pin bullet screen refers to a function of publishing and viewing a bullet screen for a target video. The information input box may be displayed as shown in fig. 4. As shown in fig. 5, the user may input information in the information input box, and the terminal may acquire the information in the information input box as target comment information.
In a specific possible embodiment, the information input box may have an initial position, and the terminal may determine the initial position of the information input box before displaying the information input box and display the information input box at the initial position. Specifically, the process of determining the initial position may be implemented in different ways, and in the first way, the initial position of the information input box may be preset in the terminal, and the terminal may obtain the preset initial position. In the second mode, the terminal may use the operation position of the long press operation of the pair of target videos as the initial position of the information input box. In a specific possible embodiment, the terminal may implement the first mode or the second mode when detecting a long-press operation on the target video, and implement the first mode when detecting a touch operation on the target button.
In a possible implementation manner, the terminal may display a guidance language when executing the method steps provided by the embodiment of the present invention, where the guidance language is used to guide an operation manner of performing a comment operation on the target video. Specifically, before this step 201, the terminal may display a first guidance phrase for guiding the user to operate the target video to trigger the operation mode of displaying the information input box. In a possible implementation manner, the terminal may display the first guidance language at a target playing time of a target video, or may display the first guidance language when the video playing application is started for the first time to play the first video.
For example, as shown in fig. 6, the terminal may play the target video, and as shown in fig. 7, when playing for a certain time, the terminal may display a first guidance word "long press video to publish a Pin barrage", where the barrage refers to comment information, and the Pin barrage is a function name for publishing comment information or viewing comment information. The terminal can also display a first icon while displaying the first guide language, and the first icon can also be used for prompting a user to perform long-time pressing operation on the target video. For example, a first icon composed of a finger and an operation point shown in fig. 7.
In the example shown in fig. 7, the user may click "i know", so that the terminal may display the second guidance language, which is also used for guiding the user to operate the target video to trigger the operation manner of displaying the information input box. For example, as shown in fig. 8, the terminal may display a second guidance phrase "click a fixed icon entry, which is a target button, and may also issue a Pin barrage", and similarly, the terminal may also display a second icon, which may be used to prompt the user to perform touch operation on the target button.
Similarly, the user may click "i know", and the terminal may display a third guidance language for informing the display rule of the comment information, for example, as shown in fig. 9, the terminal may display a third guidance language "the bullet screen may be disclosed to all people after being refined by the author", and the third guidance language is that the comment information informing the producer of the target video of the target operation may be displayed on the terminal where the other user is located. The user may also click "i know" so that the terminal may display an information input box, the display of which is shown in fig. 4.
202. And the terminal determines a first display position of the target comment information in the target video according to the setting operation of the target comment information.
In the embodiment of the present invention, the terminal may provide a function of setting display information of the target comment information, the user may perform setting operation on the target comment information, and the terminal may determine, based on the setting operation, a display position and a play time period of the target comment information in the target video, where a determination process of acquiring a first display position of the target comment information in the target video by the terminal is described first.
In a possible implementation manner, the operation manner of the setting operation of the target comment information by the user may include multiple types, and when the first display position is set, the user may perform a dragging operation on the target comment information to change the first display position of the target comment information, or may directly perform a selecting operation on a position in the target video to determine the first display position of the target comment information. Specifically, the determination process of the first display position in step 202 may be implemented by any one of the following steps one and two:
when the drag operation of the target comment information is detected, the terminal displays the moving process of the target comment information along the operation track based on the operation track of the drag operation, and the end position of the drag operation is determined as the first display position of the target comment information.
In the first step, after the user inputs the target comment information, a drag operation may be performed on the target comment information to change a display position of the target comment information, when the terminal detects the drag operation, a change condition of the display position of the target comment information under the drag operation may be synchronously displayed based on the drag operation, a preview display effect of the target comment information may also be provided for the user through the display process, and the user may adjust the display position of the target comment information based on the preview display effect. If the user adjusts the target comment information to an ideal display position, the drag operation may be stopped, so that the terminal may determine an end position of the drag operation as the first display position.
For example, as shown in fig. 5, the terminal may further display a fourth guidance word, where the fourth guidance word is used to prompt a user to set an operation mode of a first display position, after the terminal acquires target comment information, the user may press the target comment information for a long time to start a position setting function, after pressing for a long time, the user may drag the target comment information to move in a terminal interface, and may release his hand when dragging to an ideal position, and the terminal displays that the target comment information moves along with a drag operation in a process of dragging by the user, and when the user releases his hand, may use a current position of the target comment information as the first display position. As shown in fig. 10, the user releases the hand after dragging the target comment information from the first position shown in fig. 5 to the second position shown in fig. 10, and the terminal determines the second position as the first display position.
And step two, when the selection operation of any position of the target video is detected, the terminal determines the position corresponding to the selection operation as a first display position of the target comment information.
In the second step, the position setting operation of the user on the target video may be a selection operation on any position in the target video. In a possible implementation manner, the selection operation may be a click operation, a user may perform a click operation in the target video, and an operation position of the click operation is a position corresponding to the selection operation, so that the terminal may determine the operation position of the click operation as the first display position.
In another possible implementation manner, the selecting operation may be a selecting operation of any one of a plurality of options, the terminal may provide the plurality of options, for example, the video picture of the target video is a face image, the terminal may provide a plurality of face parts for selection, such as a nose, eyes, a mouth, eyebrows, or ears, and the user selects one of the plurality of options, so that the position corresponding to the selected option may be determined as the first display position by the terminal.
The first step and the second step are only exemplary illustrations of two position setting operations, and the position setting operation may further include other operation modes, for example, the position setting operation may also be a coordinate input operation, a user may input coordinates, and the terminal may use the input coordinates as the first display position. The embodiment of the present invention does not limit the specific operation manner of the position setting operation.
203. And the terminal determines a first playing time period of the target comment information in the target video according to the setting operation of the target comment information.
In this embodiment of the present invention, the terminal may provide a function of setting display information of the target comment information, and the step 202 has been described above for a determination process in which the terminal acquires a first display position of the target comment information in the target video.
In a possible implementation manner, the operation manner of the setting operation performed by the user on the target comment information may include multiple operation manners, and when the first play time period is set, the user may perform a toggle operation on the play progress bar or the image sequence of the target video to change the first play time period of the target comment information in the target video, or may directly input time to determine the first play time period. Specifically, the determination process of the first playing time period in step 202 may be implemented by any one of the following steps one and four:
step one, when the toggle operation of the playing time progress bar or the image sequence of the target video is detected, the terminal determines a time period with the time corresponding to the toggle operation as a starting point and the time length as the target time length as a first playing time period of the target comment information.
In the first step, the time setting operation may be a toggling operation of a progress bar or an image sequence of a playing time of the target video, the display duration of the target comment information is a target duration, and the toggling operation may be used to set a starting point of the first playing time period, so that the first playing time period may be determined after the target duration and the starting point are determined.
The target duration may be a display duration of the comment information preset in the terminal, the display duration may be a fixed numerical value, that is, the display durations of all the comment information are fixed, and the display duration may also be a numerical value set by the user, that is, the display duration of the comment information issued by the user is fixed. For example, the target duration may be 2 seconds, and a specific value of the target duration is not limited in the embodiment of the present invention.
For example, taking the time setting operation as a toggle operation on the image sequence of the target video, and the target duration being 2 seconds as an example, as shown in fig. 11, the terminal may display a time setting function start button, for example, the time setting function start button may be named as "adjust time", the user may click the time setting function start button to start the time setting function, when the terminal detects the click operation on the time setting function start button, the terminal may display an interface as shown in fig. 12, and the terminal may display the image sequence of the target video. The terminal may further display a fifth guidance phrase, where the fifth guidance phrase is used to prompt the user to perform a toggle operation on the image sequence to determine a starting point of the first playing time period, for example, the fifth guidance phrase may be "a position where the dragging bullet screen appears".
In a possible implementation manner, the terminal may further display a process that the video frame changes along with a change of the playing time according to the change of the playing time corresponding to the toggling operation, and use the playing time selected when the toggling operation is ended as a starting point of the first playing time period. Therefore, the preview display effect can assist the user in determining the first playing time period, so that the first playing time period is more accurate and better meets the requirements of the user. Specifically, the user may perform a toggle operation on the image sequence, and when the toggle operation is finished, the terminal may use a play time corresponding to the selected image sequence as a start point of a first play time period, where a target time duration is 2 seconds, and the first play time period is 2 seconds after the selected image sequence.
And secondly, when the toggle operation on the playing time progress bar or the image sequence of the target video is detected, taking two times corresponding to the toggle operation as a starting point and an end point respectively, and determining a time period between the starting point and the end point as a first playing time period of the target comment information.
In the second step, similarly to the first step, the time setting operation may be a toggle operation on a play time progress bar or an image sequence of the target video, and only in the second step, the display duration of the target comment information is not fixed, and may also be set by the user. Specifically, both the start point and the end point of the first playing period may be determined based on the toggling operation.
For example, the user may perform two times of toggle operations on the play time progress bar or the image sequence, and may use a time period between the selected play times when the two times of toggle operations are ended as the first play time period. Certainly, the user may also perform multiple dialing operations on the playing time progress bar or the image sequence, and after each dialing operation, select to determine the playing time selected when the waving operation is ended as the starting point or the ending point. The embodiment of the present invention does not limit how to operate.
And step three, when the time input operation is detected, determining a time period with the input time as a starting point and the time length as a target time length as a first playing time period of the target comment information.
In the third step, the time setting operation may be a time input operation, the user may input the starting point of the first playing time period by himself, and the display duration of the target comment information is the target duration, so that the first playing time period may be determined after the target duration and the starting point are determined. For example, taking the target duration as 2 seconds, the user may input 2 minutes and 10 seconds, and the terminal determines the time period of 2 minutes and 10 seconds to 2 minutes and 12 seconds as the first playing time period.
In a possible implementation manner, the terminal may also display a video picture of the target video corresponding to the input time according to the time input by the user, so as to assist the user in determining the first playing time period by a preview display effect, so that the first playing time period is more accurate and better meets the user requirements.
And step four, when the time input operation is detected, taking the two input times as a starting point and an ending point respectively, and determining a time period between the starting point and the ending point as a first playing time period of the target comment information.
In the fourth step, similarly to the third step, the time setting operation may be a time input operation, except that the user may determine the start point and the end point of the first playing time period by himself/herself, so that the display duration of the target comment information is also determined, and thus the time period between the start point and the end point may be determined as the first playing time period. For example, the user may input 2 minutes 10 seconds and 2 minutes 15 seconds, so that the terminal may determine a period of 2 minutes 10 seconds to 2 minutes 15 seconds as the first play period.
It should be noted that, the above-mentioned steps one to four are only exemplary illustrations of four time setting operations, and the time setting operation may further include other operation manners, for example, the time setting operation may also be a selection operation of any one of a plurality of time period options, the terminal may provide a plurality of time period options, and the user may select one of the plurality of time period options as the first playing time period. The embodiment of the present invention does not limit the specific operation manner of the time setting operation.
In a possible implementation manner, in the first to third steps, in the obtaining process of the target comment information, and the determining process of the first target display position and the first playing time period, a guidance language is displayed, where the guidance language is used to guide an operation manner of performing a comment operation on the target video. For how to display, reference may be made to contents shown in steps one to three, and of course, the terminal may also display other guidance phrases.
It should be noted that, the above steps 202 and 203 are a process of determining the first display position and the first playing time period of the target comment information in the target video according to the setting operation on the target comment information, and the user can set the first display position of the target comment information in the target video and can set the first playing time period of the target comment information in the target video, so that the target comment information can be focused on a certain position and a certain time point in the target video, the relevance between the target comment information and the target video is strong, the user's view can be expressed more accurately, other users can easily link the target comment information and the content of the target video when viewing the target comment information, the idea of the publisher of the target comment information can be known accurately, and therefore, the accuracy and the display efficiency of the target comment information are improved, the display effect is good.
The step 202 and the step 203 above only show one way of determining the first display position and the first playing time period respectively according to different setting operations, in this way, the time sequence of the step 202 and the step 203 above may be arbitrary, the terminal may first execute the step 202 and then execute the step 203, may also first execute the step 203 and then execute the step 202, and may also execute simultaneously, only the operation mode of the setting operation needs to be set according to requirements, of course, the user may also repeatedly adjust the first display position and the first playing time period, so that the terminal may repeatedly execute the step 202 and the step 203 above, and the time sequence of the step 202 and the step 203 is not limited in the embodiment of the present invention.
In a possible implementation manner, the first playing time period may also be determined based on the first display position, and in this implementation manner, the terminal may first perform step 202 to determine the first display position, and then perform step 203 to determine the first playing time period based on the first display position. Specifically, the process can be realized by the following steps one and two:
step one, the terminal can determine a first display position of the target comment information in the target video according to the position setting operation of the target comment information.
The first step is similar to the step 202, and the embodiment of the present invention is not described herein again.
And secondly, the terminal takes the time set by the time setting operation as a starting point, takes the disappearance time of the target object at the first display position in the video picture corresponding to the starting point as an end point and determines the time period between the starting point and the end point as a first playing time period of the target comment information in the target video according to the time setting operation on the target comment information.
In the first step, the terminal has already determined a first display position of the target comment information in the target video, and before the second step, the terminal may determine, based on the first display position, which target object in the video picture of the target video the target comment information is about to be subjected to, specifically, the terminal may identify, based on the first display position, a video picture corresponding to a start point of the first playing time period of the target video, and determine the target object at the first display position in the video picture corresponding to the start point. If the target object disappears in the subsequent stage, the target comment information does not need to be displayed any more, and therefore the disappearance time of the target object can be taken as the end point, and the time period between the start point and the end point is the first playing time period.
In one possible implementation, the second step may include the following two cases:
the first condition is as follows: the terminal may take the start point as the start point of the first playing time period and the disappearance time of the target object in the video picture of the target video as the end point according to the setting operation of the user, so that the time period between the start point and the end point is taken as the first playing time period.
In one possible embodiment, when the playing time of the target video is after the starting point, the terminal may further detect whether the target object disappears in real time, and when detecting that the target object disappears, cancel the display of the target comment information. For example, the comment information display method can be applied to a live video scene, and after a user sets a starting point, the terminal can detect whether a target object disappears in real time when a live video stream is played, and execute a step of canceling display when the target object disappears.
For example, after the terminal determines the first display position, the starting point is 2 minutes 10 seconds, the target object on the first display position in the video picture corresponding to the starting point is the eyes in the face image, and the disappearance time of the eyes in the target video is 2 minutes 25 seconds, and then the terminal may determine that the first playing time period is a time period from 2 minutes 10 seconds to 2 minutes 25 seconds.
Case two: the user sets a start point and an end point of the first play period, and the terminal detects that the target object disappears in a period between the start point and the end point, the terminal may determine a period between the start point set by the user and a disappearance time of the target object as the first play period.
In one possible embodiment, the terminal may further detect whether the target object disappears in real time when the playing time of the target video is after the start point, and cancel the display of the target comment information when detecting that the target object disappears before the end point. For example, the comment information display method may be applied to a live video scene, after a user sets a start point and an end point, when a live video stream is played behind the start point, the terminal may detect whether a target object disappears in real time, and if the target object disappears before the end point, the step of canceling the display is performed. If the point does not disappear before the ending point, the same contents as those in the above step four are not described herein again.
For example, after the terminal determines the first display position, the user sets a start point of the first playing time period to be 2 minutes 10 seconds, the target object on the first display position in the video picture corresponding to the start point is an eye in the face image, the user also sets an end point of the first playing time period to be 2 minutes 30 seconds, and in a time period between the start point and the end point, the eye disappears, for example, the disappearance time of the eye in the target video is 2 minutes 25 seconds, and the terminal may determine the first playing time period to be a time period of 2 minutes 10 seconds to 2 minutes 25 seconds.
The first playing time period is determined through the first condition and the second condition, so that the relevance between the target comment information and the content in the target video can be further improved, the display accuracy and the display efficiency of the target comment information are improved, and the display effect is better. After the first playing time period is set, the user can click the sending button to publish the target comment information.
In a possible implementation manner, when the terminal determines a first display position and a first play time period of the target comment information in the target video according to the target comment information obtained or the setting operation of the target comment information, the terminal may pause playing of the target video. After the first playing time period and the first display position are determined, the target video can be continuously played.
Of course, in another possible implementation manner, when the terminal determines the first display position and the first play time period of the target comment information in the target video according to the target comment information obtained or the setting operation performed on the target comment information, the terminal may not pause the playing of the target video, and the terminal may perform the following step 204 in the process of continuously playing the target video.
The above description is only given by taking the case that the terminal performs step 202 and step 203 after performing step 201 as an example, in a possible implementation manner, the terminal may perform step 202 and step 203 first and then perform step 201, that is, the user may set the first display position and the first playing time period of the target comment information first and then input the content of the target comment information, and of course, the step 201 may also be inserted in step 202 and step 203. The time sequence from step 201 to step 203 may be changed according to the setting of the relevant technician and the adjustment condition of the user, which is not limited in the embodiment of the present invention.
204. And the terminal displays the target comment information at the first display position in the first playing time period of the target video.
Through the steps, the terminal acquires the target comment information, and the first display position and the first playing time period of the target comment information in the target video, namely the target comment information can be displayed on the first display position in the first playing time period of the target video. For example, as shown in (a) and (b) of fig. 13, the terminal may display the target comment information at a first display position set by the user during a first play period set by the user, and as shown in (c), the terminal may not display the target comment information any more after the first play period ends. As shown in fig. 14, fig. 14 shows a display mode of comment information in the related art, and after a user posts comment information, within a few seconds after the user performs a posting operation, comment information such as the moving display processes shown in (a) diagram, (b) diagram, and (c) diagram can be displayed in a video playback interface.
In a possible implementation manner, before the step 204, the terminal may further identify, based on the first display position, a video picture corresponding to a start point of the first playing time period of the target video, and determine a target object at a first display position in the video picture corresponding to the start point. In step 204, when the target object at the first display position in the video picture corresponding to the starting point moves within the first playing time period, the terminal may display that the target comment information moves along with the movement of the target object. For example, a first display position set by a user corresponds to a basketball in a video picture corresponding to a starting point, and in the first playing time period, the position of the basketball in the video picture is changed, so that target comment information posted by the user for the basketball can be changed in position along with the position change of the basketball, and further, the association relationship between the target comment information and a target object in a target video is clarified, the display efficiency of the target comment information is improved, and the display effect is good.
In a specific possible embodiment, in the implementation manner shown in the above step 203 for determining the first playing time period based on the first display position, the terminal may perform the step of determining the second playing time period before performing the step shown in the step two.
In a possible implementation manner, after the first playing time period is ended, the terminal can also control the target comment information to disappear gradually, so that the displayed picture has dynamic feeling and continuity, and the user experience can be greatly improved. Specifically, after step 204, the terminal may further perform any one of the following steps one and two:
step one, a terminal displays a fade-out animation at a first display position of the target video, wherein the fade-out animation is used for showing that the target comment information gradually disappears.
Before the first step, the terminal may generate a fade-out animation based on the video picture corresponding to the end point of the first playing time period and the video picture after the first playing time period ends, and in the video picture after the first playing time period ends, the target comment information is no longer displayed. Therefore, the terminal displays the fade-out animation, and the target comment information can disappear gradually.
In a possible implementation manner, a preset duration may be set for the fade-out animation, for example, the preset duration may be 0.5 second, and when the terminal generates the fade-out animation, the fade-out animation may be generated based on a video picture corresponding to the end point of the first playing time period and a video picture corresponding to a time point, after the end point, of which the duration from the end point is the preset duration. Of course, the terminal may also generate the dissolve animation in other ways, which is not limited in this embodiment of the present invention.
And step two, the terminal adjusts the display transparency of the target comment information from the target transparency to 100% according to the target adjustment step length of the display transparency, and displays the target comment information according to the adjusted display transparency.
In the second step, the terminal may also directly adjust the display transparency of the target comment information to reflect the effect that the target comment information gradually disappears. The target transparency may be a transparency of the target comment information when displayed in the first playing time period, the terminal may gradually adjust the display transparency from the target transparency to 100%, and when the display transparency is 100%, the user cannot see the target comment information. The target adjustment step is an adjustment value of each adjustment.
For example, the target transparency may be 30%, and the target adjustment step size may be 10%, and the terminal may display the target comment information in a variation of 30%, 40%, 50%, 60%, 70%, 80%, 90%, or 100%. The above numerical value is only an example, and both the target transparency and the target adjustment step length may be set by a relevant technician as needed, or adjusted by a user according to a use habit of the user, which is not limited in the embodiment of the present invention.
It should be noted that, the playing situation of the target video in step 204 can be divided into three situations:
in the first case, in the above steps 201 to 203, that is, when the terminal determines the first display position and the first play time period of the target comment information in the target video according to the target comment information obtained or the setting operation of the target comment information, the terminal may pause the playing of the target video. In step 204, the terminal may play the target video with a start point of a first playing time period as a playing start point, and in the playing process, perform the step of displaying the target comment information at the first display position in the first playing time period of the target video. That is, after the display information of the target comment information is set, the terminal continues to play the target video with the starting point of the first play time period as the play starting point, and the user can view the display condition of the target comment information.
In a second case, in the above step 201 to step 203, the terminal may pause the playing of the target video, in the step 204, the terminal may replay the target video automatically or based on a playing operation of the user, and when the target video is replayed, the target comment information is displayed at the first display position within the first playback time period of the target video.
In a third case, in the above step 201 to step 203, the terminal may not pause the playing of the target video, and in the step 204, the terminal may perform the step of displaying the target comment information at the first display position within the first playing time period of the target video while continuing to play the target video.
It should be noted that, in the above contents, only the local user operates on the terminal to describe the process of publishing and displaying the target comment information, and similarly, other users may also operate on terminals where other users are located to publish and display the comment information, in a possible implementation manner, the comment information published by other users may also be synchronized to the local, and the comment information published by other users is displayed when the local plays the target video, as shown in fig. 13, of course, the local user may also comment on the target comment information when the target video is played last time, and the comment information published by other users and the comment information ever by the local user are referred to as first comment information. Specifically, the method may further include the following step one and step two.
The method comprises the steps that firstly, a terminal receives at least one piece of first comment information of a target video, wherein the at least one piece of first comment information carries a second display area and a second playing time period in the target video.
In the first step, the first comment information may be comment information issued by the other user, may also be comment information ever made by the local user, and may also include both comment information issued by the other user and comment information ever made by the local user.
In one possible implementation, there may be provided: the producer of the target video can display the comment information of the confirmation operation on the terminal where other users except the publisher of the comment information are located. The ongoing display confirmation operation may be referred to herein, figuratively, as "flipping". The producer of the target video is also the author of the target video, the comment information of the turned-over card by the author can be displayed on the terminal where other users are located, and the comment information of the turned-over card by the author can be displayed on the terminal where the publisher of the comment information is located. In this implementation, the at least one piece of first comment information in the first step may be comment information in which a display confirmation operation is performed for a producer of the target video.
Correspondingly, after the step 203, the terminal may further send the target comment information to the terminal where the producer of the target video is located, where the target comment information carries the first display position and the first play time period. The terminal where the producer of the target video is located can provide the target comment information or the preview display condition of the at least one comment information according to the first display position and the first playing time period of the target comment information and the second display position and the second playing time period of the at least one comment information sent by other terminals, and the producer of the target video can select the at least one comment information from the plurality of comment information to perform display confirmation operation based on the preview display condition of the target comment information and comment information issued by other users. The following description will be given only by taking an example in which the target video is not yet transmitted to the terminal where the producer is located, and the process after transmission is the same as this.
In a possible implementation manner, the terminal where the producer of the target video is located may provide a comment information management button in the video playing interface, and the at least one comment information may be displayed when the touch operation of the comment information management button is detected. When the play time periods of the plurality of comment information included in the at least one comment information overlap, integrated information of the plurality of comment information may be displayed. For example, as shown in fig. 15, the terminal may display the target video in a home interface, after the producer clicks the target video, the target video may be displayed, and a "barrage management" button is displayed in a target video playing interface, where the "barrage management" button is a comment information management button, the user may click the "barrage management" button, the terminal may display multiple comment information of the target video, and for multiple comment information overlapping with the above playing time period, for example, 3 comment information, a video of 3 people Pin at the same time, such as XXX, may be displayed.
The user can perform touch operation on the displayed at least one piece of comment information, the terminal can provide a preview display interface when detecting the touch operation on the at least one piece of comment information, specific content and a preview display area of the at least one piece of comment information can be displayed in the preview display interface, and the at least one piece of comment information can be displayed in the preview display area in a previewing mode.
For example, when the user performs a touch operation on "3 people such as XXX and the like who have played your video at the same time Pin" shown in fig. 15, the terminal may display a preview display interface, which is shown in fig. 16, the terminal may display three pieces of comment information posted by the 3 users, and in the preview display interface, the three pieces of comment information are displayed at respective second display positions of the three pieces of comment information in respective second playing time periods of the three pieces of comment information. The producer (author) may determine whether to perform a display confirmation operation on the preview display effect, and specifically, the display confirmation operation may be a touch operation on a display confirmation button, for example, a "flip" button of the display confirmation button. The terminal may also control the state of the display confirmation button to be changed after the producer has performed the display confirmation operation, for example, the button becomes a "reverse tile button". The producer may also perform a display cancellation operation on the comment information, for example, the user may perform a touch operation on the "cancel tile flipping" button. If the user performs a touch operation on the single comment information shown in fig. 15, the preview display interface may be as shown in fig. 17, in which the single comment information may be displayed.
Similarly, the display confirmation operation may also be performed in a message management interface, for example, as shown in fig. 18, the terminal where the producer is located may display at least one piece of comment information issued by the other user in the message management interface, and the display situation is the same as the situation of entering from the comment information management interface, and the user may also perform touch operation on the integrated information or any piece of comment information to trigger the terminal to provide a preview display interface, where the preview display interface is shown in fig. 16 and 17, and details are not repeated here.
In one possible implementation, there may also be provided: for comment information in which there is overlap in the play time period, the number of comment information that the producer can perform the display confirmation operation is limited. That is, the target number may be set, for example, the target number may be 3, and for the comment information having overlap in the play time period, the producer may turn over 3 comment information at most. Taking the duration of the playing time period of each comment information as 2 seconds and the duration of the hidden animation as 0.2 seconds as an example, the maximum number of comment information which can be displayed at any moment is 9, and after testing, the complicated image-text mixed comment information can be loaded into more than 100 pieces at the same moment without any pause phenomenon, so that the comment information display method provided by the embodiment of the invention has very little influence on the performance and the memory of the terminal.
In a possible implementation manner, the above-mentioned sending and receiving of information between the terminals may be implemented by a server, that is, the terminal shown in fig. 2 sends the target comment information to the server, the server sends the target comment information to the terminal where the producer of the target video is located, the terminal where the producer is located may send the confirmation display result to the server, and the server sends at least one piece of first comment information to the terminal shown in fig. 2 according to the confirmation display result, so that the terminal shown in fig. 2 may perform the above-mentioned step one, receive the at least one piece of first comment information, and perform the following step two, and display it.
And step two, the terminal displays the at least one piece of first comment information at a second display position in a second playing time period of the at least one piece of first comment information in the target video.
In the second step, similarly to the step 204, the terminal acquires the display information of the at least one piece of first comment information, that is, the display information can be displayed according to the second playing time period and the second display position of the terminal in the target video. The embodiments of the present invention will not be described herein.
In one possible implementation manner, the display style of the comment information published by the home terminal user is different from that of the comment information published by other users. The terminal can display the comment information issued by the local user according to the first display style, and display the comment information issued by other users according to the second display style. In this implementation manner, in step 204, the terminal may display the target comment information according to the first display style. In the second step, for the at least one piece of first comment information, when any piece of first comment information is comment information posted by the home terminal user, the terminal may display the any piece of comment information on the second display position of the target video in the second play time period of the any piece of comment information according to the first display style. When any one of the first comment information is comment information issued by other users, the terminal may display any one of the comment information on a second display position of the target video in a second display time period of the any one of the comment information according to a second display style. Therefore, the users can be distinguished through the display styles, and the display effect can be more visual.
For example, as shown in fig. 13, the display style of the target comment information posted by the home-end user is different from the display style of the comment information posted by the other users. Fig. 13 is only an exemplary illustration of the first display style and the second display style, and does not limit the first display style and the second display style. The first display style and the second display style can be set by related technicians according to requirements, and can also be adjusted by users according to self use habits.
In one possible implementation, the at least one first comment information may include two cases: one first comment information and a plurality of first comment information. In the case that the at least one piece of first comment information is a plurality of pieces of first comment information, an overlapping situation may also occur, where the overlapping situation is that second display positions of the plurality of pieces of first comment information that need to be displayed in any time period are determined to overlap according to a second playing time period of the at least one piece of first comment information. The overlapping may be partial overlapping or complete overlapping. In such an overlapping situation, the terminal may also correct or calibrate the display information of the plurality of pieces of first comment information to obtain a better display effect. Specifically, the terminal may perform the steps shown in any one of the following cases one to three.
The first condition is as follows: when the second display positions of a plurality of pieces of first comment information which need to be displayed in any time period are determined to be overlapped according to the second playing time period of the at least one piece of first comment information, the plurality of pieces of first comment information are displayed in a dispersed manner in any time period of the target video within a target position range taking the second display positions of the plurality of pieces of first comment information as the reference, and after dispersion, third display positions of the plurality of pieces of first comment information are not overlapped with each other.
In the first case, the second display positions of the multiple pieces of first comment information with overlapping conditions are moved, so that the multiple pieces of first comment information can be completely dispersed in the target position range, an effect of mutual non-overlapping is achieved, and the multiple pieces of first comment information can be dispersedly displayed by the terminal.
And a second condition: when the second display positions of a plurality of pieces of first comment information needing to be displayed in any time period are determined to be overlapped according to the second playing time period of the at least one piece of first comment information, the first comment information published by the local user is displayed on the second display position in any time period of the target video, the first comment information published by other users is displayed in a dispersed mode in a target position range taking the second display positions of the plurality of pieces of first comment information as the reference, and after dispersion, third display positions of the plurality of pieces of first comment information are not overlapped.
In this case two, if the plurality of pieces of first comment information include the first comment information posted by the home terminal user, the display position of the first comment information posted by the other user may be changed without changing the display position of the first comment information posted by the home terminal user. For the first comment information published by the local user, the first comment information published by the local user can be displayed on the original second display position, and for the first comment information published by other users, the first comment information published by the local user can be displayed in a scattered manner.
Case three: when the second display positions of a plurality of pieces of first comment information needing to be displayed in any time period are determined to be overlapped and cannot be completely dispersed in a target position range based on the second display positions of the plurality of pieces of first comment information according to the second playing time period of the at least one piece of first comment information, determining the third display positions of the plurality of pieces of first comment information according to at least one of the number of pieces of comment information needing to be simultaneously displayed in any position, the display residual time of each piece of comment information and the distance between the third display position of each comment information candidate and the respective second display position; and displaying the plurality of first comment information at the third display positions of the plurality of first comment information in any time period of the target video.
In the third case, the second display positions of the multiple first comment information with the overlapping condition are moved, and the multiple first comment information cannot be completely dispersed within the target position range, and possibly, a part of the first comment information may be completely dispersed, and another part of the first comment information may still be not dispersed, and the terminal may measure how the respective third display positions of the multiple first comment information are determined, by one or more dimensions of three dimensions among the number of first comment information that needs to be simultaneously displayed at any position, the display remaining time of each first comment information, and the distance between the respective second display position and the third display position of each first comment information candidate, so that the final display effect of the multiple second comment information is optimal to some extent.
For example, if the number of pieces of first comment information that need to be displayed at the same time at any position is considered, the plurality of pieces of first comment information may be considered to be separated, but some pieces of first comment information need to be displayed in an overlapping manner, then the part of first comment information may be separated as much as possible, instead of displaying one piece of first comment information at some positions and displaying five pieces of first comment information at some positions, and the display effect of the first comment information that is displayed in an overlapping manner is poor due to uneven distribution. In this case, the number of pieces of first comment information that need to be displayed at any position may be considered, and it is sufficient that the maximum number of pieces of first comment information that need to be displayed at any position is finally minimized among the plurality of dispersion schemes.
For another example, if the display remaining time of each piece of first comment information is considered, when the pieces of first comment information still needing to be displayed in an overlapping manner are dispersed, an optimal scheme can be selected based on the display remaining time of each piece of first comment information, and if the display remaining time of a certain piece of first comment information is one second and the display remaining time of another piece of first comment information is two seconds, the other pieces of first comment information can be placed at the display position of the piece of first comment information whose display remaining time is one second, so that after the display remaining time of the piece of first comment information becomes zero, the other pieces of first comment information can be completely displayed, and the display effect achieved in this way is good. In this scheme, the scheme that the total display duration of at least one piece of first comment information is the largest may be the optimal scheme among the multiple dispersion schemes based on the display remaining time of each piece of first comment information.
For another example, if the distance between the third display position of each candidate of the first comment information and the respective second display position is considered, the distance between the third display position of each candidate of the first comment information and the respective second display position may be made smaller, so that the original display position of the first comment information can be embodied, and the viewpoint of the publisher can be better expressed.
Of course, in the above example, only a single dimension is schematically described, the terminal may also determine the third display position of each of the plurality of first comment information based on the plurality of dimensions, and specifically how to determine that the third display position can be set by a related technician according to a requirement is not limited in this embodiment of the present invention. In a possible implementation manner, when calculating the position, a grid attribute may be added, for example, each virtual row is used as one or more grids, and the number or the distance is determined according to the number of the grids, it can be understood that when the number of the grids set is different, the accuracy of the final result may be different, and specifically may be set by a related technician according to the requirement and the operation capability of the terminal, which is not limited in the embodiment of the present invention. In the above process, only the display mode of multiple pieces of first comment information is taken as an example for description, and if the overlapping situation occurs in the display process of the target comment information, the processing mode may adopt the same manner as any of the first to third situations, which is not described in detail herein in the embodiments of the present invention.
In the above-mentioned cases one to three, the terminal may solve the third display position of each piece of first comment information, and an optimal solution may be obtained based on at least one item of the above-mentioned information in the solving process of the third display position. Specifically, when it is determined that second display positions of multiple pieces of first comment information that need to be displayed in any time period overlap according to a second play time period of the at least one piece of first comment information, for any one piece of first comment information in the multiple pieces of first comment information, if a position where no piece of first comment information needs to be displayed is included in a target position range with respect to the second display position of the piece of first comment information, the position where no piece of first comment information needs to be displayed is taken as a third display position of the piece of first comment information, that is, corresponds to the case one. If the first comment information published by the local end user is processed independently, the display position of the first comment information published by the local end user is not changed, and the first comment information published by other users is solved according to the process, namely corresponding to the second condition.
If the target position range based on the second display position of the first comment information does not include a position where no first comment information is not required to be displayed, according to at least one of the number of comment information required to be simultaneously displayed in any position, the display remaining time of each comment information, and the distance between the third display position of each comment information candidate and the respective second display position, taking the at least one position meeting the target condition as the third display position of the first comment information, that is, corresponding to the third case. The target condition may be the condition shown in the above example, and the target condition may be different depending on the dimension to be considered. Of course, the target condition may be set by a person skilled in the relevant art according to a requirement, and the embodiment of the present invention does not limit this.
In a possible implementation manner, the terminal may further adjust a display size of the first comment information based on the at least one item, so that the plurality of first comment information are displayed according to the adjusted display size.
In a possible implementation manner, in the determining of the third display position in the first case, if a plurality of positions where any first comment information is not required to be displayed are included in the target position range based on the second display position of the first comment information, the terminal takes a position having a minimum distance from the second display position of the first comment information among the plurality of positions as the third display position of the first comment information. Like this first comment information more closely with user's view, the display efficiency is higher, and the display effect is better.
For example, as shown in fig. 19, taking the first comment information as a barrage, and displaying each piece of first comment information in a barrage view (view) manner, a barrage view may be displayed in the current screen, where each barrage view is displayed at an original position (a second display position), and all live barrage views on the current canvas may also be acquired, that is, the first comment information still needs to be displayed in the next frame (the first comment information whose display remaining time is not zero), and the terminal may determine whether views are overlapped, if not, each view is displayed at the original position, so that a coordinate (origin) of the original position may be returned, and the calibration process is ended. If there is overlap, an optimal solution of a vacancy can be searched for each barrage view, where the vacancy is a position where no first comment information needs to be displayed, in the searching process, a gap (yGap) between views may be taken as 10 as an example, and the 10 may be 10 grids or the number of pixels, which is only an example, and the embodiment of the present invention does not limit this. If no vacancy is found in each direction, the vacancy can be adjusted to 0, the optimal solution of the vacancy is found again, if no vacancy is found, the method in the third case can be followed, one dimension or a plurality of dimensions are considered, the optimal vacancy is determined, and the origin of the optimal vacancy is returned. If a null is found in the above-mentioned search process, and the search result may include a null or a plurality of nulls, the position closest to the original position may be read therefrom as the third display position, and the origin of the closest position is returned.
In a specific possible embodiment, for a plurality of pieces of second comment information whose third display positions overlap in this case three, the terminal may further optimize its display manner. Specifically, for a plurality of pieces of second comment information whose third display positions overlap among the plurality of pieces of first comment information, the terminal may determine display priorities of the plurality of pieces of second comment information according to the at least one item. The terminal may display the plurality of pieces of second comment information at the third display positions of the plurality of pieces of second comment information according to the display priority.
In one possible implementation manner, in the cases one to three of the above-mentioned overlapping cases, the terminal may directly display the plurality of second comment information at the determined third display position, so that the overlapping case of the plurality of second comment information is optimized. The terminal can also display a target animation, and the target animation is used for reflecting the effect that the plurality of first comment information moves from the respective second display positions to the third display positions. Of course, in case three, the plurality of second comment information may be included in the plurality of first comment information. In the method for displaying the target animation, the original second display position set by each first comment information user can be embodied, the overlapping condition can be optimized, and the display efficiency and the display effect of the plurality of first comment information are effectively improved.
A specific flow of the comment information display method may be as shown in fig. 20, where fig. 20 shows a specific example, and here, the guest state is referred to as a viewer side of the target video, the host state is referred to as a producer side of the target video, and the comment information is referred to as a bullet screen. The comment information display method can comprise three stages: the method comprises the steps of inputting a barrage, editing the barrage and displaying the barrage, wherein the operating systems of the terminals in the first two stages can be IOS and Android (Android), the IOS is a mobile operating system developed by apple Inc., the terminal can also display the barrage in a hypertext Markup Language (HTML) 5 webpage when displaying the barrage, and the HTML5 webpage can also be referred to as an H5 webpage for short. Spectator's end can watch the video stream, and input the barrage through pressing or clicking pin button for a long time, and the barrage of concurrency table, this spectator's end can preview this barrage, also can send it to the server, the barrage data of sending can include multiple information, for example, information such as number, position (first display position), size, time (first broadcast time quantum) and content, and this spectator's end can send the barrage request of publishing to the server, in order to request to publish this barrage, the server can return and publish successfully. After receiving the barrage sent by the audience, the server can send a message to the producer end, namely that someone has pinned your video, the producer end can push (push) the message and can display the message in a message list as a new message, if the producer end detects the touch operation to the message and needs to show one or more barrage, can send all bullet screen requests (paging) of the current second to the server, the server can send bullet screens to be displayed to the producer end, the producer end can display all pin bullet screens of the current second, the producer end can execute corresponding steps according to operations of turning cards, canceling turning cards, deleting bullet screens and the like of the producer, and sending the editing result to a server in a bullet screen editing request mode, and carrying out corresponding processing by the server based on the editing result and returning back to the operation success. If the bullet screen of the audience is turned, the server can also send a message of 'your bullet screen is turned' to the audience, similarly, the audience can push the message and can also display the message in a message list as a new message, the audience can display the bullet screen of the turned card, certainly, the audience can also delete the bullet screen and send a bullet screen deletion request to the server, and the server returns a successful deletion message after the bullet screen is deleted successfully. When watching the video stream, the audience end or the producer end can send a request for inquiring all turned-over bullet screens of the current video to the server, the server can send all turned-over bullet screens of the current video to the audience end or the producer end, the specific data form can be n pieces of bullet screen data, the data comprises information such as position, size, time and content, and the n is a positive integer; audience and producer can carry out size calibration, position calibration (avoid overlapping) and time calibration etc. before showing bullet screen data, also be the calibration of above-mentioned overlapping condition, this size calibration can be the calibration in the above-mentioned overlapping condition, also can be screen proportion adaptation process, audience or producer can show this all bullet screens according to the broadcast progress, of course, if this audience has published bullet screen but not turned over the tablet by the producer, in the broadcast process, also can show this audience oneself the published bullet screen, above-mentioned display logic is accomplished when watching the end.
In a specific example, the comment information display method may be implemented based on a comment information display architecture, and the comment information display architecture may correspond to an operating system of the terminal. Different operating systems may correspond to different comment information display architectures. For example, the comment information is called a bullet screen, the comment information display framework is called a bullet screen display framework, the iOS bullet screen framework is realized based on BarrageRender, which is the most open source bullet screen library of star in gitubs, and the Android bullet screen framework can be realized based on the open source bullet screen library of the B station. As shown in fig. 21, the bullet screen display architecture may include a service invocation module, a bullet screen engine, and a bullet screen sprite.
The service calling module is mainly used for controlling playing and stopping (displaying and canceling) of the barrage, providing data for a barrage engine, providing barrage rendering data and the like, and can also provide a bearing page pane view of a barrage canvas, wherein the data provided for the barrage engine can comprise video playing time, and through the video playing time, accurate access of the barrage (accurate display in a corresponding playing time period), time backflow (used for determining the playing time period or adjusting video playing progress and the like) and the like can be controlled.
The bullet screen engine is the core of bullet screen display capability, and may include a bullet screen renderer, a bullet screen scheduler, a time engine, a bullet screen sprite factory, a bullet screen canvas (bullet screen view management), and the like. And the bullet screen renderer is a control center and is used for controlling bullet screen display. The bullet screen scheduler is used for being responsible for load balancing, the time engine is used for controlling playing progress, the bullet screen sprite factory is used for transmitting data to the bullet screen sprite, and the bullet screen canvas is used for bullet screen view management.
The bullet screen sprite can generate various sprites carrying basic attributes such as suspension, left-right rolling and the like according to description information of a bullet screen, the sprites refer to carriers of the bullet screen view, and the sprites can be linked with a bullet screen view multiplexing pool when being activated and destroyed, so that the view of the same type can be reused, and memory and performance cannot be consumed by unlimited creation.
The barrage View is a View defined by a service side, and in the embodiment of the invention, the barrage View is a special suspended barrage View with position coordinates and moving effect of entrance and exit. That is, the barrage may be displayed in a manner that displays the barrage view.
The embodiment of the invention supports the setting of the display position and the playing time period of the comment information in the video, the display position and the playing time period of the comment information in the video can be determined according to the setting operation for the comment information, and the comment information can be displayed at the set display position in the playing time period of the video after the determination, so that the comment information and the video content are closely related, the relevance between the comment information and the target video is strong, the viewpoint of a user can be more accurately expressed, other users can easily link the comment information and the content of the video when watching the comment information, and the idea of a publisher of the comment information can be accurately known, therefore, the display mode can effectively improve the accuracy and the display efficiency of the comment information and has good display effect.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present invention, and are not described in detail herein.
Fig. 22 is a schematic structural diagram of a comment information display apparatus provided in an embodiment of the present invention, and referring to fig. 22, the apparatus includes:
an obtaining module 2201, configured to obtain target comment information of a target video;
a determining module 2202, configured to determine, according to a setting operation on the target comment information, a first display position and a first play time period of the target comment information in the target video;
a display module 2203, configured to display the target comment information at the first display position in the first playing time period of the target video.
In one possible implementation, the determining module 2202 is configured to perform any of:
when the drag operation on the target comment information is detected, displaying the moving process of the target comment information along the operation track based on the operation track of the drag operation, and determining the end position of the drag operation as a first display position of the target comment information;
when the selection operation of any position of the target video is detected, the position corresponding to the selection operation is determined as the first display position of the target comment information.
In one possible implementation, the determination module 2202 is configured to perform any one of:
when the toggle operation on the playing progress bar or the image sequence of the target video is detected, determining a time period with the time corresponding to the toggle operation as a starting point and the time length as a target time length as a first playing time period of the target comment information;
when the shifting operation of the playing time progress bar or the image sequence of the target video is detected, taking two times corresponding to the shifting operation as a starting point and an ending point respectively, and determining a time period between the starting point and the ending point as a first playing time period of the target comment information;
when time input operation is detected, determining a time period taking the input time as a starting point and the duration as a target duration as a first playing time period of the target comment information;
when a time input operation is detected, the two input times are taken as a starting point and an end point respectively, and a time period between the starting point and the end point is determined as a first playing time period of the target comment information.
In one possible implementation, the determining module 2202 is configured to:
determining a first display position of the target comment information in the target video according to the position setting operation of the target comment information;
according to the time setting operation on the target comment information, the time set by the time setting operation is used as a starting point, the disappearance time of the target object on the first display position in the video picture corresponding to the starting point is used as an end point, and the time period between the starting point and the end point is determined as the first playing time period of the target comment information in the target video.
In one possible implementation, the apparatus further includes:
the identification module is used for identifying a video picture corresponding to an initial point of the first playing time period of the target video based on the first display position and determining a target object on the first display position in the video picture corresponding to the initial point;
the display module 2203 is further configured to display the target comment information to move along with the movement of the target object when the target object at the first display position in the video frame corresponding to the starting point moves within the first playing time period.
In one possible implementation, the display module 2203 is further configured to perform any one of the following:
displaying a fade-out animation at a first display position of the target video, wherein the fade-out animation is used for showing that the target comment information gradually disappears;
and adjusting the display transparency of the target comment information from the target transparency to 100% according to the target adjustment step length of the display transparency, and displaying the target comment information according to the adjusted display transparency.
In one possible implementation, the apparatus further includes:
the receiving module is used for receiving at least one piece of first comment information of the target video, wherein the at least one piece of first comment information carries a second display area and a second playing time period in the target video;
the display module 2203 is further configured to display the at least one first comment information at a second display position during a second playing time period of the at least one first comment information in the target video.
In a possible implementation manner, the display module 2203 is configured to, when it is determined that second display positions of multiple pieces of first comment information that need to be displayed in any time period overlap according to a second playing time period of the at least one piece of first comment information, dispersedly display the multiple pieces of first comment information in a target position range that is based on the second display positions of the multiple pieces of first comment information in any time period of the target video, where third display positions of the multiple pieces of first comment information after the dispersion do not overlap with each other.
In a possible implementation manner, the display module 2203 is configured to, when it is determined that second display positions of multiple pieces of first comment information that need to be displayed in any time period overlap according to a second playing time period of the at least one piece of first comment information, display, in the any time period of the target video, first comment information posted by a local user at a second display position, and dispersedly display, in a target position range based on the second display positions of the multiple pieces of first comment information, first comment information posted by other users, where third display positions of the multiple pieces of first comment information after dispersion do not overlap with each other.
In one possible implementation, the display module 2203 is configured to:
when the second display positions of a plurality of pieces of first comment information needing to be displayed in any time period are determined to be overlapped and cannot be completely dispersed in a target position range based on the second display positions of the plurality of pieces of first comment information according to the second playing time period of the at least one piece of first comment information, determining the third display position of each piece of first comment information according to at least one of the number of pieces of first comment information needing to be displayed at any position at the same time, the display remaining time of each piece of first comment information and the distance between the third display position of each first comment information candidate and the respective second display position;
and displaying the plurality of first comment information at the third display positions of the plurality of first comment information in any time period of the target video.
In one possible implementation, the display module 2203 is configured to:
for a plurality of pieces of second comment information with overlapped third display positions in the plurality of pieces of first comment information, determining the display priority of the plurality of pieces of second comment information according to the at least one item;
and displaying the plurality of second comment information at the third display positions of the plurality of second comment information according to the display priority.
In one possible implementation manner, the display module 2203 is configured to display a target animation, where the target animation is used to embody an effect that the plurality of first comment information moves from the respective second display position to the third display position.
In a possible implementation manner, the display styles of the comment information published by the home terminal user and the comment information published by other users are different.
In a possible implementation manner, the display module 2203 is further configured to pause playing of the target video when the first display position and the first playing time period of the target comment information in the target video are determined according to the target comment information obtained from the target video or according to the setting operation performed on the target comment information;
the display module 2203 is configured to perform any one of:
playing the target video by taking the starting point of a first playing time period as a playing starting point, and in the playing process, executing the step of displaying the target comment information on the first display position within the first playing time period of the target video;
when the target video is played again, the target comment information is displayed at the first display position within the first playing time period of the target video.
The device provided by the embodiment of the invention supports the setting of the display position and the playing time period of the comment information in the video, the display position and the playing time period of the comment information in the video can be determined according to the setting operation for the comment information, and the comment information can be displayed at the display position set in the playing time period of the video after the determination, so that the comment information and the video content are closely linked together, the relevance between the comment information and the target video is strong, the viewpoint of a user can be more accurately expressed, other users can easily link the comment information and the content of the video when watching the comment information, and the idea of a publisher of the comment information can be accurately known, therefore, the display mode can effectively improve the accuracy and the display efficiency of the comment information, and the display effect is good.
It should be noted that: in practical applications, the above function distribution may be completed by different function modules according to needs, that is, the internal structure of the terminal is divided into different function modules to complete all or part of the above described functions. In addition, the comment information display device and the comment information display method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 23 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal 2300 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 2300 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
In general, the terminal 2300 includes: one or more processors 2301, and one or more memories 2302.
The processor 2301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 2301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 2301 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 2301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 2301 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 2302 may include one or more computer-readable storage media, which may be non-transitory. The memory 2302 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. In some embodiments, a non-transitory computer readable storage medium in the memory 2302 is used to store at least one instruction for execution by the processor 2301 to implement the comment information display method provided by the method embodiments of the present invention.
In some embodiments, the terminal 2300 can further optionally include: a peripheral interface 2303 and at least one peripheral. The processor 2301, memory 2302, and peripheral interface 2303 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 2303 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of a radio frequency circuit 2304, a display screen 2305, a camera 2306, an audio circuit 2307, and a power supply 2309.
The peripheral interface 2303 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 2301 and the memory 2302. In some embodiments, the processor 2301, memory 2302, and peripheral interface 2303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2301, the memory 2302, and the peripheral device interface 2303 can be implemented on separate chips or circuit boards, which is not limited by the embodiment.
The Radio Frequency circuit 2304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 2304 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 2304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 2304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 2304 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 2304 may further include NFC (Near Field Communication) related circuits, which are not limited by the present invention.
The display screen 2305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 2305 is a touch display screen, the display screen 2305 also has the ability to capture touch signals on or over the surface of the display screen 2305. The touch signal may be input to the processor 2301 as a control signal for processing. At this point, the display 2305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 2305 may be one, providing a front panel of terminal 2300; in other embodiments, the display screen 2305 can be at least two, respectively disposed on different surfaces of the terminal 2300 or in a folded design; in still other embodiments, the display 2305 may be a flexible display disposed on a curved surface or folded surface of the terminal 2300. Even more, the display screen 2305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display 2305 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 2306 is used to capture images or video. Optionally, camera assembly 2306 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of a terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 2306 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 2307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 2301 for processing or inputting the electric signals into the radio frequency circuit 2304 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different positions of the terminal 2300. The microphone may also be an array microphone or an omni-directional acquisition microphone. The speaker is used to convert electrical signals from the processor 2301 or the radio frequency circuit 2304 into sound waves. The loudspeaker can be a traditional film loudspeaker and can also be a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 2307 may also include a headphone jack.
In some embodiments, terminal 2300 also includes one or more sensors 2310. The one or more sensors 2310 include, but are not limited to: an acceleration sensor 2311, a gyro sensor 2312, a pressure sensor 2313, an optical sensor 2315, and a proximity sensor 2316.
The acceleration sensor 2311 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the terminal 2300. For example, the acceleration sensor 2311 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 2301 may control the display screen 2305 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 2311. The acceleration sensor 2311 may also be used for game or user motion data acquisition.
The gyro sensor 2312 can detect the body direction and the rotation angle of the terminal 2300, and the gyro sensor 2312 can cooperate with the acceleration sensor 2311 to acquire the 3D action of the user on the terminal 2300. The processor 2301 may implement the following functions according to the data collected by the gyro sensor 2312: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization while shooting, game control, and inertial navigation.
Pressure sensor 2313 may be disposed on a side bezel of terminal 2300 and/or on an underlying layer of display screen 2305. When the pressure sensor 2313 is arranged on the side frame of the terminal 2300, a holding signal of a user to the terminal 2300 can be detected, and the processor 2301 performs left-right hand identification or shortcut operation according to the holding signal collected by the pressure sensor 2313. When the pressure sensor 2313 is disposed at the lower layer of the display screen 2305, the processor 2301 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 2305. The operability control comprises at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 2315 is used to collect ambient light intensity. In one embodiment, the processor 2301 may control the display brightness of the display screen 2305 based on the ambient light intensity collected by the optical sensor 2315. Specifically, when the ambient light intensity is high, the display brightness of the display screen 2305 is increased; when the ambient light intensity is low, the display brightness of the display screen 2305 is adjusted to be low. In another embodiment, the processor 2301 may also dynamically adjust the shooting parameters of the camera assembly 2306 according to the intensity of ambient light collected by the optical sensor 2315.
A proximity sensor 2316, also known as a distance sensor, is typically provided on the front panel of the terminal 2300. The proximity sensor 2316 is used to collect a distance between a user and the front surface of the terminal 2300. In one embodiment, the processor 2301 controls the display screen 2305 to switch from the bright screen state to the dark screen state when the proximity sensor 2316 detects that the distance between the user and the front surface of the terminal 2300 is gradually reduced; when the proximity sensor 2316 detects that the distance between the user and the front surface of the terminal 2300 is gradually increased, the display screen 2305 is controlled by the processor 2301 to be switched from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 23 does not constitute a limitation of terminal 2300, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
In an exemplary embodiment, there is also provided a computer-readable storage medium, such as a memory, including instructions executable by a processor to perform the comment information display method in the above-described embodiments. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by hardware related to instructions of a program, and the program may be stored in a computer readable storage medium, where the above mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.
Claims (11)
1. A comment information display method is characterized in that a terminal displays a guide language for guiding an operation mode of comment operation on a target video when executing the method, and the method comprises the following steps:
acquiring target comment information of a target video;
according to the setting operation of the target comment information, a first display position and a first playing time period of the target comment information in the target video are determined, and the determination process of the first playing time period comprises any one of the following steps: when the toggle operation on the playing progress bar or the image sequence of the target video is detected, determining a time period with the time corresponding to the toggle operation as a starting point and the time length as a target time length as a first playing time period of the target comment information; when the shifting operation of the playing time progress bar or the image sequence of the target video is detected, taking two times corresponding to the shifting operation as a starting point and an end point respectively, and determining a time period between the starting point and the end point as a first playing time period of the target comment information; when time input operation is detected, determining a time period with input time as a starting point and time length as a target time length as a first playing time period of the target comment information; when a time input operation is detected, taking two input times as a starting point and an ending point respectively, and determining a time period between the starting point and the ending point as a first playing time period of the target comment information;
displaying the target comment information according to a first display style at the first display position within the first playing time period of the target video;
the method further comprises the following steps:
receiving at least one piece of first comment information of the target video, wherein the at least one piece of first comment information carries a second display area and a second playing time period which are in the target video respectively;
when any one piece of first comment information in the at least one piece of first comment information is comment information issued by a local user, displaying any one piece of first comment information on a second display position of the target video in the second playing time period of any one piece of first comment information according to the first display style; when any one of the first comment information is comment information issued by other users, displaying any one of the first comment information on the second display position of the target video within the second play time period of any one of the first comment information according to a second display style;
when determining that second display positions of a plurality of pieces of first comment information which need to be displayed in any time period are overlapped according to a second playing time period of the at least one piece of first comment information, dispersedly displaying the plurality of pieces of first comment information in any time period of the target video within a target position range based on the second display positions of the plurality of pieces of first comment information, wherein third display positions of the plurality of pieces of first comment information are not overlapped with each other after the first comment information is dispersed;
when it is determined that second display positions of a plurality of pieces of first comment information which need to be displayed in any time period are overlapped and cannot be completely dispersed in a target position range based on the second display positions of the plurality of pieces of first comment information according to a second playing time period of the at least one piece of first comment information, determining a third display position of each piece of first comment information according to at least one of the number of pieces of first comment information which need to be displayed simultaneously in any position, the display remaining time of each piece of first comment information, and a distance between the third display position of each first comment information candidate and the respective second display position; displaying the plurality of first comment information at respective third display positions of the plurality of first comment information within the any time period of the target video.
2. The method according to claim 1, wherein the determining of the first display position comprises any one of:
when the drag operation on the target comment information is detected, displaying the moving process of the target comment information along the operation track based on the operation track of the drag operation, and determining the end position of the drag operation as a first display position of the target comment information;
when the selection operation of any position of the target video is detected, the position corresponding to the selection operation is determined as a first display position of the target comment information.
3. The method according to claim 1, wherein the determining a first display position and a first playing time period of the target comment information in the target video according to the setting operation on the target comment information comprises:
determining a first display position of the target comment information in the target video according to position setting operation on the target comment information;
according to the time setting operation on the target comment information, the time set by the time setting operation is used as a starting point, the disappearance time of the target object on a first display position in a video picture corresponding to the starting point is used as an end point, and the time period between the starting point and the end point is determined as a first playing time period of the target comment information in the target video.
4. The method according to claim 1, wherein before displaying the target comment information on the first display position in the first playback period of the target video, the method further comprises:
based on the first display position, identifying a video picture corresponding to an initial point of the first playing time period of the target video, and determining a target object on the first display position in the video picture corresponding to the initial point;
the displaying the target comment information at the first display position within the first play time period of the target video includes:
when a target object on a first display position in a video picture corresponding to the starting point moves within the first playing time period, displaying that the target comment information moves along with the movement of the target object.
5. The method according to claim 1, wherein after the target comment information is displayed at the first display position in the first playback period of the target video, the method further includes any one of:
displaying a fade-out animation at a first display position of the target video, wherein the fade-out animation is used for showing that the target comment information gradually disappears;
and adjusting the display transparency of the target comment information from the target transparency to 100% according to the target adjustment step length of the display transparency, and displaying the target comment information according to the adjusted display transparency.
6. The method according to claim 1, wherein the dispersedly displaying the plurality of first comment information within a target position range based on a second display position of the plurality of first comment information during the any time period of the target video includes:
and displaying the first comment information published by the local user on a second display position in any time period of the target video, and dispersedly displaying the first comment information published by other users in a target position range taking the second display positions of the plurality of first comment information as the reference.
7. The method according to claim 1, wherein said displaying the plurality of first comment information at respective third display positions of the plurality of first comment information includes:
for a plurality of pieces of second comment information with overlapped third display positions in the plurality of pieces of first comment information, determining display priorities of the plurality of pieces of second comment information according to the at least one item;
and displaying the plurality of second comment information at the third display positions of the plurality of second comment information according to the display priority.
8. The method according to any one of claims 6-7, further comprising:
and displaying a target animation, wherein the target animation is used for embodying the effect that the plurality of pieces of first comment information move from the respective second display positions to the third display positions.
9. A comment information display apparatus characterized by comprising:
the acquisition module is used for acquiring target comment information of a target video;
a determining module, configured to determine, according to a setting operation on the target comment information, a first display position and a first playing time period of the target comment information in the target video, where a determination process of the first playing time period includes any one of: when the toggle operation on the playing progress bar or the image sequence of the target video is detected, determining a time period with the time corresponding to the toggle operation as a starting point and the time length as a target time length as a first playing time period of the target comment information; when the shifting operation of the playing time progress bar or the image sequence of the target video is detected, taking two times corresponding to the shifting operation as a starting point and an end point respectively, and determining a time period between the starting point and the end point as a first playing time period of the target comment information; when time input operation is detected, determining a time period taking input time as a starting point and duration as target duration as a first playing time period of the target comment information; when a time input operation is detected, taking two input times as a starting point and an end point respectively, and determining a time period between the starting point and the end point as a first playing time period of the target comment information;
the display module is used for displaying the target comment information according to a first display style at the first display position in the first playing time period of the target video;
the device further comprises:
the receiving module is used for receiving at least one piece of first comment information of the target video, wherein the at least one piece of first comment information carries a second display area and a second playing time period which are respectively in the target video;
a display module, configured to, when any one of the at least one piece of first comment information is comment information posted by a home user, display the any one piece of first comment information at a second display position of the target video in the second play time period of the any one piece of first comment information according to the first display style; when any one piece of first comment information is comment information issued by other users, displaying any one piece of first comment information on the second display position of the target video in the second playing time period of any one piece of first comment information according to a second display style;
the display module is further configured to, when it is determined that second display positions of a plurality of pieces of first comment information that need to be displayed in any time period overlap according to a second playing time period of the at least one piece of first comment information, dispersedly display the plurality of pieces of first comment information in the any time period of the target video within a target position range based on the second display positions of the plurality of pieces of first comment information, where third display positions of the plurality of pieces of first comment information after the dispersion do not overlap with each other;
the display module is further configured to, when it is determined that second display positions of multiple pieces of first comment information that need to be displayed in any time slot overlap and cannot be completely dispersed within a target position range based on the second display positions of the multiple pieces of first comment information according to a second play time slot of the at least one piece of first comment information, determine a third display position of each piece of first comment information according to at least one of the number of pieces of first comment information that need to be simultaneously displayed in any position, a display remaining time of each piece of first comment information, and a distance between a third display position of each first comment information candidate and the respective second display position; displaying the plurality of first comment information at respective third display positions of the plurality of first comment information within the any time period of the target video;
the display module is further used for displaying a guide language for guiding an operation mode of performing comment operation on the target video.
10. A terminal, comprising one or more processors and one or more memories having stored therein at least one instruction, the instruction being loaded and executed by the one or more processors to implement the operations performed by the comment information display method of any one of claims 1 to 8.
11. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor to perform operations performed by the comment information display method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910371248.1A CN111901658B (en) | 2019-05-06 | 2019-05-06 | Comment information display method and device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910371248.1A CN111901658B (en) | 2019-05-06 | 2019-05-06 | Comment information display method and device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111901658A CN111901658A (en) | 2020-11-06 |
CN111901658B true CN111901658B (en) | 2022-07-22 |
Family
ID=73169479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910371248.1A Active CN111901658B (en) | 2019-05-06 | 2019-05-06 | Comment information display method and device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111901658B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114584824A (en) * | 2020-12-01 | 2022-06-03 | 阿里巴巴集团控股有限公司 | Data processing method and system, electronic equipment, server and client equipment |
CN113038236A (en) * | 2021-03-17 | 2021-06-25 | 北京字跳网络技术有限公司 | Video processing method and device, electronic equipment and storage medium |
CN113194349B (en) * | 2021-04-25 | 2023-06-13 | 腾讯科技(深圳)有限公司 | Video playing method, comment device, equipment and storage medium |
CN113342233B (en) * | 2021-06-30 | 2023-09-19 | 北京字跳网络技术有限公司 | Interaction method, device, computer equipment and storage medium |
CN113542854B (en) * | 2021-07-20 | 2023-01-10 | 北京字跳网络技术有限公司 | Video processing method and device, electronic equipment and storage medium |
CN115767160A (en) * | 2021-09-02 | 2023-03-07 | 北京字跳网络技术有限公司 | Video processing method, device, storage medium and program product |
CN114205666B (en) * | 2021-11-19 | 2024-03-15 | 北京快乐茄信息技术有限公司 | Video image processing method, device, terminal and storage medium |
CN116996699A (en) * | 2022-10-12 | 2023-11-03 | 广州腾讯科技有限公司 | Video comment display method, device, terminal and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104811816A (en) * | 2015-04-29 | 2015-07-29 | 北京奇艺世纪科技有限公司 | Video image object bullet screen marking method, device and system |
CN105872820A (en) * | 2015-12-03 | 2016-08-17 | 乐视云计算有限公司 | Method and device for adding video tag |
CN106156237A (en) * | 2015-04-27 | 2016-11-23 | 北京智谷睿拓技术服务有限公司 | Information processing method, information processor and subscriber equipment |
CN106982387A (en) * | 2016-12-12 | 2017-07-25 | 阿里巴巴集团控股有限公司 | It has been shown that, method for pushing and the device and barrage application system of barrage |
CN107666623A (en) * | 2017-03-07 | 2018-02-06 | 腾讯科技(深圳)有限公司 | The methods of exhibiting and device of broadcast information |
CN108235105A (en) * | 2018-01-22 | 2018-06-29 | 上海硬创投资管理有限公司 | A kind of barrage rendering method, recording medium, electronic equipment, information processing system |
CN109089170A (en) * | 2018-09-11 | 2018-12-25 | 传线网络科技(上海)有限公司 | Barrage display methods and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103797783B (en) * | 2012-07-17 | 2017-09-29 | 松下知识产权经营株式会社 | Comment information generating means and comment information generation method |
CN104967896A (en) * | 2014-08-04 | 2015-10-07 | 腾讯科技(北京)有限公司 | Method for displaying bulletscreen comment information, and apparatus thereof |
TWI552591B (en) * | 2015-08-24 | 2016-10-01 | 晶睿通訊股份有限公司 | Method for tagging an object in video, device and computer-readable medium |
-
2019
- 2019-05-06 CN CN201910371248.1A patent/CN111901658B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106156237A (en) * | 2015-04-27 | 2016-11-23 | 北京智谷睿拓技术服务有限公司 | Information processing method, information processor and subscriber equipment |
CN104811816A (en) * | 2015-04-29 | 2015-07-29 | 北京奇艺世纪科技有限公司 | Video image object bullet screen marking method, device and system |
CN105872820A (en) * | 2015-12-03 | 2016-08-17 | 乐视云计算有限公司 | Method and device for adding video tag |
CN106982387A (en) * | 2016-12-12 | 2017-07-25 | 阿里巴巴集团控股有限公司 | It has been shown that, method for pushing and the device and barrage application system of barrage |
CN107666623A (en) * | 2017-03-07 | 2018-02-06 | 腾讯科技(深圳)有限公司 | The methods of exhibiting and device of broadcast information |
CN108235105A (en) * | 2018-01-22 | 2018-06-29 | 上海硬创投资管理有限公司 | A kind of barrage rendering method, recording medium, electronic equipment, information processing system |
CN109089170A (en) * | 2018-09-11 | 2018-12-25 | 传线网络科技(上海)有限公司 | Barrage display methods and device |
Non-Patent Citations (1)
Title |
---|
基于增强现实技术的虚拟汽车展示系统设计与实现;李经纬;《中国优秀硕士学位论文全文数据库 信息科技辑》;20190115;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111901658A (en) | 2020-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109167950B (en) | Video recording method, video playing method, device, equipment and storage medium | |
CN111901658B (en) | Comment information display method and device, terminal and storage medium | |
CN109600678B (en) | Information display method, device and system, server, terminal and storage medium | |
CN109618212B (en) | Information display method, device, terminal and storage medium | |
CN110267067B (en) | Live broadcast room recommendation method, device, equipment and storage medium | |
CN111065001B (en) | Video production method, device, equipment and storage medium | |
CN109729372B (en) | Live broadcast room switching method, device, terminal, server and storage medium | |
CN110149557B (en) | Video playing method, device, terminal and storage medium | |
CN109451343A (en) | Video sharing method, apparatus, terminal and storage medium | |
CN110139116B (en) | Live broadcast room switching method and device and storage medium | |
CN110290392B (en) | Live broadcast information display method, device, equipment and storage medium | |
CN113965807A (en) | Message pushing method, device, terminal, server and storage medium | |
CN109275013B (en) | Method, device and equipment for displaying virtual article and storage medium | |
CN113411680B (en) | Multimedia resource playing method, device, terminal and storage medium | |
CN111083526B (en) | Video transition method and device, computer equipment and storage medium | |
CN113395566B (en) | Video playing method and device, electronic equipment and computer readable storage medium | |
CN112258241A (en) | Page display method, device, terminal and storage medium | |
CN107896337B (en) | Information popularization method and device and storage medium | |
CN111327916B (en) | Live broadcast management method, device and equipment based on geographic object and storage medium | |
CN109982129B (en) | Short video playing control method and device and storage medium | |
CN111028566A (en) | Live broadcast teaching method, device, terminal and storage medium | |
CN110798327A (en) | Message processing method, device and storage medium | |
CN114245218A (en) | Audio and video playing method and device, computer equipment and storage medium | |
CN111294607B (en) | Live broadcast interaction method and device, server and terminal | |
CN112004134B (en) | Multimedia data display method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |