CN113923505B - Bullet screen processing method and device, electronic equipment and storage medium - Google Patents

Bullet screen processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113923505B
CN113923505B CN202111521451.6A CN202111521451A CN113923505B CN 113923505 B CN113923505 B CN 113923505B CN 202111521451 A CN202111521451 A CN 202111521451A CN 113923505 B CN113923505 B CN 113923505B
Authority
CN
China
Prior art keywords
bullet screen
content
target
template
screen template
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
CN202111521451.6A
Other languages
Chinese (zh)
Other versions
CN113923505A (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 CN202111521451.6A priority Critical patent/CN113923505B/en
Publication of CN113923505A publication Critical patent/CN113923505A/en
Application granted granted Critical
Publication of CN113923505B publication Critical patent/CN113923505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Abstract

The embodiment of the application discloses a bullet screen processing method and device, electronic equipment and a storage medium, and the bullet screen processing method and device are used for acquiring target content and a target bullet screen template; the target content is composed of at least one character; processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first type area is filled with target content, the second type area is filled with content with the same character type as the first type area, and the transparency of the second type area is greater than that of the first type area; and displaying the bullet screen content. Based on the application, the bullet screen content can present a certain graphic effect through the comparison of the transparency of the content in the first type area and the second type area, and moreover, the bullet screen content is completely the content with the same character type as the target content and does not contain blank spaces any more, so that the problem of deformation of the graphic effect caused by replacement of the target content is avoided.

Description

Bullet screen processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a bullet screen processing method and apparatus, an electronic device, and a storage medium.
Background
Video barrage is a sight interactive mode that each big video website all provided at present, and when watching the video, the user can be directed at interesting scenarios and release the comment, and simultaneously, the combination of splendid barrage and scenarios can further promote user's sight shadow experience. With the development of the technology, the forms of the bullet screens are more and more diversified, namely, bullet screen forms such as angle bullet screens and color bullet screens, but the bullet screen forms are basically in the form of a line of text.
The queue barrage is a novel barrage mode, and the queue barrage forms a new meaningful graph by arranging characters into a specific queue. The queue bullet screen is essentially a plurality of lines of characters, and the characters can be spelled out with graphic effect mainly by the contrast effect of the character area and the blank area. The existing queue bullet screen can have the deformation of the bullet screen queue bullet screen in the using process, and the expected queue effect can not be achieved. Therefore, how to avoid the deformation of the bullet screen queue becomes a technical problem to be solved urgently.
Disclosure of Invention
The application aims to provide a bullet screen processing method and device, electronic equipment and a storage medium, and the method comprises the following technical scheme:
a bullet screen processing method comprises the following steps:
acquiring target content and a target bullet screen template; the target content is composed of at least one character;
processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first class area is filled with the target content, the second class area is filled with the content with the same character type as the first class area, and the transparency of the second class area is greater than that of the first class area;
and displaying the bullet screen content.
The above-described process, preferably,
the content of the second type of region filling and the target content contain different characters; alternatively, the first and second electrodes may be,
the content filled in the second type area is at least part of the target content.
In the above method, preferably, the acquiring the target content and the target barrage template includes:
sending a barrage content display request to a server;
and receiving the target content and the target bullet screen template which are sent by the server in response to the bullet screen content display request.
In the above method, preferably, the acquiring the target content and the target barrage template includes:
sending a barrage content display request to a server;
receiving the target content sent by the server in response to the bullet screen content display request and a bullet screen template identifier;
and acquiring the target bullet screen template according to the bullet screen template mark.
Preferably, the method for acquiring the target content and the target barrage template includes:
receiving the input target content;
acquiring a bullet screen template candidate list;
determining the target bullet screen template in the bullet screen template candidate list based on a selection operation.
In the method, preferably, the target bullet screen template is represented by a two-dimensional array.
The above-described process, preferably,
the line number and the column number of the two-dimensional array represent the line number and the column number of the bullet screen content;
each element in the two-dimensional array characterizes the character filled in the position of the element and the transparency of the character filled in the position of the element.
A bullet screen processing apparatus comprising:
the acquisition module is used for acquiring target content and a target bullet screen template;
the processing module is used for processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first class area is filled with the target content, the second class area is filled with the content with the same character type as the first class area, and the transparency of the second class area is greater than that of the first class area;
and the display module is used for displaying the bullet screen content.
An electronic device, comprising:
a memory for storing a program;
and the processor is used for calling and executing the program in the memory, and realizing the steps of the bullet screen processing method according to any one of the above items by executing the program.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the bullet screen processing method as described in any one of the above.
According to the scheme, the bullet screen processing method, the bullet screen processing device, the electronic equipment and the storage medium, which are provided by the application, are used for acquiring the target content and the target bullet screen template; the target content is composed of at least one character; processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first type area is filled with target content, the second type area is filled with content with the same character type as the first type area, and the transparency of the second type area is greater than that of the first type area; and displaying the bullet screen content. Based on the application, the bullet screen content can present a certain graphic effect through the comparison of the transparency of the content in the first type area and the second type area, and moreover, the bullet screen content is completely the content with the same character type as the target content and does not contain blank spaces any more, so that the problem of deformation of the graphic effect caused by replacement of the target content is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is an exemplary diagram of a hardware system architecture provided by an embodiment of the present application;
fig. 2 is an exemplary diagram of two queue barrages provided in the embodiment of the present application;
fig. 3 is a flowchart of an implementation of a bullet screen processing method according to an embodiment of the present application;
fig. 4 is a flowchart of an implementation of obtaining target content and a target bullet screen template according to an embodiment of the present application;
fig. 5 is a flowchart of another implementation of obtaining target content and a target bullet screen template according to an embodiment of the present application;
fig. 6 is a flowchart of still another implementation of obtaining target content and a target bullet screen template according to an embodiment of the present application;
fig. 7 is an exemplary diagram of a queue barrage template provided in an embodiment of the present application;
fig. 8 is an exemplary diagram of bullet screen content provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a bullet screen processing device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
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 inventive step, are within the scope of the present disclosure.
First, a hardware system architecture according to an embodiment of the present application will be described. As shown in fig. 1, an exemplary diagram of a hardware system architecture provided for the embodiment of the present application may include:
a plurality of terminal devices (respectively denoted as terminal device 11, terminal devices 12, … …, terminal device 1 n) and a server 20; wherein the content of the first and second substances,
the terminal device may be any electronic product that can perform human-computer interaction with a user through one or more modes such as a keyboard, a touch PAD, a touch screen, a remote controller, voice interaction or handwriting equipment, and has a video playing function, for example, a mobile phone, a notebook computer, a tablet computer, a palmtop computer, a personal computer, a wearable device, a smart television, a PAD, and the like.
The server may be one server, a server cluster composed of a plurality of servers, or a cloud computing server center. The server 20 may include a processor, memory, and a network interface, among others.
Based on the hardware system architecture, when watching a video, a user of any terminal device can launch a bullet screen, and the bullet screen launched at one terminal device side can display the bullet screen on a plurality of other terminal devices playing the same video at the same time. For example, if the terminal devices 11 to 110 are all viewing the video a, if the terminal device 11 emits a bullet screen "wonderful" while viewing the video a, the terminal devices 12 to 110 may all display the bullet screen "wonderful".
Traditional barrage form all is the form of a line of text, and along with the development of technique, this kind of novel barrage form of queue barrage is born at the same time, but, the user can appear the condition that the queue barrage warp when launching the queue barrage. The inventor of the application finds that the reason for the deformation of the bullet screen queue is that the queue bullet screen is essentially a plurality of lines of characters, and the characters can spell a graphic effect mainly by the contrast effect of a character area and a blank area. However, due to the existence of the full-angle symbol and the half-angle symbol, the length of the characters formed by the same number of characters is different, for example, the length of the Chinese character "sixty-six" is definitely different from that of the number "666". Based on the same queue bullet screen template, when the Chinese character filling and the digital filling are used, the obtained effects are different, and as shown in fig. 2, an illustration diagram of two queue bullet screens is provided for the embodiment of the application. In this example, assuming that the user wants to send a love-shaped bullet, if the content the user wants to send is "like", filling the queue template with "like" words results in the effect shown in fig. 2-a, which is a normal queue bullet, but if the user number 1 is filled, the resulting effect is shown in fig. 2-b, which is distorted and no longer love-shaped.
The present application is proposed in order to overcome the above problems. The bullet screen processing method provided by the embodiment of the application can be used for terminal equipment, and the terminal equipment can be a terminal for launching the bullet screen or a terminal for not launching the bullet screen.
As shown in fig. 3, an implementation flowchart of a bullet screen processing method provided in the embodiment of the present application may include:
step S301: acquiring target content and a target bullet screen template; wherein the target content is composed of at least one character.
The characters refer to letters, numbers, Chinese characters, symbols and the like used in a computer, and the symbols can comprise punctuation marks or other symbols which can be used as bullet screens, such as gesture symbols
Figure DEST_PATH_IMAGE001
Figure 97424DEST_PATH_IMAGE002
Etc. emoticons
Figure DEST_PATH_IMAGE003
Figure 968559DEST_PATH_IMAGE004
Etc., other symbols, such as,
Figure DEST_PATH_IMAGE005
Figure 685979DEST_PATH_IMAGE006
Figure DEST_PATH_IMAGE007
and so on.
Wherein, the target content is the content that the target content will show through the barrage, and the target barrage template has defined the queue barrage style, includes: the filling area of the target content and the transparency of the target content, and the character type and the transparency of the filling content of other filling areas; the content filled in the other areas has the same character type as the target content, and the transparency of the other areas is greater than that of the filled areas of the target content.
Step S302: processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first type area is filled with target content, the second type area is filled with content with the same character type as the first type area, and the transparency of the second type area is greater than that of the first type area.
The first-type region may include a plurality of sub-regions, and the second-type region may also include a plurality of sub-regions. The plurality of sub-areas of the first type area can be distributed continuously or dispersedly; the plurality of sub-areas of the second type of area may also be distributed continuously or may be distributed dispersedly.
Optionally, the content of the second type region filling and the target content contain different characters. For example, the target content is "like" and the second type of region-filled content is "up", or may be at least one word of "video".
Optionally, the content filled in the second type area is at least part of the target content. For example, the target content is "like", and the second type of region-filled content is at least one word of "like", or "happy", or "like".
Optionally, the difference between the transparency of the first type area and the transparency of the second type area is greater than the threshold value, so that the graphic effect of the target content presentation in the first type area is easy to recognize. As an example: the transparency of the first type of region is 0 and the transparency of the second region is 100%.
Step S303: and displaying the bullet screen content.
How to display the bullet screen content can be referred to the existing mature technology, and the bullet screen content is not described in detail here since it is not the focus of the present application.
According to the bullet screen processing method provided by the embodiment of the application, the bullet screen content can present a certain graphic effect through comparison of the transparency of the content in the first type area and the second type area, and all the bullet screen content is the content with the same character type as the target content and does not contain blank spaces any more, so that the problem of deformation of the graphic effect caused by replacement of the target content is avoided.
In a possible application scenario, assuming that M terminal devices play the same video resource, when a user of any one of the M terminal devices (denoted as a first terminal device) wants to send a bullet screen, the user may input a content (denoted as a target content) that is desired to be displayed through the bullet screen at the first terminal device, select a queue bullet screen template (denoted as a target bullet screen template), and then trigger generation of a bullet screen launching instruction (for example, trigger generation of a bullet screen launching instruction by clicking a "launch" button), where the bullet screen launching instruction carries the target content that is desired to be displayed through the bullet screen and an identifier of the target bullet screen template selected by the user and input by the user of the first terminal device, and then the first terminal device sends the bullet screen launching instruction to a server, and after receiving the bullet screen launching instruction sent by the first terminal device, and storing the target content carried in the bullet screen emission instruction and the identification of the target bullet screen template in a correlated manner. When a second terminal device (i.e., the M terminal devices or any other terminal device except the first terminal device) needs to display a bullet screen (e.g., a user opens a bullet screen display function), sending a bullet screen content display request to a server, after receiving the bullet screen content display request sent by the second terminal device, the server sending the stored target content and an identifier of a target bullet screen template associated with the stored target content to the second terminal device, or sending the stored target content and the target bullet screen template corresponding to the identifier of the target bullet screen template associated with the stored target content to the second terminal device, and after acquiring the target content sent by the server and the target bullet screen template or the identifier of the target bullet screen template, the second terminal device processing the target content according to the target bullet screen template to obtain bullet screen content.
As an example, the bullet screen processing method provided in the embodiment of the present application may be used in a second terminal device, and based on this, an implementation flowchart of obtaining the target content and the target bullet screen template provided in the embodiment of the present application is shown in fig. 4, and may include:
step S401: and sending a bullet screen content display request to the server.
As an example, the second terminal device may send a bullet screen content display request to the server when the bullet screen content display instruction is acquired. The bullet screen content display instruction is triggered by executing a preset operation when a user of the second terminal device wants to browse the bullet screen, for example, the bullet screen content display instruction may be triggered by clicking a preset bullet screen opening button, or the bullet screen content display instruction may be triggered by executing a specified gesture operation, or the bullet screen content display instruction may be triggered by voice.
Step S402: and receiving the target content and the target bullet screen template which are sent by the server in response to the bullet screen content display request.
The server may send, to the second terminal device, the bullet screen content corresponding to the video playing progress and the target bullet screen template corresponding to the identifier of the target bullet screen template associated therewith according to the playing progress of the video at the second terminal device side after receiving the bullet screen content display request.
In the embodiment of the application, the server sends the target content and the target bullet screen template to the terminal device instead of the bullet screen content, and the bullet screen content is generated according to the target content and the bullet screen template after the second terminal device receives the target content and the target bullet screen template, so that the negative influence (for example, the graphic effect is different from the local effect of the first terminal device) on the bullet screen content in the transmission process is avoided while the data processing pressure of the server is reduced.
In an optional embodiment, another implementation flowchart of obtaining the target content and the target bullet screen template provided in the embodiment of the present application is shown in fig. 5, and may include:
step S501: and sending a bullet screen content display request to the server.
As an example, the second terminal device may send a bullet screen content display request to the server when the bullet screen content display instruction is acquired. The bullet screen content display instruction is triggered by executing a preset operation when a user of the second terminal device wants to browse the bullet screen, for example, the bullet screen content display instruction may be triggered by clicking a preset bullet screen opening button, or the bullet screen content display instruction may be triggered by executing a specified gesture operation, or the bullet screen content display instruction may be triggered by voice.
Step S502: and receiving the target content and the bullet screen template identification sent by the server in response to the bullet screen content display request.
Unlike the previous embodiment, in this embodiment, the server returns the target content and the bullet screen template identifier to the second terminal device instead of the target content and the bullet screen template.
The server may send, to the second terminal device, the bullet screen content corresponding to the video play progress and the identifier of the target bullet screen template associated therewith according to the play progress of the video at the second terminal device side after receiving the bullet screen content display request.
Step S503: and acquiring a target bullet screen template according to the bullet screen template identification.
The bullet screen template corresponding to the bullet screen template identification is the identification of the target bullet screen template.
In this embodiment, the second terminal device stores the bullet screen template, after receiving the bullet screen template identifier, the second terminal device searches the bullet screen template from the locally stored bullet screen template according to the bullet screen template identifier, and the bullet screen content is generated by the second terminal device after obtaining the target content and the target bullet screen template, so as to reduce the data processing pressure of the server. Moreover, the server returns the identification of the bullet screen template to the second terminal instead of the bullet screen template, so that the transmission pressure of the network is reduced.
As an example, the second terminal device may first check whether a target bullet screen template exists locally according to the bullet screen template identifier, and if the target bullet screen template exists locally, directly obtain the target bullet screen template at the second terminal device. Optionally, if the second terminal device does not locally have the target bullet screen template, the second terminal device may request the server for the target bullet screen template, if the server returns the target bullet screen template, the second terminal device may generate bullet screen content according to the target bullet screen template returned by the server, and if the server does not return the target bullet screen template, the second terminal device may directly display the target content according to the common template, that is, display the target content in a form of a line text. Optionally, if the second terminal device does not have the target bullet screen template locally, the second terminal device may directly display the target content according to the common template, that is, display the target content in the form of line text.
In the embodiment of the application, the bullet screen content can not be transmitted, but the target content and the bullet screen template or the mark of the bullet screen template are transmitted, so that the negative influence of the network transmission process on the bullet screen content is avoided.
And when the second terminal equipment displays the bullet screen content, the second terminal equipment displays the bullet screen content through the video content display area. The specific implementation mode refers to the existing scheme and is not detailed here.
As an example, the bullet screen processing method provided in the embodiment of the present application may be used in a first terminal device, and based on this, an implementation flowchart of the first terminal device obtaining target content and a target bullet screen template is shown in fig. 6, and may include:
step S601: input target content is received.
Step S602: and acquiring a bullet screen template candidate list.
The method comprises the steps that a list of all bullet screen templates locally stored by first terminal equipment is obtained as a bullet screen template candidate list in response to input of target content; alternatively, the first and second electrodes may be,
the method comprises the steps that in response to input of target content, a list of all bullet screen templates stored by a server side is obtained and used as a bullet screen template candidate list; alternatively, the first and second electrodes may be,
in response to the input of the target content, a list of all bullet screen templates locally stored by the first terminal device is obtained as a first bullet screen template candidate list, a list of all bullet screen templates stored by the server is obtained as a second bullet screen template candidate list, and the first bullet screen template candidate list and the second bullet screen template candidate list form the bullet screen candidate list.
Optionally, a list of bullet screen templates locally stored by the first terminal device and associated with the length of the target content may be acquired as the bullet screen template candidate list. Alternatively, the first and second electrodes may be,
a list of bullet screen templates which are stored by a server and are related to the length of the target content can be obtained to serve as a bullet screen template candidate list; alternatively, the first and second electrodes may be,
a list of the bullet screen templates locally stored by the first terminal device and associated with the length of the target content may be acquired as a first bullet screen template candidate list, and a list of the bullet screen templates stored by the server and associated with the length of the target content may be acquired as a second bullet screen template candidate list.
The identification mark of the bullet screen template is stored in the list of the bullet screen template, and the identification mark can be associated with the style of the bullet screen template, so that a user can select the bullet screen template with a required style.
By way of example, the user can download the bullet screen template which is preferred by the user and store the bullet screen template in the local, so that the bullet screen template can be quickly found when the user wants to send the bullet screen. Of course, the user may not download the bullet screen template in order to reduce the space occupation rate of the terminal device.
The length of the target content refers to the number of characters included in the target content, for example, "like" includes two characters, the length is 2, "yyds" includes 4 characters, and the length is 4. In the embodiment of the application, the bullet screen templates are different according to different filling content lengths and different queue bullet screen patterns, for example, the same queue bullet screen pattern, where the filling content includes 1 character and the bullet screen templates when the filling content includes two characters are different. As shown in fig. 7, an example of bullet screen templates is provided for the embodiment of the present application when the bullet screen style of the queue is love center, but the filling content length is different. Wherein, 7-a is a bullet screen template example when the filling content comprises 1 character, and 7-b is a bullet screen template example when the filling content comprises 2 characters.
Step S603: and determining a target bullet screen template in the bullet screen template candidate list based on the selection operation.
The user selects one bullet screen template as a target bullet screen template from the bullet screen template candidate list as required, for example, the bullet screen template corresponding to the identifier of the bullet screen template to be clicked can be selected by performing a clicking operation on the identifier of the bullet screen template to be selected.
Correspondingly, the display bullet screen content may include:
the method comprises the steps that the bullet screen sending panel displays bullet screen content, so that a user of first terminal equipment can check the effect of a queue bullet screen conveniently, if the user feels satisfied, a bullet screen launching instruction can be triggered and generated, so that the first terminal equipment can send the bullet screen launching instruction conveniently, and meanwhile, the bullet screen content displayed by the bullet screen sending panel is deleted; if the user feels unsatisfied, one bullet screen template can be reselected, and then bullet screen contents generated based on the reselected bullet screen template are displayed through a bullet screen sending panel until the user feels satisfied. Furthermore, after the first terminal device sends the bullet screen emission instruction, the bullet screen content can be displayed through the video content display area.
In some scenarios, some bullet screen templates may need to be offline after being used for a period of time, and at this time, the technician deletes the bullet screen templates from the server. Based on this, under the condition that the list of the bullet screen templates is obtained locally by the first terminal device, since the server may have deleted the target bullet screen template selected by the user, after the server stores the target content and the target bullet screen template sent by the first terminal device in association, when the target content and the target bullet screen template need to be sent to the second terminal device in response to the bullet screen content display request sent by the second terminal device, if the server does not have the target bullet screen template, only the target content needs to be sent to the second terminal device, and at this time, the second terminal device only displays the target content in a normal manner, that is, the target content is displayed in a line of text manner.
In an alternative embodiment, the bullet screen template may be characterized by a two-dimensional array, as shown in FIG. 7. The two-dimensional array is also called a matrix, wherein the number of rows and columns of the two-dimensional array represents the number of rows and columns of the bullet screen content; each element in the two-dimensional array characterizes the character filled in the position of the element and the transparency of the character filled in the position of the element.
Taking fig. 7-a as an example, the number of rows and the number of columns of the two-dimensional array are 5 and 8, respectively, and then the generated bullet screen content also includes 5 rows of characters, and the number of each row of characters is 8. Assuming that the target content is "like", in fig. 7-a, the element "1" is located to fill the target content "like", and the transparency of "like" is c, for example, the transparency is 0, i.e. c = 0; the element "0" is located to fill in a character of the same character type as "like", i.e. kanji, and the transparency of the character, e.g. the element "0" is located to fill in "one", and the transparency of "one" is d, e.g. the transparency is 100, i.e. d = 100. Based on this, when "like" is filled in the bullet screen template shown in fig. 7-a, the content of the bullet screen is obtained as shown in fig. 2-a.
Taking fig. 7-b as an example, the number of rows and the number of columns of the two-dimensional array are 5 and 8, respectively, and then the generated bullet screen content also includes 5 rows of characters, and the number of each row of characters is 8. Assuming that the target content is "like", in fig. 7-b, the element "1" is located to fill in the "like" in the target content, and the transparency of the "like" is c, for example, the transparency is 0, i.e., c = 0; the element "2" is located to fill "happy" in the target content, and the transparency of "happy" is c, for example, the transparency is 0, that is, c = 0; the element "0" is located to fill in a character, i.e., a kanji, having the same character type as "xi" or "huan", and the transparency of the character, e.g., the element "0" is located to fill in "xi", and the transparency of "xi" is d, e.g., the transparency is 90, i.e., d = 90. Based on this, when the "like" is filled in the bullet screen template shown in fig. 7-b, the obtained bullet screen content is as shown in fig. 8-a, and if the transparency at the position of the element "0" is 100, the obtained bullet screen content is as shown in fig. 8-b.
In an optional embodiment, when the user launches the bullet screen, the color of the characters in the content of the bullet screen may also be set, only the color of the characters in the first type region may also be set, or only the color of the characters in the second type region may also be set, or both the colors of the characters in the first type region and the second type region may be set. The user can select which region of the characters is color-set as desired.
As an example, color information set by the user may be carried in the bullet screen template, and at this time, each element in the bullet screen template may be K (K is an integer greater than 1) bits, so that each element may carry more information. By way of example, the first digit of each element characterizes the character filled in at the location of the element and its transparency, and the number of other digits of each element characterizes the color of the character filled in at the location of the element.
For example, the color of the target content may not be carried in the target bullet screen template, but may exist as information independent from the target content and the target bullet screen template, for example, when the first terminal device sends a bullet screen emission instruction to the server, the color information may be carried in the bullet screen emission instruction, and at this time, the bullet screen emission instruction carries three pieces of information: target content, target bullet screen template and color information. After receiving the bullet screen emission instruction sent by the first terminal device, the server stores the target content and the target bullet screen template in association, and also stores the color information and the target content in association. Further, the server sends the associated color information to the second terminal device in addition to the target content and the target bullet screen template when responding to the bullet screen content display request of the second terminal device.
Corresponding to the method embodiment, an embodiment of the present application further provides a bullet screen processing apparatus, and a schematic structural diagram of the bullet screen processing apparatus provided in the embodiment of the present application is shown in fig. 9, and the bullet screen processing apparatus may include:
an acquisition module 901, a processing module 902 and a display module 903; wherein the content of the first and second substances,
the obtaining module 901 is configured to obtain target content and a target barrage template;
the processing module 902 is configured to process the target content based on the target barrage template to generate barrage content; the bullet screen content comprises a first type area and a second type area; the first class area is filled with the target content, the second class area is filled with the content with the same character type as the first class area, and the transparency of the second class area is greater than that of the first class area;
the display module 903 is used for displaying the bullet screen content.
The bullet screen processing device provided by the embodiment of the application acquires target content and a target bullet screen template; the target content is composed of at least one character; processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first type area is filled with target content, the second type area is filled with content with the same character type as the first type area, and the transparency of the second type area is greater than that of the first type area; and displaying the bullet screen content. Based on the application, the bullet screen content can present a certain graphic effect through the comparison of the transparency of the content in the first type area and the second type area, and moreover, the bullet screen content is completely the content with the same character type as the target content and does not contain blank spaces any more, so that the problem of deformation of the graphic effect caused by replacement of the target content is avoided.
In an alternative embodiment, the content of the second type of region filling and the target content contain different characters; alternatively, the first and second electrodes may be,
the content filled in the second type area is at least part of the target content.
In an optional embodiment, the obtaining module 901 includes:
the first sending module is used for sending a barrage content display request to the server;
a first receiving module, configured to receive the target content and the target bullet screen template sent by the server in response to the bullet screen content display request.
In an optional embodiment, the obtaining module 901 includes:
the second sending module is used for sending a barrage content display request to the server;
the second receiving module is used for receiving the target content sent by the server in response to the bullet screen content display request and a bullet screen template identifier;
and the association acquisition module is used for acquiring the target bullet screen template according to the bullet screen template identifier.
In an optional embodiment, the obtaining module 901 includes:
the third receiving module is used for receiving the input target content;
the list acquisition module is used for acquiring a bullet screen template candidate list;
and the selection module is used for determining the target bullet screen template in the bullet screen template candidate list based on selection operation.
In an optional embodiment, the target bullet screen template is characterized by a two-dimensional array.
In an optional embodiment, the number of rows and columns of the two-dimensional array represents the number of rows and columns of the bullet screen content;
each element in the two-dimensional array characterizes the character filled in the position of the element and the transparency of the character filled in the position of the element.
Corresponding to the method embodiment, the present application further provides an electronic device, a schematic structural diagram of which is shown in fig. 10, and the electronic device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4.
In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 complete mutual communication through the communication bus 4.
The processor 1 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present application, etc.
The memory 3 may comprise a high-speed RAM memory, and may further comprise a non-volatile memory (non-volatile memory) or the like, such as at least one disk memory.
Wherein the memory 3 stores a program, and the processor 1 may call the program stored in the memory 3, the program being configured to:
acquiring target content and a target bullet screen template; the target content is composed of at least one character;
processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first class area is filled with the target content, the second class area is filled with the content with the same character type as the first class area, and the transparency of the second class area is greater than that of the first class area;
and displaying the bullet screen content.
Alternatively, the detailed function and the extended function of the program may be as described above.
Embodiments of the present application further provide a storage medium, where a program suitable for execution by a processor may be stored, where the program is configured to:
acquiring target content and a target bullet screen template; the target content is composed of at least one character;
processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first class area is filled with the target content, the second class area is filled with the content with the same character type as the first class area, and the transparency of the second class area is greater than that of the first class area;
and displaying the bullet screen content.
Alternatively, the detailed function and the extended function of the program may be as described above.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It should be understood that the technical problems can be solved by combining and combining the features of the embodiments from the claims.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to 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 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 (10)

1. A bullet screen processing method is characterized by comprising the following steps:
acquiring target content and a target bullet screen template; the target content is composed of at least one character, the character at least comprises at least one of letters, numbers, Chinese characters and symbols used in a computer, and the target bullet screen template at least comprises a queue bullet screen style;
processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first class area is filled with the target content, the second class area is filled with the content with the same character type as the first class area, and the transparency of the second class area is greater than that of the first class area;
and displaying the bullet screen content.
2. The method of claim 1,
the content of the second type of region filling and the target content contain different characters; alternatively, the first and second electrodes may be,
the content filled in the second type area is at least part of the target content.
3. The method of claim 1, wherein obtaining the target content and the target bullet screen template comprises:
sending a barrage content display request to a server;
and receiving the target content and the target bullet screen template which are sent by the server in response to the bullet screen content display request.
4. The method of claim 1, wherein obtaining the target content and the target bullet screen template comprises:
sending a barrage content display request to a server;
receiving the target content sent by the server in response to the bullet screen content display request and a bullet screen template identifier;
and acquiring the target bullet screen template according to the bullet screen template mark.
5. The method of claim 1, wherein obtaining the target content and the target bullet screen template comprises:
receiving the input target content;
acquiring a bullet screen template candidate list;
determining the target bullet screen template in the bullet screen template candidate list based on a selection operation.
6. The method of any one of claims 1-5, wherein the target bullet screen template is characterized by a two-dimensional array.
7. The method of claim 6,
the line number and the column number of the two-dimensional array represent the line number and the column number of the bullet screen content;
each element in the two-dimensional array characterizes the character filled in the position of the element and the transparency of the character filled in the position of the element.
8. A bullet screen processing apparatus, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring target content and a target bullet screen template, the characters at least comprise at least one of letters, numbers, Chinese characters and symbols used in a computer, and the target bullet screen template at least comprises a queue bullet screen pattern;
the processing module is used for processing the target content based on the target bullet screen template to generate bullet screen content; the bullet screen content comprises a first type area and a second type area; the first class area is filled with the target content, the second class area is filled with the content with the same character type as the first class area, and the transparency of the second class area is greater than that of the first class area;
and the display module is used for displaying the bullet screen content.
9. An electronic device, comprising:
a memory for storing a program;
a processor for calling and executing the program in the memory, and implementing the steps of the bullet screen processing method according to any one of claims 1 to 7 by executing the program.
10. A readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, performs the steps of the bullet screen processing method according to any one of claims 1 to 7.
CN202111521451.6A 2021-12-14 2021-12-14 Bullet screen processing method and device, electronic equipment and storage medium Active CN113923505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111521451.6A CN113923505B (en) 2021-12-14 2021-12-14 Bullet screen processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111521451.6A CN113923505B (en) 2021-12-14 2021-12-14 Bullet screen processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113923505A CN113923505A (en) 2022-01-11
CN113923505B true CN113923505B (en) 2022-03-01

Family

ID=79249095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111521451.6A Active CN113923505B (en) 2021-12-14 2021-12-14 Bullet screen processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113923505B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339373B (en) * 2022-03-17 2022-05-27 飞狐信息技术(天津)有限公司 Queue barrage generation method and device, storage medium and equipment
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 (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980500A (en) * 2015-06-08 2015-10-14 腾讯科技(北京)有限公司 Information display method and terminal
CN105939493A (en) * 2016-03-30 2016-09-14 广州华多网络科技有限公司 Video barrage display method and video barrage display device
CN106911954A (en) * 2017-02-24 2017-06-30 杭州狮说教育科技有限公司 One kind is based on the live barrage display methods of Internet education and device
CN106951334A (en) * 2017-03-21 2017-07-14 武汉斗鱼网络科技有限公司 Send the method and system of colored barrage
CN107613392A (en) * 2017-09-22 2018-01-19 广东欧珀移动通信有限公司 Information processing method, device, terminal device and storage medium
CN110324697A (en) * 2019-07-17 2019-10-11 咪咕视讯科技有限公司 A kind of barrage display methods, terminal device and computer readable storage medium
CN110800310A (en) * 2018-12-29 2020-02-14 深圳市大疆创新科技有限公司 Subtitle processing method and director system for sports game video
CN111199138A (en) * 2018-11-16 2020-05-26 武汉斗鱼网络科技有限公司 Method, system, server and storage medium for stroking bullet screen containing Emoji expression by using QML (QML)
CN111279687A (en) * 2018-12-29 2020-06-12 深圳市大疆创新科技有限公司 Video subtitle processing method and director system
CN111294663A (en) * 2020-02-10 2020-06-16 腾讯科技(深圳)有限公司 Bullet screen processing method and device, electronic equipment and computer readable storage medium
CN112131863A (en) * 2020-08-04 2020-12-25 中科天玑数据科技股份有限公司 Comment opinion theme extraction method, electronic equipment and storage medium
CN112188275A (en) * 2020-09-21 2021-01-05 北京字节跳动网络技术有限公司 Bullet screen generation method, bullet screen generation device, bullet screen generation equipment and storage medium
CN113010710A (en) * 2021-03-30 2021-06-22 上海哔哩哔哩科技有限公司 Bullet screen display method and device
CN113365109A (en) * 2021-06-02 2021-09-07 深圳云知声信息技术有限公司 Method and device for generating video subtitles, electronic equipment and storage medium
CN113766298A (en) * 2021-09-03 2021-12-07 上海哔哩哔哩科技有限公司 Bullet screen display method, device and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080226144A1 (en) * 2007-03-16 2008-09-18 Carestream Health, Inc. Digital video imaging system for plastic and cosmetic surgery
US9509758B2 (en) * 2013-05-17 2016-11-29 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Relevant commentary for media content
WO2016004859A1 (en) * 2014-07-07 2016-01-14 乐视网信息技术(北京)股份有限公司 Method and device for video barrage display
CN109218800A (en) * 2018-06-29 2019-01-15 努比亚技术有限公司 A kind of barrage information display method, terminal and computer readable storage medium
CN110493653B (en) * 2019-09-12 2022-02-01 北京奇艺世纪科技有限公司 Barrage play control method, device, equipment and storage medium
CN110856030B (en) * 2019-11-14 2022-02-18 网易(杭州)网络有限公司 Method and device for adjusting bullet screen area and readable medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980500A (en) * 2015-06-08 2015-10-14 腾讯科技(北京)有限公司 Information display method and terminal
CN105939493A (en) * 2016-03-30 2016-09-14 广州华多网络科技有限公司 Video barrage display method and video barrage display device
CN106911954A (en) * 2017-02-24 2017-06-30 杭州狮说教育科技有限公司 One kind is based on the live barrage display methods of Internet education and device
CN106951334A (en) * 2017-03-21 2017-07-14 武汉斗鱼网络科技有限公司 Send the method and system of colored barrage
CN107613392A (en) * 2017-09-22 2018-01-19 广东欧珀移动通信有限公司 Information processing method, device, terminal device and storage medium
CN111199138A (en) * 2018-11-16 2020-05-26 武汉斗鱼网络科技有限公司 Method, system, server and storage medium for stroking bullet screen containing Emoji expression by using QML (QML)
CN110800310A (en) * 2018-12-29 2020-02-14 深圳市大疆创新科技有限公司 Subtitle processing method and director system for sports game video
CN111279687A (en) * 2018-12-29 2020-06-12 深圳市大疆创新科技有限公司 Video subtitle processing method and director system
CN110324697A (en) * 2019-07-17 2019-10-11 咪咕视讯科技有限公司 A kind of barrage display methods, terminal device and computer readable storage medium
CN111294663A (en) * 2020-02-10 2020-06-16 腾讯科技(深圳)有限公司 Bullet screen processing method and device, electronic equipment and computer readable storage medium
CN112131863A (en) * 2020-08-04 2020-12-25 中科天玑数据科技股份有限公司 Comment opinion theme extraction method, electronic equipment and storage medium
CN112188275A (en) * 2020-09-21 2021-01-05 北京字节跳动网络技术有限公司 Bullet screen generation method, bullet screen generation device, bullet screen generation equipment and storage medium
CN113010710A (en) * 2021-03-30 2021-06-22 上海哔哩哔哩科技有限公司 Bullet screen display method and device
CN113365109A (en) * 2021-06-02 2021-09-07 深圳云知声信息技术有限公司 Method and device for generating video subtitles, electronic equipment and storage medium
CN113766298A (en) * 2021-09-03 2021-12-07 上海哔哩哔哩科技有限公司 Bullet screen display method, device and system

Also Published As

Publication number Publication date
CN113923505A (en) 2022-01-11

Similar Documents

Publication Publication Date Title
CN113923505B (en) Bullet screen processing method and device, electronic equipment and storage medium
US9448725B2 (en) Self-adapting keypad
JP4073215B2 (en) Character input device
CN102349046B (en) Method and apparatus for selecting text message
US9256366B2 (en) Systems and methods for touch-based two-stage text input
US11221756B2 (en) Data entry systems
RU2656685C1 (en) Password formation method and device for its implementation
US8952897B2 (en) Single page soft input panels for larger character sets
CN102999274A (en) Semantic zoom animations
CN102981735A (en) Semantic zoom gestures
US20140164975A1 (en) Terminal with moving keyboard and method for displaying moving keyboard thereof
KR101846238B1 (en) Chinese character input apparatus and controlling method thereof
US20110296347A1 (en) Text entry techniques
US20130325958A1 (en) Information-processing device, storage medium, information-processing method, and information-processing system
US20150277758A1 (en) Input Method and Apparatus of Touchscreen Electronic Device
CN101369209A (en) Hand-written input device and method for complete mixing input
CN113885750A (en) Message processing method and device and electronic equipment
US20140331160A1 (en) Apparatus and method for generating message in portable terminal
US9489128B1 (en) Soft keyboard with size changeable keys for a smart phone
KR100638333B1 (en) Alphabet Input Apparatus Using A Small Keypad And Method Thereof
CN113805708B (en) Information display method, information display device, electronic equipment and storage medium
CN114968464A (en) Recent content display method, device, terminal and storage medium
US20140009414A1 (en) Symbol Input Devices, Symbol Input Method and Associated Computer Program Product
US11922007B2 (en) Apparatus, method and system for inputting characters to an electronic device
CN113342241A (en) Target character selection 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