CN111901658A - Comment information display method and device, terminal and storage medium - Google Patents

Comment information display method and device, terminal and storage medium Download PDF

Info

Publication number
CN111901658A
CN111901658A CN201910371248.1A CN201910371248A CN111901658A CN 111901658 A CN111901658 A CN 111901658A CN 201910371248 A CN201910371248 A CN 201910371248A CN 111901658 A CN111901658 A CN 111901658A
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.)
Granted
Application number
CN201910371248.1A
Other languages
Chinese (zh)
Other versions
CN111901658B (en
Inventor
李明
孟聪
李莹
谢梅华
肖潇
凌刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910371248.1A priority Critical patent/CN111901658B/en
Publication of CN111901658A publication Critical patent/CN111901658A/en
Application granted granted Critical
Publication of CN111901658B publication Critical patent/CN111901658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation 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/4314Generation 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data 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; 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 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 related, the relevance is strong, the viewpoint of a user can be expressed more accurately, and therefore 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

Comment information display method and device, terminal and storage medium
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 the videos, and display the 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 acquired, 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 play 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 in the target video;
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 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, 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 first comment information as a standard, taking the position which does not need to display any piece of first comment information as a third display position of the 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 includes:
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 displaying the target comment information on the first display position in the first playing time period of the target video 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 at 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 according to an embodiment of the present 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
In order 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 can 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 comment information can be displayed by the terminal 101 or the terminal 102.
Fig. 2 is a flowchart of a comment information display method provided in 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, which is not limited in this embodiment of the present invention. Referring to fig. 2, the method may include the steps of:
201. the terminal obtains target comment information of a 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 to start the 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 tack, etc.), fixing, and nailing; so that the bullet cannot move; pressing and holding; 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 can input information in the information input box, and the terminal can 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 manners, and in the first manner, 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 set the operation position of the long press operation on 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 phrase "long press video to post a Pin barrage", where the barrage refers to comment information, and the Pin barrage is a function name for posting 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 described above, the user may click "i know", so that the terminal may display a second guidance phrase that is also used to guide the user to operate on 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 also may issue a Pin barrage", and similarly, the terminal may also display a second icon, which may be used to prompt the user to perform a 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:
step one, when a dragging operation on 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 dragging operation, and the end position of the dragging 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 the first display position of the target comment information.
In the second step, the user setting operation on the position of 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 the embodiment of the present invention, the terminal may provide a function of setting display information of the target comment information, and the above step 202 has described a determination process of the terminal acquiring a first display position of the target comment information in the target video, and besides the first display position, the user may also set a display time period for the target comment information, that is, a first play time period of the target comment information in the target video.
In a possible implementation manner, the operation manner of the setting operation of the target comment information by the user may include multiple types, 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 playing time progress bar or an image sequence 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 picture changes along with a change of the playing time according to the change of the playing time corresponding to the toggle operation, and use the playing time selected when the toggle 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 completed, the terminal may use a play time corresponding to the selected image sequence as a starting point of a first play time period, where the 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 time period may be determined based on the toggle 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. Of course, 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 ends 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 input two 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.
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 above-mentioned step one to step three, in the obtaining process of the target comment information, 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 for guiding an operation manner of performing a comment operation on the target video. For details, 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, in the above step 202 and step 203, in the 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, 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 more accurately expressed, 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 accurately known, 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 and the disappearance time of the target object on the first display position in the video picture corresponding to the starting point as an end point according to the time setting operation on the target comment information, 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.
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 for, 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 in the video picture corresponding to the start point on the first display position. If the target object disappears in the following, the target comment information does not need to be displayed any more, so that 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 the target object disappears, the display of the target comment information is cancelled. 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, the disappearance time of the eyes in the target video is 2 minutes 25 seconds, and the terminal may determine the first playing time period to be 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, and then the terminal may determine a period between the start point set by the user and the 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 step four are described above, and 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 at the first display position in the video picture corresponding to the start point is the eyes 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 eyes disappear, for example, the disappearance time of the eyes in the target video is 2 minutes 25 seconds, and the terminal may determine the first playing time period to be a time period from 2 minutes 10 seconds to 2 minutes 25 seconds.
The first playing time period is determined through the first condition and the second condition, 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 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 from the target video or the setting operation of the target comment information, the terminal may pause the play 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 at 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 manner 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), (b), and (c) 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 starting point of the first playing time period of the target video, and determine a target object on the first display position in the video picture corresponding to the starting point. In step 204, 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, 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 change of the position of the basketball, and further the association relationship between the target comment information and a target object in a target video is clarified, so that 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 of determining the first playing time period based on the first display position shown in the above step 203, 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 the step 204, the terminal may further perform any one of the following steps one and two:
the method comprises the steps that firstly, a terminal displays a fade-out animation on a first display position of a target video, wherein the fade-out animation is used for showing that 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 fade-out animation in other manners, 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%, the terminal may display the target comment information in a variation of 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100%. The above numerical values are merely an example, and both the target transparency and the target adjustment step length may be set by a related technician as required, 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 this 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 from the target video 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 play time period of the target comment information and the second display position and the second play 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 target comment information and the preview display condition of the comment information issued by other users. The following description will be given only by taking as an example that 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 playing time periods of the plurality of comment information included in the at least one comment information overlap, the 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 the home page interface, after the producer clicks the target video, the target video may be displayed, and a "barrage management" button is displayed in the 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, 3 people such as XXX and the like may be displayed at the same time Pin of your video.
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 preview display area can perform preview display on the at least one piece of comment information.
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 change after the producer has performed the display confirmation operation, for example, the button becomes a "cancel tile flip 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 be further 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, the same as the step 204, the terminal acquires the display information of 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 published by the local user, the terminal may display the any piece of comment information on a second display position of the target video in a 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 style, 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 case, 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 dispersedly displayed in the target position range based on the second display positions of the plurality of pieces of first comment information in any time period of the target video, and third display positions of the plurality of pieces of first comment information are not overlapped after dispersion.
In the first case, the second display positions of the multiple pieces of first comment information with overlapping conditions are moved, so that the comment information can be completely dispersed in the target position range, an effect that the comment information does not overlap with each other is achieved, and the comment information can be dispersedly displayed by the terminal.
Case two: 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 at the second display position in any time period of the target video, the first comment information published by other users is dispersedly displayed in a target position range taking the second display positions of the plurality of pieces of first comment information as the standard, and third display positions of the plurality of pieces of first comment information are not overlapped after dispersion.
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 can be dispersedly displayed.
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 pieces of first comment information with the overlapping condition are moved, and the multiple pieces of first comment information cannot be completely dispersed within the range of the target position, and possibly, a part of the first comment information may be completely dispersed, and another part of the first comment information may not be dispersed, and the terminal may measure how the respective third display positions of the multiple pieces of first comment information are determined, so that the display effect of the multiple pieces of second comment information is finally optimal to a certain extent, in one dimension or multiple dimensions of three dimensions among the number of pieces of first comment information that need to be simultaneously displayed at any position, the display remaining time of each piece of first comment information, and the distance between the candidate third display position of each piece of first comment information and the respective second display position.
For example, if the number of first comment information to be simultaneously displayed at any position is considered, it may be considered that the plurality of first comment information are dispersed, but some first comment information still need to be displayed in an overlapping manner, the portion of first comment information may be dispersed again as much as possible, instead of displaying one first comment information at some positions and displaying five first comment information at some positions, and the display effect of the first comment information 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, an optimal scheme may be selected based on the display remaining time of each piece of first comment information when the first comment information still requiring overlapping display is dispersed, 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, other pieces of first comment information may be placed at the display position where the first comment information whose display remaining time is one second is displayed, so that after the display remaining time of the first comment information becomes zero, the other pieces of first comment information may be completely displayed, and thus the display effect achieved is better. In this scheme, based on the remaining time for displaying each piece of first comment information, the scheme in which the total display duration of at least one piece of first comment information is the largest is the optimal scheme among the plurality of dispersion schemes.
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 further 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, which is not limited in the 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 the 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 a situation similar to any of the situations one to three, which is not described herein in detail.
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 the second display positions of the plurality of pieces of first comment information that need to be displayed in any one time period overlap according to the second play time period of the at least one piece of first comment information, for any one piece of first comment information in the plurality of pieces of first comment information, if a position where any piece of first comment information does not need to be displayed is included in the target position range with respect to the second display position of the piece of first comment information, the position where any piece of first comment information does not need to be displayed is taken as the 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 at 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, namely corresponding to the third condition. 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 requirements, 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. Therefore, the first comment information is closer to the viewpoint of the user, 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 the views overlap, an optimal solution of a vacancy can be found for each barrage view, where the vacancy is a position where no first comment information needs to be displayed, in the finding process, a gap (yGap) between views may be taken as 10 as an example, where the 10 may be 10 grids, or may be the number of pixels, which is only an example description, 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 respective third display positions of the plurality of pieces of second comment information in accordance with 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. The spectator can watch the video stream, and input the barrage through pressing or clicking the pin button for a long time, and launch the barrage, this spectator 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 can send the request of launching the barrage 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 the server in a bullet screen editing request mode, and the server can perform corresponding processing based on the editing result and return operation success. If the barrage of the audience is turned, the server can also send a message of 'your barrage 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 barrage of the turned card, of course, the audience can also delete the barrage and send a barrage deletion request to the server, and the server returns a deletion success message after the deletion is successful. When watching the video stream, the audience end or the producer end can send a request for inquiring all turned-card barrages of the current video to the server, the server can send all turned-card barrages of the current video to the audience end or the producer end, the specific data form can be n barrages of 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 certain 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 the BarrageRender of the open source bullet screen library with the most stas on the 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 bullet screen, providing data for the bullet screen engine, providing bullet screen rendering data and the like, and can also provide a bearing page pane view of a bullet screen canvas, wherein the data provided for the bullet screen engine can comprise video playing time, and through the video playing time, accurate shooting and entering of the bullet screen (accurate displaying in a corresponding playing time period), time backflow (used for determining the playing time period or used for 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-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
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 determination module 2202 is configured to perform 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 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 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 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;
when the time input operation is detected, the input two times are respectively taken as a starting point and an end point, 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, the first comment information posted by the local user at the 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, the 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 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.
In one possible implementation, the display module 2203 is configured to display a target animation, where the target animation is configured to embody an effect of the plurality of first comment information moving from the respective second display position to the third display position.
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 a possible implementation manner, the display module 2203 is further configured to pause playing of the target video when the target comment information according to the obtained target video is executed or the setting operation according to the target comment information is executed to determine a first display position and a first playing time period of the target comment information in the target video;
the display module 2203 is configured to perform any one of the following:
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 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 the display effect is good.
It should be noted that: in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the terminal may be divided into different functional 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.
Memory 2302 may include one or more computer-readable storage media, which may be non-transitory. 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 storage 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 may 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, a positioning component 2308, 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 are not limited by this 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 also include NFC (Near Field Communication) related circuits, which are not limited in this disclosure.
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, the display screen 2305 may be one, providing the front panel of the 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 a 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 the 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 monochrome temperature flash lamp or a bicolor 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 pick-up 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 or 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.
The positioning component 2308 is used to locate the current geographic position of the terminal 2300 for navigation or LBS (location based Service). The positioning component 2308 may be a positioning component based on the GPS (global positioning System) of the united states, the beidou System of china, the graves System of russia, or the galileo System of the european union.
Power supply 2309 is used to provide power to various components in terminal 2300. The power source 2309 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 2309 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
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, a fingerprint sensor 2314, 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 at the time of photographing, 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 fingerprint sensor 2314 is used for collecting a fingerprint of the user, and the processor 2301 identifies the user according to the fingerprint collected by the fingerprint sensor 2314, or the fingerprint sensor 2314 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 2301 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 2314 may be disposed on the front, back, or side of the terminal 2300. When a physical key or a vendor Logo is provided on the terminal 2300, the fingerprint sensor 2314 may be integrated with the physical key or the vendor Logo.
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 luminance of the display screen 2305 is increased; when the ambient light intensity is low, the display brightness of the display screen 2305 is turned down. 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 disposed on the front panel of the terminal 2300. The proximity sensor 2316 is used to collect the distance between the user and the front surface of the terminal 2300. In one embodiment, the processor 2301 controls the display 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 decreased; when the proximity sensor 2316 detects that the distance between the user and the front surface of the terminal 2300 is gradually increased, the processor 2301 controls the display 2305 to switch from the breath-screen state to the 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 a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present invention and should not be taken as limiting the invention, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A comment information display method, characterized by comprising:
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 play 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 dragging operation of 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 dragging operation, and determining the end position of the dragging 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.
3. The method according to claim 1, wherein the determining of the first playing time period comprises 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 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 the 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.
4. The method of 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.
5. The method of claim 1, wherein before displaying the target comment information on the first display location during the first playback time period of the target video, the method further comprises:
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 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.
6. 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.
7. The method of claim 1, further comprising:
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;
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.
8. The method of claim 7, wherein the displaying the at least one first comment information at a second display location during a second playback time period of the at least one first comment information in the target video comprises:
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 overlap according to a second playing time period of the at least one piece of first comment information, in any time period of the target video, the plurality of pieces of first comment information are dispersedly displayed within a target position range based on the second display positions of the plurality of pieces of first comment information, and third display positions of the plurality of pieces of first comment information after dispersion do not overlap with each other.
9. The method of claim 7, wherein the displaying the at least one first comment information at a second display location during a second playback time period of the at least one first comment information in the target video comprises:
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 according to a second playing time period of the at least one piece of first comment information, the first comment information posted by a local user is displayed in the second display position in any time period of the target video, the first comment information posted by other users is dispersedly displayed in a target position range taking the second display positions of the plurality of pieces of first comment information as a reference, and third display positions of the plurality of pieces of first comment information are not overlapped with each other after dispersion.
10. The method of claim 7, wherein the displaying the at least one first comment information at a second display location during a second playback time period of the at least one first comment information in the target video comprises:
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 at any position at the same time, 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.
11. The method of claim 10, wherein said displaying the plurality of first comment information at their respective third display positions comprises:
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.
12. The method according to any one of claims 8-11, wherein said displaying the at least one first comment information at a second display position during a second playback time period of the at least one first comment information in the target video comprises:
and displaying a target animation, wherein 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.
13. A comment information display apparatus characterized by comprising:
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 at the first display position in the first playing time period of the target video.
14. 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 12.
15. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement the operations performed by the comment information display method of any one of claim 1 to claim 12.
CN201910371248.1A 2019-05-06 2019-05-06 Comment information display method and device, terminal and storage medium Active CN111901658B (en)

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 true CN111901658A (en) 2020-11-06
CN111901658B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194349A (en) * 2021-04-25 2021-07-30 腾讯科技(深圳)有限公司 Video playing method, commenting method, device, equipment and storage medium
CN113542854A (en) * 2021-07-20 2021-10-22 北京字跳网络技术有限公司 Video processing method and device, electronic equipment and storage medium
CN114205666A (en) * 2021-11-19 2022-03-18 北京快乐茄信息技术有限公司 Video image processing method, device, terminal and storage medium
CN114584824A (en) * 2020-12-01 2022-06-03 阿里巴巴集团控股有限公司 Data processing method and system, electronic equipment, server and client equipment
WO2023273813A1 (en) * 2021-06-30 2023-01-05 北京字跳网络技术有限公司 Interaction method and apparatus, computer device, and storage medium
CN115767160A (en) * 2021-09-02 2023-03-07 北京字跳网络技术有限公司 Video processing method, device, storage medium and program product
WO2024078209A1 (en) * 2022-10-12 2024-04-18 腾讯科技(深圳)有限公司 Method and apparatus for displaying video comments, and terminal and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
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
CN104967896A (en) * 2014-08-04 2015-10-07 腾讯科技(北京)有限公司 Method for displaying bulletscreen comment information, and apparatus thereof
CN105872820A (en) * 2015-12-03 2016-08-17 乐视云计算有限公司 Method and device for adding video tag
US20160309239A1 (en) * 2012-07-17 2016-10-20 Panasonic Intellectual Property Management Co., Ltd. Comment information generating apparatus and comment information generating method
CN106156237A (en) * 2015-04-27 2016-11-23 北京智谷睿拓技术服务有限公司 Information processing method, information processor and subscriber equipment
US20170062014A1 (en) * 2015-08-24 2017-03-02 Vivotek Inc. Method, device, and computer-readable medium for tagging an object in a video
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160309239A1 (en) * 2012-07-17 2016-10-20 Panasonic Intellectual Property Management Co., Ltd. Comment information generating apparatus and comment information generating method
CN104967896A (en) * 2014-08-04 2015-10-07 腾讯科技(北京)有限公司 Method for displaying bulletscreen comment information, and apparatus thereof
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
US20170062014A1 (en) * 2015-08-24 2017-03-02 Vivotek Inc. Method, device, and computer-readable medium for tagging an object in a video
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)

* Cited by examiner, † Cited by third party
Title
李经纬: "基于增强现实技术的虚拟汽车展示系统设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (10)

* Cited by examiner, † Cited by third party
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
CN113194349A (en) * 2021-04-25 2021-07-30 腾讯科技(深圳)有限公司 Video playing method, commenting method, device, equipment and storage medium
CN113194349B (en) * 2021-04-25 2023-06-13 腾讯科技(深圳)有限公司 Video playing method, comment device, equipment and storage medium
WO2023273813A1 (en) * 2021-06-30 2023-01-05 北京字跳网络技术有限公司 Interaction method and apparatus, computer device, and storage medium
CN113542854A (en) * 2021-07-20 2021-10-22 北京字跳网络技术有限公司 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
WO2023030510A1 (en) * 2021-09-02 2023-03-09 北京字跳网络技术有限公司 Video processing method, and device, storage medium and program product
CN114205666A (en) * 2021-11-19 2022-03-18 北京快乐茄信息技术有限公司 Video image processing method, device, terminal and storage medium
CN114205666B (en) * 2021-11-19 2024-03-15 北京快乐茄信息技术有限公司 Video image processing method, device, terminal and storage medium
WO2024078209A1 (en) * 2022-10-12 2024-04-18 腾讯科技(深圳)有限公司 Method and apparatus for displaying video comments, and terminal and storage medium

Also Published As

Publication number Publication date
CN111901658B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN109167950B (en) Video recording method, video playing method, device, equipment and storage medium
CN108769814B (en) Video interaction method, device, terminal and readable 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
CN108391171B (en) Video playing control method and device, and terminal
CN109729411B (en) Live broadcast interaction method and device
CN107908929B (en) Method and device for playing audio data
CN109660817B (en) Video live broadcast method, device and system
CN108419113B (en) Subtitle display method and device
CN109729372B (en) Live broadcast room switching method, device, terminal, server and storage medium
CN111065001B (en) Video production method, device, equipment and storage medium
CN108737897B (en) Video playing method, device, equipment and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN112929687A (en) Interaction method, device and equipment based on live video and storage medium
CN110139116B (en) Live broadcast room switching method and device and storage medium
CN110149557B (en) Video playing method, device, terminal and storage medium
CN109144346B (en) Song sharing method and device and storage medium
CN110533585B (en) Image face changing method, device, system, equipment and storage medium
CN110418152B (en) Method and device for carrying out live broadcast prompt
CN109275013B (en) Method, device and equipment for displaying virtual article and storage medium
CN110290392B (en) Live broadcast information display method, device, equipment and storage medium
CN107896337B (en) Information popularization method and device and storage medium
CN113395566B (en) Video playing method and device, electronic equipment and computer readable 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