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
label
account
information
comment information
comment
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

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (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

A kind of rendering method of comment information, device and equipment
Technical field
This application involves field of computer technology more particularly to a kind of rendering methods of comment information, device and equipment.
Background technique
With the continuous development of network technology, net cast has been increasingly becoming one in the life of people's daily leisure Point.After user installs such application program on the terminal device, video can be watched whenever and wherever possible by terminal device.In order to mention The interactivity for rising user and main broadcaster is provided with the function that user and main broadcaster interact, such as mostly in video class application program The barrage function of net cast.
The transmission account of barrage is different, and the form that the display interface in live streaming region is shown is not also identical, therefore, needs Different labels to be established in real time to render barrage, real-time rendering needs to occupy cpu resource, when barrage is especially more, meeting A large amount of cpu resources are occupied, so that barrage frame losing can be caused not smooth, or even cause browser crash in barrage substantial amounts, Seriously affect user experience.
Summary of the invention
This specification embodiment provides rendering method, device and the equipment of a kind of comment information, special to solve barrage Caused barrage frame losing is not smooth when more, thus the problem of also reducing the viewing experience of viewer.
A kind of rendering method for comment information that this specification embodiment provides, comprising:
Obtain the comment information that user is directed to currently playing content;
Determine the corresponding account information of the comment information;
Determine the corresponding label of the comment information according to the account information, the label be it is pre-generated, it is described The account attributes of label and the account information correspond;
The comment information is rendered using the label.
Optionally, described that the corresponding label of the comment information is determined according to the account information, it specifically includes:
Obtain the logon account information of the corresponding page of the broadcasting content;
Judge whether the account information and the logon account information are identical, obtain the first judging result;
When first judging result indicates that the account information is identical as client account information, the comment is determined The corresponding label of information is the first label;
When first judging result indicates that the account information and the client account information be not identical, institute is determined Stating the corresponding label of comment information is the second label, wherein using the comment information after first label rendering and uses institute At least a kind of format of comment information after stating the rendering of the second label is different.
Optionally, the corresponding label of the determination comment information is the first label, is specifically included:
Determine the rank of the account information;
When the rank indicates that the account information is franchise account, determine that the corresponding label of the comment information is the Three labels include specific identifier using the comment information after third label rendering;
When the rank indicates that the account information is regular account, determine that the corresponding label of the comment information is the Four labels do not include the specific identifier using the comment information after the 4th label rendering.
Optionally, the corresponding label of the determination comment information is the second label, is specifically included:
Determine the rank of the account information;
When the rank indicates that the account information is franchise account, determine that the corresponding label of the comment information is the Five labels include specific identifier using the comment information after the 5th label rendering;
When the rank indicates that the account information is regular account, determine that the corresponding label of the comment information is the Six labels do not include the specific identifier using the comment information after the 6th label rendering.
Optionally, described that the comment information is rendered using the label, it specifically includes:
Obtain the content of text of the comment information;
The pattern of the content of text is processed into the corresponding pattern of the label;The pattern includes font color, word At least one of physique formula or specific identifier.
Optionally, after the use label renders the comment information, further includes:
Determine the idle trajectory of the corresponding display interface of the broadcasting content;
The content of text after treatment is shown on the idle trajectory.
Optionally, after the corresponding account information of the determination comment information, further includes:
Determine the account attributes of the account information;
Judge that the corresponding label of the account attributes whether there is, obtains the second judging result;
In the absence of second judging result indicates the corresponding label of the account attributes, the account attributes are created Corresponding label;
The comment information is rendered using the account attributes corresponding label of creation.
Optionally, the comment information is carried out to render it in the account attributes corresponding label using creation Afterwards, further includes:
The corresponding label of the account attributes of creation is stored;
Destruction count down time for the label after storage is set.
Optionally, after the use label renders the comment information, further includes:
Reset the destruction count down time of the label.
A kind of rendering device for comment information that this specification embodiment provides, comprising:
Comment information obtains module, the comment information for being directed to currently playing content for obtaining user;
Account information determining module, for determining the corresponding account information of the comment information;
Label determining module, for determining the corresponding label of the comment information, the label according to the account information It is pre-generated, the account attributes one-to-one correspondence of the label and the account information;
Comment information rendering module, for being rendered using the label to the comment information.
A kind of rendering apparatus for comment information that this specification embodiment provides, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that at least one described processor is able to carry out the rendering method of above-mentioned comment information.
A kind of computer readable storage medium that this specification embodiment provides is deposited on the computer readable storage medium Contain instruction, which is characterized in that the step of rendering method of above-mentioned comment information is realized when described instruction is executed by processor.
This specification embodiment use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
This specification embodiment uses label reclaim mechanism, will have shown that completion, the label for the barrage that can be removed is deposited It is stored in label recovery pond, recycles the label that do not destroy in label recovery pond, re-create one without each barrage Label reduces the rendering burden of the page, and the consumption of less CPU improves the fluency of the page, to improve the viewing body of user It tests.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of flow diagram of the rendering method for comment information that this specification embodiment provides;
Fig. 2 is a kind of process of the concrete application scene of the rendering method for comment information that this specification embodiment provides Figure;
Fig. 3 is a kind of structural schematic diagram of the rendering device for comment information that this specification embodiment provides;
Fig. 4 is a kind of structural schematic diagram of the rendering apparatus for comment information that this specification embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Fig. 1 is a kind of flow diagram of the rendering method for comment information that this specification embodiment provides, and is specifically included Following steps:
S101: the comment information that user is directed to currently playing content is obtained.
In the scene of some net casts, in order to reinforce the interaction between main broadcaster and user, increases information and send boundary Face.If public affairs are shielded, public affairs screen is usually displayed on the right side of web direct broadcasting room, and interface contains information scroll zones and information sends frame.
S102: the corresponding account information of the comment information is determined.
In this specification embodiment, comment information may include content of text and account information, and comment information is carrying out When display, the account information of comment information is different, and display format is also different.For example, sent if it is user oneself Information is often different from the information of other users transmission, in addition, if the account of user's registration is noble's account or VIP account etc. Deng the comment information that they and ordinary user (account) are sent also has certain difference when display.
In this specification embodiment, user sends in frame in the information of public affairs screen and inputs information, these information include text Content and account information.Firstly, carrying out parsing classification to these information, the information and other use of user oneself transmission can be divided into The information that family is sent is further divided into the information of ordinary user's transmission, the information that noble user sends.The letter that different user is sent The display format difference in display interface is ceased, so the comment information that user sends is classified, for different types of Comment information is shown using different labels.
S103: determining the corresponding label of the comment information according to the account information, the label be it is pre-generated, The account attributes of the label and the account information correspond.
In this specification embodiment, account information is related to the rendering mode of comment information, is determined according to account information The label rendered.It should be noted that label at this time is pre-generated, it is not temporarily to create.These labels Related with the account attributes of account information, account attributes include but is not limited to: itself account, other people account, regular account and spies Weigh account, account attributes may include it is one such, can also be with therein a variety of.Account attributes are different, and label is just different, and Different labels typically represents the format of the text of rendering.
It should be pointed out that the account attributes of the same comment information are identical for the possibility of the different broadcasting pages, It may be different.For example, the account attributes for the comment information that party A-subscriber's (account) issues on the video playing page of A Account Logon For " itself account ", and the account attributes of the comment information issued on the video playing page of B Account Logon are that " he acknowledges a debt Family ".
In this specification embodiment, pre-generated label is by recycling, that is to say, that has used the mark Label have carried out rendering processing to other comment informations, but there is no deletions, but save, and utilize again.
It should be noted that this label does not always exist, it will usually a destruction time be arranged, if certain This label is not utilized in period, then can be destroyed.
Further, step S103 is specifically included:
Obtain the logon account information of the corresponding page of the broadcasting content;
Judge whether the account information and the logon account information are identical, obtain the first judging result;
When first judging result indicates that the account information is identical as client account information, the comment is determined The corresponding label of information is the first label;
When first judging result indicates that the account information and the client account information be not identical, institute is determined Stating the corresponding label of comment information is the second label, wherein using the comment information after first label rendering and uses institute At least a kind of format of comment information after stating the rendering of the second label is different.
In this specification embodiment, account and comment information by judging comment information is needed to need interface to be shown Whether corresponding account is identical, if identical, illustrates that account attributes are " itself account ", then using the first label to the comment Information is rendered;If it is not the same, then illustrating that account attributes are " other people accounts ", then using the second label to the comment information It is rendered, is different by the comment information format that the first label and the second label are rendered, can be color not Together, it is also possible to the difference of font size or font.For example, using the comment information of the first label rendering for yellow, using second The comment information of label rendering is white.
Optionally, the corresponding label of the determination comment information is the first label, is specifically included:
Determine the rank of the account information;
When the rank indicates that the account information is franchise account, determine that the corresponding label of the comment information is the Three labels include specific identifier using the comment information after third label rendering;
When the rank indicates that the account information is regular account, determine that the corresponding label of the comment information is the Four labels do not include the specific identifier using the comment information after the 4th label rendering.
Optionally, the corresponding label of the determination comment information is the second label, is specifically included:
Determine the rank of the account information;
When the rank indicates that the account information is franchise account, determine that the corresponding label of the comment information is the Five labels include specific identifier using the comment information after the 5th label rendering;
When the rank indicates that the account information is regular account, determine that the corresponding label of the comment information is the Six labels do not include the specific identifier using the comment information after the 6th label rendering.
In other application scenarios, after having judged that user property is " other people accounts " or " itself account ", also need Judge it is " regular account " or " franchise account ", this is " other people accounts " with user property or " self attributes " are two independent Judgement, front and back does not contact directly.This specification embodiment, which provides, first judges whether it is " itself account ", and rear judgement is It is no it is of course also possible to exchange two sequences first to judge whether it is " franchise account " for " franchise account ", after judge whether it is " itself account ", this belongs to the range that this specification covers.
In specific application scenarios, the rank of the account information is determined, there can be following methods:
The first: the account information of all franchise accounts being stored, these account informations can be account name, account The phone number of family binding, can also be third party's account information of account binding.In this case, the account letter is determined The grade complicated variant of breath can be matched according to the account information of franchise account of storage with the account information of comment information, if Successful match then illustrates that the account of comment information illustrates that the account of comment information is if matching is unsuccessful for franchise account Regular account.
Second: in some cases, the account information of franchise account can have special mark, e.g., " VIP ", if Comprising " VIP " this mark in the account information of comment information, then illustrate the account for franchise account.In some special circumstances Under, it can be assigned account information different marks according to the classification of account, e.g., number is that " 0 " represents franchise account, and number is " 1 " Regular account is represented, these labels can be stored in account information as the attribute of account.In this case, the account is determined The rank of family information, as long as the number obtained in account information is assured that.
In this specification embodiment, the comment information of franchise account has a special identifier, such as medal in display Etc., it is therefore desirable to select the label with medal effect to render corresponding comment information.
S104: the comment information is rendered using the label.
In this specification embodiment, carrying out rendering to comment information be can be to the content of text progress in comment information Then the modification of format is shown on the display interface of broadcasting content.
In application scenes, step S104 is specifically included:
Obtain the content of text of the comment information;
The pattern of the content of text is processed into the corresponding pattern of the label;The pattern includes font color, word At least one of physique formula or specific identifier.
In this specification embodiment, comment information is rendered using label, primarily directed in comment information Content of text, can color, font, font size, special-effect to content of text render, can also increase in content of text Add specific identifier.
Optionally, after the use label renders the comment information, further includes:
Determine the idle trajectory of the corresponding display interface of the broadcasting content;
The content of text after treatment is shown on the idle trajectory.
In this specification embodiment, live streaming region is provided with trajectory.Trajectory is the channel moved horizontally for barrage.One As in the case of, barrage from live streaming interface right side occur, be moved horizontally to live streaming interface left side, until disappear.
The quantity of trajectory can be determining according to the height in live streaming region and the height of trajectory, specifically: trajectory quantity=straight Broadcast region height/ballistic ordinate.User can be accustomed to according to the viewing of oneself, and selection shows barrage in the upper of live streaming region Side, downside or full frame.
In this specification embodiment, it is used to determine whether there is idle trajectory by detection trajectory state, for showing Comment information.Under normal conditions, it after a barrage is shown in display interface, can be moved to the left from right side, when a barrage The last one information after regular length in not new content occur, it can be said that the bright trajectory handles idle state, It is displayed for next barrage.
Optionally, after the corresponding account information of the determination comment information, further includes:
Determine the account attributes of the account information;
Judge that the corresponding label of the account attributes whether there is, obtains the second judging result;
In the absence of second judging result indicates the corresponding label of the account attributes, the account attributes are created Corresponding label;
The comment information is rendered using the account attributes corresponding label of creation.
In this specification embodiment, when there is no the corresponding label of comment information in label recovery pond, it is necessary to create One label corresponding with the comment information.When establishing this label, need to determine label according to account attributes Then type calls the program code of label corresponding with the type to generate the label.
Optionally, the comment information is carried out to render it in the account attributes corresponding label using creation Afterwards, further includes:
The corresponding label of the account attributes of creation is stored;
Destruction count down time for the label after storage is set.
In this specification embodiment, the label after using is stored, in order to recycle.In order not to accumulate too More labels needs to be arranged the destruction count down time of label after label is stored in label recovery pond, if do not had for a long time It is utilized, which can be destroyed, avoids occupying too many memory space.
Optionally, after the use label renders the comment information, further includes:
Reset the destruction count down time of the label.
In this specification embodiment, after label is used, after being recycled, need to be taken as a new mark Label, it is therefore desirable to destruction count down time is reset, in order to which next time is called.
By the above method, this specification embodiment uses label reclaim mechanism, recycles the label that do not destroy, to the greatest extent may be used The rendering burden of the page can be reduced, the consumption of less CPU improves the fluency of the page, to improve to improve page performance The viewing experience of user.
In order to which the vivider method for illustrating that this specification provides does more detailed description below by taking barrage message as an example.
Barrage is the form of expression of the comment information in display interface of user.In the lower right side of web direct broadcasting room, there is a bullet The button of curtain, after making barrage button and opening, comment information will be shown on the interface in live streaming region.Under normal conditions, Live streaming region is provided with trajectory.Trajectory is the channel moved horizontally for barrage.Under normal circumstances, the right side of the barrage from live streaming interface Side occurs, and is moved horizontally to the left side at live streaming interface, until disappearing.
The quantity of trajectory can be determining according to the height in live streaming region and the height of trajectory, specifically: trajectory quantity=straight Broadcast region height/ballistic ordinate.User can be accustomed to according to the viewing of oneself, and selection shows barrage in the upper of live streaming region Side, downside or full frame.
Fig. 2 is a kind of process of the concrete application scene of the rendering method for comment information that this specification embodiment provides Figure, as shown in Figure 2, comprising the following steps:
(1) when barrage switch it is in the open state when, create a web worker process real-time detection trajectory state with And creation, the destruction opportunity of barrage.
This specification embodiment is set up another thread detection barrage creation using web worker and is destroyed opportunity, is not take up Javascript main thread, performance is better than timer, to improve page performance, promotes page fluency.
(2) it receives the message that public screen sends over, and message is carried out to be stored in barrage library after parsing classification, barrage library can be with The display order and style of customized barrage type.
Under normal conditions, it can directly create barrage to be shown, if needed after live page is paved with barrage completely The comment information that user sends is stored.Before being stored, then, sorted comment information is deposited in into bullet In curtain library, barrage library can be with the display order and style of the type of customized comment information.Such as, display order can be determined Justice, the preferential information for showing user oneself and sending, followed by the information that noble user sends, are finally the letters that ordinary user sends Breath.The display styles for sending information can also be defined.Such as, the color difference or word for the information that different user is sent Physique formula is different.For noble user, the form of expression can be added to be shown with text, the information font that user oneself sends It can be black, etc. with colored display, the information font that other users are sent.Here it only needs for different comment informations Type, display styles are different.
(3) idle state of real-time detection trajectory, and judge to pass through mark with the presence or absence of available label in label recovery pond Label are shown in barrage message content on the page.
Firstly, it is necessary to detect whether there is idle trajectory, if there is idle trajectory, then calling from barrage library can be used for The barrage message of display.It is gone to judge that barrage label whether there is according to barrage message.
In this specification embodiment, whether can be greater than 0 by judging the length of label pond array, sign back receives pond to determine In whether there is available label.
If there are available barrage labels in label recovery pond, barrage label is loaded into the data in barrage library, and And on the idle trajectory of display;If barrage label is not present in label recovery pond, a barrage label is created, sample is set Then formula attribute renders the data in barrage library using newly-built barrage label, on the idle trajectory then shown.
(4) barrage label is using transition the and transform attribute in css3, according to the length and live streaming of barrage Between width, transition time=(length of barrage+direct broadcasting room width)/movement speed of barrage is calculated, to realize The smooth movement of barrage.After barrage effect, the destruction countdown of the barrage label is set, and is put into label recovery pond.
In this specification embodiment, using the deformation (transform) in CSS3 and (transition) attribute is converted, According to the length of barrage and direct broadcasting room width, transition time of barrage=(length+direct broadcasting room of barrage is wide is calculated Degree)/movement speed, to realize that barrage rolls.
CSS3 is the upgraded version of CSS technology, and CSS3 language development is towards modular development.CSS, that is, cascading style sheets (Cascading StyleSheet) is the cascading style sheets technology used in webpage making, can be effectively to the page Layout, font, color, background and other effects realize more accurate control.CSS is huge and more complicated, and CSS3 is CSS Some small modules are decomposed into, more new modules are also added into.Module in CSS3 includes: box model, list mould Block, hyperlink mode, language module, background and frame, text special efficacy, multicolumn layout etc..
The animation attributes of CSS3 include: deformation (transform) and conversion (transition).Transition is mainly wrapped Containing four attribute values: executing the attribute of transformation: transition-property, convert the time of continuity: transition- Duration changes transition-timing-function in the rate of perdurabgility section, transformation, converts delay time transition-delay。
By the animation attributes tool of CSS3, the smooth shifting of barrage from right to left from the display interface in live streaming region is realized It is dynamic.After barrage is shown, the label of each barrage is in it can be reentered into label recovery pond.In order to avoid label Label in recovery pond is excessive, causes to waste, and web worker is also provided with the label countdown in label recovery pond, i.e., from mark Label record the time of deposit there are after label recovery pond, and the time of countdown is then arranged, and start to carry out falling for label destruction Timing.It after the time for being more than countdown in label recovery pond, is then destroyed, is no longer reused.Countdown Time can carry out flexible setting, such as 400ms according to the actual situation.
Using transition the and transform new features in css3 in this specification embodiment, start hardware-accelerated Rendering reduces cpu consumption to improve performance.
Under normal conditions, it for different classes of comment information, then needs to establish a corresponding label in real time and carries out in fact When render.In this specification embodiment, label reclaim mechanism is quoted, in barrage library when substantial amounts, is completed having shown that The label that can be removed is put into label recovery pond, is recycled, and browser is avoided to render again.When barrage library, quantity subtracts When few, which also can slow release.
In this specification embodiment, user can also be according to the transparency for adjusting barrage, in the lower right of display interface Have choice box, comprising: without, it is low, medium and high, represent the degree of the transparency of barrage.User can according to oneself hobby, It is adjusted, improves the experience of user.
(5) step 3 and 4 can be repeated always before the barrage in barrage library has not been shown.
(6) after barrage switch is closed, web worker process is destroyed, barrage library and label recovery pond are emptied.
The above are the rendering methods for the comment information that this specification embodiment provides, and are based on same thinking, this specification Embodiment also provides a kind of rendering device of comment information.
Fig. 3 is a kind of structural schematic diagram of the rendering device for comment information that this specification embodiment provides, such as Fig. 3 institute Show, the apparatus may include:
Comment information obtains module 301, the comment information for being directed to currently playing content for obtaining user;
Account information determining module 302, for determining the corresponding account information of the comment information;
Label determining module 303, for determining the corresponding label of the comment information, the mark according to the account information Label are pre-generated, the account attributes one-to-one correspondence of the label and the account information;
Comment information rendering module 304, for being rendered using the label to the comment information.
Optionally, the label determining module 303, can specifically include:
Logon account information acquisition unit, for obtaining the logon account information of the corresponding page of the broadcasting content;
First judging unit, for judging whether the account information and the logon account information are identical, obtain first Judging result;
First tag determination unit, for indicating that the account information and client account are believed when first judging result Manner of breathing simultaneously, determines that the corresponding label of the comment information is the first label;
Second tag determination unit, for indicating the account information and the client account when first judging result When family information is not identical, determine that the corresponding label of the comment information is the second label, wherein render using first label Comment information afterwards is different from using at least a kind of format of comment information after second label rendering.
Optionally, first tag determination unit, can specifically include:
Rank determines subelement, determines the rank of the account information;
Third label determines subelement, for determining institute when the rank indicates that the account information is franchise account Stating the corresponding label of comment information is third label, includes specific identifier using the comment information after third label rendering;
4th label determines subelement, for determining institute when the rank indicates that the account information is regular account Stating the corresponding label of comment information is the 4th label, does not include described specific using the comment information after the 4th label rendering Mark.
Optionally, second tag determination unit, can specifically include:
Rank determines subelement, for determining the rank of the account information;
5th label determines subelement, for determining institute when the rank indicates that the account information is franchise account Stating the corresponding label of comment information is the 5th label, includes specific identifier using the comment information after the 5th label rendering;
6th label determines subelement, for determining institute when the rank indicates that the account information is regular account Stating the corresponding label of comment information is the 6th label, does not include described specific using the comment information after the 6th label rendering Mark.
Optionally, comment information rendering module 304, can specifically include:
Content of text acquiring unit, for obtaining the content of text of the comment information;
Content of text processing unit, for the pattern of the content of text to be processed into the corresponding pattern of the label;Institute State at least one that pattern includes font color, font format or specific identifier.
Optionally, described device can also include:
Idle trajectory determining module, for it is described the comment information is rendered using the label after, really Determine the idle trajectory of the corresponding display interface of the broadcasting content;
Display module, for showing the content of text after treatment on the idle trajectory.
Optionally, described device can also include:
Account attributes determining module, for determining institute after the corresponding account information of the determination comment information State the account attributes of account information;
Second judgment module obtains the second judging result for judging that the corresponding label of the account attributes whether there is;
Creation module, for creating in the absence of second judging result indicates the corresponding label of the account attributes Build the corresponding label of the account attributes;
Rendering unit, for being rendered using the corresponding label of the account attributes of creation to the comment information.
Optionally, described device can also include:
Label memory module, for using the corresponding label of the account attributes created to the comment information described After being rendered, the corresponding label of the account attributes of creation is stored;
Count down time setup module is destroyed, for the destruction count down time for the label after storage to be arranged.
Optionally, after the use label renders the comment information, described device can also be wrapped It includes:
It destroys count down time and resets module, for resetting the destruction count down time of the label.
Fig. 4 is a kind of structural representation of the rendering apparatus for comment information corresponding to Fig. 1 that this specification embodiment provides Figure.As shown in figure 4, equipment 400 may include:
At least one processor 410;And
The memory 430 being connect at least one described processor communication;Wherein,
The memory 430 is stored with the instruction 420 that can be executed by least one described processor 410, described instruction quilt At least one described processor 410 executes, so that at least one described processor 410 can be realized the rendering of above-mentioned comment information The embodiment of method, function realize the explanation referred in embodiment of the method, and details are not described herein.
Based on same thinking, this specification embodiment additionally provides a kind of computer readable storage medium, described It is stored with instruction on computer readable storage medium, the wash with watercolours of above-mentioned comment information may be implemented when described instruction is executed by processor The embodiment of dyeing method.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitorymedia), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (12)

1. a kind of rendering method of comment information characterized by comprising
Obtain 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 labels according to the account information It is corresponded with the account attributes of the account information;
The comment information is rendered using the label.
2. the method as described in claim 1, which is characterized in that described to determine the comment information pair according to the account information The label answered, specifically includes:
Obtain the logon account information of the corresponding page of the broadcasting content;
Judge whether the account information and the logon account information are identical, obtain the first judging result;
When first judging result indicates that the account information is identical as client account information, the comment information is determined Corresponding label is the first label;
When first judging result indicates that the account information and the client account information be not identical, institute's commentary is determined It is the second label by the corresponding label of information, wherein using the comment information after first label rendering and using described the At least a kind of format of comment information after the rendering of two labels is different.
3. method according to claim 2, which is characterized in that the corresponding label of the determination comment information is the first mark Label, specifically include:
Determine the rank of the account information;
When the rank indicates that the account information is franchise account, determine that the corresponding label of the comment information is third mark Label include specific identifier using the comment information after third label rendering;
When the rank indicates that the account information is regular account, determine that the corresponding label of the comment information is the 4th mark Label do not include the specific identifier using the comment information after the 4th label rendering.
4. method according to claim 2, which is characterized in that the corresponding label of the determination comment information is the second mark Label, specifically include:
Determine the rank of the account information;
When the rank indicates that the account information is franchise account, determine that the corresponding label of the comment information is the 5th mark Label include specific identifier using the comment information after the 5th label rendering;
When the rank indicates that the account information is regular account, determine that the corresponding label of the comment information is the 6th mark Label do not include the specific identifier using the comment information after the 6th label rendering.
5. the method as described in claim 1, which is characterized in that described to carry out wash with watercolours to the comment information using the label Dye, specifically includes:
Obtain the content of text of the comment information;
The pattern of the content of text is processed into the corresponding pattern of the label;The pattern includes font color, font lattice At least one of formula or specific identifier.
6. method as claimed in claim 5, which is characterized in that carry out wash with watercolours to the comment information using the label described After dye, further includes:
Determine the idle trajectory of the corresponding display interface of the broadcasting content;
The content of text after treatment is shown on the idle trajectory.
7. the method as described in claim 1, which is characterized in that the corresponding account information of the determination comment information it Afterwards, further includes:
Determine the account attributes of the account information;
Judge that the corresponding label of the account attributes whether there is, obtains the second judging result;
In the absence of second judging result indicates the corresponding label of the account attributes, it is corresponding to create the account attributes Label;
The comment information is rendered using the account attributes corresponding label of creation.
8. the method for claim 7, which is characterized in that in the corresponding label of the account attributes using creation After being rendered to the comment information, further includes:
The corresponding label of the account attributes of creation is stored;
Destruction count down time for the label after storage is set.
9. the method as described in claim 1, which is characterized in that carry out wash with watercolours to the comment information using the label described After dye, further includes:
Reset the destruction count down time of the label.
10. a kind of rendering device of comment information characterized by comprising
Comment information obtains module, the comment information for being directed to currently playing content for obtaining user;
Account information determining module, for determining the corresponding account information of the comment information;
Label determining module, for determining that the corresponding label of the comment information, the label are pre- according to the account information It first generates, the account attributes of the label and the account information correspond;
Comment information rendering module, for being rendered using the label to the comment information.
11. a kind of rendering apparatus of comment information characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out the wash with watercolours such as the described in any item comment informations of claim 1-9 Dyeing method.
12. a kind of computer readable storage medium, instruction is stored on the computer readable storage medium, which is characterized in that The step of any one method described in claim 1-9 is realized when described instruction is executed by processor.
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
CN107092643B (en) Barrage rendering method and device
CN109714627A (en) A kind of rendering method of comment information, device and equipment
CN104244024B (en) Video cover generation method and device and terminal
CN105373567B (en) Page generation method and client
CN109978972B (en) Method and device for editing characters in picture
US20230229881A1 (en) Dynamic embedding of machine-readable codes within video and digital media
CN109803180A (en) Video preview drawing generating method, device, computer equipment and storage medium
CN109254773A (en) Skeleton page generation method, device, equipment and storage medium
CN103631865B (en) Webpage generating method and equipment
CN105094759B (en) A kind of browse mode switching handling method and device
WO2015196822A1 (en) Method and device for adapting webpage to screen layout
CN103377039B (en) A kind of web game exploitation, analytic method, a kind of editing machine and resolver
CN107707965B (en) Bullet screen generation method and device
CN105373593B (en) The method and device of object element in a kind of displayed web page
US20220383381A1 (en) Video generation method, apparatus, terminal and storage medium
CN103020248A (en) Video file thumbnail generating method and generating device
CN106446139A (en) Webpage content extracting method and device
CN111581564B (en) Webpage synchronous communication method implemented by Canvas
CN106293369B (en) Exchange method, interactive device and user equipment based on barrage
CN102103586B (en) Multi-language bidirectionally mixed-arranged caption edition system
CN102082925B (en) A kind of fill method of subtitle template and device
CN114339373B (en) Queue barrage generation method and device, storage medium and equipment
CN111258434A (en) Method, device, equipment and storage medium for inserting pictures into chat interface
CN112738562B (en) Method, device and computer storage medium for transparent display of browser page
CN102104741B (en) Method and device for arranging multi-language captions

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