CN117793475A - Bullet screen display method and device - Google Patents

Bullet screen display method and device Download PDF

Info

Publication number
CN117793475A
CN117793475A CN202311832078.5A CN202311832078A CN117793475A CN 117793475 A CN117793475 A CN 117793475A CN 202311832078 A CN202311832078 A CN 202311832078A CN 117793475 A CN117793475 A CN 117793475A
Authority
CN
China
Prior art keywords
display
target
display material
barrage
comment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311832078.5A
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.)
Shanghai Hode Information Technology Co Ltd
Original Assignee
Shanghai Hode Information 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 Shanghai Hode Information Technology Co Ltd filed Critical Shanghai Hode Information Technology Co Ltd
Priority to CN202311832078.5A priority Critical patent/CN117793475A/en
Publication of CN117793475A publication Critical patent/CN117793475A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the application provides a display method of a barrage, which comprises the following steps: and playing a target video, wherein the target video is associated with a black hole barrage, and the black hole barrage is associated with display materials. And sliding and displaying the target bullet comment on the target video by taking the position of the display material as an inlet and/or an outlet. According to the technical scheme, the target barrage comment can be displayed in a sliding mode by taking the position of the display material as an inlet and/or an outlet, and the method has the advantages that: on the one hand, the target barrage comments can be hidden at the position where the display material is located, so that a display special effect that the target barrage comments enter the black hole to disappear is formed, and the display effect of the target barrage comments is improved. On the other hand, the target barrage comments can appear instantly at the position of the display material, so that the display special effect of the target barrage comments coming out of the black hole is formed, and the display effect of the target barrage comments is improved.

Description

Bullet screen display method and device
Technical Field
The embodiment of the application relates to the technical field of barrages, in particular to a barrage display method, a barrage display device, computer equipment and a computer readable storage medium.
Background
With the rapid development of video technology, more and more users can watch various video programs through a network. During the viewing of a video program, a user may interact with a host or other user by sending a bullet screen. The bullet screen refers to subtitles popped up and moving in a preset direction when watching video through a network, and is communication information. Barrages have not yet had a fixed vocabulary in English, which is commonly referred to as: co-agent, danmaku, barrage, pellet screen, pellet-screen, etc. The bullet screen can allow users to comment or feel, but is different from the common video sharing website which only displays a special comment area under a player, and the bullet screen can appear on a video picture in real time in a sliding caption mode, so that all viewers can be ensured to notice. However, the bullet screen as described above has poor display effect, and insufficient interactivity and playability, resulting in poor user experience.
It should be noted that the foregoing is not necessarily prior art, and is not intended to limit the scope of the patent protection of the present application.
Disclosure of Invention
Embodiments of the present application provide a display method, apparatus, computer device, and computer-readable storage medium for a bullet screen, so as to solve or alleviate one or more of the technical problems set forth above.
One aspect of the embodiments of the present application provides a method for displaying a barrage, where the method includes:
playing a target video, wherein the target video is associated with a black hole barrage, and the black hole barrage is associated with a first display material;
and sliding and displaying the target bullet comment on the target video by taking the position of the display material as an inlet and/or an outlet.
Optionally, the display material includes a first display material and/or a second display material; the target bullet comment is displayed on the target video in a sliding mode by taking the position of the display material as an inlet and/or an outlet, and the method comprises the following steps:
sliding and displaying the target bullet comment on the target video in a first preset direction;
displaying the first display material on a sliding track of the target barrage comment and in front of the sliding of the target barrage comment;
under the condition that the characters in the target barrage comment slide to the first position where the first display material is located, hiding the characters sliding to the first position to form a display special effect that the characters in the target barrage comment enter black holes one by one to disappear;
and/or the number of the groups of groups,
displaying the second display material at a second position on the target video, the second position being different from the first position;
And taking the second position as the initial position of the target barrage comment, sliding and displaying the target barrage comment in a second preset direction to form a display special effect that characters in the target barrage comment come out from the other end of the black hole one by one.
Optionally, the starting display time of the first display material and the starting display time of the second display material are the same.
Optionally, the first display material and the second display material are not overlapped with other black hole pictures.
Optionally, the method further comprises:
hiding the first display material under the condition that the last character in the target barrage comment slides to the first position;
and hiding the second display material under the condition that the last character in the target barrage comment slides out from the second position.
Optionally, the first display material includes a first black hole picture, and the second display material includes a second black hole picture.
Optionally, the font size of the target barrage comment and the size of the first display material and the second display material are positively correlated.
Optionally, the first display material and/or the second display material is a picture in a frame animation format including a plurality of frames.
Optionally, sliding the target barrage comment on the target video in a first preset direction includes:
and in the display process, sliding display is performed on the target video along the first preset direction at a plurality of different speeds successively.
Another aspect of an embodiment of the present application provides a method for displaying a barrage, where the method includes:
during the playing of a target video, acquiring special effect configuration parameters of a target black hole barrage of the target video;
loading display materials according to the special effect configuration parameters, and determining a display time interval of the display materials;
according to the display time interval, displaying the display material on the target video in a covering manner;
and sliding and displaying the target bullet comment on the target video by taking the position of the display material as a starting point and/or an ending point.
Optionally, the special effect configuration parameters include a special effect identifier, a start time, and an end time;
correspondingly, loading display materials according to the special effect configuration parameters, and determining a display time interval of the display materials, wherein the method comprises the following steps:
loading the display material according to the special effect identifier;
and determining a display time interval of the display material according to the starting time and the ending time.
Optionally, the target barrage comment is displayed on the target video in a sliding manner by taking the position of the display material as a starting point and/or an ending point, including:
selecting a target barrage comment from a plurality of barrage comments of the target video according to a preset rule;
identifying the target bullet comment;
and sliding and displaying the marked target barrage comment on the target video by taking the position of the display material as a starting point and/or an ending point.
The preset rules comprise a character string length range and/or a target barrage comment density range of the same screen at the same time point.
Optionally, the display material associates a first display material and a second display material;
correspondingly, the target bullet comment is displayed on the target video in a sliding way by taking the position of the display material as a starting point and/or an ending point, and the method comprises the following steps:
taking the first display material as the intermediate terminal point, and sliding the target barrage comment from the initial position until the first position where the first display material is located;
sliding the target bullet comment out of a second position where the second display material is positioned until the end point edge by taking the second display material as a middle starting point;
The target bullet comment slides from an initial position to the first position, then instantaneously moves from the first position to a second position, and then slides out by taking the second position as a middle starting point and continuously slides along a preset direction until reaching an end position.
Optionally, the method further comprises:
and under the condition that the playing speed of the target video is updated, adjusting the moving speed of the target barrage comment, and keeping the playing speed of the sequence frame animation of the first display material and the sequence frame animation of the second display material unchanged.
Optionally, the method further comprises:
receiving character colors of target barrage comments issued by a service platform, wherein the character colors comprise a first color and a second color;
adjusting the character color to the first color under the condition that the target barrage comment is sent by the client;
and under the condition that the target barrage comment is sent by other clients, adjusting the character color to the second color.
Another aspect of an embodiment of the present application provides a display device for a bullet screen, including:
the playing module is used for playing a target video, wherein the target video is associated with a black hole barrage, and the black hole barrage is associated with a first display material;
The first display module is used for displaying the target bullet comment on the target video in a sliding mode in a first preset direction;
the second display module is used for displaying the first display material on a sliding track of the target barrage comment and is positioned in front of the sliding of the target barrage comment;
and the first hiding module is used for hiding the characters sliding to the first position under the condition that the characters in the target barrage comment slide to the first position where the first display material is located, so that the display special effects that the characters in the target barrage comment enter the black hole one by one are formed.
Another aspect of an embodiment of the present application provides a display device for a bullet screen, including:
the acquisition module is used for acquiring special effect configuration parameters of a target black hole barrage of the target video during the playing of the target video;
the loading and determining module is used for loading display materials according to the special effect configuration parameters and determining the display time interval of the display materials;
the first display module is used for displaying the display materials on the target video in a covering mode according to the display time interval;
and the second display module is used for sliding and displaying the target barrage comment on the target video by taking the position of the display material as a starting point and/or an ending point.
Another aspect of an embodiment of the present application provides a computer device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor;
wherein: the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
Another aspect of the embodiments provides a computer-readable storage medium having stored therein computer instructions which, when executed by a processor, implement a method as described above.
The technical scheme adopted by the embodiment of the application can comprise the following advantages: a new bullet screen display mode (namely, a black hole bullet screen) is realized. Specifically: when the target video associated with the black hole barrage is played, the target barrage comment (barrage comment which needs to be displayed in the black hole barrage form) is displayed in a sliding mode by taking the position where the display material is located as an inlet and/or an outlet, so that the method has the advantages that: on the one hand, the target barrage comments can be hidden at the position where the display material is located, so that a display special effect that the target barrage comments enter the black hole to disappear is formed, and the display effect of the target barrage comments is improved. On the other hand, the target barrage comments can appear instantly at the position of the display material, so that the display special effect of the target barrage comments coming out of the black hole is formed, and the display effect of the target barrage comments is improved.
Drawings
The accompanying drawings illustrate exemplary embodiments and, together with the description, serve to explain exemplary implementations of the embodiments. The illustrated embodiments are for exemplary purposes only and do not limit the scope of the claims. Throughout the drawings, identical reference numerals designate similar, but not necessarily identical, elements.
FIG. 1 schematically illustrates an operational environment diagram of a method of displaying a bullet screen according to one embodiment of the present application;
FIG. 2 schematically illustrates a flow chart of a method of displaying a bullet screen according to one embodiment of the present application;
fig. 3 schematically shows a schematic view of a display material (black hole picture) according to an embodiment of the present application;
fig. 4 schematically shows a flow chart of sub-steps of step S202 in fig. 2;
FIG. 5 is a flow chart schematically showing the steps of a method for displaying a bullet screen according to the first embodiment of the present application;
FIG. 6 schematically illustrates a flow chart of a method of displaying a bullet screen according to a second embodiment of the present application;
fig. 7 schematically shows a sub-step flow chart of step S602 in fig. 6;
fig. 8 schematically shows a flow chart of substeps of step S606 in fig. 6;
fig. 9 schematically shows another substep flow chart of step S606 in fig. 6;
FIG. 10 schematically illustrates an application example diagram of a bullet screen display method according to an embodiment of the present application;
FIG. 11 is a flowchart schematically illustrating the steps of a method for displaying a bullet screen according to the second embodiment of the present application;
FIG. 12 schematically illustrates an application example diagram of a display method of a bullet screen according to an embodiment of the present application;
fig. 13 schematically shows a block diagram of a display device of a bullet screen according to a third embodiment of the present application;
fig. 14 schematically shows a block diagram of a display device of a bullet screen according to a fourth embodiment of the present application; and
Fig. 15 schematically shows a hardware architecture diagram of a computer device according to a fifth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the descriptions of "first," "second," etc. in the embodiments of the present application are for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and not within the protection scope of the present application.
In the description of the present application, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but are only used for convenience in describing the present application and distinguishing each step, and thus should not be construed as limiting the present application.
First, a term explanation is provided in relation to the present application:
the bullet screen is a subtitle which pops up and moves in a predetermined direction when viewing a video through a network. Barrages have not yet had a fixed vocabulary in English, which is commonly referred to as: comment, danmaku, barrage, pellet screen, pellet-screen commands, etc. The bullet screen allows viewers to comment or feel, but is different from a common video sharing website which only displays a special comment area under a player, and the bullet screen can appear on a video picture in real time in a sliding caption mode, so that all viewers can be ensured to notice.
For example, the data structure of the bullet screen may be as follows:
black hole barrage: and associating and displaying special effects in materials such as black hole pictures and videos. And taking the position of the black hole picture as the appearance position or the disappearance position of other barrage comments. The display material as the appearance position can be called an outlet black hole, and a visual effect that the bullet comment comes out of the hole can be formed. The display material as the vanishing position may be referred to as an entry black hole, and a visual effect of a bullet comment entering the hole may be formed. The black hole picture may be a regular or irregular picture of a particular color (e.g., black, red, combined color). For example, the display material may be a black picture resembling the shape of a cosmic black hole. For another example, the black hole picture may also have custom pictures of buildings, hills, tunnels, etc. with exits/entrances.
Black hole: objects with holes or openings, entrances.
Next, in order to facilitate understanding of the technical solutions provided in the embodiments of the present application by those skilled in the art, the following description is made on related technologies:
with the rapid development of video technology, more and more users can watch various video programs through a network. During the viewing of a video program, a user may interact with a host or other user by sending a bullet screen. The bullet screen refers to a subtitle which pops up and moves in a predetermined direction when a video is watched through a network, and is a kind of communication information.
However, the above-described bullet screens all maintain the feature of gradually moving from one side of the screen to the other. In order to show a more special and interesting bullet screen, namely breaking the sliding mode of gradually moving from one side of the screen to the other side, the effect that the bullet screen can be instantaneously moved from one position on the screen to another position on the screen in the moving process is realized.
Therefore, the embodiment of the application provides a bullet screen display technical scheme. According to the technical scheme, a new bullet screen display mode (namely, a black hole bullet screen) is realized, the bullet screen comment is instantly moved from one position on the screen to the other position on the screen to continue moving in the bullet screen comment moving process, and the compatibility of a plurality of black hole bullet screens can be realized. (2) The method supports background configuration through a server side, and realizes that bullet screen comments can be displayed in different videos in the form of black hole bullet screens. (3) Different bullet screen special effect materials are supported to be applied under different video contents, and different bullet screen special effects can be configured for bullet screen comments. See in particular below.
Finally, for ease of understanding, an exemplary operating environment is provided below.
As shown in fig. 1, the environment application schematic includes: a service platform 2 and a client.
The service platform 2 may connect clients (4A, 4B, …, 4N) through a network.
The service platform 2 may provide various contents, bullet screen services, etc. to clients. For example, the barrage is sent to the client via the network. The network includes various network devices such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. The network may include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and the like. The network may include wireless links, such as cellular links, satellite links, wi-Fi links, and the like.
The service platform 2 may be a single server, a server cluster or a cloud computing service center, and is used for providing various services. For example:
the service platform 2 may provide content services. Wherein the content service may be configured to provide content such as video, audio, text data, combinations thereof, and the like. The content may include content streams (e.g., video streams, audio streams, information streams), content files (e.g., video files, audio files, text files), and/or other data.
The service platform 2 may be configured to manage messages for various content items. A user may browse content and access different content items to view comments for a particular content, such as comments posted by other users for the particular content. Comments from users associated with a particular content item may be output to other users viewing the particular content item. For example, all users accessing a content item (e.g., video) may view comments associated with the content item. The input comment content may be output in real time or near real time.
The service platform 2 may be configured to receive a plurality of messages. The plurality of messages may include a plurality of barrages associated with the content.
The service platform 2 may be configured to process a plurality of messages, such as various processing operations of message storage, message screening, message pushing, and the like. Wherein the message store is used to store a plurality of messages in a data store, such as a database. Message screening may include rejecting or tagging messages that match the screening criteria. Wherein the screening criteria may specify terms and/or phrases, such as an elegant language, etc. The screening criteria may specify characters, such as symbols, fonts, and the like. The screening criteria may specify language, computer readable code patterns, etc.
The service platform 2 may perform natural language processing, topic recognition, pattern recognition, artificial intelligence, etc. to automatically determine characteristics of and/or group messages. As an example, frequently occurring phrases or patterns may be identified as topics. As another example, a database of topics associated with content may be maintained. The topics may include genre (e.g., action, drama, comedy), personality (e.g., actor, actress, director), language, and the like. Messages may be grouped based on characteristics of the client device and/or the user sending the message. Demographic, interest, history, and/or the like may be stored for multiple users to determine potential groupings of messages. For example, the barrages uploaded by each user may be screened, filtered, ranked, personalized pushed, etc.
The service platform 2 may provide a barrage service configured to allow users to comment and/or share comments (i.e., barrages) associated with content. The bullet screen is presented on the same screen as the content. The bullet screen may be displayed in an overlay over the content and may have an animated effect. For example, the bullet screen may scroll (e.g., right to left, left to right, top to bottom, …), and the animation effect may be implemented based on the transiti on attribute of CSS 3.
The clients (4A, 4B, …, 4N) may be configured to access the content and services of the service platform 2. The clients (4A, 4B, …, 4N) may include electronic devices that carry or circumscribe display panels, such as mobile devices, tablet devices, laptop computers, workstations, virtual reality devices, gaming devices, digital streaming media devices, vehicular clients, smart televisions, set-top boxes, etc., as well as virtualized computing instances. Virtualized computing instances may comprise emulation of virtual machines, such as computer systems, operating systems, servers, and the like.
The clients (4A, 4B, …, 4N) may be associated with one or more users. A single user may also use one or more of the clients (4A, 4B, …, 4N) to access the service platform 2. The clients (4A, 4B, …, 4N) may travel to various locations and use different networks to access the service platform 2.
The clients (4A, 4B, …, 4N) may comprise a plurality of client programs, such as a video APP, a live APP, or an applet of a built-in barrage system, etc. In this embodiment, the content such as video provided by the service platform 2 can be presented by the client program, and the barrage content can be presented in a specific manner by the barrage system.
The clients (4A, 4B, …, 4N) may include interfaces that may include a touch pad, touch screen, mouse, keyboard, or other sensing elements. For example, the input element may be configured to receive user instructions that may cause the client (4A, 4B, …, 4N) to perform various types of operations, such as entering a barrage comment or the like.
It is noted that the above devices are exemplary and that the number and variety of devices may be adjustable in different scenarios or according to different needs.
The technical scheme of the application is described by a plurality of embodiments by taking the client (such as 4A) as an execution main body. It should be understood that these embodiments may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein.
Example 1
Fig. 2 schematically shows a flowchart of a display method of a barrage according to a first embodiment of the present application.
As shown in fig. 2, the display method of the barrage may include steps S200 to S202, wherein:
step S200, playing a target video, wherein the target video is associated with a black hole barrage, and the black hole barrage is associated with display materials.
And step S202, sliding and displaying the target bullet comment on the target video by taking the position of the display material as an inlet and/or an outlet.
The display method of the barrage provided by the embodiment realizes a new barrage display mode (namely, a black hole barrage). Specifically: when the target video associated with the black hole barrage is played, the target barrage comment (barrage comment which needs to be displayed in the black hole barrage form) is displayed in a sliding mode by taking the position where the display material is located as an inlet and/or an outlet, so that the method has the advantages that: on the one hand, the target barrage comments can be hidden at the position where the display material is located, so that a display special effect that the target barrage comments enter the black hole to disappear is formed, and the display effect of the target barrage comments is improved. On the other hand, the target barrage comment can appear instantly at the position of the display material, and the display special effect of the target barrage comment coming out of the black hole is formed, so that the display effect of the target barrage comment is improved, and the user experience is enhanced.
Each of steps S200 to S202 and optionally other steps are described in detail below in conjunction with fig. 2.
Step S200And playing a target video, wherein the target video is associated with a black hole barrage, and the black hole barrage is associated with display materials.
The target video may be various types of video on a video website, such as movie shows, game commentary. The target video is associated with a barrage, and the barrage can be of various types, such as a common character barrage, a picture barrage and a black hole barrage.
As shown in fig. 3, the display material may be an inlet black hole and/or an outlet black hole, which are used for the target barrage to comment out and in, so as to achieve the effect of out and in from the black hole. The size, color, shape, transparency, and other external shapes of the display material may be set according to actual conditions, and are not limited herein.
Step S202Sliding and displaying the target bullet comment on the target video by taking the position of the display material as an inlet and/or an outlet。
The outlet may be provided only, or the inlet may be provided only, or both the inlet and the outlet may be provided. The materials corresponding to the inlet and the outlet can be the same or different. The exit time may be the same as or different from the entry time of occurrence.
In an alternative embodiment, the display material comprises a first display material and/or a second display material.
As shown in fig. 4, step S202 may include S400 to S404:
and step S400, sliding and displaying the target bullet comment on the target video in a first preset direction.
The target bullet comment is that the given path does not stop moving. If the target barrage comment is configured to be displayed in the target video in the form of a black hole barrage, the target barrage comment can be displayed on the target video in a sliding manner for a certain distance before being combined with the first display material for corresponding display special effect display in the process of displaying the target barrage comment on the target video.
The first preset direction may be from left to right, from right to left, which is not limited herein.
It should be noted that the target barrage comment may slide in a uniform or variable speed manner. In the case that the playing speed of the target video is changed, the sliding speed of the target bullet comment on the target video may be correspondingly changed, which is specifically as follows:
in an alternative embodiment, the sliding display of the target bullet comment on the target video in the first preset direction includes: and in the display process, sliding display is performed on the target video along the first preset direction at a plurality of different speeds successively. For example, if the playing speed of the target video is adjusted from 1 to 2 times, correspondingly, the speed of the target bullet comment sliding on the target video should also be adjusted from 1 to 2 times. In the above alternative embodiment, in the case that the playing speed of the target video is changed, the moving speed of the target barrage comment is correspondingly adjusted, so that the target barrage comment and the target video content maintain synchronism and consistency.
And step S402, displaying the first display material on a sliding track of the target barrage comment and in front of the sliding of the target barrage comment.
The sliding track of the target barrage comment can refer to a path or a track of the target barrage comment moving on a target video, and can be a horizontal sliding track or a special track (such as an oblique track or a curve track).
For example, after the target bullet comment slides a certain distance on the slide rail, the first display material may be displayed on the slide rail in front of the target bullet comment slide. The specific location of the first display material may be as follows: when the first display material pops up, the rightmost side of the first display material is just connected with the left side of the first character in the target barrage comment at the moment or is separated by a preset distance, and the configuration can be specifically carried out according to requirements.
And step S404, hiding the characters sliding to the first position under the condition that the characters in the target barrage comment slide to the first position where the first display material is located, and forming a display special effect that the characters in the target barrage comment enter black holes one by one.
The first position is right in front of the current sliding direction of the target barrage comment, and can be a specified position within a preset range interval in the horizontal direction of a display interface (player), and the preset range interval can be set according to actual conditions, for example, can be 10% -90%. The first position is arranged in a preset range interval in the horizontal direction of the display interface, so that the first display material is not too close to the edge of the screen, and the display effect of the first display material on the target video is ensured.
In some embodiments, as shown in fig. 3, a center line (which may be invisible to the naked eye) may be disposed on the first display material. When the characters in the target barrage comment slide to the first position where the first display material is located (namely, the characters in the target barrage comment slide to the central line), the characters sliding to the first position are hidden, so that a display special effect that the characters in the target barrage comment disappear after entering the black hole one by one is formed.
It should be noted that, the black hole barrage may be associated with a second display material in addition to the first display material, where the second display material may be used to display the character hidden in the first display material in another position in a transient manner, specifically as follows:
in an alternative embodiment, step S202 may further include:
and displaying the second display material at a second position on the target video, wherein the second position is different from the first position.
And taking the second position as the initial position of the target barrage comment, sliding and displaying the target barrage comment in a second preset direction to form a display special effect that characters in the target barrage comment come out from the other end of the black hole one by one.
As shown in fig. 3, the second display material may be an exit black hole, and the size, color, shape, transparency, and other appearance shapes of the second display material may be set according to practical situations, which is not limited herein.
The second position may be any position within a preset range interval in the horizontal direction of the display interface, and the preset range interval may be set according to practical situations, for example, may be 10% -90%. It should be noted that the first position and the second position are at least partially non-overlapping, and preferably, there may be a height difference with a certain preset threshold value in the vertical direction of the display interface, for example, there may be a height difference of at least 10% (display interface).
For example, after the target bullet comment slides a certain distance on the target video in the first preset direction, the first display material and the second display material may be displayed on the target video at the same time. The first display material is located at a first position, and the second display material is located at a second position. When the characters in the target barrage comments slide to the first position, the characters sliding to the first position can be hidden, namely, the display special effect that the characters in the target barrage comments disappear after entering the black holes one by one is formed. Meanwhile, the characters which are hidden after the characters slide to the first position (namely the first display material) can be redisplayed at the second position (namely the second display material), the second position is taken as the starting position of the target barrage comment, and the target barrage comment is displayed on the target video in a sliding mode in a second preset direction, so that the display special effects that the characters in the target barrage comment come out of the second display material (such as a center line) one by one are formed. It should be noted that, the characters that are not disappeared and hidden at the first display material and the characters that are coming out from the second display material may form the characters of the complete target bullet comment.
In the above optional embodiment, the second display material is displayed at the second position of the target video, so that the character hidden when sliding to the first position can gradually come out from the black hole corresponding to the second display material with the second position as the starting position, so as to form the display special effect that the characters in the target barrage comment come out from the black hole at the other end one by one (i.e. the black hole corresponding to the second display material), thereby realizing that the target barrage comment can be instantaneously moved from one position (i.e. the first position) to another position (i.e. the second position) in the moving process, and improving the display effect of the target barrage comment.
In an alternative embodiment, the first display material comprises a first black hole picture and the second display material comprises a second black hole picture. The first black hole pattern as the appearance location may be referred to as an exit black hole, and may form a visual effect of a bullet comment coming out of the hole. The second black hole pattern, which is the vanishing location, may be referred to as an entry black hole, and may create a visual effect of a bullet comment entering the hole. The black hole picture may be a regular or irregular picture of a particular color (e.g., black, red, combined color). For example, the display material may be a black picture resembling the shape of a cosmic black hole. For another example, the black hole picture may also have custom pictures of buildings, hills, tunnels, etc. with exits/entrances.
The black hole picture may or may not be a part of the black hole barrage. In an exemplary application, the black hole picture may be a pre-stored picture, or the like, or may be a picture carried in a black hole barrage. The black hole pictures and barrages may be one-to-one or one-to-many. In another exemplary application, the display material may be special effects in video instead of pictures.
The corresponding settings (i.e. display rules) of the first display material and said second display material are described in detail below.
Setting one: the display time is initiated.
In an alternative embodiment, the start display time of the first display material and the start display time of the second display material are the same.
The initial display time may refer to a point in time when the first display material or the second display material starts to be displayed on the target video during the playing of the target video.
For example, after the target bullet comment slides a certain distance on the target video in the first preset direction, the first display material and the second display material may be displayed at different positions on the target video at the same time.
In the above optional embodiment, the initial display time of the first display material and the initial display time of the second display material are set to be the same time, so that the first display material and the second display material can appear on the target video at the same time, which is helpful for the user to judge whether the display materials are the same group of black hole barrages, and the display effect of the display materials is ensured.
Note that, the initial display time of the first display material and the initial display time of the second display material may also be different, which is not limited herein.
Illustratively, the first display material is displayed at a first location of the target video (in front of the target bullet comment) after the target bullet comment is slid over the target video a distance in a first preset direction. When the characters in the target barrage comments slide to the first position, the characters sliding to the first position can be hidden, namely, the display special effect that the characters in the target barrage comments disappear after entering the black holes one by one is formed. Then, after a plurality of intervals (for example, 1 second), the second display material is displayed at a second position (which can be configured randomly) of the target video, the target bullet comment which has completely disappeared for a period of time or the target bullet comment which has at least partially disappeared for a period of time is rolled out by taking the second position (namely, the second display material) as a starting position, and the target bullet comment is displayed on the target video in a sliding manner in a second preset direction, so that display special effects that characters in the target bullet comment come out from the second display material one by one are formed, and therefore, the effect that the target bullet comment which disappears for a period of time in a black hole appears in one place is formed, and the display effect that a train comes out from a large mountain hole is achieved after entering the mountain hole.
Setting two: and displaying in a non-overlapping manner.
In an alternative embodiment, the first display material and the second display material are non-overlapping or at least partially non-overlapping with other black hole pictures. For example, there may be multiple display materials on the target video, with no overlap between the individual display materials.
In the above optional embodiment, the display materials are not overlapped, so that the display effect of the display materials is ensured, and the occurrence of overlapping of the display materials is reduced.
Setting three: the size of the display material is positively correlated with the font size of the target barrage comment.
In an alternative embodiment, the font size of the target barrage comment and the size of the first display material and the second display material are positively correlated.
For example, if the font size of the target barrage comment is larger, the sizes of the first display material and the second display material are correspondingly increased. That is, the size of the first display material and the second display material are positively correlated with the font size.
In the above optional embodiment, the sizes of the first display material and the second display material are positively correlated with the font sizes, so that the situations that the fonts of the target bullet comment are overlarge but the sizes of the first display material and the second display material are undersized are reduced, and the display effect of the target bullet comment (displayed in the form of a black hole bullet screen) is ensured.
Setting four: presented in the form of a sequential frame animation.
In an alternative embodiment, the first display material and/or the second display material is a picture in a frame animation format comprising a plurality of frames.
In the above-mentioned alternative embodiment, the first black hole (the entrance black hole) and the second black hole (the exit black hole) are displayed in the form of sequential animation frames, so that the display effects of the first display material and the second display material can be improved, that is, the display effect of the black hole barrage can be improved.
Setting five: and hiding or deleting the display materials after the display is finished.
It should be noted that, in order to reduce the influence of the black hole barrage on the target video (for example, the display material blocks part of the video content in the target video for a long time) in the display process, the display material can be hidden after the corresponding display is performed, which is specifically as follows:
in an alternative embodiment, as shown in fig. 5, the method further comprises:
and step S500, hiding the first display material under the condition that the last character in the target barrage comment slides to the first position.
Step S502, hiding the second display material when the last character in the target barrage comment slides out from the second position.
For example, assuming that the target barrage comment 1 is "abcdefhig klmn", when the last character (i.e., "n") in the target barrage comment 1 slides to the first position, i.e., the target barrage comment "abcdefhig klmn" has all been moved into the black hole corresponding to the first display material, the first display material is hidden. Correspondingly, if the last character (i.e. "n") in the target barrage comment 1 slides out from the second position, i.e. the target barrage comment "abcdefhigklmn" has all slid out of the black hole corresponding to the second display material, the second display material is hidden.
In the above alternative embodiment, the first display material is hidden (i.e., the sequential frame animation of the entry black hole disappears) with the last character in the target bullet comment slid to the first position. In the event that the last character in the target barrage comment slips out of the second position, the second display material is hidden (i.e., the sequential frame animation of the exit black hole disappears). It can be known that when the target barrage comment completes the corresponding display special effect through the first display material and the second display material, the first display material and the second display material are hidden, so that the influence of the display material on the target video (such as the reduction of the shielding of the video content of the target video) is reduced, and the display effect is improved.
Example two
Fig. 6 schematically shows a flowchart of a display method of a barrage according to a second embodiment of the present application.
As shown in fig. 6, the display method of the barrage may include steps S600 to S606, wherein:
step S600, during the playing of the target video, obtaining special effect configuration parameters of a target black hole barrage of the target video.
Step S602, loading display materials according to the special effect configuration parameters, and determining the display time interval of the display materials.
And step S604, displaying the display material on the target video in an overlaying manner according to the display time interval.
And step S606, sliding and displaying the target bullet comment on the target video by taking the position of the display material as a starting point and/or an ending point.
According to the bullet screen display method, when the target video is played, the special effect configuration parameters of the target black hole bullet screen can be obtained first. And then loading the display material according to the special effect configuration parameters, and determining the display time interval of the display material on the target video. On this basis, if the target barrage comment is to be displayed in the form of a black hole barrage (in the display time interval), the display material can be displayed in an overlaying manner on the target video. And then, sliding and displaying the target barrage comment on the target video by taking the position of the display material as a starting point and/or an ending point. It can be seen that the display material is displayed on the target video in an overlaying manner, and the display material is displayed in a sliding manner by taking the position of the display material as a starting point and/or an ending point, which has the advantages that: on the one hand, the target barrage comments can be hidden at the position where the display material is located, so that a display special effect that the target barrage comments enter the black hole to disappear is formed, and the display effect of the target barrage comments is improved. On the other hand, the target barrage comments can appear instantly at the position of the display material, so that the display special effect of the target barrage comments coming out of the black hole is formed, and the display effect of the target barrage comments is improved.
Each of steps S600 to S606, and optionally other steps, are described in detail below in conjunction with fig. 6.
Step S600And during the playing of the target video, acquiring special effect configuration parameters of a target black hole barrage of the target video.
Illustratively, when a client (e.g., 4A) starts playing a target video, the service platform 2 may issue corresponding special effect configuration parameters to the client (e.g., 4A) through an interface. After receiving the special effect configuration parameters, the client (e.g. 4A) can display the target black hole barrage on the target video according to the special effect configuration parameters with a certain rule.
The special effect configuration parameters may be parameters in the target video for describing the target black hole barrage, such as display materials, appearance time, shape style, and the like, which may include the target black hole barrage.
It should be noted that, the special effect configuration parameters may be obtained according to a background configuration, specifically:
in an alternative embodiment, the special effect configuration parameters are obtained according to a background configuration. For example, the operator may perform configuration of special effect configuration parameters through the background, such as configuring the appearance time of the target bullet screen, and configuring the shape style of the display material. In addition, operators can also determine which video barrages need to be displayed in the black hole barrages through the background, so that the black hole barrages are displayed in different video contents.
In the above-mentioned alternative embodiment, the corresponding special effect configuration parameters are configured in the background, so that the subsequent client can effectively display the black hole barrage according to the special effect configuration parameters.
Step S602And loading display materials according to the special effect configuration parameters, and determining the display time interval of the display materials.
As shown in fig. 3, the display material may be associated with a first display material and a second display material. The display material may be a black hole picture, and the appearance shapes such as the size, color, shape, and transparency of the black hole picture may be set in actual situations, which is not limited herein. The black hole pictures can be selected and configured according to requirements and uploaded to the service platform 2. The service platform 2 may issue the black hole pictures to the corresponding clients for local loading by the clients.
The display time interval may be a display time interval of display material, i.e. may be used to indicate: in which time intervals of the target video display material may occur. The display time interval may be derived from a user definition or event trigger.
The following describes how to load display materials and determine a display time interval of the display materials according to special effect configuration parameters.
In an alternative embodiment, the special effects configuration parameters include a special effects identifier, a start time, and an end time. As shown in fig. 7, the step S602 may include:
and step S700, loading the display material according to the special effect identifier.
Step S702, determining a display time interval of the display material according to the start time and the end time.
The special effect identifier may be an identifier for identifying a bullet effect style (e.g., a black hole bullet screen), such as special effect ID (Identifier). Through the special effect identifier, the client can load the corresponding display material.
The start time and end time may be used to determine the time interval during which the black hole bullet screen (i.e., display material) appears in the target video. For example, assuming that the start time is 1 minute and the end time is 2 minutes, the display material may be displayed within the 1 minute to 2 minute time interval of the target video, i.e., a black hole bullet screen may appear within the 1 minute to 2 minute time interval.
In the above optional embodiment, the display material is loaded according to the special effect identifier, so that the display material can be quickly pulled for display when the black hole barrage needs to be displayed later. In addition, the display time interval of the display material is determined according to the starting time and the ending time, so that the correct display of the display material (namely the black hole barrage) is ensured.
Step S604And displaying the display material on the target video in an overlaying manner according to the display time interval.
For example, when the display time interval is 5-10 minutes and there is a target bullet comment in the form of a black hole bullet during the display time interval, after the corresponding condition is triggered, the display material may be displayed in an overlaid manner on the target video.
Step S606And sliding and displaying the target bullet comment on the target video by taking the position of the display material as a starting point and/or an ending point.
Starting from the position where the display material is located: and gradually removing the target barrage comment from the black hole represented by the display material to form the display special effect that the characters in the target barrage comment come out of the black hole.
Taking the position of the display material as an end point: the method is characterized in that target barrage comments sliding to the position where the display material is located are hidden, and a display special effect that characters in the target barrage comments enter a black hole and disappear is formed.
It should be noted that, the target video may be associated with more barrage comments, if all the barrage comments are displayed on the target video in the form of a black hole barrage, the target video may be fully displayed with the display material, so that the display of the barrage comments and the viewing effect of the target video are affected. Thus, in order to alleviate the above, the following alternative embodiments are provided.
In an alternative embodiment, as shown in fig. 8, the step S606 may include:
and step S800, selecting a target barrage comment from a plurality of barrage comments of the target video according to a preset rule.
Step S802, marking the target barrage comment.
And step S804, sliding and displaying the marked target barrage comment on the target video by taking the position of the display material as a starting point and/or an ending point.
The preset rules comprise a character string length range and/or a target barrage comment density range of the same screen at the same time point.
The string length range may mean that the string of barrage comments may contain a section limit for the number of characters, e.g., may be 6-20 words.
Target barrage comment density range of same screen at same time point: and the interval value of the number of target barrage comments which can be displayed on the screen at a specific time point, wherein the scope density of the barrage comments can be selected according to actual conditions, for example, the scope density of the barrage comments can be 0-5 items of target barrage comments.
Illustratively, assuming that multiple target bullet reviews are to be selected from the bullet reviews of the target video, a specific process may be as follows: (1) Firstly, selecting the barrage comments with the character string length in the character string length range from the barrage comments of the target video, for example, selecting the barrage comments with the character string length of 6-20 words. (2) Then, selecting partial barrage comments from the barrage comments conforming to the length range of the character string with a certain random probability (such as 30%). (3) And then selecting a plurality of target barrage reviews from the randomly selected partial barrage reviews. It should be noted that, in order to ensure the display effect of the target barrage comments, the number of the target barrage comments displayed on the target video at the same time on the same screen is required to be within the scope of the barrage comment density, and only a preset number (e.g. 1) of target barrage comments can be generated per second in the display time interval. In addition, in order to rapidly process the selected target barrage comment, a displayer can be added in a view controller of a common barrage for specially processing the black hole barrage.
In the above optional embodiment, a part of the bullet comment is selected from the plurality of bullet comments of the target video according to a preset rule to serve as the target bullet comment, and the target bullet comment is identified. The benefit of this is: (1) When the bullet comment in the target video is displayed, the method can quickly and accurately determine which target bullet comments need to be displayed in the form of a black hole bullet screen, so that the accurate display of the target bullet comment is ensured, and the display effect is optimized. (2) And selecting part of the bullet comment as the target bullet comment can ensure the occurrence frequency, the display density and the like of the target bullet comment on the target video, thereby improving the display effect of the target bullet comment.
As described above, in the bullet comment display process, the target bullet comment may be displayed on the target video in a sliding manner with the position of the display material as the starting point and/or the ending point, and the following describes how the target bullet comment is displayed on the target video in a sliding manner.
In an alternative embodiment, the display material is associated with a first display material and a second display material. As shown in fig. 9, the step S606 may include:
and step S900, taking the first display material as the intermediate terminal point, and sliding the target barrage comment from the initial position until the first position where the first display material is located.
And step S902, taking the second display material as an intermediate starting point, and sliding the target barrage comment out from the second position of the second display material until the end point edge.
The target bullet comment slides from an initial position to the first position, then instantaneously moves from the first position to a second position, and then slides out by taking the second position as a middle starting point and continuously slides along a preset direction until reaching an end position.
For example, as shown in fig. 10, taking the target barrage comment 1 (BBBBBBB BBBBBBBBBBB) sliding from right to left as an example, correspondingly, fig. 10A is a first display material, and fig. 10B is a second display material, the display process of the target barrage comment 1 on the target video may be as follows: (1) First, the target bullet comment 1 first comes out from the rightmost side (i.e., initial position) of the target video display interface, and slides leftward along the slide rail. (2) After the target bullet comment 1 slides a certain distance on the sliding track, the first display material will be displayed at the first position (i.e. the position in fig. 10A), and at the same time, the second display material will be displayed at a second position (i.e. the position in fig. 10B) different from the first position. (3) Under the condition that the characters in the target barrage comment slide to the first position, the characters sliding to the first position can be hidden through the first display material, so that the display special effects that the characters in the target barrage comment 1 enter the black hole one by one and disappear are formed. Meanwhile, the character hidden at the first position may gradually come out of the second display material at the second position, that is, slide continuously in the predetermined direction with the second display material as the middle starting point until reaching the leftmost side of the screen.
In the above optional embodiment, the first display material is used as the middle end point of the target barrage comment, and the second display material is used as the middle start point of the target barrage comment, so that the target barrage comment can be instantaneously moved from the first position where the first display material is located to the second position where the second display material is located, and the goal barrage comment is instantaneously moved to another position to continue moving in the moving process of the target barrage comment, so that the display effect of the target barrage comment is improved.
The moving speed of the target barrage comment can be uniform or variable. If the playing speed of the target video is changed, the moving speed of the target bullet comment can be kept unchanged, and can also be changed along with the change of the playing speed of the target video. In addition, in the case that the first black hole and the second black hole are both displayed in the form of sequential frame animation, if the playing speed of the target video is changed, accordingly, the playing speed of the frame sequential animation may also have multiple choices, such as maintaining the original speed or changing with the playing speed of the target video. An alternative embodiment is provided below.
In an alternative embodiment, the method further comprises: and under the condition that the playing speed of the target video is updated, adjusting the moving speed of the target barrage comment, and keeping the playing speed of the sequence frame animation of the first display material and the sequence frame animation of the second display material unchanged.
For example, if the playing speed of the target video is adjusted to be 2 times of the speed, the moving speed of the target bullet comment may be correspondingly changed to be 2 times of the speed, and the playing speed of the sequence frame animation of the first display material and the sequence frame animation of the second display material may be kept unchanged.
In the above alternative embodiment, in the case that the playing speed of the target video is changed, the moving speed of the target barrage comment is correspondingly adjusted, so that the target barrage comment and the target video content maintain synchronism and consistency. In addition, the playing speed of the sequence frame animation of the first display material and the sequence frame animation of the second display material is kept unchanged, so that the series frame animations corresponding to the first display material and the second display material can be effectively displayed, and the display effect of the black hole barrage is enhanced.
In order to ensure the effect (more harmonious and beautiful) of the target bullet comment when entering or sliding out of the black hole represented by the display material, the color of the character can be set, for example, the color of the character can be uniformly set to one or more colors. It should be noted that, the color of the character may be set by the client or may be specified by the server, which is specifically as follows:
in an alternative embodiment, as shown in fig. 11, the method further comprises:
Step S1100, receiving character colors of target barrage comments issued by the service platform, wherein the character colors comprise a first color and a second color.
Step S1102, adjusting the character color to the first color if the target barrage comment is sent by the client.
Step S1104, adjusting the character color to the second color when the target barrage comment is sent by other clients.
The first color (i.e., the main color) and the second color (i.e., the guest color) may be set according to the appearance of the display material, which is not limited herein. The first color may be white and the second color may be red, as in the case where the display material is black. The main state color can be a color displayed by a barrage comment sent by the client. The guest color may be a color displayed by the bullet comments sent by other clients.
For example, if the target barrage comment 1 in the target video a is sent by the client (e.g., 4A), the character color of the target barrage comment 1 may be displayed as a first color (e.g., red) when the client (e.g., 4A) plays the target video a. For other target bullet reviews that are not sent by the client (e.g., 4A), a second color (e.g., white) may be displayed.
In the above optional embodiment, the character color of the target barrage comment is set, so that the character color of the target barrage comment can be matched with the color of the display material, thereby improving the display effect of the target barrage comment and the display material. In addition, the target barrage comments sent by the client are highlighted in different character colors, so that barrage experience and interaction effect of the client can be improved.
To make this application easier to understand, one exemplary application is provided below.
S11, playing the target video, and acquiring special effect configuration parameters (comprising special effect ID, starting time and ending time) of the target black hole barrage.
S12, loading black hole pictures and determining a display time interval according to special effect configuration parameters, and specifically:
s121, loading the black hole picture according to the special effect ID.
S122, determining a display time interval of the black hole picture according to the starting time and the ending time.
S13, selecting a target barrage comment from the barrage comments according to a preset rule.
The preset rule can be set according to actual conditions, and can comprise a character string length range and/or a target barrage comment density range of the same screen at the same time point.
S14, identifying target barrage comments.
S15, sliding and displaying the target barrage comment on a target video by taking the position of the black hole picture as a starting point and/or an ending point, and specifically:
and S151, sliding and displaying the target bullet comment on the target video from the initial position in a first preset direction.
And S152, when the character slides to the first position (namely, the position of the first display material), hiding the slid character by taking the first position as an intermediate end point.
And S153, the hidden character is instantaneously moved from the first position to a second position (the position of the second display material).
And S154, sliding the target bullet comment out from the second position where the second display material is positioned until the end point edge by taking the second display material as an intermediate starting point.
In this embodiment, as shown in fig. 12, under a specified period of the target video, a part of the bullet comment moving on the screen is selected to be displayed in the form of a black hole bullet screen, the selected part of the bullet comment can be instantaneously transferred to another position different from the current abscissa on the screen during movement, and the selected part of the bullet comment continues to move on the new position, and the selected part of the bullet comment shows the configured special effect when disappearing and appearing.
Example III
Fig. 13 schematically shows a block diagram of a display device of a bullet screen according to the third embodiment of the present application, which may be divided into one or more program modules, which are stored in a storage medium and executed by one or more processors to complete the embodiments of the present application. Program modules in the embodiments of the present application refer to a series of computer program instruction segments capable of implementing specific functions, and the following description specifically describes the functions of each program module in the embodiment. As shown in fig. 13, the apparatus 1300 may include: a playing module 1310, a first display module 1320, a second display module 1330, a first hiding module 1340, wherein:
A playing module 1310, configured to play a target video, where the target video is associated with a black hole barrage, and the black hole barrage is associated with a first display material;
a first display module 1320, configured to slide and display a target bullet comment on the target video in a first preset direction;
a second display module 1330, configured to display the first display material on a sliding track of the target barrage comment and in front of the sliding of the target barrage comment;
and the first hiding module 1340 is configured to hide the characters slid to the first position to form a display special effect that the characters in the target barrage comment enter the black hole one by one when the characters in the target barrage comment slide to the first position where the first display material is located.
In an alternative embodiment, the black hole barrage is associated with a second display material, and the display device of the barrage further includes a third display module, where the third display module is configured to:
displaying the second display material at a second position on the target video, the second position being different from the first position;
and taking the second position as the initial position of the target barrage comment, sliding and displaying the target barrage comment in a second preset direction to form a display special effect that characters in the target barrage comment come out from the other end of the black hole one by one.
In an alternative embodiment, the start display time of the first display material and the start display time of the second display material are the same.
In an alternative embodiment, the first display material and the second display material are not overlapped with other black hole pictures.
In an alternative embodiment, the display device of the barrage further includes a second hiding module, where the second hiding module is configured to:
hiding the first display material under the condition that the last character in the target barrage comment slides to the first position;
and hiding the second display material under the condition that the last character in the target barrage comment slides out from the second position.
In an alternative embodiment, the first display material comprises a first black hole picture and the second display material comprises a second black hole picture.
In an alternative embodiment, the font size of the target barrage comment and the size of the first display material and the second display material are positively correlated.
In an alternative embodiment, the first display material and/or the second display material is a picture in a frame animation format comprising a plurality of frames.
In an alternative embodiment, the first display module 1320 is further configured to:
And in the display process, sliding display is performed on the target video along the first preset direction at a plurality of different speeds successively.
Example IV
Fig. 14 schematically shows a block diagram of a display device of a bullet screen according to the fourth embodiment of the present application, which may be divided into one or more program modules, which are stored in a storage medium and executed by one or more processors to complete the embodiments of the present application. Program modules in the embodiments of the present application refer to a series of computer program instruction segments capable of implementing specific functions, and the following description specifically describes the functions of each program module in the embodiment. As shown in fig. 14, the apparatus 1400 may include: an acquisition module 1410, a loading and determination module 1420, a first display module 1430, a second display module 1440, wherein:
the obtaining module 1410 is configured to obtain special effect configuration parameters of a target black hole barrage of a target video during playing of the target video;
the loading and determining module 1420 is configured to load display materials according to the special effect configuration parameters, and determine a display time interval of the display materials;
a first display module 1430 for displaying the display material on the target video according to the display time interval;
And the second display module 1440 is configured to slidingly display the target bullet comment on the target video with the position of the display material as a start point and/or an end point.
In an alternative embodiment, the special effects configuration parameters include a special effects identifier, a start time, and an end time; the load and determine module 1420 is also to:
loading the display material according to the special effect identifier;
and determining a display time interval of the display material according to the starting time and the ending time.
In an alternative embodiment, the second display module 1440 is further configured to:
selecting a target barrage comment from a plurality of barrage comments of the target video according to a preset rule;
identifying the target bullet comment;
and sliding and displaying the marked target barrage comment on the target video by taking the position of the display material as a starting point and/or an ending point.
The preset rules comprise a character string length range and/or a target barrage comment density range of the same screen at the same time point.
In an alternative embodiment, the display material is associated with a first display material and a second display material;
correspondingly, the second display module 1440 is further configured to:
Taking the first display material as the intermediate terminal point, and sliding the target barrage comment from the initial position until the first position where the first display material is located;
sliding the target bullet comment out of a second position where the second display material is positioned until the end point edge by taking the second display material as a middle starting point;
the target bullet comment slides from an initial position to the first position, then instantaneously moves from the first position to a second position, and then slides out by taking the second position as a middle starting point and continuously slides along a preset direction until reaching an end position.
In an alternative embodiment, the display device of the barrage further includes a first adjustment module, where the first adjustment module is further configured to:
and under the condition that the playing speed of the target video is updated, adjusting the moving speed of the target barrage comment, and keeping the playing speed of the sequence frame animation of the first display material and the sequence frame animation of the second display material unchanged.
In an alternative embodiment, the display device of the barrage further includes a second adjustment module, where the second adjustment module is further configured to:
receiving character colors of target barrage comments issued by a service platform, wherein the character colors comprise a first color and a second color;
Adjusting the character color to the first color under the condition that the target barrage comment is sent by the client;
and under the condition that the target barrage comment is sent by other clients, adjusting the character color to the second color.
In an alternative embodiment, the display device of the barrage further includes a configuration module, where the configuration module is further configured to: the special effect configuration parameters are obtained according to background configuration.
Example five
Fig. 15 schematically illustrates a hardware architecture diagram of a computer device 10000 suitable for implementing a display method of a barrage according to the third embodiment of the present application. In some embodiments, computer device 10000 may be a smart phone, a wearable device, a tablet, a personal computer, a vehicle terminal, a gaming machine, a virtual device, a workstation, a digital assistant, a set top box, a robot, or the like. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a rack server (including a stand-alone server, or a server cluster composed of multiple servers), or the like. As shown in fig. 15, the computer device 10000 includes, but is not limited to: the memory 10010, processor 10020, network interface 10030 may be communicatively linked to each other via a system bus. Wherein:
Memory 10010 includes at least one type of computer-readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. In some embodiments, memory 10010 may be an internal storage module of computer device 10000, such as a hard disk or memory of computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device 10000. Of course, the memory 10010 may also include both an internal memory module of the computer device 10000 and an external memory device thereof. In this embodiment, the memory 10010 is typically used for storing an operating system installed in the computer device 10000 and various application software, such as program codes of a display method of a bullet screen. In addition, the memory 10010 may be used to temporarily store various types of data that have been output or are to be output.
The processor 10020 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other chip in some embodiments. The processor 10020 is typically configured to control overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is configured to execute program codes or process data stored in the memory 10010.
The network interface 10030 may comprise a wireless network interface or a wired network interface, which network interface 10030 is typically used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, establish a data transmission channel and a communication link between the computer device 10000 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, abbreviated as GSM), wideband code division multiple access (Wideband Code Divi sion Multiple Access, abbreviated as WCDMA), a 4G network, a 5G network, bluetooth (bluetooth), wi-Fi, etc.
It should be noted that fig. 15 only shows a computer device having components 10010-10030, but it should be understood that not all of the illustrated components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the display method of the barrage stored in the memory 10010 may be further divided into one or more program modules and executed by one or more processors (such as the processor 10020) to complete the embodiments of the present application.
Example six
The present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of the display method of the bullet screen in the embodiment.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEP ROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash memory Card (Flash Card), etc. that are provided on the computer device. Of course, the computer-readable storage medium may also include both internal storage units of a computer device and external storage devices. In this embodiment, the computer readable storage medium is typically used to store an operating system and various types of application software installed on the computer device, such as program codes of the display method of the bullet screen in the embodiment. Furthermore, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the present application described above may be implemented in a general-purpose computer device, they may be centralized in a single computer device, or distributed over a network of several computer devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and, in some cases, executed by a computer device, in a different order than shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
It should be noted that the foregoing is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent protection of the present application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or direct or indirect application to other related technical fields are included in the scope of the patent protection of the present application.

Claims (19)

1. A method of displaying a barrage, the method comprising:
playing a target video, wherein the target video is associated with a black hole barrage, and the black hole barrage is associated with display materials;
and sliding and displaying the target bullet comment on the target video by taking the position of the display material as an inlet and/or an outlet.
2. The method of claim 1, wherein the display material comprises a first display material and/or a second display material;
the target bullet comment is displayed on the target video in a sliding mode by taking the position of the display material as an inlet and/or an outlet, and the method comprises the following steps:
sliding and displaying the target bullet comment on the target video in a first preset direction;
displaying the first display material on a sliding track of the target barrage comment and in front of the sliding of the target barrage comment;
under the condition that the characters in the target barrage comment slide to the first position where the first display material is located, hiding the characters sliding to the first position to form a display special effect that the characters in the target barrage comment enter black holes one by one to disappear;
and/or the number of the groups of groups,
displaying the second display material at a second position on the target video, the second position being different from the first position;
And taking the second position as the initial position of the target barrage comment, sliding and displaying the target barrage comment in a second preset direction to form a display special effect that characters in the target barrage comment come out from the other end of the black hole one by one.
3. The method of claim 2, wherein the first display material comprises a first black hole picture and the second display material comprises a second black hole picture.
4. The method of claim 2, wherein the starting display time of the first display material and the starting display time of the second display material are the same.
5. The method of claim 2, wherein the first display material and the second display material are non-overlapping with other black hole pictures.
6. The method according to any one of claims 2 to 5, further comprising:
hiding the first display material under the condition that the last character in the target barrage comment slides to the first position;
and hiding the second display material under the condition that the last character in the target barrage comment slides out from the second position.
7. A method according to any one of claims 2 to 5, wherein,
And the font size of the target barrage comment is positively correlated with the sizes of the first display material and the second display material.
8. A method according to any one of claims 2 to 5, wherein,
the first display material and/or the second display material is a picture in a frame animation format comprising a plurality of frames.
9. The method of any one of claims 1 to 5, wherein sliding the target bullet comment on the target video in a first preset direction comprises:
and in the display process, sliding display is performed on the target video along the first preset direction at a plurality of different speeds successively.
10. A method of displaying a barrage, the method comprising:
during the playing of a target video, acquiring special effect configuration parameters of a target black hole barrage of the target video;
loading display materials according to the special effect configuration parameters, and determining a display time interval of the display materials;
according to the display time interval, displaying the display material on the target video in a covering manner;
and sliding and displaying the target bullet comment on the target video by taking the position of the display material as a starting point and/or an ending point.
11. The method of claim 10, wherein the special effects configuration parameters include a special effects identifier, a start time, and an end time;
correspondingly, loading display materials according to the special effect configuration parameters, and determining a display time interval of the display materials, wherein the method comprises the following steps:
loading the display material according to the special effect identifier;
and determining a display time interval of the display material according to the starting time and the ending time.
12. The method of claim 10, wherein sliding the target bullet comment on the target video starting and/or ending with the location of the display material comprises:
selecting a target barrage comment from a plurality of barrage comments of the target video according to a preset rule;
identifying the target bullet comment;
and sliding and displaying the marked target barrage comment on the target video by taking the position of the display material as a starting point and/or an ending point.
The preset rules comprise a character string length range and/or a target barrage comment density range of the same screen at the same time point.
13. The method of any of claims 10 to 12, wherein the display material is associated with a first display material and a second display material;
Correspondingly, the target bullet comment is displayed on the target video in a sliding way by taking the position of the display material as a starting point and/or an ending point, and the method comprises the following steps:
taking the first display material as the intermediate terminal point, and sliding the target barrage comment from the initial position until the first position where the first display material is located;
sliding the target bullet comment out of a second position where the second display material is positioned until the end point edge by taking the second display material as a middle starting point;
the target bullet comment slides from an initial position to the first position, then instantaneously moves from the first position to a second position, and then slides out by taking the second position as a middle starting point and continuously slides along a preset direction until reaching an end position.
14. The method of claim 13, wherein the method further comprises:
and under the condition that the playing speed of the target video is updated, adjusting the moving speed of the target barrage comment, and keeping the playing speed of the sequence frame animation of the first display material and the sequence frame animation of the second display material unchanged.
15. The method according to claim 10, wherein the method further comprises:
Receiving character colors of target barrage comments issued by a service platform, wherein the character colors comprise a first color and a second color;
adjusting the character color to the first color under the condition that the target barrage comment is sent by the client;
and under the condition that the target barrage comment is sent by other clients, adjusting the character color to the second color.
16. A display device for a bullet screen, the device comprising:
the playing module is used for playing a target video, wherein the target video is associated with a black hole barrage, and the black hole barrage is associated with a first display material;
the first display module is used for displaying the target bullet comment on the target video in a sliding mode in a first preset direction;
the second display module is used for displaying the first display material on a sliding track of the target barrage comment and is positioned in front of the sliding of the target barrage comment;
and the first hiding module is used for hiding the characters sliding to the first position under the condition that the characters in the target barrage comment slide to the first position where the first display material is located, so that the display special effects that the characters in the target barrage comment enter the black hole one by one are formed.
17. A display device for a bullet screen, the device comprising:
the acquisition module is used for acquiring special effect configuration parameters of a target black hole barrage of the target video during the playing of the target video;
the loading and determining module is used for loading display materials according to the special effect configuration parameters and determining the display time interval of the display materials;
the first display module is used for displaying the display materials on the target video in a covering mode according to the display time interval;
and the second display module is used for sliding and displaying the target barrage comment on the target video by taking the position of the display material as a starting point and/or an ending point.
18. A computer device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein:
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 15.
19. A computer readable storage medium having stored therein computer instructions which when executed by a processor implement the method of any one of claims 1 to 15.
CN202311832078.5A 2023-12-27 2023-12-27 Bullet screen display method and device Pending CN117793475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311832078.5A CN117793475A (en) 2023-12-27 2023-12-27 Bullet screen display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311832078.5A CN117793475A (en) 2023-12-27 2023-12-27 Bullet screen display method and device

Publications (1)

Publication Number Publication Date
CN117793475A true CN117793475A (en) 2024-03-29

Family

ID=90385225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311832078.5A Pending CN117793475A (en) 2023-12-27 2023-12-27 Bullet screen display method and device

Country Status (1)

Country Link
CN (1) CN117793475A (en)

Similar Documents

Publication Publication Date Title
US10810434B2 (en) Movement and transparency of comments relative to video frames
US11061962B2 (en) Recommending and presenting comments relative to video frames
US20130083036A1 (en) Method of rendering a set of correlated events and computerized system thereof
EP3073748B1 (en) Information processing device
US20210342385A1 (en) Interactive method and system of bullet screen easter eggs
US9224156B2 (en) Personalizing video content for Internet video streaming
EP2618592A2 (en) TV social network advertising
GB2516745A (en) Placing unobtrusive overlays in video content
US11528243B2 (en) Methods, systems, and media for generating a notification in connection with a video content hem
US10523735B1 (en) Methods, systems, and media for inserting and presenting video objects linked to a source video
WO2015103636A2 (en) Injection of instructions in complex audiovisual experiences
US20180143741A1 (en) Intelligent graphical feature generation for user content
CN111031376B (en) Bullet screen processing method and system based on WeChat applet
WO2017082881A1 (en) Apparatus and method for concurrent video viewing with user-added realtime content
CN113286201A (en) Recommendation information display method and device, electronic equipment and storage medium
CN112272307A (en) Carousel method for EPG integrated picture and video
US20220094654A1 (en) Methods, systems, and media for identifying and presenting video objects linked to a source video
US20160118084A1 (en) Apparatus and method for calculating and virtually displaying football statistics
US20130205334A1 (en) Method and apparatus for providing supplementary information about content in broadcasting system
KR20170090856A (en) Method for generating open scenario
CN117793475A (en) Bullet screen display method and device
Kim et al. Design and implementation for interactive augmented broadcasting system
CN117793443A (en) Bullet screen display method and device
KR102615377B1 (en) Method of providing a service to experience broadcasting
US20230195276A1 (en) Method and system for displaying and interacting with comments

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