Nothing Special   »   [go: up one dir, main page]

CN109714627A - A kind of rendering method of comment information, device and equipment - Google Patents

A kind of rendering method of comment information, device and equipment Download PDF

Info

Publication number
CN109714627A
CN109714627A CN201811631370.XA CN201811631370A CN109714627A CN 109714627 A CN109714627 A CN 109714627A CN 201811631370 A CN201811631370 A CN 201811631370A CN 109714627 A CN109714627 A CN 109714627A
Authority
CN
China
Prior art keywords
account
label
information
comment information
tag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811631370.XA
Other languages
Chinese (zh)
Other versions
CN109714627B (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.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201811631370.XA priority Critical patent/CN109714627B/en
Publication of CN109714627A publication Critical patent/CN109714627A/en
Application granted granted Critical
Publication of CN109714627B publication Critical patent/CN109714627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

This application discloses a kind of rendering method of comment information, device and equipment, this method comprises: obtaining the comment information that user is directed to currently playing content;Determine the corresponding account information of the comment information;Determine that the corresponding label of the comment information, the label are pre-generated, the account attributes one-to-one correspondence of the label and the account information according to the account information;The comment information is rendered using the label.Pass through the above method, using label reclaim mechanism, it will have shown that completion, the label for the barrage that can be removed is stored in label recovery pond, recycles the label that do not destroy in label recovery pond, re-creates a label without each barrage, reduce the rendering burden of the page, the consumption of less CPU improves the fluency of the page, improves the viewing experience of viewer.

Description

Comment information rendering method, device and equipment
Technical Field
The application relates to the technical field of computers, in particular to a comment information rendering method, device and equipment.
Background
With the continuous development of network technology, live video has gradually become a part of people's daily leisure life. After the user installs the application program on the terminal equipment, the user can watch the video at any time and any place through the terminal equipment. In order to improve the interactivity between the user and the anchor, a function of the user interacting with the anchor, such as a barrage function of live video, is mostly provided in the video application program.
The transmission accounts of the barrage are different, and the display forms of the barrage displayed on the display interface of the live broadcast area are different, so that different labels need to be established to render the barrage in real time, the real-time rendering needs to occupy CPU resources, and when the barrage is very many, a large amount of CPU resources can be occupied, so that the barrage is not smooth in frame loss, and even the browser is crashed when the number of the barrage is huge, thereby seriously affecting the user experience.
Disclosure of Invention
The embodiment of the specification provides a comment information rendering method, device and equipment, and is used for solving the problem that the bullet screen frame loss is not smooth when the bullet screen is too many, so that the watching experience of a viewer is reduced.
The method for rendering the comment information provided by the embodiment of the specification comprises the following steps:
obtaining comment information of a user for the currently played content;
determining account information corresponding to the comment information;
determining a label corresponding to the comment information according to the account information, wherein the label is generated in advance, and the label corresponds to the account attribute of the account information one to one;
and rendering the comment information by adopting the label.
Optionally, the determining, according to the account information, a tag corresponding to the comment information specifically includes:
acquiring login account information of a page corresponding to the playing content;
judging whether the account information is the same as the login account information or not to obtain a first judgment result;
when the first judgment result shows that the account information is the same as the client account information, determining that the label corresponding to the comment information is a first label;
and when the first judgment result shows that the account information is different from the client account information, determining that the label corresponding to the comment information is a second label, wherein at least one format of the comment information rendered by the first label is different from that of the comment information rendered by the second label.
Optionally, the determining that the tag corresponding to the comment information is the first tag specifically includes:
determining a level of the account information;
when the level indicates that the account information is a privileged account, determining that a tag corresponding to the comment information is a third tag, wherein the comment information rendered by the third tag comprises a specific identifier;
when the level indicates that the account information is a common account, determining that the label corresponding to the comment information is a fourth label, and the comment information rendered by using the fourth label does not include the specific identifier.
Optionally, the determining that the tag corresponding to the comment information is the second tag specifically includes:
determining a level of the account information;
when the level indicates that the account information is a privileged account, determining that a tag corresponding to the comment information is a fifth tag, wherein the comment information rendered by adopting the fifth tag comprises a specific identifier;
when the level indicates that the account information is a common account, determining that the label corresponding to the comment information is a sixth label, wherein the comment information rendered by the sixth label does not include the specific identifier.
Optionally, the rendering the comment information by using the tag specifically includes:
acquiring text content of the comment information;
processing the style of the text content into a style corresponding to the label; the style includes at least one of a font color, a font format, or a specific identification.
Optionally, after the rendering the comment information with the tag, the method further includes:
determining an idle trajectory of a display interface corresponding to the playing content;
displaying the processed text content on the idle trajectory.
Optionally, after the account information corresponding to the comment information is determined, the method further includes:
determining account attributes of the account information;
judging whether a label corresponding to the account attribute exists or not to obtain a second judgment result;
when the second judgment result shows that the label corresponding to the account attribute does not exist, creating the label corresponding to the account attribute;
and rendering the comment information by adopting the created label corresponding to the account attribute.
Optionally, after the rendering the comment information by using the created tag corresponding to the account attribute, the method further includes:
storing the created label corresponding to the account attribute;
a countdown time for destruction of the stored tag is set.
Optionally, after the rendering the comment information with the tag, the method further includes:
resetting a destruction countdown time for the tag.
An apparatus for rendering comment information provided by an embodiment of the present specification includes:
the comment information acquisition module is used for acquiring comment information of a user for the currently played content;
the account information determining module is used for determining account information corresponding to the comment information;
the label determining module is used for determining a label corresponding to the comment information according to the account information, wherein the label is generated in advance, and the label corresponds to the account attribute of the account information one by one;
and the comment information rendering module is used for rendering the comment information by adopting the tag.
An apparatus for rendering comment information provided by an embodiment of the present specification includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described method of rendering comment information.
The computer-readable storage medium is provided by an embodiment of the present specification, and the computer-readable storage medium has instructions stored thereon, where the instructions are executed by a processor to implement the steps of the above comment information rendering method.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the embodiment of the specification adopts a label recycling mechanism, the labels which are displayed and removed and are stored in the label recycling pool, the labels which are not destroyed in the label recycling pool are recycled, one label does not need to be created again for each bullet screen, the rendering burden of the page is reduced, the consumption of a CPU is reduced, the fluency of the page is improved, and therefore the watching experience of a user is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a method for rendering comment information according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a specific application scenario of a method for rendering comment information according to an embodiment of the present specification;
fig. 3 is a schematic structural diagram of a comment information rendering apparatus provided by an embodiment of the present specification;
fig. 4 is a schematic structural diagram of a comment information rendering device provided in an embodiment of this specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flowchart of a method for rendering comment information provided in an embodiment of this specification, and specifically includes the following steps:
s101: and obtaining comment information of the user aiming at the currently played content.
In some video live scenes, an information sending interface is added to strengthen the interaction between the main broadcast and the user. For example, a public screen is usually displayed on the right side of a web live broadcast room, and the interface comprises an information scrolling area and an information sending frame.
S102: and determining account information corresponding to the comment information.
In this embodiment of the present specification, the comment information may include text content and account information, and when the comment information is displayed, the account information of the comment information is different, and the display form is also different. For example, if the information sent by the user is often different from the information sent by other users, and if the account registered by the user is a noble account or a VIP account, the information is also different from the comment information sent by a common user (account) when displayed.
In the embodiment of the specification, the user inputs information in an information sending box of a public screen, and the information comprises text content and account information. First, these pieces of information are analyzed and classified, and they may be classified into information transmitted by the user himself or information transmitted by another user, information transmitted by a general user, and information transmitted by a noble user. The display forms of the information sent by different users on the display interface are different, so the comment information sent by the users needs to be classified, and different labels are adopted for displaying different types of comment information.
S103: and determining a label corresponding to the comment information according to the account information, wherein the label is generated in advance, and the label is in one-to-one correspondence with the account attributes of the account information.
In the embodiment of the present specification, the account information is related to a rendering manner of the comment information, and a tag for rendering is determined according to the account information. Note that the label at this time is generated in advance, and is not created temporarily. These tags relate to account attributes of the account information, including but not limited to: the account attribute may include one of the own account, another account, a general account, and a privileged account, or may include a plurality of the above. The labels will differ from account attribute to account attribute, and different labels generally represent the format of the rendered text.
It should be noted that the account attribute of the same comment information may be the same or different for different playing pages. For example, the account attribute of comment information sent out by the a user (account) on the video playback page in which the a account is logged in is "self account", and the account attribute of comment information sent out on the video playback page in which the B account is logged in is "other people account".
In the embodiment of the present specification, the tag generated in advance is recycled, that is, the tag is used to render other comment information, but is not deleted, but is stored and reused.
It should be noted that the tag is not always present, and a destruction time is usually set, and if the tag is not used within a certain period of time, the tag is destroyed.
Further, step S103 specifically includes:
acquiring login account information of a page corresponding to the playing content;
judging whether the account information is the same as the login account information or not to obtain a first judgment result;
when the first judgment result shows that the account information is the same as the client account information, determining that the label corresponding to the comment information is a first label;
and when the first judgment result shows that the account information is different from the client account information, determining that the label corresponding to the comment information is a second label, wherein at least one format of the comment information rendered by the first label is different from that of the comment information rendered by the second label.
In the embodiment of the specification, whether an account of comment information is the same as an account corresponding to an interface required to be displayed by the comment information is judged, if yes, the account attribute is 'self account', and the comment information is rendered by adopting a first label; if the comment information is different from the comment information, the account attribute is 'another account', the comment information is rendered by adopting the second label, and the comment information rendered by the first label and the second label is different in format, color or font size or font. For example, the comment information rendered with the first tag is yellow, and the comment information rendered with the second tag is white.
Optionally, the determining that the tag corresponding to the comment information is the first tag specifically includes:
determining a level of the account information;
when the level indicates that the account information is a privileged account, determining that a tag corresponding to the comment information is a third tag, wherein the comment information rendered by the third tag comprises a specific identifier;
when the level indicates that the account information is a common account, determining that the label corresponding to the comment information is a fourth label, and the comment information rendered by using the fourth label does not include the specific identifier.
Optionally, the determining that the tag corresponding to the comment information is the second tag specifically includes:
determining a level of the account information;
when the level indicates that the account information is a privileged account, determining that a tag corresponding to the comment information is a fifth tag, wherein the comment information rendered by adopting the fifth tag comprises a specific identifier;
when the level indicates that the account information is a common account, determining that the label corresponding to the comment information is a sixth label, wherein the comment information rendered by the sixth label does not include the specific identifier.
In other application scenarios, after the user attribute is determined to be "another person account" or "self account", it is also determined to be "normal account" or "privileged account", which is two separate determinations that the user attribute is "another person account" or "self attribute", and there is no direct connection between the former and latter determinations. The embodiments of the present disclosure provide that whether the "self account" is determined first and then whether the "privileged account" is determined later, and of course, the two orders may be switched, and whether the "privileged account" is determined first and then whether the "self account" is determined later, which all belong to the scope covered by the present disclosure.
In a specific application scenario, the level of the account information may be determined in the following ways:
the first method comprises the following steps: and storing account information of all the privileged accounts, wherein the account information can be account names, account-bound mobile phone numbers or account-bound third-party account information. In this case, the level of the account information is determined, and the stored account information of the privileged account and the account information of the comment information may be matched, and if the matching is successful, the account of the comment information is determined as the privileged account, and if the matching is unsuccessful, the account of the comment information is determined as the normal account.
And the second method comprises the following steps: in some cases, the account information of the privileged account may have a special identifier, such as "VIP", and if the account information of the comment information includes the identifier "VIP", the account is the privileged account. In some special cases, account information may be given different identifications according to the account type, for example, the number "0" represents a privileged account, the number "1" represents a general account, and these identifications may be stored in the account information as attributes of the account. In this case, the level of the account information is determined, and it can be determined by simply acquiring the number in the account information.
In the embodiment of the specification, the comment information of the privileged account has a special identifier, such as medal and the like, when displayed, so that the corresponding comment information needs to be rendered by selecting the label with the medal effect.
S104: and rendering the comment information by adopting the label.
In this specification, rendering the comment information may be modifying a format of text content in the comment information, and then displaying the modified text content on a display interface on which the content is played.
In some application scenarios, step S104 specifically includes:
acquiring text content of the comment information;
processing the style of the text content into a style corresponding to the label; the style includes at least one of a font color, a font format, or a specific identification.
In the embodiment of the specification, the comment information is rendered by adopting the tag, mainly aiming at the text content in the comment information, the color, the font size and the special effect of the text content can be rendered, and a specific identifier can be added in the text content.
Optionally, after the rendering the comment information with the tag, the method further includes:
determining an idle trajectory of a display interface corresponding to the playing content;
displaying the processed text content on the idle trajectory.
In the present specification embodiment, the live zone is provided with a trajectory. The trajectory is a passage through which the bullet screen moves horizontally. In general, the barrage appears from the right side of the live interface, and moves horizontally to the left side of the live interface until disappearing.
The number of the trajectories can be determined according to the height of the live broadcast area and the height of the trajectory, and specifically includes: ballistic number — live zone height/ballistic height. The user can select to display the bullet screen on the upper side, the lower side or the full screen of the live broadcast area according to the watching habit of the user.
In the embodiment of the present specification, the presence or absence of a free trajectory is determined by detecting the trajectory state, and the presence or absence of a free trajectory is used to display comment information. In general, when a bullet screen is displayed on the display interface, the bullet screen moves from the right side to the left side, and when no new content appears within a fixed length after the last information of the bullet screen, the bullet screen can be indicated to be in the trajectory processing idle state and can be used for displaying the next bullet screen.
Optionally, after the account information corresponding to the comment information is determined, the method further includes:
determining account attributes of the account information;
judging whether a label corresponding to the account attribute exists or not to obtain a second judgment result;
when the second judgment result shows that the label corresponding to the account attribute does not exist, creating the label corresponding to the account attribute;
and rendering the comment information by adopting the created label corresponding to the account attribute.
In this embodiment of the present specification, when there is no tag corresponding to comment information in the tag recycle pool, a tag corresponding to the comment information needs to be created. When the tag is established, the type of the tag needs to be determined according to the account attribute, and then the program code of the tag corresponding to the type is called to generate the tag.
Optionally, after the rendering the comment information by using the created tag corresponding to the account attribute, the method further includes:
storing the created label corresponding to the account attribute;
a countdown time for destruction of the stored tag is set.
In the embodiment of the present specification, the used tags are stored for recycling. In order to avoid accumulating too many labels, after the labels are stored in the label recycling pool, the destruction countdown time of the labels needs to be set, and if the labels are not utilized for a long time, the labels can be destroyed, so that too much storage space is avoided.
Optionally, after the rendering the comment information with the tag, the method further includes:
resetting a destruction countdown time for the tag.
In the embodiment of the present specification, after the tag is used and recycled, the tag needs to be regarded as a new tag, and therefore, the destruction countdown time needs to be reset so as to be called next time.
Through the method, the embodiment of the specification adopts a tag recycling mechanism, and tags which are not destroyed are recycled, so that the rendering load of the page is reduced as much as possible, the consumption of a CPU is reduced, the performance of the page is improved, the fluency of the page is improved, and the viewing experience of a user is improved.
In order to more visually explain the method provided by the present specification, the following takes the bullet screen message as an example to explain in more detail.
The bullet screen is a representation form of comment information of the user on the display interface. And a bullet screen button is arranged at the lower right side of the web live broadcast room, and after the bullet screen button is opened, comment information can be displayed on an interface of a live broadcast area. Typically, the live zone is provided with a trajectory. The trajectory is a passage through which the bullet screen moves horizontally. In general, the barrage appears from the right side of the live interface, and moves horizontally to the left side of the live interface until disappearing.
The number of the trajectories can be determined according to the height of the live broadcast area and the height of the trajectory, and specifically includes: ballistic number — live zone height/ballistic height. The user can select to display the bullet screen on the upper side, the lower side or the full screen of the live broadcast area according to the watching habit of the user.
Fig. 2 is a flowchart of a specific application scenario of a method for rendering comment information provided in an embodiment of this specification, and as shown in fig. 2, the method includes the following steps:
(1) when the bullet screen switch is in an opening state, a web worker process is newly established to detect the trajectory state and the opportunity of creating and destroying the bullet screen in real time.
In the embodiment of the description, the web worker is used for detecting the creation and destruction time of the barrage by another thread, the javascript main thread is not occupied, and the performance is superior to that of a timer, so that the page performance is improved, and the page fluency is improved.
(2) And receiving the messages sent by the public screen, analyzing and classifying the messages, and storing the analyzed and classified messages into a bullet screen library, wherein the bullet screen library can self-define the display sequence and style of bullet screen types.
In general, a bullet screen can be directly created for display, and if a live broadcast page is completely full of the bullet screen, comment information sent by a user needs to be stored. Before storage, the classified comment information is stored in a bullet screen library, and the bullet screen library can customize the display sequence and style of the types of the comment information. For example, the display order may be defined to display the information sent by the user, the information sent by the noble user, and the information sent by the common user. The display style of the transmitted information may also be defined. For example, different users may send different information in different colors or in different font formats. For the noble users, the information can be displayed in a form of characters and expressions, the information fonts sent by the users can be displayed in color, the information fonts sent by other users are black, and the like. Only different types of comment information need to be displayed in different styles.
(3) And detecting the idle state of the trajectory in real time, judging whether an available label exists in the label recycling pool, and displaying the bullet screen message content on a page through the label.
Firstly, whether a free trajectory exists needs to be detected, and if the free trajectory exists, a bullet screen message which can be used for displaying is called from a bullet screen library. And judging whether the bullet screen label exists according to the bullet screen message.
In this embodiment of the present specification, whether there is an available tag in the tag recovery pool may be determined by determining whether the length of the tag pool array is greater than 0.
If available bullet screen labels exist in the label recovery pool, loading the bullet screen labels into data in a bullet screen library and displaying the bullet screen labels on the idle trajectory; if the bullet screen label does not exist in the label recovery pool, a new bullet screen label is created, the style attribute is set, then the new bullet screen label is adopted to render the data in the bullet screen library, and then the displayed idle trajectory is displayed.
(4) The bullet screen label uses the transition and transform attributes in the css3, and calculates the transition time of the bullet screen (the length of the bullet screen + the width of the live broadcast room)/the moving speed according to the length of the bullet screen and the width of the live broadcast room, so that the smooth movement of the bullet screen is realized. After the bullet screen effect is finished, the destruction countdown of the bullet screen label is set, and the bullet screen label is put into a label recovery pool.
In the embodiment of the present specification, using the deformation (transform) and transition (transition) attributes in CSS3, the transition time of the bullet screen (the length of the bullet screen + the width of the live broadcast room)/the moving speed is calculated from the length of the bullet screen and the width of the live broadcast room, and the bullet screen is scrolled.
CSS3 is an upgraded version of CSS technology, and the development of the CSS3 language is toward modularity. The CSS, i.e., a Cascading style sheet (Cascading style sheet), is a Cascading style sheet technology used in web page production, and can effectively implement more accurate control on the layout, font, color, background, and other effects of a page. The CSS is large and complex, and the CSS3 breaks down the CSS into smaller modules, and more new modules are added. The modules in CSS3 include: the system comprises a box model, a list module, a hyperlink mode, a language module, a background, a frame, a character special effect, a multi-column layout and the like.
Animation properties of CSS3 include: deformation (transform) and transformation (transition). transition mainly contains four attribute values: property of the execution transformation: transition-property, the time the transition lasts: transition-duration, the rate of transition-timing-function of the transition, the transition-delay, over the extended period of time.
Through the animation property tool of the CSS3, smooth movement of the barrage from right to left of the display interface of the live zone is realized. After the bullet screen display is finished, the label of each bullet screen can be put into the label recycling pool again. In order to avoid the problem that the labels in the label recycling pool are too many to cause waste, the web worker also sets label countdown in the label recycling pool, namely, after the labels exist in the label recycling pool, the stored time is recorded, then the countdown time is set, and the countdown for label destruction is started. And when the time in the label recovery pool exceeds the countdown time, the label is destroyed and is not reused. The countdown time can be flexibly set according to actual conditions, such as 400 ms.
In the embodiment of the description, the new characteristics of transition and transform in the css3 are adopted, hardware accelerated rendering is started, and cpu consumption is reduced, so that the performance is improved.
Generally, for different types of comment information, a corresponding tag needs to be established in real time for real-time rendering. In the embodiment of the description, a label recycling mechanism is introduced, and when the number of bullet screen libraries is large, the displayed removable labels are placed in a label recycling pool for recycling, so that the browser is prevented from re-rendering. When the number of bullet screen libraries is reduced, the recycling pool is slowly released.
In this embodiment, the user may further have a selection box at the lower right of the display interface according to the adjustment of the transparency of the bullet screen, where the selection box includes: none, low, medium and high, all represent the degree of transparency of the bullet screen. The user can adjust according to own hobby, improves user's experience.
(5) Steps 3 and 4 are repeated until the bullet screen in the bullet screen library is not displayed.
(6) And after the bullet screen switch is closed, destroying the web worker process, and emptying the bullet screen library and the label recovery pool.
Based on the same idea, the comment information rendering method provided in the embodiment of the present specification further provides a comment information rendering device.
Fig. 3 is a schematic structural diagram of a comment information rendering apparatus provided in an embodiment of this specification, and as shown in fig. 3, the apparatus may include:
a comment information obtaining module 301, configured to obtain comment information of a user for a currently played content;
an account information determining module 302, configured to determine account information corresponding to the comment information;
a tag determining module 303, configured to determine, according to the account information, a tag corresponding to the comment information, where the tag is generated in advance, and the tag corresponds to an account attribute of the account information one to one;
and a comment information rendering module 304, configured to render the comment information by using the tag.
Optionally, the tag determining module 303 may specifically include:
the login account information acquisition unit is used for acquiring login account information of a page corresponding to the playing content;
the first judging unit is used for judging whether the account information is the same as the login account information or not to obtain a first judging result;
the first label determining unit is used for determining that the label corresponding to the comment information is a first label when the first judgment result shows that the account information is the same as the client account information;
and the second tag determining unit is used for determining that the tag corresponding to the comment information is a second tag when the first judgment result shows that the account information is different from the client account information, wherein at least one format of the comment information rendered by the first tag is different from that of the comment information rendered by the second tag.
Optionally, the first tag determining unit may specifically include:
a level determination subunit that determines a level of the account information;
a third tag determination subunit, configured to determine, when the level indicates that the account information is a privileged account, that a tag corresponding to the comment information is a third tag, where the comment information rendered with the third tag includes a specific identifier;
and the fourth tag determining subunit is configured to determine, when the level indicates that the account information is an ordinary account, that the tag corresponding to the comment information is a fourth tag, where the comment information rendered by using the fourth tag does not include the specific identifier.
Optionally, the second tag determining unit may specifically include:
a level determination subunit configured to determine a level of the account information;
a fifth tag determining subunit, configured to determine, when the level indicates that the account information is a privileged account, that a tag corresponding to the comment information is a fifth tag, where the comment information rendered by using the fifth tag includes a specific identifier;
a sixth tag determining subunit, configured to determine, when the level indicates that the account information is an ordinary account, that a tag corresponding to the comment information is a sixth tag, where the comment information rendered with the sixth tag does not include the specific identifier.
Optionally, the comment information rendering module 304 may specifically include:
a text content acquisition unit for acquiring text content of the comment information;
the text content processing unit is used for processing the style of the text content into a style corresponding to the label; the style includes at least one of a font color, a font format, or a specific identification.
Optionally, the apparatus may further include:
an idle trajectory determining module, configured to determine an idle trajectory of a display interface corresponding to the playing content after the comment information is rendered by using the tag;
and the display module is used for displaying the processed text content on the idle trajectory.
Optionally, the apparatus may further include:
the account attribute determining module is used for determining the account attribute of the account information after the account information corresponding to the comment information is determined;
the second judgment module is used for judging whether the label corresponding to the account attribute exists or not to obtain a second judgment result;
a creating module, configured to create a label corresponding to the account attribute when the second determination result indicates that the label corresponding to the account attribute does not exist;
and the rendering unit is used for rendering the comment information by adopting the created label corresponding to the account attribute.
Optionally, the apparatus may further include:
the tag storage module is used for storing the created tag corresponding to the account attribute after the comment information is rendered by adopting the created tag corresponding to the account attribute;
and the destruction countdown time setting module is used for setting the destruction countdown time of the stored label.
Optionally, after the rendering the comment information with the tag, the apparatus may further include:
and the destruction countdown time resetting module is used for resetting the destruction countdown time of the label.
Fig. 4 is a schematic structural diagram of a rendering device corresponding to the comment information in fig. 1, provided by an embodiment of the present specification. As shown in fig. 4, the apparatus 400 may include:
at least one processor 410; and the number of the first and second groups,
a memory 430 communicatively coupled to the at least one processor; wherein,
the memory 430 stores instructions 420 executable by the at least one processor 410, and the instructions are executed by the at least one processor 410, so that the at least one processor 410 can implement the embodiment of the comment information rendering method, for functional implementation, please refer to the description in the method embodiment, which is not described herein again.
Based on the same idea, the embodiments of the present specification further provide a computer-readable storage medium, where instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, the embodiments of the method for rendering comment information as described above may be implemented.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. A method for rendering comment information, comprising:
obtaining comment information of a user for the currently played content;
determining account information corresponding to the comment information;
determining a label corresponding to the comment information according to the account information, wherein the label is generated in advance, and the label corresponds to the account attribute of the account information one to one;
and rendering the comment information by adopting the label.
2. The method of claim 1, wherein the determining the label corresponding to the comment information according to the account information specifically includes:
acquiring login account information of a page corresponding to the playing content;
judging whether the account information is the same as the login account information or not to obtain a first judgment result;
when the first judgment result shows that the account information is the same as the client account information, determining that the label corresponding to the comment information is a first label;
and when the first judgment result shows that the account information is different from the client account information, determining that the label corresponding to the comment information is a second label, wherein at least one format of the comment information rendered by the first label is different from that of the comment information rendered by the second label.
3. The method according to claim 2, wherein the determining that the tag corresponding to the comment information is a first tag specifically includes:
determining a level of the account information;
when the level indicates that the account information is a privileged account, determining that a tag corresponding to the comment information is a third tag, wherein the comment information rendered by the third tag comprises a specific identifier;
when the level indicates that the account information is a common account, determining that the label corresponding to the comment information is a fourth label, and the comment information rendered by using the fourth label does not include the specific identifier.
4. The method according to claim 2, wherein the determining that the label corresponding to the comment information is a second label specifically includes:
determining a level of the account information;
when the level indicates that the account information is a privileged account, determining that a tag corresponding to the comment information is a fifth tag, wherein the comment information rendered by adopting the fifth tag comprises a specific identifier;
when the level indicates that the account information is a common account, determining that the label corresponding to the comment information is a sixth label, wherein the comment information rendered by the sixth label does not include the specific identifier.
5. The method of claim 1, wherein the rendering the comment information using the tag specifically comprises:
acquiring text content of the comment information;
processing the style of the text content into a style corresponding to the label; the style includes at least one of a font color, a font format, or a specific identification.
6. The method of claim 5, wherein after said rendering the comment information with the tag, further comprising:
determining an idle trajectory of a display interface corresponding to the playing content;
displaying the processed text content on the idle trajectory.
7. The method of claim 1, wherein after the determining account information corresponding to the review information, further comprising:
determining account attributes of the account information;
judging whether a label corresponding to the account attribute exists or not to obtain a second judgment result;
when the second judgment result shows that the label corresponding to the account attribute does not exist, creating the label corresponding to the account attribute;
and rendering the comment information by adopting the created label corresponding to the account attribute.
8. The method of claim 7, wherein after the rendering the comment information with the created tag corresponding to the account attribute, further comprising:
storing the created label corresponding to the account attribute;
a countdown time for destruction of the stored tag is set.
9. The method of claim 1, wherein after said rendering the comment information with the tag, further comprising:
resetting a destruction countdown time for the tag.
10. A comment information rendering apparatus, comprising:
the comment information acquisition module is used for acquiring comment information of a user for the currently played content;
the account information determining module is used for determining account information corresponding to the comment information;
the label determining module is used for determining a label corresponding to the comment information according to the account information, wherein the label is generated in advance, and the label corresponds to the account attribute of the account information one by one;
and the comment information rendering module is used for rendering the comment information by adopting the tag.
11. A comment information rendering apparatus, characterized by comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of rendering comment information as claimed in any one of claims 1 to 9.
12. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-9.
CN201811631370.XA 2018-12-29 2018-12-29 Comment information rendering method, device and equipment Active CN109714627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811631370.XA CN109714627B (en) 2018-12-29 2018-12-29 Comment information rendering method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811631370.XA CN109714627B (en) 2018-12-29 2018-12-29 Comment information rendering method, device and equipment

Publications (2)

Publication Number Publication Date
CN109714627A true CN109714627A (en) 2019-05-03
CN109714627B CN109714627B (en) 2021-06-18

Family

ID=66258130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811631370.XA Active CN109714627B (en) 2018-12-29 2018-12-29 Comment information rendering method, device and equipment

Country Status (1)

Country Link
CN (1) CN109714627B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698569A (en) * 2020-04-26 2020-09-22 五八有限公司 Bullet screen data processing method and device, terminal equipment and storage medium
CN111796826A (en) * 2020-06-30 2020-10-20 北京字节跳动网络技术有限公司 Bullet screen drawing method, device, equipment and storage medium
CN113296943A (en) * 2021-05-17 2021-08-24 广州文石信息科技有限公司 Multi-document multi-process display method, device, equipment and storage medium
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
US20160261927A1 (en) * 2013-10-09 2016-09-08 Disney Enterprises, Inc. Method and System for Providing and Displaying Optional Overlays
CN105959810A (en) * 2016-04-19 2016-09-21 乐视控股(北京)有限公司 Barrage generating method, barrage generating device and server
CN106210857A (en) * 2016-08-03 2016-12-07 北京金山安全软件有限公司 Message display method and device and electronic equipment
CN107092643A (en) * 2017-03-06 2017-08-25 武汉斗鱼网络科技有限公司 A kind of barrage rendering intent and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160261927A1 (en) * 2013-10-09 2016-09-08 Disney Enterprises, Inc. Method and System for Providing and Displaying Optional Overlays
CN105959810A (en) * 2016-04-19 2016-09-21 乐视控股(北京)有限公司 Barrage generating method, barrage generating device and server
CN106210857A (en) * 2016-08-03 2016-12-07 北京金山安全软件有限公司 Message display method and device and electronic equipment
CN107092643A (en) * 2017-03-06 2017-08-25 武汉斗鱼网络科技有限公司 A kind of barrage rendering intent and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698569A (en) * 2020-04-26 2020-09-22 五八有限公司 Bullet screen data processing method and device, terminal equipment and storage medium
CN111796826A (en) * 2020-06-30 2020-10-20 北京字节跳动网络技术有限公司 Bullet screen drawing method, device, equipment and storage medium
CN113296943A (en) * 2021-05-17 2021-08-24 广州文石信息科技有限公司 Multi-document multi-process display method, device, equipment and storage medium
CN115348462A (en) * 2022-05-10 2022-11-15 北京达佳互联信息技术有限公司 Configuration method, device, equipment, storage medium and communication system of special effect data
CN115348462B (en) * 2022-05-10 2024-05-07 北京达佳互联信息技术有限公司 Method, device, equipment, storage medium and communication system for configuring special effect data

Also Published As

Publication number Publication date
CN109714627B (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN109714627B (en) Comment information rendering method, device and equipment
US11924485B2 (en) Method and system of displaying a video
CN109978972B (en) Method and device for editing characters in picture
CN109005283B (en) Method, device, terminal and storage medium for displaying notification message
CN111857517B (en) Video information processing method and device, electronic equipment and storage medium
US20240137584A1 (en) Methods and Systems for Extracting Sport-Related Information from Digital Video Frames
US20230154008A1 (en) Methods and Systems for Scoreboard Region Detection
CN107707965B (en) Bullet screen generation method and device
US12010359B2 (en) Methods and systems for scoreboard text region detection
US20220383381A1 (en) Video generation method, apparatus, terminal and storage medium
US11743556B2 (en) Character string display processing method and apparatus, terminal, and storage medium
CN105630792B (en) Information display and push method and device
US20230117213A1 (en) Page display method and electronic device
CN111385665A (en) Bullet screen information processing method, device, equipment and storage medium
CN115623272A (en) Video processing method, device, equipment and storage medium
CN115729416A (en) Information reply method, device, electronic equipment, readable storage medium and program product
WO2020186837A1 (en) Text animation control method and device, storage medium and processor
CN109298819B (en) Method, device, terminal and storage medium for selecting object
CN110855557A (en) Video sharing method and device and storage medium
CN111897607A (en) Application interface loading and interaction method, device and storage medium
CN112738562B (en) Method, device and computer storage medium for transparent display of browser page
CN112988005B (en) Method for automatically loading captions
CN115757840A (en) Multimedia content display method, device, equipment and storage medium
CN114640876B (en) Multimedia service video display method, device, computer equipment and storage medium
CN111079051B (en) Method and device for playing display content

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210111

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511442 24 floors, B-1 Building, Wanda Commercial Square North District, Wanbo Business District, 79 Wanbo Second Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant