CN108174276A - A kind of barrage display methods and display device - Google Patents

A kind of barrage display methods and display device Download PDF

Info

Publication number
CN108174276A
CN108174276A CN201810007120.2A CN201810007120A CN108174276A CN 108174276 A CN108174276 A CN 108174276A CN 201810007120 A CN201810007120 A CN 201810007120A CN 108174276 A CN108174276 A CN 108174276A
Authority
CN
China
Prior art keywords
barrage
character string
display
caching
cached
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
CN201810007120.2A
Other languages
Chinese (zh)
Other versions
CN108174276B (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.)
Shanghai Iqiyi New Media Technology Co ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810007120.2A priority Critical patent/CN108174276B/en
Publication of CN108174276A publication Critical patent/CN108174276A/en
Application granted granted Critical
Publication of CN108174276B publication Critical patent/CN108174276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An embodiment of the present invention provides a kind of barrage display methods and device, wherein method includes:The character string for including comment information received is cached, for each character string, determines to have cached the quantity of character string when caching the character string;The cached character string of extraction, parses the comment information in the character string;Gained comment information is converted into barrage and determines the display length of the barrage, the converted barrage of caching;For the barrage of each caching, based on the identified quantity for having cached character string and the display length of the barrage, the sliding time of the barrage is determined;According to the sliding time of identified each barrage, the barrage of display caching is slided.So as to the quantity according to received character string, the sliding time for the barrage that each character string is converted is dynamically adjusted, avoids that user's evaluation information is caused to overstock, user can be made to see delivered barrage in time.

Description

A kind of barrage display methods and display device
Technical field
The present invention relates to field of communication technology, more particularly to a kind of barrage display methods and display device.
Background technology
Barrage refers to be shown in the content on video, is usually appeared on video in the form of rolling, can be that user is directed to The comment that watched video is delivered.In the prior art, during client terminal playing video, server receives different user needle To the real-time comments information that the video uploads, comment information is converted into JSON (JavaScript Object Notation, JS Object tag) data format character string, server send character string to the client for playing the video, client is received and is delayed Character string is deposited, according to the cache-time sequencing of each character string, the cached character string of extraction is parsed in character string Comment information, then comment information is converted into barrage, display barrage is slided on video with fixed speed.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
Existing barrage display methods, every barrage slides display with fixed speed on video, because of the prior art In the display speed of every barrage be changeless, so the sliding time of every barrage can only be carried out with the length of the barrage Regularly change, client can not dynamically adjust the sliding time for the barrage that each character string is converted.When client is at one section When the character string for largely including comment information is received in the time, it is buffered with the character string of receipt of subsequent, the character cached String will be more and more, if still showing every barrage with fixed sliding speed, it will user's evaluation information is caused to overstock, is caused Plot has crossed the barrage that for a long time can just show that user is delivered.
Invention content
The embodiment of the present invention is designed to provide a kind of barrage display methods, realizes the dynamically slip to each barrage The purpose that time is adjusted.Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of barrage display methods, applied to client, the method packet It includes:
The character string for include comment information that is received is cached, for each character string, when determining the caching character string The quantity of character string is cached;
The cached character string of extraction, parses the comment information in the character string;
The gained comment information is converted into barrage and determines the display length of the barrage, the converted barrage of caching;
For the barrage of each caching, grown based on the display of the identified quantity for having cached character string and the barrage Degree determines the sliding time of the barrage, wherein, the sliding time of the barrage is with the identified current quantity for having cached character string Increase and reduce, show that length increases and increases with barrage;
According to the sliding time of identified each barrage, the barrage of display caching is slided.
Optionally, the cached character string of the extraction, parses the comment information in character string, including:
Time order and function according to caching character string sequentially extracts the multiple character strings cached, and parsing is extracted in character string Comment information;
Alternatively, according to multiple character strings that the priority orders extraction of character string is cached, parsing is extracted in character string Comment information.
Optionally, the barrage for each caching, based on the identified quantity for having cached character string and the bullet The display length of curtain determines the sliding time of the barrage, wherein, the sliding time of the barrage has currently cached word with identified The quantity of symbol string increases and reduces, and shows that length increases and increases with barrage, including:
By the following formula, the sliding time of the barrage is determined:
In formula, TiRepresent the sliding time of the barrage, W represents the length of the barrage display area, WiRepresent the bullet Curtain shows length, TmaxRepresent maximum character string caching quantity, BnExpression has cached the quantity of character string, λnRepresent the first coefficient, λwRepresent the second coefficient.
Optionally, the sliding time according to identified each barrage slides the barrage of display caching, including:
According to the sliding time of identified first barrage, the first barrage of display caching is slided;
After first barrage slides its own length and at least first distance, the second barrage of display caching is slided, Wherein, first barrage and the adjacent caching of second barrage, first distance are not weighed for the first barrage and the second barrage Folded minimum range.
Optionally, it is described after first barrage slides its own length and at least first distance, slide display caching The second barrage, including:
By the following formula, the first distance is determined:
In formula, WgRepresent the first distance, W represents the length of barrage display area, WaRepresent that the first barrage shows length, Ta Represent the sliding time of the first barrage, WbRepresent that the second barrage shows length, TbRepresent the sliding time of the second barrage.
Optionally, it is described to cache the multiple character strings for including comment information received, for each character string, determine Before the quantity that character string has been cached when caching the character string, the method further includes:
The multiple character strings for including comment information sent by server are received, judge to receive character string in the unit interval Quantity whether be less than predetermined threshold value, if less than predetermined threshold value, convert the character string as barrage, slided according to pre-set velocity Show the barrage.
Second aspect, an embodiment of the present invention provides a kind of barrage display device, described device includes:
First cache module, for caching the character string for including comment information that is received, for each character string, really The quantity of character string has been cached when caching the character string surely;
Parsing module for extracting cached character string, parses the comment information in character string;
Second cache module, for gained comment information to be converted into barrage and determines the display length of the barrage, caching The barrage converted;
Determining module for being directed to the barrage of each caching, based on the identified quantity for having cached character string and is somebody's turn to do The display length of barrage determines the sliding time of the barrage, wherein, the sliding time of the barrage has currently been cached with identified The quantity of character string increases and reduces, and shows that length increases and increases with barrage;
First display module, for according to the sliding time of identified each barrage, sliding the barrage of display caching.
Optionally, the parsing module, is specifically used for:
Time order and function according to caching character string sequentially extracts the multiple character strings cached, and parsing is extracted in character string Comment information;
Alternatively, according to multiple character strings that the priority orders extraction of character string is cached, parsing is extracted in character string Comment information.
Optionally, the determining module, is specifically used for:
By the following formula, the sliding time of the barrage is determined:
In formula, TiRepresent the sliding time of the barrage, W represents the length of the barrage display area, WiRepresent the bullet Curtain shows length, TmaxRepresent maximum character string caching quantity, BnExpression has cached the quantity of character string, λnRepresent the first coefficient, λwRepresent the second coefficient.
Optionally, second display module, including:
First display sub-module, for according to the sliding time of identified first barrage, sliding the first of display caching Barrage;
Second display sub-module, for after first barrage slides its own length and at least first distance, sliding Second barrage of display caching, wherein, first barrage and the adjacent caching of second barrage, first distance is first Barrage and the nonoverlapping minimum range of the second barrage.
Optionally, second display sub-module, is specifically used for:
By the following formula, the first distance is determined:
In formula, WgRepresent the first distance, W represents the length of barrage display area, WaRepresent that the first barrage shows length, Ta Represent the sliding time of the first barrage, WbRepresent that the second barrage shows length, TbRepresent the sliding time of the second barrage.
Optionally, described device further includes:
Second display module for receiving the multiple character strings for including comment information sent by server, judges unit Whether the quantity that character string is received in the time is less than predetermined threshold value, if less than predetermined threshold value, converts the character string as bullet Curtain slides according to pre-set velocity and shows the barrage.
The third aspect, the embodiment of the present invention additionally provide a kind of electronic equipment, including processor, communication interface, memory And communication bus, wherein, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor during for performing the program stored on memory, realizes any of the above-described barrage display methods Step.
At the another aspect that the present invention is implemented, a kind of computer readable storage medium is additionally provided, it is described computer-readable Instruction is stored in storage medium, when run on a computer so that computer performs any of the above-described barrage and shows Show method.
At the another aspect that the present invention is implemented, the embodiment of the present invention additionally provides a kind of computer program production comprising instruction Product, when run on a computer so that computer performs any of the above-described barrage display methods.
A kind of barrage display methods provided in an embodiment of the present invention and device pass through each character string received in caching When, it determines currently to have cached the quantity of character string and when character string is converted into barrage, determines the display length of barrage, And based on the identified display length for having cached character string quantity and the barrage, the sliding time of the barrage is determined, due to working as Numerical value of the preceding quantity for having cached character string for a dynamic change, therefore client can move the sliding time of each barrage It is adjusted to state, so as to avoid causing user's evaluation information from overstocking, user can be made to see delivered barrage in time.When So, it implements any of the products of the present invention or method must be not necessarily required to reach all the above advantage simultaneously.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of flow diagram of barrage display methods provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of barrage sliding distance in a kind of barrage display methods provided in an embodiment of the present invention;
Fig. 3 is the flow signal for the barrage that display caching is slided in a kind of barrage display methods provided in an embodiment of the present invention Figure;
Fig. 4 is the display schematic diagram of two adjacent barrages in a kind of barrage display methods provided in an embodiment of the present invention;
Fig. 5 is in a kind of barrage display methods provided in an embodiment of the present invention, and adjacent barrage is not overlapped showing for limiting case It is intended to;
Fig. 6 is a kind of structure diagram of barrage display device provided in an embodiment of the present invention;
Fig. 7 is a kind of another structure diagram of barrage display device provided in an embodiment of the present invention;
Fig. 8 is the structure diagram of the second display module in a kind of barrage display device provided in an embodiment of the present invention;
Fig. 9 is a kind of structure diagram of barrage display system provided in an embodiment of the present invention;
Figure 10 is the structure diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is described.
Dynamically the sliding time of each barrage is adjusted in order to realize, an embodiment of the present invention provides a kind of barrages Display methods, display device and electronic equipment.
Existing barrage display methods, when client shows barrage in video, every barrage is generally with fixed cunning Dynamic speed is shown.Barrage has certain length, and when sliding display, the head of barrage is usually slided from the side boundary of video Occur, then slide into another lateral boundaries of video, until the tail portion of barrage skids off boundary, this barrage slides display and completes. Different in size due to every barrage, the sliding speed of barrage is fixed, in existing barrage display methods, the sliding time of barrage Only can change with the length rule of barrage, when barrage is long, sliding time is elongated therewith, when barrage in short-term, sliding time is therewith It shortens, the quantity of user comment can not be received according to client, dynamic adjusts the sliding time of barrage.When in user's short time When delivering a large amount of comments, user's evaluation information can be caused to overstock, plot is caused to cross the bullet that for a long time can just show that user is delivered Curtain content, user experience are bad.
Generally, a kind of barrage display methods provided in an embodiment of the present invention, first, in each character that caching is received During string, determine currently to have cached the quantity of character string and when character string is converted into barrage, determine that the display of barrage is grown Degree;Then, based on the identified display length for having cached character string quantity and the barrage, and then during the slip of the determining barrage Between.Due to currently having cached the numerical value of the quantity of character string for a dynamic change, client is determining every barrage During sliding time, the sliding time of each barrage can be dynamically adjusted, so as to avoid causing user's evaluation information from accumulating Pressure, makes user see delivered barrage in time, improves the usage experience of user.
Embodiment of the method
As shown in Figure 1, an embodiment of the present invention provides a kind of barrage display methods, it can be applied to play the client of video End, naturally it is also possible to there is the equipment of data processing operation applied to other kinds of, which can include following step Suddenly:
The character string for including comment information that S101, caching are received for each character string, determines to cache the character The quantity of character string has been cached during string.
In the embodiment of the present invention, client receive as the character string transmitted by server, typically JSON The string of binary characters of (JavaScript Object Notation, JS object tag) data format, JSON data formats are A kind of data interchange format of lightweight.In above-mentioned character string, comment information that user delivers can be carried in itself and such as The information such as user's name, user gradation, character string priority.From the foregoing, it will be observed that in the character string that client is received, not only include Comment information, also comprising other information.For example, can be by character string, user's name corresponding with comment information and user Grade determines the significance level of the comment information.Specifically, when user gradation is high-grade, corresponding comment information weight Want degree high.
Under normal conditions, after client receives the multiple character strings sent one by one by server, the received character of caching String.Specifically he, client can cache received character string in the form of chained list.By the character string meeting cached in chained list It is extracted progress barrage to show so that caching quantity is reduced, and newly caching character string can so that caching quantity increases, therefore delay The character string quantity deposited is a dynamic value.Client, can be with one word of every caching in multiple character strings that caching is received Symbol string is determined once when caching the character string, currently the quantity of buffered character string.Determine caching character string quantity Process is simple algorithm calculations, and the process performance of client is had little effect.
As the optional embodiment of the method for the present invention embodiment kind, sometimes due to the character string quantity that client is received Seldom, caching can be not required to directly to convert character string and show barrage.Specifically, an amount threshold can be set, The threshold value can be application developer according to determined by client performance, client being capable of processing character within the unit interval The maximum value of string quantity.If the character string quantity received in the client unit interval is greater than or equal to predetermined threshold value, caching The character string received, and according to barrage display methods processing character string provided in an embodiment of the present invention and show barrage;If The character string quantity received in the client unit interval is less than predetermined threshold value, and the character string received directly is converted into bullet Curtain, and slided according to pre-set velocity and show barrage.Wherein, pre-set velocity can be changeless.
The cached character string of S102, extraction, parses the comment information in character string.
In the embodiment of the present invention, cached character string can be extracted from chained list, and parse the comment in the character string Information.
It, can be suitable according to the time order and function for caching each character string as the optional embodiment of the method for the present invention embodiment kind Sequence extracts cached character string one by one.For example, the cache-time of character string A is 1 point, the cache-time of character string B is 1 point 01 point, the cache-time of character string C for 1 point 02 minute, then first extract character string A, then extract character string B, then extract character string C. It is this by cache-time extract character string in the way of, can ensure that the comment content of all users is converted into barrage and shows Show.
As it was noted above, precedence information can be carried in character string, to indicate the priority level of the character string.Make It, then can be according to if necessary to the barrage of preferential display responsible consumer for another optional embodiment of the embodiment of the present invention The priority orders of character string extract the multiple character strings cached.For example, the first higher character string of extraction priority, then carry The character string that priority is relatively low is taken, so as to make the character string with higher priority than the character string with lower priority earlier Ground is converted into barrage, and then shows the barrage earlier.
It is alternatively possible at regular intervals, the minimum character string of the priority cached in a chained list is removed, so as to keep away The character string for exempting from cached low priority is overstock.
S103, gained comment information is converted into barrage and determines the display length of the barrage, the converted barrage of caching.
In the embodiment of the present invention, the process that comment information is converted into barrage can be by existing barrage generation method reality Existing, details are not described herein.It is readily appreciated that, after comment information is converted into barrage, the display pixel value (showing length) of the barrage Nature can determine.
After comment information is converted into barrage, converted barrage can be cached.Specifically, client can also be with chain The form caching barrage of table, and storage shows relevant information, such as display length, the cunning of each barrage with each barrage in chained list Dynamic time etc..
S104, the barrage for each caching, based on the identified current quantity and the barrage for having cached character string It shows length, determines the sliding time of the barrage, wherein, the sliding time of the barrage has currently cached character string with identified Quantity increase and reduce, with barrage show length increase and increase.
In the embodiment of the present invention, so it is easy to understand that if the current character string quantity cached is more, illustrate to need The barrage of display is more, if the display length of barrage is longer, illustrates that the sliding distance needed for this barrage is longer.Cause This, when the character string quantity increase cached, in order to show cached barrage as early as possible, can shorten the slip of every barrage Time.
Specifically, the sliding time of the barrage by the following formula, can be determined:
Wherein, TiRepresent the sliding time of the barrage;W represents the length of barrage display area, generally according to the aobvious of video Show that length is set, can specifically be represented with pixel value, such as the resolution ratio of a video is 640 × 480, show the aobvious of the video Show length for 640 pixel values, then the length that can determine the display area of barrage is 800 pixel values;WiRepresent barrage display length Degree, can specifically be represented with pixel value;As shown in Fig. 2, W and WiThe sum of be barrage sliding distance;TmaxRepresent maximum character string Quantity is cached, is set generally according to the memory space of client;BnExpression has cached the quantity of character string;λnIt represents the first coefficient, leads to Standing to be set to constant, the quotient that the character string that can be averaged according to history caches quantity and maximum character string caching quantity determines;λwTable Show the second coefficient, be usually arranged as constant, the barrage that can be averaged according to history shows length and the length of barrage display area Quotient determines.By above-mentioned first coefficient and the second coefficient, the sliding time of barrage can be adjusted.
S105, the sliding time according to identified each barrage slide the barrage of display caching.
It, can be by identified after the sliding time of each barrage for determining to be cached in the embodiment of the present invention Sliding time slides show each barrage one by one.Such as barrage A, identified sliding time are 3 seconds, the display length of barrage A For 20 pixels, the length of barrage display area is 640 pixels, and the sliding distance of barrage A is 660 pixels, then can calculate bullet When curtain A is slided with 220 pixels/second, display can be slided just in 3 seconds and finished.
On the basis of barrage display methods shown in Fig. 1, in the optional embodiment of the method for the present invention embodiment kind, on Sliding times of the S105 according to identified each barrage is stated, the barrage of display caching is slided, as shown in figure 3, being specifically as follows:
S1051 according to the sliding time of identified first barrage, slides the first barrage of display caching.
S1052 after the first barrage slides its own length and the first distance, slides the second barrage of display caching, In, the first distance is the first barrage and the nonoverlapping minimum range of the second barrage.
In the embodiment of the present invention, the first barrage and the second barrage are two barrages of adjacent caching in chained list, such as Fig. 4 institutes Show, the cache-time of the first barrage is earlier than the second barrage, so the first barrage is shown earlier than the second barrage.In the presence of a kind of possible Situation, if after the first barrage is shown, and then showing the second barrage, it is possible to the situation of two barrage superpositions occur.In order to Such case is avoided, its own length and at least the first distance W can be slided in the first barragegAfterwards, then to slide display slow The second barrage deposited, so as to make will not to occur there are certain distance between the second barrage and the first barrage two barrages overlappings Situation.
As shown in figure 5, the first barrage is with the nonoverlapping limiting case of the second barrage, when the first barrage shows completion just When (tail portion skids off display area just), the head of the second barrage closely tail portion of the first barrage just.To make the first bullet Curtain is not be overlapped with the second barrage, and it is necessary to meet following condition:
Wherein, WgRepresent the first distance;W represents the length of barrage display area, is set generally according to the length of video, tool Body can be represented with pixel value;VaRepresent the sliding speed of the first barrage;VbRepresent the sliding speed of the second barrage.
Know again, the sliding speed of the first barrage is:
Wherein, TaRepresent that the slip of the first barrage shows the time;WaRepresent the display length of the first barrage;W represents that barrage is shown Show the length in region;
The sliding speed of second barrage is:
Wherein, TbRepresent that the slip of the second barrage shows the time;WbRepresent the display length of the second barrage;W represents that barrage is shown Show the length in region;
It can then derive that the first distance is:
Wherein, WgRepresent the first distance;W represents the length of barrage display area, is set generally according to the length of video, tool Body can be represented with pixel value;WaIt represents that the first barrage shows length, can specifically be represented with pixel value;TaRepresent the first barrage Sliding time;WbIt represents that the second barrage shows length, can specifically be represented with pixel value;TbWhen representing the slip of the second barrage Between.
After the first barrage starts to slide display, sliding distance is at least Wa+WgWhen, by the second barrage and then first It is slided behind barrage, in this way when the first barrage, which slides, to disappear, can guarantee that the second barrage and the first barrage do not overlap.
A kind of barrage display methods provided in an embodiment of the present invention, by caching received each character string when, really The quantity of character string has been cached before settled and when character string is converted into barrage, determines the display length of barrage, and be based on The identified display length for having cached character string quantity and the barrage determines the sliding time sliding time of the barrage, due to Numerical value of the current quantity for having cached character string for a dynamic change, therefore client can be to the sliding time of each barrage It is dynamically adjusted, so as to avoid causing user's evaluation information from overstocking, user can be made to see delivered barrage in time.
Device embodiment
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of barrage display device, such as Fig. 6 institutes Show, including:
First cache module 201, for caching the character string for including comment information received, for each character String determines to have cached the quantity of character string when caching the character string;
Parsing module 202 for extracting cached character string, parses the comment information in character string;
Second cache module 203 for gained comment information to be converted into barrage and determines the display length of the barrage, delays Deposit converted barrage;
Determining module 204, for being directed to the barrage of each caching, based on the identified quantity for having cached character string and The display length of the barrage determines the sliding time of the barrage, wherein, the sliding time of the barrage has currently delayed with identified The quantity for depositing character string increases and reduces, and shows that length increases and increases with barrage;
First display module 205, for according to the sliding time of identified each barrage, sliding the bullet of display caching Curtain.
Optionally, parsing module 202 are specifically used for:
Time order and function according to caching character string sequentially extracts the multiple character strings cached, and parsing is extracted in character string Comment information;
Alternatively, according to multiple character strings that the priority orders extraction of character string is cached, parsing is extracted in character string Comment information.
Optionally it is determined that module 204, is specifically used for:
By the following formula, the sliding time of the barrage is determined:
In formula, TiRepresent the sliding time of the barrage, W represents the length of the barrage display area, WiRepresent the bullet Curtain shows length, TmaxRepresent maximum character string caching quantity, BnExpression has cached the quantity of character string, λnRepresent the first coefficient, λwRepresent the second coefficient.
As shown in fig. 7, the embodiment of the present invention additionally provides a kind of barrage display device, on the basis of above device embodiment On, the device of the embodiment of the present invention may further include:
Second display module 206 for receiving the multiple character strings for including comment information sent by server, judges list Whether the quantity that character string is received in the time of position is less than predetermined threshold value, and if less than predetermined threshold value, converting the character string is Barrage slides according to pre-set velocity and shows the barrage.
Optionally, as shown in figure 8, the second display module 206, including:
First display sub-module 2061, for according to the sliding time of identified first barrage, sliding display caching First barrage;
Second display sub-module 2062, for sliding its own length and at least first after in first barrage, The second barrage of display caching is slided, wherein, first barrage and the adjacent caching of second barrage, first distance are First barrage and the nonoverlapping minimum range of the second barrage.
Optionally, the second display sub-module 2062, is specifically used for:
By the following formula, the first distance is determined:
In formula, WgRepresent the first distance, W represents the length of barrage display area, WaRepresent that the first barrage shows length, Ta Represent the sliding time of the first barrage, WbRepresent that the second barrage shows length, TbRepresent the sliding time of the second barrage.
A kind of barrage display device provided in an embodiment of the present invention, by caching received each character string when, really The quantity of character string has been cached before settled and when character string is converted into barrage, determines the display length of barrage, and be based on The identified display length for having cached character string quantity and the barrage determines the sliding time sliding time of the barrage, due to Numerical value of the current quantity for having cached character string for a dynamic change, therefore client can be to the sliding time of each barrage Dynamically it is adjusted.
As shown in figure 9, the embodiment of the present invention additionally provides a kind of barrage display system, including:401 He of barrage function module Message function module 402, wherein, barrage function module 401 can be located at client, for receiving by message function module 402 The character string of transmission, the processing task related with barrage;Message function module 402 can be located at server, for barrage work( Energy module 401 sends the character string containing user comment information.
Barrage function module 401 includes:Display control submodule 4010, cache sub-module 4011, character string buffer unit 4012, barrage buffer unit 4013, barrage Message Processing submodule 4014.
Its processing procedure is:After barrage Message Processing submodule 4014 receives (JSON forms) character string, character string is delayed It deposits to character string buffer unit 4012;When to string processing, the cached character string of extraction is simultaneously handled as barrage, and by bullet Curtain caching to barrage buffer unit 4013, display control submodule 4010 obtains the barrage that barrage buffer unit 4013 is cached, The display time of barrage is calculated, barrage is shown in screen.After barrage is shown, the view of the barrage can also be recycled (view), it and caches to barrage buffer unit 4013, after receiving new barrage, the view recycled is initialized again, again Setting show content be new barrage, avoid ceaselessly New View to picture, avoid waste of resource.
A kind of barrage display system provided in an embodiment of the present invention, by caching received each character string when, really The quantity of character string has been cached before settled and when character string is converted into barrage, determines the display length of barrage, and be based on The identified display length for having cached character string quantity and the barrage determines the sliding time sliding time of the barrage, due to Numerical value of the current quantity for having cached character string for a dynamic change, therefore client can be to the sliding time of each barrage It is dynamically adjusted, so as to avoid causing user's evaluation information from overstocking, user can be made to see delivered barrage in time.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in Figure 10, including processor 301, communication interface 302nd, memory 303 and communication bus 304, wherein, processor 301, communication interface 302, memory 303 passes through communication bus 304 complete mutual communication,
Memory 303, for storing computer program;
Processor 301 during for performing the program stored on memory 303, realizes following steps:
The character string for include comment information that is received is cached, for each character string, when determining the caching character string The quantity of character string is cached;
The cached character string of extraction, parses the comment information in character string;
Gained comment information is converted into barrage and determines the display length of the barrage, the converted barrage of caching;
For the barrage of each caching, grown based on the display of the identified quantity for having cached character string and the barrage Degree determines the sliding time of the barrage, wherein, the sliding time of the barrage is with the identified current quantity for having cached character string Increase and reduce, show that length increases and increases with barrage;
According to the sliding time of identified each barrage, the barrage of display caching is slided.
A kind of electronic equipment provided in an embodiment of the present invention is worked as by when caching each character string received, determining The preceding quantity for having cached character string and when character string is converted into barrage determines the display length of barrage, and based on institute really The fixed sliding time sliding time for having cached character string quantity and the display length of the barrage, having determined the barrage, due to current Numerical value of the quantity of character string for a dynamic change is cached, therefore client can be to the sliding time dynamic of each barrage Ground is adjusted, and so as to avoid causing user's evaluation information from overstocking, user can be made to see delivered barrage in time.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of representing, only represented in figure with a thick line, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, abbreviation RAM), can also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), application-specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer so that computer performs any institute in above-described embodiment The barrage display methods stated.
In another embodiment provided by the invention, a kind of computer program product for including instruction is additionally provided, when it When running on computers so that computer performs any barrage display methods in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and performing the computer program instructions, all or It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium In or from a computer readable storage medium to another computer readable storage medium transmit, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is the data storage devices such as server, the data center integrated comprising one or more usable mediums.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device reality For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (13)

1. a kind of barrage display methods, which is characterized in that applied to client, the method includes:
The character string for including comment information received is cached, for each character string, determines to have delayed when caching the character string Deposit the quantity of character string;
The cached character string of extraction, parses the comment information in the character string;
The gained comment information is converted into barrage and determines the display length of the barrage, the converted barrage of caching;
For the barrage of each caching, based on the identified quantity for having cached character string and the display length of the barrage, really The sliding time of the fixed barrage, wherein, the sliding time of the barrage increases with the identified current quantity for having cached character string And reduce, show that length increases and increases with barrage;
According to the sliding time of identified each barrage, the barrage of display caching is slided.
2. barrage display methods according to claim 1, which is characterized in that the cached character string of the extraction, parsing Comment information in character string, including:
Time order and function according to caching character string sequentially extracts the multiple character strings cached, and commenting in character string is extracted in parsing By information;
Alternatively, according to multiple character strings that the priority orders extraction of character string is cached, commenting in character string is extracted in parsing By information.
3. barrage display methods according to claim 1, which is characterized in that the barrage for each caching, base In the identified quantity for having cached character string and the display length of the barrage, the sliding time of the barrage is determined, wherein, the bullet The sliding time of curtain increases with the identified current quantity for having cached character string and is reduced, and shows that length increases and increases with barrage Add, including:
By the following formula, the sliding time of the barrage is determined:
In formula, TiRepresent the sliding time of the barrage, W represents the length of the barrage display area, WiRepresent that the barrage is shown Show length, TmaxRepresent maximum character string caching quantity, BnExpression has cached the quantity of character string, λnRepresent the first coefficient, λwTable Show the second coefficient.
4. barrage display methods according to claim 1, which is characterized in that the cunning according to identified each barrage The dynamic time slides the barrage of display caching, including:
According to the sliding time of identified first barrage, the first barrage of display caching is slided;
After first barrage slides its own length and at least first distance, the second barrage of display caching is slided, wherein, First barrage and the adjacent caching of second barrage, first distance are nonoverlapping most for the first barrage and the second barrage Small distance.
5. barrage display methods according to claim 4, which is characterized in that described to slide its own in first barrage After length and at least first distance, the second barrage of display caching is slided, including:
By the following formula, the first distance is determined:
In formula, WgRepresent the first distance, W represents the length of barrage display area, WaRepresent that the first barrage shows length, TaIt represents The sliding time of first barrage, WbRepresent that the second barrage shows length, TbRepresent the sliding time of the second barrage.
6. barrage display methods according to claim 1, which is characterized in that the caching was received includes comment information Multiple character strings, for each character string, before the quantity for determining to have cached character string when caching the character string, the side Method further includes:
The multiple character strings for including comment information sent by server are received, judge to receive the number of character string in the unit interval Whether amount is less than predetermined threshold value, if less than predetermined threshold value, converts the character string as barrage, slides and show according to pre-set velocity The barrage.
7. a kind of barrage display device, which is characterized in that described device includes:
First cache module for caching the character string for including comment information received, for each character string, determines slow The quantity of character string has been cached when depositing the character string;
Parsing module for extracting cached character string, parses the comment information in character string;
Second cache module, for gained comment information to be converted into barrage and determines the display length of the barrage, caching turns The barrage of change;
Determining module, for being directed to the barrage of each caching, based on the identified quantity for having cached character string and the barrage Display length, determine the sliding time of the barrage, wherein, the sliding time of the barrage has currently cached character with identified The quantity of string increases and reduces, and shows that length increases and increases with barrage;
First display module, for according to the sliding time of identified each barrage, sliding the barrage of display caching.
8. barrage display device according to claim 7, which is characterized in that the parsing module is specifically used for:
Time order and function according to caching character string sequentially extracts the multiple character strings cached, and commenting in character string is extracted in parsing By information;
Alternatively, according to multiple character strings that the priority orders extraction of character string is cached, commenting in character string is extracted in parsing By information.
9. barrage display device according to claim 7, which is characterized in that the determining module is specifically used for:
By the following formula, the sliding time of the barrage is determined:
In formula, TiRepresent the sliding time of the barrage, W represents the length of the barrage display area, WiRepresent that the barrage is shown Show length, TmaxRepresent maximum character string caching quantity, BnExpression has cached the quantity of character string, λnRepresent the first coefficient, λwTable Show the second coefficient.
10. barrage display device according to claim 7, which is characterized in that second display module, including:
First display sub-module, for according to the sliding time of identified first barrage, sliding the first barrage of display caching;
Second display sub-module, for after first barrage slides its own length and at least first distance, sliding display Second barrage of caching, wherein, first barrage and the adjacent caching of second barrage, first distance is the first barrage With the nonoverlapping minimum range of the second barrage.
11. barrage display device according to claim 10, which is characterized in that second display sub-module, it is specific to use In:
By the following formula, the first distance is determined:
In formula, WgRepresent the first distance, W represents the length of barrage display area, WaRepresent that the first barrage shows length, TaIt represents The sliding time of first barrage, WbRepresent that the second barrage shows length, TbRepresent the sliding time of the second barrage.
12. barrage display device according to claim 7, which is characterized in that described device further includes:
Second display module for receiving the multiple character strings for including comment information sent by server, judges the unit interval Whether the quantity of interior received character string is less than predetermined threshold value, if less than predetermined threshold value, converts the character string as barrage, presses It is slided according to pre-set velocity and shows the barrage.
13. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein, processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor during for performing the program stored on memory, realizes any method and steps of claim 1-6.
CN201810007120.2A 2018-01-04 2018-01-04 Bullet screen display method and display device Active CN108174276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810007120.2A CN108174276B (en) 2018-01-04 2018-01-04 Bullet screen display method and display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810007120.2A CN108174276B (en) 2018-01-04 2018-01-04 Bullet screen display method and display device

Publications (2)

Publication Number Publication Date
CN108174276A true CN108174276A (en) 2018-06-15
CN108174276B CN108174276B (en) 2020-10-20

Family

ID=62517294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810007120.2A Active CN108174276B (en) 2018-01-04 2018-01-04 Bullet screen display method and display device

Country Status (1)

Country Link
CN (1) CN108174276B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933968A (en) * 2018-07-03 2018-12-04 武汉斗鱼网络科技有限公司 A kind of conversion method of message format, device, storage medium and android terminal
CN108932128A (en) * 2018-07-03 2018-12-04 武汉斗鱼网络科技有限公司 A kind of conversion method of message format, device, storage medium and android terminal
CN109413504A (en) * 2018-09-30 2019-03-01 武汉斗鱼网络科技有限公司 Barrage method of calibration, device, terminal and storage medium based on character string replacement
CN109413484A (en) * 2018-12-29 2019-03-01 咪咕文化科技有限公司 A kind of barrage methods of exhibiting, device and storage medium
CN110231867A (en) * 2019-05-31 2019-09-13 重庆爱奇艺智能科技有限公司 The method and apparatus of the display properties of barrage are adjusted in virtual reality device
CN110365848A (en) * 2019-07-26 2019-10-22 维沃移动通信有限公司 A kind of message display method and device
CN110781343A (en) * 2019-10-25 2020-02-11 广州酷狗计算机科技有限公司 Method, device and equipment for displaying comment information of music and storage medium
CN111596834A (en) * 2019-09-06 2020-08-28 吴春光 Video playing APP control platform
CN113495664A (en) * 2020-04-02 2021-10-12 腾讯科技(深圳)有限公司 Information display method, device, equipment and storage medium based on media information stream

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994425A (en) * 2015-06-30 2015-10-21 北京奇艺世纪科技有限公司 Video labeling method and device
CN105847940A (en) * 2016-05-24 2016-08-10 武汉斗鱼网络科技有限公司 Bullet screen display control method and apparatus
CN105898603A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Voice danmaku generation method and device
CN105959818A (en) * 2016-07-01 2016-09-21 上海幻电信息科技有限公司 Bullet screen display method and display system
CN105979341A (en) * 2016-06-23 2016-09-28 武汉斗鱼网络科技有限公司 Bullet curtain moving speed acquisition method and bullet curtain moving speed acquisition device
CN106371834A (en) * 2016-08-30 2017-02-01 广州新博庭网络信息科技股份有限公司 Method and device for displaying bullet screen data
CN107295387A (en) * 2017-06-16 2017-10-24 北京潘达互娱科技有限公司 Barrage display methods and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994425A (en) * 2015-06-30 2015-10-21 北京奇艺世纪科技有限公司 Video labeling method and device
CN105898603A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Voice danmaku generation method and device
CN105847940A (en) * 2016-05-24 2016-08-10 武汉斗鱼网络科技有限公司 Bullet screen display control method and apparatus
CN105979341A (en) * 2016-06-23 2016-09-28 武汉斗鱼网络科技有限公司 Bullet curtain moving speed acquisition method and bullet curtain moving speed acquisition device
CN105959818A (en) * 2016-07-01 2016-09-21 上海幻电信息科技有限公司 Bullet screen display method and display system
CN106371834A (en) * 2016-08-30 2017-02-01 广州新博庭网络信息科技股份有限公司 Method and device for displaying bullet screen data
CN107295387A (en) * 2017-06-16 2017-10-24 北京潘达互娱科技有限公司 Barrage display methods and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932128A (en) * 2018-07-03 2018-12-04 武汉斗鱼网络科技有限公司 A kind of conversion method of message format, device, storage medium and android terminal
CN108933968A (en) * 2018-07-03 2018-12-04 武汉斗鱼网络科技有限公司 A kind of conversion method of message format, device, storage medium and android terminal
CN109413504B (en) * 2018-09-30 2021-04-09 武汉斗鱼网络科技有限公司 Bullet screen checking method, device, terminal and storage medium based on character string replacement
CN109413504A (en) * 2018-09-30 2019-03-01 武汉斗鱼网络科技有限公司 Barrage method of calibration, device, terminal and storage medium based on character string replacement
CN109413484A (en) * 2018-12-29 2019-03-01 咪咕文化科技有限公司 A kind of barrage methods of exhibiting, device and storage medium
CN109413484B (en) * 2018-12-29 2022-05-10 咪咕文化科技有限公司 Bullet screen display method and device and storage medium
CN110231867A (en) * 2019-05-31 2019-09-13 重庆爱奇艺智能科技有限公司 The method and apparatus of the display properties of barrage are adjusted in virtual reality device
CN110365848A (en) * 2019-07-26 2019-10-22 维沃移动通信有限公司 A kind of message display method and device
CN111596834A (en) * 2019-09-06 2020-08-28 吴春光 Video playing APP control platform
CN111596834B (en) * 2019-09-06 2020-12-15 深圳新为云动教育科技有限公司 Video playing APP control system
CN110781343A (en) * 2019-10-25 2020-02-11 广州酷狗计算机科技有限公司 Method, device and equipment for displaying comment information of music and storage medium
CN110781343B (en) * 2019-10-25 2024-03-08 广州酷狗计算机科技有限公司 Method, device, equipment and storage medium for displaying comment information of music
CN113495664A (en) * 2020-04-02 2021-10-12 腾讯科技(深圳)有限公司 Information display method, device, equipment and storage medium based on media information stream

Also Published As

Publication number Publication date
CN108174276B (en) 2020-10-20

Similar Documents

Publication Publication Date Title
CN108174276A (en) A kind of barrage display methods and display device
AU2011101543A4 (en) Tailoring content based on available bandwidth
EP2562972B1 (en) Usable bandwidth measurement system, transmission device, usable bandwidth measurement method and recording medium
CN105210051A (en) Estimating visibility of content items
US10289748B2 (en) Optimizing transmission of digital components
EP2696300A2 (en) Network based font subset management
US20160330283A1 (en) Data Storage Method and Network Interface Card
CN109040230B (en) File downloading method, device, equipment/terminal/server and storage medium
US20160299915A1 (en) Retrieval Method And Retrieval Apparatus Based On Browser
CN108804515B (en) Webpage loading method, webpage loading system and server
CN110247986A (en) A kind of document transmission method, device and electronic equipment
CN109818863A (en) Link priority setting method and device
CN108427883B (en) Method and device for detecting webpage ore mining script
CN114095438B (en) Data transmission method, apparatus, device, storage medium and computer program product
US20180054470A1 (en) Streaming media resource downloading method and apparatus, and terminal device
CN105337891A (en) Traffic control method and traffic control device for distributed cache system
CN105512904A (en) Advertisement push method
US9098645B2 (en) Increasing data transmission rate in an inter-integrated circuit (‘I2C’) system
TWI655642B (en) Memory subsystem with wrapped-to-continuous read
US20240127289A1 (en) Methods, systems, and media for setting and using an advertisement frequency cap based on causal conversions
CN103412898A (en) Method and device for optimizing webpage
JPWO2015107672A1 (en) Image processing program, image processing method, and image processing apparatus
CN104933059B (en) File prestige acquisition methods, gateway and file reputation server
CN110177150A (en) Data acquisition method and device, electronic equipment and readable storage medium
CN113626402A (en) Log data acquisition method and device, electronic equipment and storage medium

Legal Events

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

Effective date of registration: 20240207

Address after: 200335 room 205, floor 2, building 9, No. 365, Linhong Road, Changning District, Shanghai

Patentee after: Shanghai iqiyi New Media Technology Co.,Ltd.

Country or region after: China

Address before: 10 / F and 11 / F, Hongcheng development building, 2 Haidian North 1st Street, Haidian District, Beijing 100080

Patentee before: BEIJING QIYI CENTURY SCIENCE & TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right