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

CN114339373B - Queue barrage generation method and device, storage medium and equipment - Google Patents

Queue barrage generation method and device, storage medium and equipment Download PDF

Info

Publication number
CN114339373B
CN114339373B CN202210260786.5A CN202210260786A CN114339373B CN 114339373 B CN114339373 B CN 114339373B CN 202210260786 A CN202210260786 A CN 202210260786A CN 114339373 B CN114339373 B CN 114339373B
Authority
CN
China
Prior art keywords
character
target
bullet screen
template
characters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210260786.5A
Other languages
Chinese (zh)
Other versions
CN114339373A (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.)
Feihu Information Technology Tianjin Co Ltd
Original Assignee
Feihu Information Technology Tianjin 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 Feihu Information Technology Tianjin Co Ltd filed Critical Feihu Information Technology Tianjin Co Ltd
Priority to CN202210260786.5A priority Critical patent/CN114339373B/en
Publication of CN114339373A publication Critical patent/CN114339373A/en
Application granted granted Critical
Publication of CN114339373B publication Critical patent/CN114339373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a queue barrage generating method, a queue barrage generating device, a storage medium and equipment. And acquiring a target template number and a character text input by a user based on a preset interface. And under the condition that the number of the characters contained in the character sequence is equal to the target numerical value, filling each character in the target matrix according to a preset mapping relation to obtain a character string. And generating a queue barrage based on the character strings, and displaying the queue barrage in the video. By utilizing the scheme, the queue barrage with different shapes is generated based on the preconfigured barrage template and the text characters provided by the user, the freshness of the barrage playing method is enriched, the interest of the user in sending the barrage is promoted, and the user experience is effectively improved.

Description

Queue barrage generation method and device, storage medium and equipment
Technical Field
The present application relates to the multimedia field, and in particular, to a method, an apparatus, a storage medium, and a device for generating a queue barrage.
Background
Currently, most mobile end applications of video media platforms provide a bullet screen function, so-called bullet screen, which displays relevant comments to users in a screen scrolling display manner during video playing. The bullet screen is used as an information interaction mode, and can meet the information exchange requirement and the self-recognition requirement when a user watches videos.
However, the existing bullet screen implementation modes are all displayed in a single-line text mode, and the personalized requirements of users are difficult to meet, so that the interest of the users in sending bullet screens is reduced, and the user experience is low.
Disclosure of Invention
The application provides a queue barrage generating method, a queue barrage generating device, a storage medium and equipment, and aims to improve user experience.
In order to achieve the above object, the present application provides the following technical solutions:
a queue barrage generating method comprises the following steps:
under the condition that an operation instruction of a user is received, displaying a preset bullet screen template list to the user through a preset interface; the bullet screen template list comprises bullet screen templates, template numbers corresponding to the bullet screen templates and fillable character numbers corresponding to the template numbers; the bullet screen template comprises a shape matrix, and the bullet screen shape shown by the bullet screen template is determined based on elements contained in the shape matrix; the fillable character number represents the number of characters which can be displayed by the bullet screen template;
acquiring a target template number and a character text input by the user based on the preset interface; the character text comprises a character sequence comprising a plurality of characters;
under the condition that the number of characters contained in the character sequence is equal to a target numerical value, filling each character in a target matrix according to a preset mapping relation to obtain a character string; the target numerical value is the number of fillable characters corresponding to the target template number; the preset mapping relation is as follows: using the m-th character in the character sequence as the value of the r-1-th element of the target matrix, using a preset character as the value of the r-th element of the target matrix, wherein m =1,2, …, k, k represents the number of characters contained in the character sequence, and r =2,3, …, t, t represents the number of element types contained in the target matrix; the target matrix is a shape matrix of the bullet screen template corresponding to the target template number;
and generating a queue barrage based on the character string, and displaying the queue barrage in a video.
Optionally, after the target template number and the character text input by the user based on the preset interface are obtained, the method further includes:
sending a text input error prompt to the user if the number of the characters included in the sequence of characters is not equal to the target numerical value.
Optionally, when the number of the characters included in the character sequence is equal to a target numerical value, filling each character in a target matrix according to a preset mapping relationship to obtain a character string, including:
judging whether the types of the characters in the character sequence are the same or not under the condition that the number of the characters contained in the character sequence is equal to a target numerical value;
if the types of the characters in the character sequence are the same, filling each character in a target matrix according to a preset mapping relation;
if the types of the characters in the character sequence are different, modifying the character of which the type is a full angle in the character sequence into the character of which the type is a half angle.
Optionally, the generating a queue barrage based on the character string includes:
generating an attribute character string corresponding to the character string; the attribute string comprises a plurality of attribute characters;
filling the font of each attribute character according to the bullet screen font number shown by the target bullet screen template to obtain a target character string; the target bullet screen template is a bullet screen template corresponding to the target template number;
identifying the attribute character of which the median value is not the preset character in the target character string as a first character, and identifying the attribute character of which the median value is the preset character as a second character;
and according to the bullet screen color shown by the target bullet screen template, performing color filling on the first character, adding black delineation to the first character, and according to transparent color, performing color filling on the second character to obtain a queue bullet screen.
A queue barrage generating apparatus comprising:
the display unit is used for displaying a preset bullet screen template list to a user through a preset interface under the condition of receiving an operation instruction of the user; the bullet screen template list comprises bullet screen templates, template numbers corresponding to the bullet screen templates and fillable character numbers corresponding to the template numbers; the bullet screen template comprises a shape matrix, and the bullet screen shape shown by the bullet screen template is determined based on elements contained in the shape matrix; the fillable character number represents the number of characters which can be displayed by the bullet screen template;
the acquisition unit is used for acquiring a target template number and a character text which are input by the user based on the preset interface; the character text comprises a character sequence comprising a plurality of characters;
the filling unit is used for filling each character in the target matrix according to a preset mapping relation under the condition that the number of the characters contained in the character sequence is equal to a target numerical value to obtain a character string; the target numerical value is the number of fillable characters corresponding to the target template number; the preset mapping relation is as follows: using the m-th character in the character sequence as the value of the r-1-th element of the target matrix, using a preset character as the value of the r-th element of the target matrix, wherein m =1,2, …, k, k represents the number of characters contained in the character sequence, and r =2,3, …, t, t represents the number of element types contained in the target matrix; the target matrix is a shape matrix of the bullet screen template corresponding to the target template number;
and the generating unit is used for generating a queue barrage based on the character string and displaying the queue barrage in a video.
Optionally, the method further includes:
and the prompting unit is used for sending a text input error prompt to the user under the condition that the number of the characters contained in the character sequence is not equal to the target numerical value.
Optionally, the filling unit is specifically configured to:
judging whether the types of the characters in the character sequence are the same or not under the condition that the number of the characters contained in the character sequence is equal to a target numerical value;
if the types of the characters in the character sequence are the same, filling each character in a target matrix according to a preset mapping relation;
if the types of the characters in the character sequence are different, modifying the character of which the type is a full angle in the character sequence into the character of which the type is a half angle.
Optionally, the generating unit is specifically configured to:
generating an attribute character string corresponding to the character string; the attribute string comprises a plurality of attribute characters;
filling the font of each attribute character according to the bullet screen font number shown by the target bullet screen template to obtain a target character string; the target bullet screen template is a bullet screen template corresponding to the target template number;
identifying the attribute character of which the median value is not the preset character in the target character string as a first character, and identifying the attribute character of which the median value is the preset character as a second character;
and according to the bullet screen color shown by the target bullet screen template, performing color filling on the first character, adding black delineation to the first character, and according to transparent color, performing color filling on the second character to obtain a queue bullet screen.
A computer-readable storage medium comprising a stored program, wherein the program executes the queue barrage generating method.
A queue barrage generating device comprising: a processor, a memory, and a bus; the processor and the memory are connected through the bus;
the memory is used for storing programs, and the processor is used for running the programs, wherein the queue barrage generating method is executed when the programs run.
According to the technical scheme, the preset bullet screen template list is displayed to the user through the preset interface under the condition that the operation instruction of the user is received. The bullet screen template list comprises bullet screen templates, template numbers corresponding to the bullet screen templates and fillable character numbers corresponding to the template numbers. The bullet screen template comprises a shape matrix, and the bullet screen shape shown by the bullet screen template is determined based on elements contained in the shape matrix. The fillable number of characters represents the number of characters that can be displayed by the bullet screen template. And acquiring a target template number and a character text input by a user based on a preset interface. The character text includes a character sequence including a plurality of characters. And under the condition that the number of the characters contained in the character sequence is equal to the target numerical value, filling each character in the target matrix according to a preset mapping relation to obtain a character string. The target value is the number of fillable characters corresponding to the target template number. The preset mapping relation is as follows: the method comprises the steps of using a character located at the m-th bit in a character sequence as a value of an r-1 type element of an object matrix, using a preset character as a value of the r-th type element of the object matrix, using m =1,2, …, k, k to represent the number of characters contained in the character sequence, and using r =2,3, …, t, t to represent the number of element types contained in the object matrix. The target matrix is a shape matrix of the bullet screen template corresponding to the target template number. And generating a queue barrage based on the character strings, and displaying the queue barrage in the video. By utilizing the scheme, the queue barrage with different shapes is generated based on the preconfigured barrage template and the text characters provided by the user, the freshness of the barrage playing method is enriched, the interest of the user in sending the barrage is promoted, and the user experience is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a queue barrage generating method according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a filling effect provided in an embodiment of the present application;
fig. 3 is a schematic diagram of another queue barrage generating method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a queue barrage generating device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, a schematic diagram of a queue barrage generating method provided in an embodiment of the present application includes the following steps:
s101: and under the condition of receiving an operation instruction of a user, displaying a pre-configured bullet screen template list to the user through a preset interface.
The bullet screen template list comprises bullet screen templates, template numbers corresponding to the bullet screen templates and fillable character numbers corresponding to the template numbers.
The bullet screen template includes a shape matrix, and the bullet screen shape shown by the bullet screen template is determined based on elements included in the shape matrix. The fillable number of characters represents the number of characters that can be displayed by the bullet screen template.
S102: and acquiring a target template number and a character text input by a user based on a preset interface.
Wherein the character text comprises a character sequence comprising a plurality of characters.
S103: it is determined whether the number of characters included in the character sequence is equal to the target numerical value.
If the number of characters included in the character sequence is equal to the target value, S104 is performed, otherwise S105 is performed.
The target numerical value is the fillable character number corresponding to the target template number.
S104: and judging whether the types of the characters in the character sequence are the same.
If the types of the characters in the character sequence are the same, executing S106, otherwise executing S107.
Wherein the character types include full and half angles.
S105: a text input error prompt is sent to the user.
S106: and filling each character contained in the character sequence in the target matrix according to a preset mapping relation to obtain a character string.
After execution of S106, execution continues with S108.
The preset mapping relation is as follows: taking the m-th character in the character sequence as the value of the r-1 type element of the target matrix, taking the preset character as the value of the r-th type element of the target matrix, wherein m =1,2, …, k, k represents the number of characters contained in the character sequence, r =2,3, …, t, t represents the number of element types contained in the target matrix, and the preset character can be set as a line feed character (i.e.,/n).
The target matrix is a shape matrix of the bullet screen template corresponding to the target template number.
Based on the preset mapping relationship, the number of the element types included in the target matrix is obviously one unit number more than the target number, so as to ensure that the mapping between the elements and the preset characters can be reserved.
It is assumed that the target matrix includes three types of elements, which are a first type element, a second type element, and a third type element, respectively, the target value is 2, and the character sequence includes 2 characters, which are a first character and a second character in turn. And based on the preset mapping relation, taking the first character as the value of the first type element, taking the second character as the value of the second type element, and taking the preset character as the value of the third type element.
Specifically, the first character is "xi", the second character is "huan", the object matrix is represented by formula (1), the first-type element is set to 1, the second-type element is set to 2, and the third-type element is set to 0. According to the preset mapping relationship, filling each character included in the character sequence in the target matrix to obtain a character string, wherein the filling result is shown in fig. 2.
Figure 314384DEST_PATH_IMAGE001
(1)
It should be noted that, the preset character is used as the value of the third type element, and the main purpose is to leave a preset width between any two adjacent characters in order to obtain the final character string, no matter the character string is a full-angle character or a half-angle character.
S107: and modifying the character with the type of full angle in the character sequence into the character with the type of half angle.
After execution of S107, execution returns to S106.
S108: an attribute string corresponding to the string is generated.
Wherein the attribute string includes a plurality of attribute characters.
Generally, an attribute string is also called rich text, i.e., a string with an attribute.
S109: and filling the font of each attribute character according to the bullet screen character number shown by the target bullet screen template to obtain a target character string.
And the target bullet screen template is a bullet screen template corresponding to the target template number.
S110: and identifying the attribute character with the value of the preset character as a second character.
S111: and according to the bullet screen color shown by the target bullet screen template, performing color filling on the first character, adding black delineation to the first character, and according to the transparent color, performing color filling on the second character to obtain the queue bullet screen.
S112: and displaying the queue bullet screen in the video.
Wherein, the second character string can be displayed in the video by utilizing the UILbel control disclosed in the prior art.
In summary, by using the scheme shown in this embodiment, queue barrages with different shapes are generated based on the preconfigured barrage template and the text characters provided by the user, so that the freshness of the barrage playing method is enriched, the interest of the user in sending the barrage is promoted, and the user experience is effectively improved.
It should be noted that, in the above embodiment, the step S105 is an optional implementation manner of the queue barrage generating method shown in this application. In addition, S108 mentioned in the above embodiment is also an optional implementation manner of the queue barrage generating method shown in this application. For this reason, the flow mentioned in the above embodiment can be summarized as the method shown in fig. 3.
As shown in fig. 3, a schematic diagram of a queue barrage generating method provided in an embodiment of the present application includes the following steps:
s301: and under the condition that an operation instruction of a user is received, displaying a pre-configured bullet screen template list to the user through a preset interface.
The bullet screen template list comprises bullet screen templates, template numbers corresponding to the bullet screen templates and fillable character numbers corresponding to the template numbers. The bullet screen template comprises a shape matrix, and the bullet screen shape shown by the bullet screen template is determined based on elements contained in the shape matrix. The fillable number of characters represents the number of characters that can be displayed by the bullet screen template.
S302: and acquiring a target template number and a character text input by a user based on a preset interface.
Wherein the character text comprises a character sequence comprising a plurality of characters.
S303: and under the condition that the number of the characters contained in the character sequence is equal to the target numerical value, filling each character in the target matrix according to a preset mapping relation to obtain a character string.
The target numerical value is the fillable character number corresponding to the target template number. The preset mapping relation is as follows: the method comprises the steps of using a character located at the m-th bit in a character sequence as a value of an r-1 type element of an object matrix, using a preset character as a value of the r-th type element of the object matrix, using m =1,2, …, k, k to represent the number of characters contained in the character sequence, and using r =2,3, …, t, t to represent the number of element types contained in the object matrix. The target matrix is a shape matrix of the bullet screen template corresponding to the target template number.
S304: and generating a queue barrage based on the character strings, and displaying the queue barrage in the video.
In summary, by using the scheme of this embodiment, queue barrages with different shapes are generated based on the preset barrage template and the text characters provided by the user, so that the freshness of the barrage playing method is enriched, the interest of the user in sending the barrage is promoted, and the user experience is effectively improved.
Corresponding to the method for generating the queue barrage provided by the embodiment of the application, the embodiment of the application also provides a device for generating the queue barrage.
As shown in fig. 4, an architecture diagram of a queue barrage generating device provided in the embodiment of the present application includes:
the presentation unit 100 is configured to present a preset bullet screen template list to a user through a preset interface under the condition that an operation instruction of the user is received; the bullet screen template list comprises bullet screen templates, template numbers corresponding to the bullet screen templates and fillable character numbers corresponding to the template numbers; the bullet screen template comprises a shape matrix, and the bullet screen shape shown by the bullet screen template is determined based on elements contained in the shape matrix; the fillable number of characters represents the number of characters that can be displayed by the bullet screen template.
An obtaining unit 200, configured to obtain a target template number and a character text input by a user based on a preset interface; the character text includes a character sequence including a plurality of characters.
A filling unit 300, configured to fill each character in the target matrix according to a preset mapping relationship under the condition that the number of characters included in the character sequence is equal to the target numerical value, so as to obtain a character string; the target numerical value is the number of fillable characters corresponding to the target template number; the preset mapping relation is as follows: using the character at the m-th bit in the character sequence as the value of the r-1 type element of the target matrix, using the preset character as the value of the r-th type element of the target matrix, wherein m =1,2, …, k, k represents the number of characters contained in the character sequence, and r =2,3, …, t, t represents the number of element types contained in the target matrix; the target matrix is a shape matrix of the bullet screen template corresponding to the target template number.
Wherein, the filling unit 300 is specifically configured to: judging whether the types of the characters in the character sequence are the same or not under the condition that the number of the characters contained in the character sequence is equal to a target numerical value; if the types of the characters in the character sequence are the same, filling the characters in the target matrix according to a preset mapping relation; if the types of the characters in the character sequence are different, modifying the character with the type of full angle in the character sequence into the character with the type of half angle.
And the generating unit 400 is configured to generate a queue barrage based on the character string, and display the queue barrage in the video.
Wherein, the generating unit 400 is specifically configured to: generating an attribute character string corresponding to the character string; the attribute character string includes a plurality of attribute characters; filling fonts of each attribute character according to the bullet screen character number shown by the target bullet screen template to obtain a target character string; the target bullet screen template is a bullet screen template corresponding to the target template number; identifying the attribute character of which the median value is not the preset character in the target character string as a first character, and identifying the attribute character of which the median value is the preset character as a second character; and according to the bullet screen color shown by the target bullet screen template, performing color filling on the first character, adding black delineation to the first character, and according to the transparent color, performing color filling on the second character to obtain the queue bullet screen.
A prompt unit 500, configured to send a text input error prompt to a user if the number of characters included in the character sequence is not equal to the target numerical value.
In summary, by using the scheme shown in this embodiment, queue barrages with different shapes are generated based on the preconfigured barrage template and the text characters provided by the user, so that the freshness of the barrage playing method is enriched, the interest of the user in sending the barrage is promoted, and the user experience is effectively improved.
The present application also provides a computer readable storage medium comprising a stored program, wherein the program performs the method provided by the present application.
The present application further provides an apparatus comprising: a processor, memory, and a bus. The processor is connected with the memory through a bus, the memory is used for storing programs, the processor is used for running the programs, and the method provided by the application is executed when the programs are run, and the method comprises the following steps:
under the condition that an operation instruction of a user is received, displaying a preset bullet screen template list to the user through a preset interface; the bullet screen template list comprises bullet screen templates, template numbers corresponding to the bullet screen templates and fillable character numbers corresponding to the template numbers; the bullet screen template comprises a shape matrix, and the bullet screen shape shown by the bullet screen template is determined based on elements contained in the shape matrix; the fillable character number represents the number of characters which can be displayed by the bullet screen template;
acquiring a target template number and a character text input by the user based on the preset interface; the character text comprises a character sequence comprising a plurality of characters;
under the condition that the number of characters contained in the character sequence is equal to a target numerical value, filling each character in a target matrix according to a preset mapping relation to obtain a character string; the target numerical value is the number of fillable characters corresponding to the target template number; the preset mapping relation is as follows: using the m-th character in the character sequence as the value of the r-1-th element of the target matrix, using a preset character as the value of the r-th element of the target matrix, wherein m =1,2, …, k, k represents the number of characters contained in the character sequence, and r =2,3, …, t, t represents the number of element types contained in the target matrix; the target matrix is a shape matrix of the bullet screen template corresponding to the target template number;
and generating a queue barrage based on the character string, and displaying the queue barrage in a video.
Optionally, after the target template number and the character text input by the user based on the preset interface are obtained, the method further includes:
sending a text input error prompt to the user if the number of the characters included in the sequence of characters is not equal to the target numerical value.
Optionally, when the number of the characters included in the character sequence is equal to a target numerical value, filling each character in a target matrix according to a preset mapping relationship to obtain a character string, including:
judging whether the types of the characters in the character sequence are the same or not under the condition that the number of the characters contained in the character sequence is equal to a target numerical value;
if the types of the characters in the character sequence are the same, filling each character in a target matrix according to a preset mapping relation;
if the types of the characters in the character sequence are different, modifying the character of which the type is a full angle in the character sequence into the character of which the type is a half angle.
Optionally, the generating a queue barrage based on the character string includes:
generating an attribute character string corresponding to the character string; the attribute string comprises a plurality of attribute characters;
filling the font of each attribute character according to the bullet screen font number shown by the target bullet screen template to obtain a target character string; the target bullet screen template is a bullet screen template corresponding to the target template number;
identifying the attribute character of which the median value is not the preset character in the target character string as a first character, and identifying the attribute character of which the median value is the preset character as a second character;
and according to the bullet screen color shown by the target bullet screen template, performing color filling on the first character, adding black delineation to the first character, and according to transparent color, performing color filling on the second character to obtain a queue bullet screen.
The functions described in the method of the embodiment of the present application, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution to the prior art of the embodiments of the present application or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A queue barrage generating method is characterized by comprising the following steps:
under the condition that an operation instruction of a user is received, displaying a preset bullet screen template list to the user through a preset interface; the bullet screen template list comprises bullet screen templates, template numbers corresponding to the bullet screen templates and fillable character numbers corresponding to the template numbers; the bullet screen template comprises a shape matrix, and the bullet screen shape shown by the bullet screen template is determined based on elements contained in the shape matrix; the fillable character number represents the number of characters which can be displayed by the bullet screen template;
acquiring a target template number and a character text input by the user based on the preset interface; the character text comprises a character sequence comprising a plurality of characters;
under the condition that the number of the characters contained in the character sequence is equal to a target numerical value, judging whether the types of the characters in the character sequence are the same or not; if the types of the characters in the character sequence are the same, filling each character in a target matrix according to a preset mapping relation; if the types of the characters in the character sequence are different, modifying the character of which the type is a full angle into the character of which the type is a half angle; the target numerical value is the number of fillable characters corresponding to the target template number; the preset mapping relation is as follows: using the m-th character in the character sequence as the value of the r-1-th element of the target matrix, using a preset character as the value of the r-th element of the target matrix, wherein m =1,2, …, k, k represents the number of characters contained in the character sequence, and r =2,3, …, t, t represents the number of element types contained in the target matrix; the target matrix is a shape matrix of the bullet screen template corresponding to the target template number;
and generating a queue barrage based on the character string, and displaying the queue barrage in a video.
2. The method according to claim 1, wherein after acquiring the target template number and the character text input by the user based on the preset interface, the method further comprises:
sending a text input error prompt to the user if the number of the characters included in the sequence of characters is not equal to the target numerical value.
3. The method of claim 1, wherein generating a queue barrage based on the string comprises:
generating an attribute character string corresponding to the character string; the attribute string comprises a plurality of attribute characters;
filling the font of each attribute character according to the bullet screen font number shown by the target bullet screen template to obtain a target character string; the target bullet screen template is a bullet screen template corresponding to the target template number;
identifying the character in the target character string, which is not the attribute character of the preset character, as a first character, and identifying the character in the target character string, which is not the attribute character of the preset character, as a second character;
and according to the bullet screen color shown by the target bullet screen template, performing color filling on the first character, adding black delineation to the first character, and according to transparent color, performing color filling on the second character to obtain a queue bullet screen.
4. A queue barrage generating apparatus, comprising:
the display unit is used for displaying a preset bullet screen template list to a user through a preset interface under the condition of receiving an operation instruction of the user; the bullet screen template list comprises bullet screen templates, template numbers corresponding to the bullet screen templates and fillable character numbers corresponding to the template numbers; the bullet screen template comprises a shape matrix, and the bullet screen shape shown by the bullet screen template is determined based on elements contained in the shape matrix; the fillable character number represents the number of characters which can be displayed by the bullet screen template;
the acquisition unit is used for acquiring a target template number and a character text which are input by the user based on the preset interface; the character text comprises a character sequence comprising a plurality of characters;
the filling unit is used for filling each character in the target matrix according to a preset mapping relation under the condition that the number of the characters contained in the character sequence is equal to a target numerical value to obtain a character string; the target numerical value is the number of fillable characters corresponding to the target template number; the preset mapping relation is as follows: using the m-th character in the character sequence as the value of the r-1-th element of the target matrix, using a preset character as the value of the r-th element of the target matrix, wherein m =1,2, …, k, k represents the number of characters contained in the character sequence, and r =2,3, …, t, t represents the number of element types contained in the target matrix; the target matrix is a shape matrix of the bullet screen template corresponding to the target template number;
the generating unit is used for generating a queue barrage based on the character string and displaying the queue barrage in a video;
the filling unit is specifically configured to:
judging whether the types of the characters in the character sequence are the same or not under the condition that the number of the characters contained in the character sequence is equal to a target numerical value;
if the types of the characters in the character sequence are the same, filling each character in a target matrix according to a preset mapping relation;
if the types of the characters in the character sequence are different, modifying the character of which the type is a full angle in the character sequence into the character of which the type is a half angle.
5. The apparatus of claim 4, further comprising:
and the prompting unit is used for sending a text input error prompt to the user under the condition that the number of the characters contained in the character sequence is not equal to the target numerical value.
6. The apparatus according to claim 4, wherein the generating unit is specifically configured to:
generating an attribute character string corresponding to the character string; the attribute string comprises a plurality of attribute characters;
filling the font of each attribute character according to the bullet screen font number shown by the target bullet screen template to obtain a target character string; the target bullet screen template is a bullet screen template corresponding to the target template number;
identifying the attribute character of which the median value is not the preset character in the target character string as a first character, and identifying the attribute character of which the median value is the preset character as a second character;
and according to the bullet screen color shown by the target bullet screen template, performing color filling on the first character, adding black delineation to the first character, and according to transparent color, performing color filling on the second character to obtain a queue bullet screen.
7. A computer-readable storage medium, comprising a stored program, wherein the program performs the queue barrage generating method of any of claims 1-3.
8. A queue barrage generating apparatus, comprising: a processor, a memory, and a bus; the processor and the memory are connected through the bus;
the memory is used for storing a program, and the processor is used for running the program, wherein the program executes the queue bullet screen generating method of any one of claims 1 to 3 when running.
CN202210260786.5A 2022-03-17 2022-03-17 Queue barrage generation method and device, storage medium and equipment Active CN114339373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210260786.5A CN114339373B (en) 2022-03-17 2022-03-17 Queue barrage generation method and device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210260786.5A CN114339373B (en) 2022-03-17 2022-03-17 Queue barrage generation method and device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN114339373A CN114339373A (en) 2022-04-12
CN114339373B true CN114339373B (en) 2022-05-27

Family

ID=81033823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210260786.5A Active CN114339373B (en) 2022-03-17 2022-03-17 Queue barrage generation method and device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN114339373B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114786067B (en) * 2022-04-29 2023-09-05 北京爱奇艺科技有限公司 Bullet screen-based interaction method, bullet screen-based interaction device, bullet screen-based interaction equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101430964B1 (en) * 2013-03-21 2014-08-26 주식회사 모바일유틸리티 Method for controlling display
CN109005469A (en) * 2018-07-03 2018-12-14 武汉斗鱼网络科技有限公司 A kind of conversion method of message format, device, storage medium and android terminal
CN110210212A (en) * 2019-03-14 2019-09-06 腾讯科技(深圳)有限公司 A kind of data processing method, device and relevant device
CN112188275A (en) * 2020-09-21 2021-01-05 北京字节跳动网络技术有限公司 Bullet screen generation method, bullet screen generation device, bullet screen generation equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640154B (en) * 2018-12-14 2019-09-10 苏州好玩友网络科技有限公司 Webpage barrage display methods, device, equipment and storage medium
CN111031400B (en) * 2019-11-25 2021-04-27 上海哔哩哔哩科技有限公司 Barrage presenting method and system
CN112612439B (en) * 2020-12-30 2022-12-27 游艺星际(北京)科技有限公司 Bullet screen display method and device, electronic equipment and storage medium
CN113766298B (en) * 2021-09-03 2023-01-03 上海哔哩哔哩科技有限公司 Bullet screen display method, device and system
CN113923505B (en) * 2021-12-14 2022-03-01 飞狐信息技术(天津)有限公司 Bullet screen processing method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101430964B1 (en) * 2013-03-21 2014-08-26 주식회사 모바일유틸리티 Method for controlling display
CN109005469A (en) * 2018-07-03 2018-12-14 武汉斗鱼网络科技有限公司 A kind of conversion method of message format, device, storage medium and android terminal
CN110210212A (en) * 2019-03-14 2019-09-06 腾讯科技(深圳)有限公司 A kind of data processing method, device and relevant device
CN112188275A (en) * 2020-09-21 2021-01-05 北京字节跳动网络技术有限公司 Bullet screen generation method, bullet screen generation device, bullet screen generation equipment and storage medium

Also Published As

Publication number Publication date
CN114339373A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US10795629B2 (en) Text and custom format information processing method, client, server, and computer-readable storage medium
US20150100882A1 (en) Method and system for interactive font feature access
US11924485B2 (en) Method and system of displaying a video
US9146907B1 (en) Systems and methods providing parameters for modifying a font
CN112561640A (en) Commodity page template generation method and device, computer equipment and storage medium
CN111915705B (en) Picture visual editing method, device, equipment and medium
CN112449230B (en) Character string display processing method, device, terminal and storage medium
CN114339373B (en) Queue barrage generation method and device, storage medium and equipment
CN108763188A (en) Text display method, device, equipment and storage medium
CN109542878B (en) List creation method and device
CN106126140B (en) A kind of method, apparatus and electronic equipment of rendering type
CN115543238B (en) Browser page printing method, device, equipment and storage medium
EP4451687A1 (en) Video processing method and apparatus, and nonvolatile computer readable storage medium
CN109714627A (en) A kind of rendering method of comment information, device and equipment
CN109933751A (en) Graphic rendering method, apparatus, computer readable storage medium and computer equipment
CN111191162B (en) Data processing method and device
CN113923505B (en) Bullet screen processing method and device, electronic equipment and storage medium
CN110543307A (en) application construction method and device
US20110055258A1 (en) Method and apparatus for the page-by-page provision of an electronic document as a computer graphic
CN111724455A (en) Image processing method and electronic device
CN113034649B (en) Chinese character drawing and displaying method and device, electronic equipment and medium
CN112667942A (en) Animation generation method, device and medium
CN114786067A (en) Bullet screen based interaction method, device, equipment and storage medium
CN114925656A (en) Rich text display method, device, equipment and storage medium
CN110597980B (en) Data processing method and device and computer readable storage medium

Legal Events

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