CN110891194B - 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
CN110891194B
CN110891194B CN201911241377.5A CN201911241377A CN110891194B CN 110891194 B CN110891194 B CN 110891194B CN 201911241377 A CN201911241377 A CN 201911241377A CN 110891194 B CN110891194 B CN 110891194B
Authority
CN
China
Prior art keywords
comment information
attribute
display
color
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911241377.5A
Other languages
Chinese (zh)
Other versions
CN110891194A (en
Inventor
董永清
孙良木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911241377.5A priority Critical patent/CN110891194B/en
Publication of CN110891194A publication Critical patent/CN110891194A/en
Application granted granted Critical
Publication of CN110891194B publication Critical patent/CN110891194B/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/4316Generation 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 displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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/485End-user interface for client configuration
    • 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

Abstract

The disclosure provides 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 computers. The method comprises the following steps: obtaining comment information to be displayed; calling display configuration information, wherein the display configuration information comprises configuration parameters of at least one attribute, and the display configuration information is used for indicating the display mode of the comment information; setting parameter values matched with the comment information for the configuration parameters of the at least one attribute; and displaying the comment information in the video playing interface according to the set at least one parameter value. The at least one parameter value is set according to the comment information and is associated with the comment information, and the association degree between the display mode of the comment information and the content of the comment information is improved. And moreover, the display mode is determined according to the comment information, so that the display form of a video playing interface is enriched, the interestingness is enhanced, and the flexibility is improved.

Description

Comment information display method and device, terminal and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a comment information display method, apparatus, terminal, and storage medium.
Background
With the development of computer technology, video watching is gradually popularized in daily life of people, and users can publish their opinions in the form of comment information and also can know the opinions of other viewers by looking over comment information published by other viewers in the process of watching videos.
In the related art, the display mode of the comment information in the video playing interface is usually preset, and after the comment information is acquired by the terminal, the comment information is displayed in the video playing interface according to the preset display mode, so that the comment information is single in display mode and poor in interestingness and flexibility.
Disclosure of Invention
The present disclosure provides a comment information display method, apparatus, terminal and storage medium, which can overcome the problems existing in the related art, and the technical scheme is as follows:
according to a first aspect provided by an embodiment of the present disclosure, a comment information display method is provided, where the method includes:
obtaining comment information to be displayed;
calling display configuration information, wherein the display configuration information comprises configuration parameters of at least one attribute, and the display configuration information is used for indicating the display mode of the comment information;
setting a parameter value matched with the comment information for the configuration parameter of the at least one attribute;
and displaying the comment information in a video playing interface according to the set at least one parameter value.
In one possible implementation manner, the at least one attribute includes a speed attribute, the speed attribute is used for indicating a display speed of the comment information, and the setting of the parameter value matching the comment information for the configuration parameter of the at least one attribute includes:
acquiring the number of bytes contained in the comment information;
and setting a speed value matched with the byte number for the configuration parameters of the speed attribute according to the byte number.
In another possible implementation manner, the setting, according to the number of bytes, a speed value that matches the number of bytes for a configuration parameter of the speed attribute includes:
inquiring a preset corresponding relation according to the byte number, and determining a speed value corresponding to a numerical range to which the byte number belongs, wherein the preset corresponding relation comprises a corresponding relation between the numerical range and the speed value;
and setting the speed value corresponding to the numerical range as a parameter value of the configuration parameter of the speed attribute.
In another possible implementation manner, the at least one attribute further includes a duration attribute, where the duration attribute is used to indicate a duration of time that the comment information is in the display state, and the setting of the parameter value matching the comment information for the configuration parameter of the at least one attribute further includes:
calculating the duration matched with the number of the bytes according to the speed value matched with the number of the bytes and the size of a display area in the video playing interface;
and setting the duration as a parameter value of a configuration parameter of the duration attribute.
In another possible implementation manner, the at least one attribute includes a color attribute, the color attribute is used to indicate a display color of the comment information, and the setting of the parameter value matching the comment information for the configuration parameter of the at least one attribute includes:
extracting a preset color keyword from the comment information, and setting a color value corresponding to the color keyword as a parameter value of a configuration parameter of the color attribute; alternatively, the first and second liquid crystal display panels may be,
and extracting the statement features of the comment information, and setting the color values corresponding to the statement features as parameter values of the configuration parameters of the color attributes.
In another possible implementation manner, the displaying the comment information in the video playing interface according to the set at least one parameter value includes:
adding a floating layer on the upper layer of the video playing interface;
and displaying the bullet screen information in the floating layer according to the set at least one parameter value.
In another possible implementation manner, the obtaining of comment information to be displayed includes:
displaying a video playing interface of a video fast application, wherein the video fast application runs based on a native application program interface API provided by an operating system of a terminal;
and when a comment information issuing instruction is received based on the video playing interface, acquiring the input comment information.
According to a second aspect provided by an embodiment of the present disclosure, there is provided a comment information display apparatus including:
the acquisition module is used for acquiring comment information to be displayed;
the calling module is used for calling display configuration information, the display configuration information comprises configuration parameters of at least one attribute, and the display configuration information is used for indicating the display mode of the comment information;
the setting module is used for setting a parameter value matched with the comment information for the configuration parameter of the at least one attribute;
and the display module is used for displaying the comment information in a video playing interface according to the set at least one parameter value.
In one possible implementation, the at least one attribute includes a speed attribute, the speed attribute is used for indicating a display speed of the comment information, and the setting module includes:
the obtaining unit is used for obtaining the number of bytes contained in the comment information;
and the speed setting unit is used for setting a speed value matched with the byte number for the configuration parameter of the speed attribute according to the byte number.
In another possible implementation manner, the speed setting unit is further configured to query a preset corresponding relationship according to the number of bytes, and determine a speed value corresponding to a numerical range to which the number of bytes belongs, where the preset corresponding relationship includes a corresponding relationship between the numerical range and the speed value;
the speed setting unit is further configured to set a speed value corresponding to the numerical range as a parameter value of a configuration parameter of the speed attribute.
In another possible implementation manner, the at least one attribute further includes a duration attribute, and the duration attribute is used to indicate a duration of the comment information in the display state, and the setting module further includes:
the computing unit is used for computing the duration matched with the number of the bytes according to the speed value matched with the number of the bytes and the size of a display area in the video playing interface;
and the duration setting unit is used for setting the duration as a parameter value of the configuration parameter of the duration attribute.
In another possible implementation manner, the at least one attribute includes a color attribute, and the color attribute is used to indicate a display color of the comment information, and the setting module includes:
the color setting unit is used for extracting a preset color keyword from the comment information and setting a color value corresponding to the color keyword as a parameter value of a configuration parameter of the color attribute; alternatively, the first and second electrodes may be,
the color setting unit is used for extracting the statement features of the comment information and setting the color values corresponding to the statement features as the parameter values of the configuration parameters of the color attributes.
In another possible implementation manner, the comment information includes bullet screen information, and the display module includes:
the adding unit is used for adding a floating layer on the upper layer of the video playing interface;
and the bullet screen display unit is used for displaying the bullet screen information in the floating layer according to the set at least one parameter value.
In another possible implementation manner, the obtaining module includes:
the interface display unit is used for displaying a video playing interface of the video fast application, and the video fast application runs based on a native application program interface API provided by an operating system of the terminal;
and the acquisition unit is used for acquiring the input comment information when receiving a comment information issuing instruction based on the video playing interface.
According to a third aspect provided by an embodiment of the present disclosure, a terminal is provided, where the terminal includes:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to:
obtaining comment information to be displayed;
calling display configuration information, wherein the display configuration information comprises configuration parameters of at least one attribute, and the display configuration information is used for indicating the display mode of the comment information;
setting a parameter value matched with the comment information for the configuration parameter of the at least one attribute;
and displaying the comment information in a video playing interface according to the set at least one parameter value.
According to a fourth aspect provided by an embodiment of the present disclosure, 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 operations performed in the comment information display method according to the first aspect.
The comment information display method, the comment information display device, the terminal and the storage medium, which are provided by the embodiments of the present disclosure, acquire comment information to be displayed, call display configuration information including configuration parameters of at least one attribute, set parameter values matching the comment information for the configuration parameters of the at least one attribute, and display the comment information in a video playing interface according to the set at least one parameter value. The at least one parameter value is set according to the comment information and is associated with the comment information, and the association degree between the display mode of the comment information and the content of the comment information is improved. And moreover, the display mode is determined according to the comment information, so that the display form of a video playing interface is enriched, the interestingness is enhanced, and the flexibility is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of displaying review information in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another method of displaying review information in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating a video playback interface in accordance with an exemplary embodiment;
FIG. 4 is a schematic diagram illustrating another video playback interface in accordance with an illustrative embodiment;
FIG. 5 is a schematic diagram illustrating another video playback interface in accordance with an illustrative embodiment;
FIG. 6 is a block diagram illustrating a fast application framework in accordance with an exemplary embodiment;
FIG. 7 is a flowchart illustrating the launching of a fast application in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating a comment information display apparatus according to an exemplary embodiment;
fig. 9 is a block diagram illustrating another comment information display apparatus according to an exemplary embodiment;
fig. 10 is a block diagram illustrating a terminal according to an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, the present disclosure is described in further detail below with reference to the embodiments and the accompanying drawings. The exemplary embodiments and descriptions of the present disclosure are provided herein for illustration of the present disclosure, but not for limitation of the present disclosure.
Fig. 1 is a flowchart illustrating a comment information display method according to an exemplary embodiment, as shown in fig. 1, including the steps of:
in step 101, the terminal acquires comment information to be displayed.
In step 102, the terminal invokes display configuration information, where the display configuration information includes configuration parameters of at least one attribute, and the display configuration information is used to indicate a display mode of the comment information.
In step 103, the terminal sets a parameter value matched with the comment information for the configuration parameter of the at least one attribute.
In step 104, the terminal displays the comment information in the video playing interface according to the set at least one parameter value.
The method provided by the implementation of the disclosure comprises the steps of obtaining comment information to be displayed, calling display configuration information of configuration parameters including at least one attribute, setting parameter values matched with the comment information for the configuration parameters of the at least one attribute, and displaying the comment information in a video playing interface according to the set at least one parameter value. The at least one parameter value is set according to the comment information and is associated with the comment information, and the association degree between the display mode of the comment information and the content of the comment information is improved. And moreover, the display mode is determined according to the comment information, so that the display form of a video playing interface is enriched, the interestingness is enhanced, and the flexibility is improved.
In one possible implementation manner, the at least one attribute includes a speed attribute, the speed attribute is used for indicating a display speed of the comment information, and a parameter value matching the comment information is set for a configuration parameter of the at least one attribute, including:
acquiring the number of bytes contained in the comment information;
and setting a speed value matched with the number of bytes for the configuration parameters of the speed attribute according to the number of bytes.
In another possible implementation manner, setting a speed value matching the number of bytes for the configuration parameter of the speed attribute according to the number of bytes includes:
inquiring a preset corresponding relation according to the byte number, and determining a speed value corresponding to a numerical range to which the byte number belongs, wherein the preset corresponding relation comprises a corresponding relation between the numerical range and the speed value;
and setting the speed value corresponding to the numerical range as a parameter value of the configuration parameter of the speed attribute.
In another possible implementation manner, the at least one attribute further includes a duration attribute, where the duration attribute is used to indicate a duration of the comment information in the display state, and a parameter value matching the comment information is set for a configuration parameter of the at least one attribute, and the method further includes:
calculating the duration matched with the number of bytes according to the speed value matched with the number of bytes and the size of a display area in a video playing interface;
the duration is set to the parameter value of the configuration parameter of the duration attribute.
In another possible implementation manner, the at least one attribute includes a color attribute, the color attribute is used to indicate a display color of the comment information, and a parameter value matching the comment information is set for a configuration parameter of the at least one attribute, including:
extracting a preset color keyword from the comment information, and setting a color value corresponding to the color keyword as a parameter value of a configuration parameter of a color attribute; alternatively, the first and second electrodes may be,
and extracting the statement features of the comment information, and setting the color values corresponding to the statement features as the parameter values of the configuration parameters of the color attributes.
In another possible implementation manner, the comment information includes bullet screen information, and the displaying of the comment information in the video playing interface according to the set at least one parameter value includes:
adding a floating layer on the upper layer of a video playing interface;
and displaying bullet screen information in the floating layer according to the set at least one parameter value.
In another possible implementation manner, the obtaining of comment information to be displayed includes:
displaying a video playing interface of the video fast application, wherein the video fast application runs based on a native application program interface API provided by an operating system of the terminal;
and when receiving a comment information issuing instruction based on the video playing interface, acquiring the input comment information.
Fig. 2 is a flowchart illustrating a comment information display method according to an exemplary embodiment, as shown in fig. 2, including the steps of:
in step 201, the terminal acquires comment information to be displayed.
In the process of watching the video, the user can make own comments on the currently played video and can also check the comments made by other users in the video playing interface. And the comments of the user can be displayed in the video playing interface in the form of comment information. The embodiment of the present disclosure is described only by taking the example of displaying comment information in a video playing interface.
Firstly, the terminal acquires comment information to be displayed.
The terminal can be a mobile phone, a computer, a tablet computer and other equipment. The operating system of the terminal can run various types of quick applications, and different functions such as video quick application, online shopping quick application, electronic payment quick application, take-out quick application and the like are realized based on different quick applications.
The method for the terminal to acquire the comment information to be displayed comprises at least one of the following steps:
(1) the terminal acquires comment information issued by a current user as comment information to be displayed:
in this way, the process of the terminal acquiring the comment information to be displayed includes: the method comprises the steps that a terminal displays a video playing interface, the video playing interface comprises an input field and a confirmation option, when the terminal detects a trigger operation on the confirmation option, information in the input field is obtained, and the information is determined as comment information to be displayed. The trigger operation may be a click operation, a double click operation, a long press operation, or the like.
For example, referring to fig. 3, when the terminal detects a click operation on the confirmation option in the video playing interface, the text information "perform well | entered by the user in the input field is obtained! ", the text message is" just performed "! "is determined as comment information to be displayed.
In one possible implementation manner, the terminal displays a video playing interface, and the video playing interface includes at least one preset candidate comment information. When the terminal detects the selection operation of at least one piece of candidate comment information, the at least one piece of candidate comment information is obtained, and the at least one piece of candidate comment information is determined as comment information to be displayed.
For example, referring to fig. 4, a video playing interface of the terminal includes three preset candidate comment information: "perform well! "," like one ", and" continue to try. When the terminal detects that the game is just performed! And when the two candidate comment information are selected, determining the two candidate comment information as the comment information to be displayed.
In another possible implementation manner, referring to fig. 5, the terminal displays a video playing interface, where the video playing interface includes not only at least one preset candidate comment information, but also a confirmation option. When the terminal detects the trigger operation of the confirmation option, at least one piece of candidate comment information in a selected state in the video playing interface is obtained, and the at least one piece of candidate comment information is determined as comment information to be displayed.
In another possible implementation manner, the operating system of the terminal provides at least one fast application, and the at least one fast application at least comprises a video fast application with a video playing function. The terminal can play the video based on the video playing interface of the video fast application, and can also display a plurality of options related to the currently played video in the video playing interface, such as a playing option, a pause option, an exit option, a projection option, a bullet screen setting option, and the like. The user can publish comment information based on the video express application, and one or more comment information published by the user can be displayed in the video playing interface.
The terminal acquiring the comment information to be displayed may include: and the terminal displays a video playing interface of the video quick application, and acquires the input comment information when receiving a comment information issuing instruction based on the video playing interface. The video cache application runs based on a native application program interface API provided by an operating system of the terminal.
Regarding the comment information to be displayed, in a possible implementation manner, the comment information to be displayed only includes comment information acquired by the terminal, and may be information acquired by the terminal from an input field in the video playing interface, at least one piece of candidate comment information in a selected state in the video playing interface, or information acquired by the terminal through other manners.
In another possible implementation manner, the terminal logs in based on the user identifier, displays a video playing interface corresponding to the user identifier, acquires the comment information and the currently logged user identifier when receiving a comment information issuing instruction based on the video playing interface, and determines the comment information and the currently logged user identifier together as the comment information to be displayed. The user identifier is used to determine a unique user, and may be an ID number, a login account, or a nickname of the user.
For example, the terminal logs in based on the ID number "ID 1234" and acquires the comment information "true on play! "at this time, the comment information to be displayed determined by the terminal is" ID 1234: show good! ".
In the above possible implementation manners, an operation detected by the terminal based on the video playing interface may be regarded as an operation executed by the current user, and comment information acquired based on the operation may be regarded as comment information issued by the current user.
(2) The terminal acquires comment information issued by other users as comment information to be displayed:
the comment information published by other users can be displayed in the video playing interface, so that the terminal can also acquire the comment information published by other users as the comment information to be displayed.
In this manner, the process of the terminal acquiring the comment information to be displayed may include: when any terminal acquires comment information issued by a user based on a video playing interface, the comment information is sent to a server, the server receives the comment information, and the comment information is stored. Subsequently, when any terminal plays the video, the server sends the stored comment information to the terminal, and the terminal displays the comment information based on a video playing interface.
In one possible implementation manner, when any terminal sends the comment information to the server, the current playing progress of the video is also sent to the server. And the server stores the comment information and the corresponding playing progress. Subsequently, when any terminal plays the video, the server sends the stored comment information and the corresponding playing progress to the terminal, and the terminal displays the comment information based on a video playing interface.
For example, when the video is played for 11 minutes 23 seconds, the terminal 1 acquires the comment information C1 issued by the user, and sends the comment information C1 and the corresponding play progress for 11 minutes 23 seconds to the server. When the video is played for 13 minutes and 33 seconds, the terminal 2 acquires the comment information C2 issued by the user, and sends the comment information C2 and the corresponding playing progress for 13 minutes and 33 seconds to the server. When the terminal 3 plays the video, the server sends the comment information C1 and the corresponding play progress of 11 minutes 23 seconds, and the comment information C2 and the corresponding play progress of 13 minutes 33 seconds to the terminal 3, when the terminal 3 plays the video to 11 minutes 23 seconds, the comment information C1 is displayed, and when the terminal 3 plays the video to 13 minutes 33 seconds, the comment information C2 is displayed.
The terminal can also obtain the comment information issued by the user in other modes, and the obtaining process is not described herein any more.
It should be noted that, for any terminal, the comment information acquired by the terminal may be comment information currently issued by any user viewing the video, or history comment information issued by a history user viewing the video before. And under the condition that the comment information is historical comment information, at least one piece of historical comment information is stored in advance by the server or the terminal, and when the terminal plays the video, the at least one piece of comment information is displayed based on the current video playing interface.
In step 202, the terminal invokes display configuration information.
After the terminal acquires the comment information to be displayed, the display mode of the comment information can be set, and the comment information can be displayed subsequently according to the set display mode.
Therefore, after the terminal acquires the comment information to be displayed, the display configuration information is called, and the display configuration information comprises configuration parameters of at least one attribute and is used for indicating the display mode of the comment information. The configuration parameter of the at least one attribute may include at least one of a configuration parameter of a speed attribute, a configuration parameter of a color attribute, a configuration parameter of a duration attribute, and a configuration parameter of a location attribute, and may further include configuration parameters of other attributes, which is not specifically limited herein.
In a possible implementation manner, when the display configuration information is called, the configuration parameter of at least one attribute included in the display configuration information may have an initialized parameter value, where the initialized parameter values may all be 0, may also be a middle value of a value range of the configuration parameter, and may also be an average value of the configuration parameter. The initialized parameter value may also be a last set parameter value if the display configuration information is called.
In step 203, the terminal sets a parameter value matched with the comment information for the configuration parameter of the at least one attribute.
After the terminal calls the display configuration information, parameter values can be set for the configuration parameters of at least one attribute included in the display configuration information, so that the display mode of the comment information can be set.
The process of setting the parameter value matched with the comment information for the configuration parameter of the at least one attribute may include at least one of:
(1) the at least one attribute includes a speed attribute:
the speed attribute is used for indicating the display speed of the comment information, and the terminal sets a parameter value matched with the comment information for the configuration parameter of at least one attribute, and the method comprises the following steps: and the terminal acquires the number of bytes contained in the comment information, and sets a speed value matched with the number of bytes for the configuration parameters of the speed attribute according to the number of bytes.
Regarding the process of setting the speed value matched with the byte number for the configuration parameter of the speed attribute according to the byte number, in a possible implementation manner, the terminal queries a preset corresponding relationship according to the byte number, and determines the speed value corresponding to the numerical range to which the byte number belongs. And setting the speed value corresponding to the numerical range as a parameter value of the configuration parameter of the speed attribute.
The preset corresponding relation comprises a corresponding relation between a numerical range and a speed value. Moreover, the larger the number of bytes is, the larger the speed value corresponding to the number of bytes is, the faster the display speed of the comment information is, and the smaller the number of bytes is, the slower the display speed of the comment information is as the speed value corresponding to the number of bytes is.
For example, the preset correspondence includes three display speeds of slow speed, medium speed, and fast speed, where the slow speed is 1cm/s (centimeter/second), the medium speed is 3cm/s, and the fast speed is 5 cm/s. And the numerical range corresponding to the slow speed is 0-5 bytes, the numerical range corresponding to the medium speed is 6-10 bytes, and the numerical range corresponding to the fast speed is more than 10 bytes. When the number of bytes contained in the comment information is 8 bytes, according to the preset corresponding relation, the speed value corresponding to the 8 bytes is determined to be 3cm/s, and the 3cm/s is set as the speed value of the speed attribute, so that the speed value is matched with the comment information to be displayed.
(2) The at least one attribute includes a duration attribute:
the duration attribute is used for indicating the duration of the comment information in the display state, and under the condition that the speed value and the display area of the comment information are known, the duration is the duration of the comment information in the display state in the display area when the comment information is dynamically displayed in the display area according to the speed value.
The terminal sets parameter values matched with the comment information for the configuration parameters of at least one attribute, and the parameter values comprise: the terminal obtains the number of bytes contained in the comment information to be displayed, and determines a speed value matched with the number of bytes according to the number of bytes. And calculating the duration matched with the number of the bytes according to the speed value matched with the number of the bytes and the size of a display area in the video playing interface, and setting the duration as a parameter value of a configuration parameter of the duration attribute.
The comment information is in a display state, namely the comment information is in the display state in the period from the moment when the comment information appears in a display area in a video playing interface to the moment when the comment information completely disappears in the display area.
For example, the number of bytes included in comment information to be displayed, which is obtained by the terminal, is 8 bytes, if it is known from the preset corresponding relationship that the speed value matched with the number of bytes is 3cm/s, and the size of the display area in the video playing interface is 18cm, the duration time can be calculated to be 6s according to the speed value and the size of the display area, and the duration time representing that the comment information is in the display state in the display area of the video playing interface is 6 s.
(3) The at least one attribute includes a color attribute:
the color attribute is used to indicate a display color of the comment information.
In one possible implementation manner, the terminal sets a parameter value matched with the comment information for the configuration parameter of the at least one attribute, and the method includes: the terminal extracts preset color keywords from the comment information to be displayed, and sets color values corresponding to the color keywords as parameter values of configuration parameters of color attributes.
In another possible implementation manner, in order to accurately obtain the display color of the comment information, the comment information needs to be analyzed. Therefore, after the terminal acquires the comment information to be displayed, feature extraction is performed on the comment information to obtain statement features, the content of the comment information is represented by the statement features, and color values corresponding to the statement features are set as parameter values of configuration parameters of color attributes.
The sentence characteristics can include semantic characteristics and structural characteristics of the comment information, the semantic characteristics are used for representing the meaning of the comment information, and the structural characteristics are used for representing the sentence structure adopted by the comment information.
When the sentence characteristics are extracted, the terminal can perform word segmentation on the comment information to obtain at least one word group contained in the comment information, and the at least one word group is converted into at least one corresponding word vector, and at this time, the at least one word vector can be used as the sentence characteristics of the comment information. When the comment information is segmented, a conditional random field algorithm or other segmentation algorithms can be adopted, and for each phrase, a preset conversion algorithm can be adopted to convert the phrase into a word vector, so as to obtain the word vector corresponding to the phrase. The predetermined translation algorithm may be a word2vec algorithm or other algorithm.
The statement features obtained by feature extraction of the comment information in the embodiment of the disclosure include color semantic features and structural features, and the terminal can determine corresponding color values according to the statement features.
In a possible implementation manner, the terminal may set a preset database, and store a corresponding relationship between the color semantic features and the color values in the preset database. After the terminal acquires the statement features, querying a preset database according to the color semantic features contained in the statement features, and determining the color values corresponding to the color semantic features. And then, the terminal determines whether to set the color value as a parameter value of a configuration parameter of the color attribute according to the structural feature in the statement feature.
For example, if the comment information is "the girl's red skirt is good and beautiful", the color value corresponding to the keyword "red" may be set as the parameter value of the configuration parameter of the color attribute by extracting features and querying the preset database. If the comment information is that the skirt of the female owner is not red, the color key word "red" is extracted, but the color value corresponding to the color key word "red" is not set as the parameter value of the configuration parameter of the color attribute.
In another possible implementation manner, the terminal may only consider the color semantic features, but not the structural features in the comment information, and at this time, only the color values corresponding to the color semantic features need to be set as parameter values of the configuration parameters of the color attributes.
For example, the comment information is that "the skirt of the female owner is not red", and a color value corresponding to the color keyword "red" can be set as a parameter value of the configuration parameter of the color attribute by extracting features and querying a preset database.
It should be noted that, if a color semantic feature is not extracted from the comment information, or it is not necessary to set a color value corresponding to the extracted color semantic feature as a parameter value of the configuration parameter of the color attribute, a default color value may be set for the configuration parameter of the color attribute. The color corresponding to the default color value may be white, yellow, or other colors capable of clearly distinguishing video and comment information.
(4) The at least one attribute includes a location attribute:
the position attribute is used for indicating the display position of the comment information, the terminal can acquire the display position and the disappearance position of the comment information, and coordinate values matched with the display position and the disappearance position are set for configuration parameters of the position attribute according to the display position and the disappearance position.
In a possible implementation manner, the terminal may establish a coordinate system based on the video playing interface, and set a first coordinate value corresponding to the display position and a second coordinate value corresponding to the disappearing position of the comment information for the configuration parameter of the position attribute. The first coordinate value represents a coordinate corresponding to a position where the comment information appears in the display area, and the second coordinate value represents a coordinate corresponding to a position where the comment information completely disappears in the display area.
In a possible implementation manner, the video playing interface includes a display area, the display area has a boundary and a size, and the terminal may use any vertex of the display area as an origin to establish a coordinate system of the display area. Considering that the comment information appears from one end of the display area and disappears from the other end after being dynamically displayed in the display area, a coordinate system is established with the end where the comment information appears as a zero point of the abscissa and the positive direction of the abscissa pointing to the end where the comment information disappears. The first coordinate value of the comment information is 0 and the second coordinate value is the length of the display area.
Or, considering that the comment information has a certain length, a certain display area needs to be occupied in the display process. Therefore, in order to ensure that the comment information can be completely displayed, the terminal calculates the sum of the lengths of the comment information and the display area, sets the first coordinate value to 0, and sets the second coordinate value to any value greater than or equal to the sum of the lengths.
For example, when comment information starts to be displayed in the display area at 0%, comment information completely disappears from the display area at 100%, and when the length of the comment information is 10cm and the length of the display area is 190cm, the abscissa corresponding to 0% is 0 and the abscissa corresponding to 100% is 200 cm.
It should be noted that the above-mentioned situations may occur individually or randomly, that is, the at least one attribute may include at least one of a speed attribute, a duration attribute, a color attribute and a location attribute. For example, the at least one attribute includes a speed attribute and a duration attribute, and thus setting a parameter value matching the comment information for the configuration parameter of the at least one attribute includes: and acquiring a speed value and duration matched with the comment information to be displayed, setting the speed value as a parameter value of the configuration parameter of the speed attribute, and setting the duration as a parameter value of the configuration parameter of the duration attribute.
In addition, besides the listed attributes, at least one attribute included in the display configuration information may also include other attributes, which are not described herein again.
In step 204, the terminal adds a floating layer on the upper layer of the video playing interface, and displays the comment information in the floating layer according to the set at least one parameter value.
And after the terminal sets the matched parameter value for the configuration parameter of the at least one attribute included in the display configuration information according to the comment information, the display mode of the comment information can be determined according to the set at least one parameter value. Subsequently, the terminal may display the comment information in the video playing interface according to the set at least one parameter value, where a display mode of the comment information is matched with the at least one parameter value.
Because the manner of directly displaying the comment information in the video playing interface may cause that there is no correlation between the currently played video and the comment information, in a possible implementation manner, the displaying, by the terminal, the comment information in the video playing interface according to the set at least one parameter value may include: and after setting a parameter value for the configuration parameter of at least one attribute, the terminal displays the comment information in the floating layer according to the set at least one parameter value.
For example, the at least one attribute includes a speed attribute and a duration attribute, the terminal displays a floating layer on the upper layer of the video playing interface according to a parameter value set for the configuration parameter of the duration attribute, and displays comment information in the floating layer according to a speed value set for the configuration parameter of the speed attribute.
In one possible implementation manner, the comment information includes barrage information, and the barrage information refers to a comment subtitle displayed in the video playing interface. The terminal displays comment information in a video playing interface according to the set at least one parameter value, and the comment information display method comprises the following steps: and adding a floating layer on the upper layer of the video playing interface by the terminal, and displaying the bullet screen information in the floating layer according to the set at least one parameter value.
In another possible implementation manner, the terminal displays the comment information and the user identifier for publishing the comment information in a floating layer added to the upper layer of the video playing interface according to the set at least one parameter value.
Regarding the video playing interface, in one possible implementation manner, the video playing interface may include a display area and a non-display area, the display area is used for playing the video, and the non-display area is used for playing other information besides the video. The terminal adds the floating layer on the upper strata of video playing interface, includes: the terminal determines the size of the display area, and adds a floating layer on the upper layer of the display area, wherein the size of the floating layer is matched with the size of the display area. The size of the floating layer may be equal to or larger than the size of the display area.
In a possible implementation manner, considering that the comment information has a certain length, a certain display area needs to be occupied in the display process, and the floating layer is used for displaying the comment information. Therefore, in order to ensure that the comment information can be completely displayed, the size of the floating layer may be equal to the sum of the length of the comment information and the length of the display area, or the size of the floating layer may be larger than the sum of the length of the comment information and the length of the display area.
The method provided by the embodiment of the disclosure includes the steps of obtaining comment information to be displayed, calling display configuration information of configuration parameters including at least one attribute, setting parameter values matched with the comment information for the configuration parameters of the at least one attribute, and displaying the comment information in a video playing interface according to the set at least one parameter value. The at least one parameter value is set according to the comment information and is associated with the comment information, and the association degree between the display mode of the comment information and the content of the comment information is improved. And moreover, the display mode is determined according to the comment information, so that the display form of a video playing interface is enriched, the interestingness is enhanced, and the flexibility is improved.
The method provided in the above embodiment may be implemented by adding a component to the terminal. In a possible implementation manner, the terminal adds an information display component, sets the display configuration information as the attribute of the information display component, and sets the parameter value of the attribute of the information display component, so as to realize the effect of displaying the comment information based on the information display component.
For example, the terminal adds a Div component as an information display component, the Div component has at least one class (attribute of the Div component), and the at least one class is used as a configuration parameter for displaying at least one attribute of the configuration information. And embedding a text component (text component) in the Div component, wherein the text component is used for acquiring text information and displaying the acquired text information. The terminal obtains comment information to be displayed based on the text component, determines a display mode of the comment information by performing parameter setting on at least one class of the Div component, and displays the comment information based on the text component and the display mode.
Or, the Bulletlist component can be used as an information display component, the Bulletlist component has at least one Bullet item (attribute of the Bulletlist component), and the at least one Bullet item is used as a configuration parameter of at least one attribute of display configuration information.
In a possible implementation manner, an object pool may be further stored in the terminal, a plurality of information display components are added to the object pool, and each of the plurality of information display components may be used for displaying comment information. When comment information to be displayed is acquired, the terminal can randomly select one information display component from any information display component in an idle state, set a parameter value of the attribute of the selected information display component according to the comment information, and display the comment information based on the information display component with the set parameter value.
For any information display component, after the previous comment information is displayed, the parameter value set according to the previous comment information can be deleted, when the next comment information to be displayed is obtained, the parameter value is reset according to the comment information, and the comment information is displayed based on the currently set parameter value. Therefore, the plurality of information display components can be reused, the memory resources occupied in the terminal can be reduced, and the running speed of the terminal is improved. In addition, through a plurality of information display components, the effect of simultaneously displaying a plurality of pieces of comment information can be realized.
The fast Application related in the embodiment of the present disclosure is a novel Application form of a hardware platform based on a terminal, and can run based on a native API (Application Programming Interface) provided by an operating system.
The fast application is developed by adopting a unified standard, and is rendered as native without installation, namely, the fast application is used as point, and has native application experience (performance, system integration, interaction and the like). The framework of the fast application can be deeply integrated in an operating system, can operate at the level of the operating system, and realizes seamless connection with other application services. The developer can operate on different types of terminals by one-time development. The method is applied to the layers of development specification, capability access, developer service and the like at the beginning of birth, realizes standardization and unification among terminal manufacturers, and greatly reduces the adaptation cost of developers.
Compared with the traditional application, the quick application has the following characteristics:
instant: the user can use the method point by point, and the user does not need to wait;
everywhere (Everywhere visible): deeply integrated with a use scene of a terminal, and everywhere has an entrance, such as a search engine, an intelligent assistant, intelligent recommendation, an application market, a browser and the like;
efficiency: the quasi-front-end development mode is high in efficiency.
Fig. 6 is a block diagram illustrating a fast application framework 600 according to an embodiment of the present disclosure, the fast application framework including: a scenario portal 620, a fast application engine 640, and Operating System (OS) infrastructure and hardware 660.
The scene portal 620 includes at least one of a negative one-screen, a global search, a lock screen, a desktop, an application marketplace, a browser, and a two-dimensional code. The appearance of the scene portal 620 may be in the form of a page and a card.
The fast application engine 640 includes a front end framework 641, a generic scenario 642, a lightweight scenario 643, an embedded SDK (Software Development Kit) 644, and a business access 645.
The front-end framework 641 includes a Model-View-Model (MVVM), a Virtual-Document Object Model (V-DOM), a route, an Application Programming Interface (API), a service API, a User Interface (UI) component, a route, and the like;
the general scene 642 and the lightweight scene 643 include JavaScript (a programming language) engine, standard rendering engine, super-speed rendering engine, end-cloud-core acceleration, security mechanism, emerging scenes such as AI (Artificial Intelligence), AR (Augmented Reality), and the like, system integration (application management, rights management, and the like);
service access 645 includes push, account/payment, etc.
OS infrastructure and hardware 660 includes: graphics libraries, native controls, system services, and GPUs (Graphics Processing units)/NPUs (Neural-network Processing units), among others.
From the execution path level, there are a standard HTML (Hyper Text Markup Language) 5 mode to support a general Web scene, and a JS (JavaScript, a programming Language) and Native (Native) mode to support a lighter and faster experience.
The architecture of the fast application engine will be briefly described in 3 aspects below.
1) Application development:
the design idea of the mainstream front-end framework is used for reference and integrated by the front-end design of the quick application: the application is built in a componentized mode, an MVVM design mode taking data binding as a core is adopted, the performance is improved in a V-DOM mode, and meanwhile, a simple and clear template of a class Vue (a virtual machine shelling engine) is selected. Meanwhile, the layout aspect is correspondingly simplified. From the perspective of new application form, native UI mapping and capability opening, a set of components and API specifications need to be defined, and the rapid development application is convenient to develop.
2) System integration:
fast applications, as a complete application modality, can be deeply integrated with the system, run as native applications, and interact with the system. There are currently two forms of rapid application: a full screen mode independent application mode and an embedded mode card mode. Under the independent application form, the experience of the user is similar to a native application program, and the method has complete life cycle management, page management, routing and the like. The fast application can be hosted in the Activity of android, the page is hosted in Fragment, and the instance is managed and controlled through independent background Service. The card form is another form, and the embedded SDK (Software Development Kit) is embedded into each corner of the system as an independent local control, so that dynamic content is displayed in a light weight manner. In the aspect of security isolation, better security guarantee can be achieved through a sandbox mechanism, process isolation and authority control in combination with the support of an operating system layer.
3) Performance experience and emerging scenes, such as JavaScript engine, rendering engine, end-cloud-core acceleration, emerging scenes, and the like:
in the aspects of interactive experience, resource overhead, stability and the like, the fast application realizes effective combination of a front-end development mode, native rendering and platform capability by introducing a native rendering path.
Different from cross-platform frameworks of other application layers, the operating system rooted in the terminal is quickly applied, and deep integration of the slave chip, the operating system and the cloud can be realized. By taking the acceleration of the starting performance as an example by combining the end and the cloud, the optimization of the network link layer can greatly accelerate the starting speed of the application through the cooperative rendering of the cloud and the end. Meanwhile, the special capability of the hardware platform can be integrated, and the experience is further improved. For example, the computing power of an NPU (Neural-network Processing Unit, network processor) may be integrated into a fast application engine in combination with a terminal AI chip, so that an AI scene (face recognition, image super-resolution, and the like) may be executed at a low latency and high performance on an end side, and meanwhile, the privacy of a user is effectively protected, and a bandwidth is saved.
Fig. 7 is a flowchart illustrating a start-up of a fast application according to an embodiment of the present disclosure, including:
1) when the system is started for the first time, a user clicks a program package for triggering downloading of the fast application, and meanwhile, initialization related work of the fast application engine is carried out. After the whole fast application program package is downloaded and verified, the JavaScript file of the first page to be displayed is loaded and rendered.
2) The page rendering comprises JavaScript loading, execution of page and JavaScript frame logic, layout operation and drawing of the native UI control. When the logic in the page is executed, one or more network requests are generated, and the data returned by the network requests drive the page to be rendered again until the content of the page on the first screen is completely displayed.
The network request, JavaScript execution, typesetting and drawing are not in simple serial relation, but are parallelly interwoven, thereby affecting the rendering performance of the whole page and being strongly related to the logic of page design, the network condition and the running state of a terminal.
Due to the specificity of fast applications, fast applications are expected to perform more tasks and perform more functions. At present, while the function of the fast application is gradually improved, the embodiment of the present disclosure provides a new function of the video fast application, and the comment information is displayed by using the new function. In the comment information display method provided by the embodiment, the display mode of the comment information is determined according to the content of the comment information, and the comment information display modes of different contents are different, so that the comment information is rich and diverse in display mode, the interestingness is enhanced, the flexibility is improved, and the relevance between the display mode of the comment information and the content of the comment information is also improved.
Fig. 8 is a block diagram illustrating a comment information display apparatus according to an exemplary embodiment, the apparatus including, as shown in fig. 8:
an obtaining module 801, configured to obtain comment information to be displayed;
the calling module 802 is configured to call display configuration information, where the display configuration information includes configuration parameters of at least one attribute, and the display configuration information is used to indicate a display mode of the comment information;
a setting module 803, configured to set a parameter value matching the comment information for the configuration parameter of the at least one attribute;
and the display module 804 is configured to display the comment information in the video playing interface according to the set at least one parameter value.
In one possible implementation manner, referring to fig. 9, the at least one attribute includes a speed attribute, where the speed attribute is used to indicate a display speed of the comment information, and the setting module 803 includes:
an obtaining unit 8031, configured to obtain the number of bytes included in the comment information;
the speed setting unit 8032 is configured to set a speed value matching the number of bytes for the configuration parameter of the speed attribute according to the number of bytes.
In another possible implementation manner, the speed setting unit 8032 is further configured to query a preset corresponding relationship according to the number of bytes, and determine a speed value corresponding to a numerical range to which the number of bytes belongs, where the preset corresponding relationship includes a corresponding relationship between the numerical range and the speed value;
the speed setting unit 8032 is further configured to set a speed value corresponding to the range of values as a parameter value of a configuration parameter of the speed attribute.
In another possible implementation manner, the at least one attribute further includes a duration attribute, where the duration attribute is used to indicate a duration of the comment information in the display state, and the setting module 703 further includes:
the calculating unit 8033 is configured to calculate a duration matching the number of bytes according to the speed value matching the number of bytes and the size of the display area in the video playing interface;
a duration setting unit 8034, configured to set the duration as a parameter value of the configuration parameter of the duration attribute.
In another possible implementation manner, the at least one attribute includes a color attribute, where the color attribute is used to indicate a display color of the comment information, and the setting module 803 includes:
the color setting unit 8035 is configured to extract a preset color keyword from the comment information, and set a color value corresponding to the color keyword as a parameter value of a configuration parameter of the color attribute; alternatively, the first and second electrodes may be,
the color setting unit 8035 is configured to extract a statement feature of the comment information, and set a color value corresponding to the statement feature as a parameter value of a configuration parameter of the color attribute.
In another possible implementation manner, the comment information includes bullet screen information, and the displaying module 804 includes:
an adding unit 8041, configured to add a floating layer on an upper layer of the video playing interface;
and the bullet screen display unit 8042 is used for displaying bullet screen information in the floating layer according to the set at least one parameter value.
In another possible implementation manner, the obtaining module 801 includes:
the interface display unit 8011 is configured to display a video playing interface of a video express application, where the video express application operates based on a native application program interface API provided by an operating system of a terminal;
the acquiring unit 8012 is configured to acquire the input comment information when a comment information issuing instruction is received based on the video playing interface.
Fig. 10 is a block diagram of a terminal provided in an embodiment of the present disclosure. For example, the terminal 1000 can be used for executing steps executed by the terminal in the comment information display method provided in the above-described embodiments. Referring to FIG. 10, terminal 1000 can include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
Processing component 1002 generally controls overall operation of terminal 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
Memory 1004 is configured to store various types of data to support operation at terminal 1000. Examples of such data include instructions for any application or method operating on terminal 1000, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 1006 provides power to the various components of terminal 1000. Power components 1006 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 1000.
Multimedia component 1008 includes a screen that provides an output interface between terminal 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera can receive external multimedia data when the terminal 1000 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when terminal 1000 is in an operational mode, such as call mode, record mode, and voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for terminal 1000. For example, sensor assembly 1014 can detect an open/closed state of terminal 1000, relative positioning of components such as a display and keypad of terminal 1000, sensor assembly 1014 can also detect a change in position of terminal 1000 or a component of terminal 1000, presence or absence of user contact with terminal 1000, orientation or acceleration/deceleration of terminal 1000, and a change in temperature of terminal 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communications component 1016 is configured to facilitate communications between terminal 1000 and other devices in a wired or wireless manner. Terminal 1000 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications.
In an exemplary embodiment, terminal 1000 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1004, that are executable by processor 1020 of terminal 1000 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The disclosed embodiment also provides a computer-readable storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operations performed in the comment information display method of the above embodiment.
The embodiment of the disclosure also provides a computer program product, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operation performed in the comment information display method of the above embodiment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A comment information display method, characterized by comprising:
obtaining comment information to be displayed;
calling display configuration information, wherein the display configuration information comprises configuration parameters of at least one attribute, and the display configuration information is used for indicating the display mode of the comment information;
setting a parameter value matched with the comment information for the configuration parameter of the at least one attribute;
displaying the comment information in a video playing interface according to the set at least one parameter value;
the at least one attribute comprises a color attribute, the color attribute is used for indicating the display color of the comment information, and the setting of the parameter value matched with the comment information for the configuration parameter of the at least one attribute comprises:
extracting sentence features of the comment information, wherein the sentence features comprise semantic features and structural features, the semantic features are used for expressing the meaning of the comment information, and the structural features are used for expressing a sentence pattern structure adopted by the comment information; determining a color value corresponding to the color semantic feature according to the color semantic feature contained in the statement feature; and determining whether the color value is set as a parameter value of a configuration parameter of the color attribute according to the structural characteristic.
2. The method of claim 1, wherein the at least one attribute further comprises a speed attribute for indicating a display speed of the comment information, and wherein setting a parameter value matching the comment information for the configuration parameter of the at least one attribute comprises:
acquiring the number of bytes contained in the comment information;
and setting a speed value matched with the byte number for the configuration parameters of the speed attribute according to the byte number.
3. The method according to claim 2, wherein setting a speed value matching the number of bytes for the configuration parameter of the speed attribute according to the number of bytes comprises:
inquiring a preset corresponding relation according to the byte number, and determining a speed value corresponding to a numerical range to which the byte number belongs, wherein the preset corresponding relation comprises a corresponding relation between the numerical range and the speed value;
and setting the speed value corresponding to the numerical range as a parameter value of the configuration parameter of the speed attribute.
4. The method of claim 2, wherein the at least one attribute further comprises a duration attribute, the duration attribute is used for indicating the duration of the comment information in the display state, and the setting of the parameter value matching the comment information for the configuration parameter of the at least one attribute further comprises:
calculating the duration matched with the number of the bytes according to the speed value matched with the number of the bytes and the size of a display area in the video playing interface;
and setting the duration as a parameter value of a configuration parameter of the duration attribute.
5. The method of claim 1, wherein the setting of the parameter value matching the comment information for the configuration parameter of the at least one attribute further comprises:
and extracting a preset color keyword from the comment information, and setting a color value corresponding to the color keyword as a parameter value of a configuration parameter of the color attribute.
6. The method of claim 1, wherein the comment information includes bullet screen information, and the displaying the comment information in the video playing interface according to the set at least one parameter value includes:
adding a floating layer on the upper layer of the video playing interface;
and displaying the bullet screen information in the floating layer according to the set at least one parameter value.
7. The method of claim 1, wherein the obtaining comment information to be displayed comprises:
displaying a video playing interface of a video fast application, wherein the video fast application runs based on a native application program interface API provided by an operating system of a terminal;
and when a comment information issuing instruction is received based on the video playing interface, acquiring the input comment information.
8. A comment information display apparatus characterized by comprising:
the acquisition module is used for acquiring comment information to be displayed;
the calling module is used for calling display configuration information, the display configuration information comprises configuration parameters of at least one attribute, and the display configuration information is used for indicating the display mode of the comment information;
the setting module is used for setting a parameter value matched with the comment information for the configuration parameter of the at least one attribute;
the display module is used for displaying the comment information in a video playing interface according to the set at least one parameter value;
the at least one attribute includes a color attribute for indicating a display color of the comment information, and the setting module includes:
the color setting unit is used for extracting sentence features of the comment information, wherein the sentence features comprise semantic features and structural features, the semantic features are used for expressing the meaning of the comment information, and the structural features are used for expressing a sentence pattern structure adopted by the comment information; determining a color value corresponding to the color semantic feature according to the color semantic feature contained in the statement feature; and determining whether the color value is set as a parameter value of a configuration parameter of the color attribute according to the structural characteristic.
9. The apparatus of claim 8, wherein the at least one attribute further comprises a speed attribute, the speed attribute being indicative of a speed of display of the comment information, the setting module comprising:
the obtaining unit is used for obtaining the number of bytes contained in the comment information;
and the speed setting unit is used for setting a speed value matched with the byte number for the configuration parameter of the speed attribute according to the byte number.
10. The apparatus according to claim 9, wherein the speed setting unit is further configured to query a preset correspondence according to the number of bytes, and determine a speed value corresponding to a numerical range to which the number of bytes belongs, where the preset correspondence includes a correspondence between the numerical range and the speed value;
the speed setting unit is further configured to set a speed value corresponding to the numerical range as a parameter value of a configuration parameter of the speed attribute.
11. The apparatus of claim 9, wherein the at least one attribute further comprises a duration attribute for indicating a duration of time the comment information is in the display state, and wherein the setting module further comprises:
the computing unit is used for computing the duration matched with the number of the bytes according to the speed value matched with the number of the bytes and the size of a display area in the video playing interface;
and the duration setting unit is used for setting the duration as a parameter value of the configuration parameter of the duration attribute.
12. The apparatus of claim 8, wherein the color setting unit is further configured to extract a preset color keyword from the comment information, and set a color value corresponding to the color keyword as a parameter value of the configuration parameter of the color attribute.
13. The apparatus of claim 8, wherein the comment information comprises barrage information, and wherein the display module comprises:
the adding unit is used for adding a floating layer on the upper layer of the video playing interface;
and the bullet screen display unit is used for displaying the bullet screen information in the floating layer according to the set at least one parameter value.
14. The apparatus of claim 8, wherein the obtaining module comprises:
the interface display unit is used for displaying a video playing interface of the video fast application, and the video fast application runs based on a native application program interface API provided by an operating system of the terminal;
and the acquisition unit is used for acquiring the input comment information when receiving a comment information issuing instruction based on the video playing interface.
15. A terminal, characterized in that the terminal comprises:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to:
obtaining comment information to be displayed;
calling display configuration information, wherein the display configuration information comprises configuration parameters of at least one attribute, and the display configuration information is used for indicating the display mode of the comment information;
setting a parameter value matched with the comment information for the configuration parameter of the at least one attribute;
displaying the comment information in a video playing interface according to the set at least one parameter value;
the at least one attribute includes a color attribute for indicating a display color of the comment information, the one or more processors are further configured to:
extracting sentence features of the comment information, wherein the sentence features comprise semantic features and structural features, the semantic features are used for expressing the meaning of the comment information, and the structural features are used for expressing a sentence pattern structure adopted by the comment information; determining a color value corresponding to the color semantic feature according to the color semantic feature contained in the statement feature; and determining whether the color value is set as a parameter value of a configuration parameter of the color attribute according to the structural characteristic.
16. 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 in the comment information display method of any one of claims 1 to 7.
CN201911241377.5A 2019-12-06 2019-12-06 Comment information display method and device, terminal and storage medium Active CN110891194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911241377.5A CN110891194B (en) 2019-12-06 2019-12-06 Comment information display method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911241377.5A CN110891194B (en) 2019-12-06 2019-12-06 Comment information display method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110891194A CN110891194A (en) 2020-03-17
CN110891194B true CN110891194B (en) 2022-06-03

Family

ID=69750828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911241377.5A Active CN110891194B (en) 2019-12-06 2019-12-06 Comment information display method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110891194B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348462A (en) * 2022-05-10 2022-11-15 北京达佳互联信息技术有限公司 Configuration method, device, equipment, storage medium and communication system of special effect data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580758A (en) * 2015-01-19 2015-04-29 北京奇虎科技有限公司 Incoming call comment information acquisition method and device
CN107209670A (en) * 2015-02-13 2017-09-26 华为技术有限公司 A kind of collocation method, device and the terminal of application attribute parameter
CN107612994A (en) * 2017-09-15 2018-01-19 广州神马移动信息科技有限公司 Gently apply method for pushing, equipment and push server
CN108287918A (en) * 2018-02-13 2018-07-17 广东欧珀移动通信有限公司 Method for playing music, device, storage medium based on five application page and electronic equipment

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2681432T3 (en) * 2011-08-05 2018-09-13 Rakuten, Inc. Color determination device, color determination system, color determination procedure, information recording medium and program
US10417667B1 (en) * 2012-06-27 2019-09-17 Groupon, Inc. Method and apparatus for creating web content and identifying advertisements for users creating and viewing content
CN104618813B (en) * 2015-01-20 2018-02-13 腾讯科技(北京)有限公司 Barrage information processing method, client and service platform
CN106303729B (en) * 2015-05-20 2019-05-21 北京智谷睿拓技术服务有限公司 Exchange method, interactive device and user equipment based on barrage
CN105307030B (en) * 2015-09-30 2018-07-17 广州酷狗计算机科技有限公司 Barrage display methods and device
CN105357587A (en) * 2015-10-28 2016-02-24 广州华多网络科技有限公司 Method and system for realizing music barrage
CN106910100A (en) * 2015-12-23 2017-06-30 阿里巴巴集团控股有限公司 The method and device of commodity object information is provided
CN105979338B (en) * 2016-05-16 2019-07-09 武汉斗鱼网络科技有限公司 A kind of system and method according to barrage content mood matching color
CN106454485B (en) * 2016-10-25 2018-04-10 华中科技大学 A kind of trajectory distribution method of speed variable barrage
CN106534875A (en) * 2016-11-09 2017-03-22 广州华多网络科技有限公司 Barrage display control method and device and terminal
CN106454434B (en) * 2016-11-15 2020-04-03 广州华多网络科技有限公司 Bullet screen playing method and device
CN107360459B (en) * 2017-07-07 2021-02-02 腾讯科技(深圳)有限公司 Bullet screen processing method and device and storage medium
CN109474845B (en) * 2018-09-14 2021-11-16 咪咕音乐有限公司 Bullet screen control method, bullet screen processing server and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580758A (en) * 2015-01-19 2015-04-29 北京奇虎科技有限公司 Incoming call comment information acquisition method and device
CN107209670A (en) * 2015-02-13 2017-09-26 华为技术有限公司 A kind of collocation method, device and the terminal of application attribute parameter
CN107612994A (en) * 2017-09-15 2018-01-19 广州神马移动信息科技有限公司 Gently apply method for pushing, equipment and push server
CN108287918A (en) * 2018-02-13 2018-07-17 广东欧珀移动通信有限公司 Method for playing music, device, storage medium based on five application page and electronic equipment

Also Published As

Publication number Publication date
CN110891194A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN111026396B (en) Page rendering method and device, electronic equipment and storage medium
CN111026490B (en) Page rendering method and device, electronic equipment and storage medium
CN110851108A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN111767554B (en) Screen sharing method and device, storage medium and electronic equipment
CN110990075A (en) Starting method, device and equipment of fast application and storage medium
CN110971974B (en) Configuration parameter creating method, device, terminal and storage medium
CN111966275A (en) Program trial method, system, device, equipment and medium
US20230306694A1 (en) Ranking list information display method and apparatus, and electronic device and storage medium
CN110968362B (en) Application running method, device and storage medium
CN110865863B (en) Interface display method and device for fast application and storage medium
CN111008057A (en) Page display method and device and storage medium
CN111078325B (en) Application program running method and device, electronic equipment and storage medium
CN110891194B (en) Comment information display method and device, terminal and storage medium
US11507633B2 (en) Card data display method and apparatus, and storage medium
CN110865864B (en) Interface display method, device and equipment for quick application and storage medium
CN111104183B (en) Application program running method and device, electronic equipment and storage medium
US20230067387A1 (en) Method for music generation, electronic device, storage medium cross reference to related applications
US11210119B2 (en) Method and device for displaying interface, electronic equipment, server, and storage medium
CN111008050B (en) Page task execution method, device, terminal and storage medium
CN110908629A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN110865760A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN110853643A (en) Method, device, equipment and storage medium for voice recognition in fast application
CN109753205B (en) Display method and device
CN110868640A (en) Resource transfer method, device, equipment and storage medium
CN110990105B (en) Interface display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant