CN114531607A - Bullet screen display method, device, equipment and storage medium - Google Patents

Bullet screen display method, device, equipment and storage medium Download PDF

Info

Publication number
CN114531607A
CN114531607A CN202111531774.3A CN202111531774A CN114531607A CN 114531607 A CN114531607 A CN 114531607A CN 202111531774 A CN202111531774 A CN 202111531774A CN 114531607 A CN114531607 A CN 114531607A
Authority
CN
China
Prior art keywords
bullet screen
pixel
displayed
acquiring
bullet
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.)
Pending
Application number
CN202111531774.3A
Other languages
Chinese (zh)
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202111531774.3A priority Critical patent/CN114531607A/en
Publication of CN114531607A publication Critical patent/CN114531607A/en
Pending legal-status Critical Current

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • H04N21/2355Processing of additional data, e.g. scrambling of additional data or processing content descriptors involving reformatting operations of additional data, e.g. HTML pages
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4355Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a bullet screen display method, a bullet screen display device, bullet screen display equipment and a storage medium, and relates to the field of multimedia display. The bullet screen display method comprises the following steps: acquiring bullet screen data, wherein the bullet screen data comprises a bullet screen to be displayed or a displayed bullet screen; acquiring pixel parameters, wherein the pixel parameters comprise pixel positions, or the pixel parameters comprise pixel positions and pixel value change modes; and displaying the bullet screen data according to the pixel parameters. This application is used for solving the single problem of bullet curtain pattern.

Description

Bullet screen display method, device, equipment and storage medium
Technical Field
The present application relates to the field of multimedia display, and in particular, to a bullet screen display method, apparatus, device, and storage medium.
Background
The bullet screen refers to a commenting caption popped up when a video is viewed on the network. The barrage can give the illusion of real-time interaction to audiences, although the sending moments of different barrages are different, the barrage only appears at a specific time point in a video, so the barrages sent at the same moment basically have the same theme, and the illusion of simultaneous comment with other audiences can be realized when the barrage participates in the comment. The user regards the bullet screen as playing games and has the requirements of expression, friend making, dazzling and the like.
The bullet screen is a novel social contact mode, and from an original common bullet screen to various forms such as a color bullet screen, a star head portrait and the like, new experience is brought to users. However, the existing bullet screen is single in style, not novel enough, not shocked enough and not capable of sufficiently expressing the emotion of the user.
Disclosure of Invention
The application provides a bullet screen display method, a bullet screen display device, bullet screen display equipment and a bullet screen storage medium, which are used for solving the problem of single bullet screen style.
In a first aspect, the present application provides a bullet screen display method, including:
acquiring bullet screen data, wherein the bullet screen data comprises a bullet screen to be displayed or a displayed bullet screen;
acquiring pixel parameters, wherein the pixel parameters comprise pixel positions, or the pixel parameters comprise the pixel positions and pixel value change modes;
and displaying the bullet screen data according to the pixel parameters.
Optionally, the acquiring pixel parameters includes:
acquiring a bullet screen template;
splitting the coverage area of the bullet screen template to obtain each target pixel point;
and acquiring the position of each target pixel point as the pixel position, and taking the pixel position as the pixel parameter.
Optionally, the displaying the bullet screen data according to the pixel parameter includes:
splitting the bullet screen data to obtain each character;
and dispersedly arranging the characters to the positions of the target pixel points.
Optionally, the bullet screen template comprises at least one of letters, characters and expressions.
Optionally, the acquiring pixel parameters includes:
acquiring a bitmap of the bullet screen data, wherein the bullet screen data are displayed bullet screens;
acquiring the position of each pixel point in the bitmap as the pixel position;
acquiring the change mode of the pixel value;
and taking the pixel position and the pixel value change mode as the pixel parameter.
Optionally, the displaying the bullet screen data according to the pixel parameter includes:
acquiring the number of particles corresponding to the bitmap and the positions of the particles according to the pixel positions and preset particle size information, wherein the particles are composed of at least one pixel point;
generating the particles according to the number of the particles and the positions of the particles;
and controlling each particle to act according to the pixel value change mode, and displaying the bullet screen data.
Optionally, the obtaining the pixel value change mode includes:
acquiring the motion direction of each particle according to the position of each particle and the position of a preset explosion anchor point;
obtaining the movement speed and the movement duration of each particle;
and taking the motion direction, the motion speed and the motion duration of each particle as the pixel value change mode.
In a second aspect, the present application provides a bullet screen display device, comprising:
the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring bullet screen data, and the bullet screen data comprises a bullet screen to be displayed or a displayed bullet screen;
the second obtaining module is used for obtaining pixel parameters, wherein the pixel parameters comprise pixel positions, or the pixel parameters comprise the pixel positions and pixel value change modes;
and the processing module is used for displaying the bullet screen data according to the pixel parameters.
Optionally, the second obtaining module includes a template obtaining submodule, a first splitting submodule, and a position obtaining submodule;
the template acquisition submodule is used for acquiring a bullet screen template;
the first splitting submodule is used for splitting the coverage area of the bullet screen template to obtain each target pixel point;
and the position obtaining submodule is used for obtaining the position of each target pixel point as the pixel position, and taking the pixel position as the pixel parameter.
Optionally, the processing module includes a second splitting sub-module and a scatter arrangement sub-module;
the second splitting submodule is used for splitting the bullet screen data to obtain each character;
and the scattered arrangement submodule is used for scattered arrangement of the characters to the positions of the target pixel points.
Optionally, the bullet screen template comprises at least one of letters, characters and expressions.
Optionally, the second obtaining module includes a bitmap obtaining sub-module, a pixel position obtaining sub-module, a pixel value change mode obtaining sub-module, and a pixel parameter determining sub-module;
the bitmap acquisition submodule is used for acquiring a bitmap of the bullet screen data, wherein the bullet screen data are displayed bullet screens;
the pixel position obtaining submodule is used for obtaining the position of each pixel point in the bitmap as the pixel position;
the pixel value change mode acquisition submodule is used for acquiring the pixel value change mode;
and the pixel parameter determining submodule is used for taking the pixel position and the pixel value change mode as the pixel parameter.
Optionally, the processing module includes a particle acquisition sub-module, a generation sub-module, and a display sub-module;
the particle obtaining submodule is used for obtaining the number of particles corresponding to the bitmap and the positions of the particles according to the pixel positions and preset particle size information, wherein the particles are composed of at least one pixel point;
the generation submodule is used for generating each particle according to the number of the particles and the position of each particle;
and the display submodule is used for controlling each particle to act according to the pixel value change mode and displaying the bullet screen data.
Optionally, the pixel value change mode acquisition sub-module includes a motion direction acquisition unit, a motion speed acquisition unit, and a pixel value change mode determination unit;
the motion direction acquiring unit is used for acquiring the motion direction of each particle according to the position of each particle and the position of a preset explosion anchor point;
the movement speed acquisition unit is used for acquiring the movement speed and the movement duration of each particle;
and the pixel value change mode determining unit is used for taking the motion direction, the motion speed and the motion duration of each particle as the pixel value change mode.
In a third aspect, the present application provides an electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus; the memory for storing a computer program; the processor is configured to execute the program stored in the memory, and implement the bullet screen display method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the bullet screen display method of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: in the embodiment of the application, barrage data is acquired, wherein the barrage data includes a barrage to be displayed or a displayed barrage, and pixel parameters are acquired, wherein the pixel parameters include pixel positions, or the pixel parameters include pixel positions and pixel value change modes, and the barrage data is displayed according to the pixel parameters. For just colour, the typeface of bullet curtain change among the prior art, the single condition of bullet curtain pattern, this application is through according to pixel parameter, shows bullet curtain data, changes the display mode of bullet curtain data from the pixel aspect, makes the display mode of bullet curtain data abundanter.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic flowchart of a bullet screen display method in an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a bullet screen display method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating a bullet screen display method according to an embodiment of the present application;
FIG. 4 is a diagram illustrating the effect of bullet screen display in one embodiment of the present application;
FIG. 5 is a diagram illustrating the effect of bullet screen display in one embodiment of the present application;
FIG. 6 is a flowchart illustrating a bullet screen display method according to an embodiment of the present application;
FIG. 7 is a flowchart illustrating a bullet screen display method according to an embodiment of the present application;
FIG. 8 is a diagram illustrating the effect of bullet screen display in one embodiment of the present application;
fig. 9 is a schematic structural diagram of a bullet screen display device in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In the embodiment of the application, a bullet screen display method is provided, and the method can be applied to a server, and certainly can also be applied to other electronic devices, such as a terminal (a mobile phone, a tablet computer, etc.). In the embodiment of the present application, the method is applied to a terminal as an example for explanation.
In the embodiment of the present application, as shown in fig. 1, the method flow of bullet screen display mainly includes:
step 101, acquiring bullet screen data.
Wherein, the bullet screen data comprises a bullet screen to be displayed or a displayed bullet screen.
The bullet screen to be displayed may refer to content input into the input box when the user watches a video on the video client of the terminal, for example, the screen is too beautiful, or may be preset data, for example, 01.
The displayed barrage refers to a barrage which is displayed on a video interface in the video playing process.
Step 102, pixel parameters are obtained.
The pixel parameters comprise pixel positions, or the pixel parameters comprise pixel positions and pixel value change modes.
The pixel position may be a position of each pixel point in the bullet screen, for example, the bullet screen is YYDS (an abbreviation of network flow, "always god of sight", which is often used by fan to appreciate their idol), the YYDS is drawn on a canvas (canvas, a new label of HTML 5) of 60 × 15, then the whole canvas is split into RGB pixel points of 900 int types (integer types), and the positions of each pixel point in the coverage area of the YYDS are obtained.
The pixel value change mode can be a mode that the value of each pixel point in the bullet screen changes according to the effect of the animation. The animation may be selected by the user, or may be a preset animation, such as an explosion, a fly-out, or the like.
And 103, displaying the bullet screen data according to the pixel parameters.
The bullet screen data can be displayed according to the pixel position, for example, a user selects a YYDS bullet screen template, the input bullet screen to be displayed is 'love you', the 'love you' is split into characters 'good', 'love you' and 'you' according to the position of each pixel point in the coverage area of the YYDS, the 'good', 'love you' and 'you' are dispersedly arranged at the position of each pixel point, and a larger YYDS bullet screen consisting of the 'good', 'love you', 'love' and 'you' can be displayed on a video interface. The bullet screen display method has the advantages that the display style of the bullet screen to be displayed is novel, the specific content of the bullet screen to be displayed can be displayed, the screen-sticking feeling of the bullet screen to be displayed can be enhanced, and the mood of a user in watching can be expressed through the bullet screen templates such as YYDS.
According to the pixel parameter, the barrage data is displayed, or the displayed barrage is displayed according to the pixel position and the pixel value change mode, for example, when a user clicks the displayed barrage on the video interface, the displayed barrage means the barrage which has been displayed on the video interface in the video playing process, according to the position of each pixel point in the displayed barrage, the corresponding number of particles are generated, and each particle is exploded and scattered towards the periphery according to the preset pixel value change mode. The display style of the displayed bullet screen is novel, and when a user sees an unpleasant bullet screen, the bullet screen can be exploded by clicking the bullet screen to achieve the effect of emotional abreaction.
According to the requirement, the bullet screen data can be displayed according to the pixel parameters, and other modes can be provided.
In the embodiment of the application, barrage data is acquired, wherein the barrage data includes a barrage to be displayed or a displayed barrage, and pixel parameters are acquired, wherein the pixel parameters include pixel positions, or the pixel parameters include pixel positions and pixel value change modes, and the barrage data is displayed according to the pixel parameters. For just the colour of bullet curtain, typeface change among the prior art, the single condition of bullet curtain pattern, this application is through according to pixel parameter, shows bullet curtain data, changes the display mode of bullet curtain data from the pixel aspect, makes the display mode of bullet curtain data abundanter.
In a specific embodiment, as shown in fig. 2, the method flow of bullet screen display mainly includes:
step 201, acquiring bullet screen data.
Step 202, acquiring a bullet screen template.
Wherein, bullet screen template includes at least one in letter, characters, the expression. For example, the bullet screen template may be "YYDS", may be "commander", and may be
Figure BDA0003411063710000071
When the bullet screen template comprises letters, the bullet screen template can be formed by arranging and combining at least one letter in 26 letters. The bullet screen template's kind is abundant, and user's optional item is more, promotes user's bullet screen and uses experience.
The bullet screen templates can be related to the video content, several corresponding bullet screen templates are recommended according to the video content, the user selects from the bullet screen templates, or the bullet screen templates can be related to the preference of the user, several bullet screen templates with high use frequency are recommended to the user according to the use frequency of the user on each bullet screen template, and the user selects from the bullet screen templates.
The bullet screen template may be a bullet screen template selected by the user, for example, at least two bullet screen templates are displayed in the bullet screen setting interface, and the user selects a bullet screen template that the user wants to use. The style of bullet curtain template also can set up, and the style of bullet curtain template includes at least one in size, the colour of bullet curtain template, and the style of bullet curtain template can also include other parameters, and this application does not make the restriction to the parameter that the style of bullet curtain template includes.
And step 203, splitting the coverage area of the bullet screen template to obtain each target pixel point.
For example, the bullet screen template is YYDS, the YYDS is drawn on a canvas of 60 × 15, then the whole canvas is split into RGB pixel points of 900 int types (integer types), coverage areas of the four letters of the YYDS in the canvas have substantial pixel points, positions where no letters cover in the canvas have no substantial pixel points, the coverage areas of the YYDS are split to obtain target pixel points, and the target pixel points are the substantial pixel points.
And 204, acquiring the position of each target pixel point as a pixel position, and taking the pixel position as a pixel parameter.
And step 205, displaying the bullet screen data according to the pixel parameters.
Displaying the bullet screen data according to the position of each target pixel point, which may be displaying the content input into the input frame when the user watches the video on the video client of the terminal at the position of each target pixel point, for example, the bullet screen to be displayed input by the user is "good for y", the bullet screen template is YYDS, and "good for y" is displayed at the position of each target pixel point according to the position of each target pixel point in the coverage area of YYDS. The bullet screen display method has the advantages that the display style of the bullet screen to be displayed is novel, the specific content of the bullet screen to be displayed can be displayed, the screen-sticking feeling of the bullet screen to be displayed can be enhanced, and the mood of a user in watching can be expressed through the bullet screen templates such as YYDS.
The video broadcast interface below shows there is the input frame in the video client at terminal, and input frame one side shows the button that has bullet screen sentence commonly used, clicks the button of bullet screen sentence commonly used, shows the interface of bullet screen sentence commonly used, and the user can show bullet screen sentence commonly used as bullet screen data through clicking commonly used bullet screen sentence, and the bullet screen sentence commonly used of clicking is promptly predetermined data. A return button is displayed on an interface of a common bullet screen sentence, an input box is displayed by clicking the return button, and a user can input bullet screen data in the input box.
The bullet screen data is displayed according to the position of each target pixel point, or preset data is displayed at the position of each target pixel point, for example, the preset data is 01, the bullet screen template is YYDS, and "01" is displayed at the position of each target pixel point according to the position of each target pixel point in the coverage area of YYDS. The display style of the bullet screen to be displayed is novel, the screen-overlocking feeling of the bullet screen to be displayed can be enhanced, and the mood of a user during watching can be expressed through bullet screen templates such as YYDS.
In a specific embodiment, as shown in fig. 3, the method flow of bullet screen display mainly includes:
step 301, acquiring bullet screen data.
Step 302, acquiring a bullet screen template.
Wherein, bullet screen template includes at least one in letter, characters, the expression. For example, the bullet screen template may be "YYDS", may be "commander", and may be
Figure BDA0003411063710000091
When the bullet screen template comprises letters, the bullet screen template can be formed by arranging and combining at least one letter in 26 letters. The bullet screen template's kind is abundant, and user's optional item is more, promotes user's bullet screen and uses experience.
The bullet screen template may be a bullet screen template selected by the user, for example, at least two bullet screen templates are displayed in the bullet screen setting interface, and the user selects a bullet screen template that the user wants to use. The style of bullet curtain template also can set up, and the style of bullet curtain template includes at least one in size, the colour of bullet curtain template, and the style of bullet curtain template can also include other parameters, and this application does not make the restriction to the parameter that the style of bullet curtain template includes.
And 303, splitting the coverage area of the bullet screen template to obtain each target pixel point.
For example, the bullet screen template is YYDS, the YYDS is drawn on a canvas of 60 × 15, then the whole canvas is split into RGB pixel points of 900 int types (integer types), coverage areas of the four letters of the YYDS in the canvas have substantial pixel points, positions where no letters cover in the canvas have no substantial pixel points, the coverage areas of the YYDS are split to obtain target pixel points, and the target pixel points are the substantial pixel points.
And 304, acquiring the position of each target pixel point.
And 305, splitting bullet screen data to obtain each character.
When the bullet screen data is the bullet screen to be displayed, the bullet screen to be displayed selected by the user through the bullet screen template may refer to the content input into the input box when the user watches the video on the video client of the terminal, for example, the picture is too beautiful, or may be preset data, for example, 01.
When the bullet screen data is a bullet screen sentence, the bullet screen data can be directly split to obtain each character, and the characters are dispersedly arranged to the positions of the target pixel points.
When the bullet screen data is at least two bullet screen sentences, the bullet screen data can be divided into the bullet screen sentences according to punctuation marks, the bullet screen sentences are split again to obtain characters, the characters are dispersedly arranged to the positions of target pixel points, and each bullet screen sentence is displayed in the form of a bullet screen template.
Splitting the barrage data to obtain each character, which may be splitting the content input into the input box when the user watches the video on the video client of the terminal, to obtain each character, for example, splitting the barrage to be displayed, which is input by the user, into each character "good", "can", "love" and "can".
Splitting the bullet screen data to obtain each character, or splitting preset data to obtain each character, for example, the preset data is "01", and splitting "01" into each character "0" and "1".
And step 306, dispersedly arranging each character to the position of each target pixel point.
The positions of the target pixels at which the characters are dispersedly arranged may be the positions of the target pixels at which the characters are obtained by splitting the content input into the input frame when the user watches the video on the video client of the terminal, and the characters are dispersedly arranged at the positions of the target pixels, for example, the bullet screen to be displayed input by the user is "good love", the "good love you" is split into the characters "good", "ok", "love", "yaya", the bullet screen template is YYDS, and according to the positions of the target pixels in the coverage area of the YYDS, the target pixels are the substantial pixels, the characters "good", "ok", "love", "yaya" are dispersedly arranged at the positions of the substantial pixels, and a large YYDS bullet screen composed of "good", "ok", "love", "yaya" and "can be displayed on the video interface. The scattered arrangement means that each character is arranged to the position of each target pixel point from left to right and from top to bottom. The bullet screen display method has the advantages that the display style of the bullet screen to be displayed is novel, the specific content of the bullet screen to be displayed can be displayed, the screen-sticking feeling of the bullet screen to be displayed can be enhanced, and the mood of a user in watching can be expressed through the bullet screen templates such as YYDS.
The characters are dispersedly arranged to the positions of the target pixel points, or the characters obtained by splitting preset data are dispersedly arranged to the positions of the target pixel points, for example, the preset data is "01", the "01" is split into the characters "0" and "1", the bullet screen template is YYDS, each target pixel point is each substantial pixel point according to the position of each target pixel point in the coverage area of the YYDS, the characters "0" and "1" are dispersedly arranged to the positions of each substantial pixel point, and a large YYDS bullet screen composed of "0" and "1" can be displayed on the video interface. The display style of the bullet screen to be displayed is novel, the screen-overlocking feeling of the bullet screen to be displayed can be enhanced, and the mood of a user during watching can be expressed through bullet screen templates such as YYDS.
In one embodiment, as shown in fig. 4 and 5, the effect of the bullet screen display is schematically shown. In fig. 4, the bullet screen template is YYDS, the bullet screen to be displayed input by the user is "happy qibabu", the "happy qibabu" is split into each character "fast", "happy", "odd", "bab" and "cloth", each target pixel point is each substantial pixel point according to the position of each target pixel point in the coverage area of YYDS, and the "fast", "happy", "qi", "bab" and "cloth" are dispersedly arranged to the position of each substantial pixel point, so that a large YYDS bullet screen composed of "fast", "happy", "qid", "bab" and "cloth" can be displayed on the video interface. In fig. 5, the bullet screen template is an expression of the simple-stroke character, the bullet screen to be displayed is preset data "01", the "01" is split into characters "0" and "1", each target pixel point is each substantial pixel point according to the position of each target pixel point in the coverage area of the expression of the simple-stroke character, the "0" and the "1" are dispersedly arranged to the position of each substantial pixel point, and a larger bullet screen of the expression of the simple-stroke character composed of the "0" and the "1" can be displayed on the video interface.
In a specific embodiment, as shown in fig. 6, the method flow of bullet screen display mainly includes:
step 601, acquiring bullet screen data.
Step 602, obtaining a bitmap of the bullet screen data, wherein the bullet screen data is the displayed bullet screen.
A bitmap (bitmap), also called a dot matrix image or a raster image, is composed of individual dots called pixels, which can be arranged and colored differently.
The bitmap of the bullet screen data is obtained by drawing a view of the bullet screen data onto a canvas (a new label of HTML 5), and extracting a bitmap pixel matrix of the canvas. The view of the bullet screen data refers to a text control of the bullet screen data in a video playing picture of the displayed bullet screen displayed on a video client of the terminal. The color and position of each pixel point in the bitmap of the bullet screen data can be obtained.
And when only one displayed bullet screen exists on the video playing picture, the bullet screen data is the displayed bullet screen.
When at least two displayed barrages exist on the video playing picture, the displayed barrages of the selection operation performed by the user are obtained, and the displayed barrages of the selection operation performed by the user are used as barrage data. The selection operation may be a click operation or a frame selection operation. The displayed barrage for the user to select may be one barrage sentence, or may be at least two barrage sentences. And executing the operations of the steps 603 to 606 for each bullet screen statement respectively.
Step 603, acquiring the position of each pixel point in the bitmap as the pixel position.
Step 604, a pixel value change mode is obtained.
The obtaining of the pixel value change mode may be obtaining of an animation selected by a user, for example, at least two animations are displayed in an animation setting interface, and the user selects an animation to be used, or obtaining of a preset animation, for example, the preset animation is a particle explosion, and the particle explosion animation is used by default without the user selection. The animation may be of various types, e.g., particle explosion, fly-out, etc.
Step 605, the pixel position and the pixel value variation mode are used as the pixel parameters.
And 606, displaying bullet screen data according to the pixel parameters.
Specifically, according to the pixel parameter, the bullet screen data is displayed, which includes: acquiring the number of particles corresponding to a bitmap and the positions of the particles according to the pixel positions and preset particle size information, wherein the particles are composed of at least one pixel point; generating each particle according to the number of the particles and the position of each particle; and controlling each particle to act according to a pixel value change mode, and displaying bullet screen data.
When the shape of the particle is circular, the predetermined particle size information may be a radius of the particle.
For example, the barrage data is a displayed barrage "skill is poor, the view of" skill is poor is drawn on canvas ", a bitmap pixel matrix of canvas is taken out, the number of particles to be generated and the positions of the particles are calculated according to the size of a preset circular particle radius pixel and the positions of all pixel points in the bitmap of" skill is poor, the positions of the particles are recorded as the centers of the particles, animation selected by a user is particle explosion, the motion direction of the particles is determined according to a preset explosion anchor point and the centers of the particles, then the particles move for a certain time length according to a randomly generated speed, and finally the generated particles move towards the respective directions to form the explosion effect that the particles are exploded and scattered towards the periphery. The display style of the displayed bullet screen is novel, and when a user sees an unwelcome bullet screen, the bullet screen can be clicked to generate animation to achieve the effect of emotional venting.
In a specific embodiment, as shown in fig. 7, the method flow of bullet screen display mainly includes:
and step 701, acquiring bullet screen data.
Step 702, acquiring a bitmap of bullet screen data, wherein the bullet screen data is a displayed bullet screen.
A bitmap (bitmap), also called a dot matrix image or a raster image, is composed of individual dots called pixels, which can be arranged and colored differently.
The bitmap of the bullet screen data is obtained by drawing the view of the displayed bullet screen onto the canvas (a new label of the HTML 5), and extracting the bitmap pixel matrix of the canvas. The color and position of each pixel point in the bitmap of the bullet screen data can be obtained.
Step 703, obtaining the position of each pixel point in the bitmap as the pixel position.
Step 704, obtaining the number of particles corresponding to the bitmap and the position of each particle according to the pixel position and the preset particle size information, wherein the particles are composed of at least one pixel point.
Step 705, obtaining the motion direction of each particle according to the position of each particle and the position of a preset explosion anchor point.
The moving direction of each particle refers to the moving direction of each particle in the visual effect, and in essence, the moving direction of each particle is represented by the value change of each pixel point in the bullet screen according to the animation effect.
When the animation is a particle explosion, the position of each particle is recorded as the center of a circle of the particle, and the motion direction of each particle is obtained according to the position of each particle and the position of the preset explosion anchor point, which may be the direction in which the motion direction of each particle points to the center of a circle of the particle for the preset explosion anchor point.
And step 706, acquiring the movement speed and the movement time length of each particle.
The moving speed of each particle can be a preset value or a randomly generated value. The movement duration may be a preset value or a randomly generated value. The movement speed and the movement time of each particle refer to the movement speed and the movement time of each particle in the visual effect, and in essence, the movement speed and the movement time of each particle are reflected by the value change of each pixel point in the bullet screen according to the animation effect.
And 707, taking the motion direction, the motion speed and the motion duration of each particle as a pixel value change mode.
Step 708, the pixel position and the pixel value variation mode are used as the pixel parameters.
And step 709, displaying the bullet screen data according to the pixel parameters.
Specifically, according to the pixel parameter, the bullet screen data is displayed, which includes: acquiring the number of particles corresponding to a bitmap and the positions of the particles according to the pixel positions and preset particle size information, wherein the particles are composed of at least one pixel point; generating each particle according to the number of the particles and the position of each particle; and controlling each particle to act according to the pixel value change mode, and displaying the bullet screen data.
For example, the barrage data is a displayed barrage "skill is poor, the view of" skill is poor is drawn on canvas ", a bitmap pixel matrix of canvas is taken out, the number of particles to be generated and the positions of the particles are calculated according to the size of a preset circular particle radius pixel and the positions of all pixel points in the bitmap of" skill is poor, the positions of the particles are recorded as the centers of the particles, animation selected by a user is particle explosion, the motion direction of the particles is determined according to a preset explosion anchor point and the centers of the particles, then the particles move for a certain time length according to a randomly generated speed, and finally the generated particles move towards the respective directions to form the explosion effect that the particles are exploded and scattered towards the periphery. The demonstration mode that makes the bullet screen that has shown is more novel, when the user sees the offensive bullet screen, can make the bullet screen explode through clicking the bullet screen and reach the effect that the mood was let out.
In one embodiment, as shown in fig. 8, a diagram of the effect of the bullet screen display is shown. In fig. 8, the bullet screen data is a displayed bullet screen in an XSWL shape composed of "ha" and "ha", the "X" is already outside the video interface, the "SWL" is displayed in the video interface, the XSWL is a network term, and is an abbreviation of "laughing me", and the user clicks the displayed bullet screen in the XSWL shape composed of "ha" and "ha", generates a corresponding number of particles according to the position of each pixel point in the displayed bullet screen, and causes each particle to explode and scatter around according to a preset pixel value change mode. The display style of the displayed bullet screen is novel, and when a user sees an unpleasant bullet screen, the bullet screen can be exploded by clicking the bullet screen to achieve the effect of emotional abreaction.
Based on the same concept, the embodiment of the present application provides a bullet screen display device, and specific implementation of the device can refer to the description of the method embodiment section, and repeated details are not repeated. As shown in fig. 9, the apparatus mainly includes:
a first obtaining module 901, configured to obtain bullet screen data, where the bullet screen data includes a bullet screen to be displayed or a displayed bullet screen;
a second obtaining module 902, configured to obtain a pixel parameter, where the pixel parameter includes a pixel position, or the pixel parameter includes the pixel position and a pixel value change manner;
and the processing module 903 is configured to display the bullet screen data according to the pixel parameter.
Optionally, the second obtaining module includes a template obtaining sub-module, a first splitting sub-module, and a position obtaining sub-module;
the template acquisition submodule is used for acquiring a bullet screen template;
the first splitting submodule is used for splitting the coverage area of the bullet screen template to obtain each target pixel point;
and the position obtaining submodule is used for obtaining the position of each target pixel point as the pixel position, and taking the pixel position as the pixel parameter.
Optionally, the processing module includes a second splitting sub-module and a scatter arrangement sub-module;
the second splitting submodule is used for splitting the bullet screen data to obtain each character;
and the scattered arrangement submodule is used for scattered arrangement of the characters to the positions of the target pixel points.
Optionally, the bullet screen template comprises at least one of letters, characters and expressions.
Optionally, the second obtaining module includes a bitmap obtaining sub-module, a pixel position obtaining sub-module, a pixel value change mode obtaining sub-module, and a pixel parameter determining sub-module;
the bitmap acquisition submodule is used for acquiring a bitmap of the bullet screen data, wherein the bullet screen data are displayed bullet screens;
the pixel position obtaining submodule is used for obtaining the position of each pixel point in the bitmap as the pixel position;
the pixel value change mode acquisition submodule is used for acquiring the pixel value change mode;
and the pixel parameter determining submodule is used for taking the pixel position and the pixel value change mode as the pixel parameter.
Optionally, the processing module includes a particle acquisition sub-module, a generation sub-module, and a display sub-module;
the particle obtaining submodule is used for obtaining the number of particles corresponding to the bitmap and the positions of the particles according to the pixel positions and preset particle size information, wherein the particles are composed of at least one pixel point;
the generation submodule is used for generating each particle according to the number of the particles and the position of each particle;
and the display submodule is used for controlling each particle to act according to the pixel value change mode and displaying the bullet screen data.
Optionally, the pixel value change mode acquisition sub-module includes a motion direction acquisition unit, a motion speed acquisition unit, and a pixel value change mode determination unit;
the motion direction acquiring unit is used for acquiring the motion direction of each particle according to the position of each particle and the position of a preset explosion anchor point;
the movement speed acquisition unit is used for acquiring the movement speed and the movement duration of each particle;
and the pixel value change mode determining unit is used for taking the motion direction, the motion speed and the motion duration of each particle as the pixel value change mode.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 10, the electronic device mainly includes: a processor 1001, a memory 1002, and a communication bus 1003, wherein the processor 1001 and the memory 1002 communicate with each other via the communication bus 1003. The memory 1002 stores a program executable by the processor 1001, and the processor 1001 executes the program stored in the memory 1002, so as to implement the following steps:
acquiring bullet screen data, wherein the bullet screen data comprises a bullet screen to be displayed or a displayed bullet screen; acquiring pixel parameters, wherein the pixel parameters comprise pixel positions, or the pixel parameters comprise pixel positions and pixel value change modes; and displaying the bullet screen data according to the pixel parameters.
The communication bus 1003 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1003 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
The Memory 1002 may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one storage device located remotely from the aforementioned processor 1001.
The Processor 1001 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In still another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the bullet screen display method described in the above-described embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. 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 invention. Thus, the present invention 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 display method is characterized by comprising the following steps:
acquiring bullet screen data, wherein the bullet screen data comprises a bullet screen to be displayed or a displayed bullet screen;
acquiring pixel parameters, wherein the pixel parameters comprise pixel positions, or the pixel parameters comprise the pixel positions and pixel value change modes;
and displaying the bullet screen data according to the pixel parameters.
2. The bullet screen display method according to claim 1, wherein said obtaining pixel parameters comprises:
acquiring a bullet screen template;
splitting the coverage area of the bullet screen template to obtain each target pixel point;
and acquiring the position of each target pixel point as the pixel position, and taking the pixel position as the pixel parameter.
3. The bullet screen display method according to claim 2, wherein said displaying said bullet screen data according to said pixel parameters comprises:
splitting the bullet screen data to obtain each character;
and dispersedly arranging the characters to the positions of the target pixel points.
4. The bullet screen display method of claim 2 wherein said bullet screen template comprises at least one of letters, words, and expressions.
5. The bullet screen display method according to claim 1, wherein said obtaining pixel parameters comprises:
acquiring a bitmap of the bullet screen data, wherein the bullet screen data are displayed bullet screens;
acquiring the position of each pixel point in the bitmap as the pixel position;
acquiring the change mode of the pixel value;
and taking the pixel position and the pixel value change mode as the pixel parameter.
6. The bullet screen display method according to claim 5, wherein said displaying said bullet screen data according to said pixel parameters comprises:
acquiring the number of particles corresponding to the bitmap and the positions of the particles according to the pixel positions and preset particle size information, wherein the particles are composed of at least one pixel point;
generating the particles according to the number of the particles and the positions of the particles;
and controlling each particle to act according to the pixel value change mode, and displaying the bullet screen data.
7. The bullet screen display method according to claim 6, wherein the obtaining the pixel value variation mode comprises:
acquiring the motion direction of each particle according to the position of each particle and the position of a preset explosion anchor point;
obtaining the movement speed and the movement duration of each particle;
and taking the motion direction, the motion speed and the motion duration of each particle as the pixel value change mode.
8. A bullet screen display device, comprising:
the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring bullet screen data, and the bullet screen data comprises a bullet screen to be displayed or a displayed bullet screen;
the second obtaining module is used for obtaining pixel parameters, wherein the pixel parameters comprise pixel positions, or the pixel parameters comprise the pixel positions and pixel value change modes;
and the processing module is used for displaying the bullet screen data according to the pixel parameters.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus; the memory for storing a computer program; the processor is configured to execute the program stored in the memory, and implement the bullet screen display method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the bullet screen display method according to any one of claims 1 to 7.
CN202111531774.3A 2021-12-14 2021-12-14 Bullet screen display method, device, equipment and storage medium Pending CN114531607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111531774.3A CN114531607A (en) 2021-12-14 2021-12-14 Bullet screen display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111531774.3A CN114531607A (en) 2021-12-14 2021-12-14 Bullet screen display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114531607A true CN114531607A (en) 2022-05-24

Family

ID=81619489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111531774.3A Pending CN114531607A (en) 2021-12-14 2021-12-14 Bullet screen display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114531607A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297355A (en) * 2022-08-02 2022-11-04 北京奇艺世纪科技有限公司 Bullet screen display method, bullet screen generation device, electronic equipment and storage medium
CN116193183A (en) * 2022-11-11 2023-05-30 深圳创维-Rgb电子有限公司 Bullet screen display method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534996A (en) * 1995-03-23 2004-10-06 ���ṫ˾ Caption data coding/decoding method and device
CN109525885A (en) * 2018-12-13 2019-03-26 广州华多网络科技有限公司 Information processing method, device, electronic equipment and computer-readable readable medium
CN109640154A (en) * 2018-12-14 2019-04-16 苏州好玩友网络科技有限公司 Webpage barrage display methods, device, equipment and storage medium
CN110012338A (en) * 2019-04-10 2019-07-12 广州虎牙信息科技有限公司 A kind of method, apparatus, computer equipment and storage medium showing barrage data
CN110392293A (en) * 2019-06-21 2019-10-29 平安普惠企业管理有限公司 Barrage control method, device, equipment and storage medium based on canvas
CN110740338A (en) * 2019-10-29 2020-01-31 网易(杭州)网络有限公司 bullet screen processing method and device, electronic equipment and storage medium
CN111294663A (en) * 2020-02-10 2020-06-16 腾讯科技(深圳)有限公司 Bullet screen processing method and device, electronic equipment and computer readable storage medium
CN111614993A (en) * 2020-04-30 2020-09-01 腾讯科技(深圳)有限公司 Barrage display method and device, computer equipment and storage medium
CN112612439A (en) * 2020-12-30 2021-04-06 游艺星际(北京)科技有限公司 Bullet screen display method and device, electronic equipment and storage medium
CN112752132A (en) * 2019-10-31 2021-05-04 腾讯科技(深圳)有限公司 Cartoon picture bullet screen display method and device, medium and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534996A (en) * 1995-03-23 2004-10-06 ���ṫ˾ Caption data coding/decoding method and device
CN109525885A (en) * 2018-12-13 2019-03-26 广州华多网络科技有限公司 Information processing method, device, electronic equipment and computer-readable readable medium
CN109640154A (en) * 2018-12-14 2019-04-16 苏州好玩友网络科技有限公司 Webpage barrage display methods, device, equipment and storage medium
CN110012338A (en) * 2019-04-10 2019-07-12 广州虎牙信息科技有限公司 A kind of method, apparatus, computer equipment and storage medium showing barrage data
CN110392293A (en) * 2019-06-21 2019-10-29 平安普惠企业管理有限公司 Barrage control method, device, equipment and storage medium based on canvas
CN110740338A (en) * 2019-10-29 2020-01-31 网易(杭州)网络有限公司 bullet screen processing method and device, electronic equipment and storage medium
CN112752132A (en) * 2019-10-31 2021-05-04 腾讯科技(深圳)有限公司 Cartoon picture bullet screen display method and device, medium and electronic equipment
CN111294663A (en) * 2020-02-10 2020-06-16 腾讯科技(深圳)有限公司 Bullet screen processing method and device, electronic equipment and computer readable storage medium
CN111614993A (en) * 2020-04-30 2020-09-01 腾讯科技(深圳)有限公司 Barrage display method and device, computer equipment and storage medium
CN112612439A (en) * 2020-12-30 2021-04-06 游艺星际(北京)科技有限公司 Bullet screen display method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297355A (en) * 2022-08-02 2022-11-04 北京奇艺世纪科技有限公司 Bullet screen display method, bullet screen generation device, electronic equipment and storage medium
CN115297355B (en) * 2022-08-02 2024-01-23 北京奇艺世纪科技有限公司 Barrage display method, barrage generation method, barrage display device, electronic equipment and storage medium
CN116193183A (en) * 2022-11-11 2023-05-30 深圳创维-Rgb电子有限公司 Bullet screen display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10068364B2 (en) Method and apparatus for making personalized dynamic emoticon
US20200204506A1 (en) Systems and methods implementing user interface objects
CN114531607A (en) Bullet screen display method, device, equipment and storage medium
KR20120137396A (en) Method, apparatus and client device for displaying expression information
CN114697721B (en) Bullet screen display method and electronic equipment
CN106878825B (en) Live broadcast-based sound effect display method and device
US20240203010A1 (en) Information reply method and apparatus, and electronic device, readable storage medium and program product
CN113286201A (en) Recommendation information display method and device, electronic equipment and storage medium
US20230033074A1 (en) Social information processing method and apparatus, and electronic device
Menotti Discourses around vertical videos: An archaeology of “wrong” aspect ratios
CN109656463B (en) Method, device and system for generating individual expressions
CN105828167A (en) Screen-shot sharing method and device
CN115022726A (en) Surrounding information generation and barrage display method, device, equipment and storage medium
WO2020186837A1 (en) Text animation control method and device, storage medium and processor
CN111260760A (en) Image processing method, image processing device, electronic equipment and storage medium
JP6406028B2 (en) Document display support device, terminal device, document display method, and computer program
US20210289266A1 (en) Video playing method and apparatus
CN115908654A (en) Interaction method, device and equipment based on virtual image and storage medium
CN114866835A (en) Bullet screen display method, bullet screen display device and electronic equipment
WO2020248682A1 (en) Display device and virtual scene generation method
US10943380B1 (en) Systems and methods for pushing content
CN113395565A (en) Display method of virtual gift and related device and equipment
CN115442650B (en) Barrage information processing method and device, barrage information processing equipment and storage medium
US20230334791A1 (en) Interactive reality computing experience using multi-layer projections to create an illusion of depth
US20240185546A1 (en) Interactive reality computing experience using multi-layer projections to create an illusion of depth

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