Bullet screen dynamic display method and device, electronic equipment and computer readable medium
By constructing the barrage wizard object group and managing the waiting queue, combined with the barrage positioning and layout algorithm, the problem of high performance consumption and overlapping barrage coverage of traditional systems under high concurrency is solved, and smooth dynamic barrage display and user experience are achieved. promote.
Patent Information
- Application Number
- CN202410733971.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional dynamic barrage display system has high performance consumption under high concurrency conditions, resulting in lagging and overlapping barrage coverage, which affects the user experience.
By receiving the barrage parameter setting information, build the barrage sprite object group, manage the barrage waiting queue, determine the parallel processing of barrage rendering tasks based on time, set the number of tracks and rolling direction, and use barrage positioning and layout algorithms to ensure that each barrage the exact location and order of presentation.
It achieves smooth rendering under high concurrency conditions, avoids barrage overlap and occlusion, and improves user experience.
Smart Images

Figure CN118779042A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the computer field, and in particular to a method, device, electronic device, and computer-readable medium for dynamically displaying bullet comments. Background Art
[0002] Due to the limitations of memory, CPU and other performance, the dynamic bullet screen display system usually adopts the following methods: controlling the number of dynamic bullet screens displayed to achieve smooth display; or adopting a strategy of reducing the number of dynamic effect frames and duration to control memory, CPU and other performance consumption.
[0003] However, the above method usually has the following technical problems:
[0004] Traditional systems have high performance consumption. In the case of high-concurrency dynamic barrage display, freezes often occur, and barrage overlap and coverage are prone to occur, affecting the user experience.
[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0007] Some embodiments of the present disclosure propose a method, device, electronic device and computer-readable medium for dynamic display of bullet screens to solve one or more of the technical problems mentioned in the above background technology section.
[0008] In a first aspect, some embodiments of the present disclosure provide a method for dynamic display of barrage, the method comprising: receiving a barrage setting parameter information group input by a barrage parameter setting personnel, wherein the barrage setting parameter information in the above barrage setting parameter information group comprises: barrage text, barrage dynamic background image setting information, barrage running speed, barrage trajectory direction, number of barrage tracks, barrage text font size, and barrage background color; constructing a barrage wizard object group according to the above barrage setting parameter information group; in response to receiving the barrage text to be displayed submitted by the user, adding the above barrage text to be displayed to the associated barrage text waiting queue; in response to determining that the current time is the target time, determining whether there is barrage text in the above barrage waiting queue; in response to determining that there is barrage text in the above barrage waiting queue, selecting a barrage text sequence within the target period from the above barrage waiting queue; according to the above barrage wizard object group, performing barrage activation processing on each barrage text in the above barrage text sequence to generate a barrage sequence; according to the above barrage wizard object group, dynamically displaying the above barrage sequence.
[0009] In a second aspect, some embodiments of the present disclosure provide a device for dynamic display of barrage, the device comprising: a receiving unit, configured to receive a barrage setting parameter information group input by a barrage parameter setting personnel, wherein the barrage setting parameter information in the above barrage setting parameter information group includes: barrage text, barrage dynamic background image setting information, barrage running speed, barrage trajectory direction, barrage track number, barrage text font size, and barrage background color; a construction unit, configured to construct a barrage wizard object group according to the above barrage setting parameter information group; an adding unit, configured to, in response to receiving the barrage text to be displayed submitted by the user, add the above barrage text to be displayed to the user. The barrage text is added to the associated barrage text waiting queue; the determination unit is configured to determine whether there is any barrage text in the barrage waiting queue in response to determining that the current time is the target time; the selection unit is configured to select a barrage text sequence within the target period from the barrage waiting queue in response to determining that there is any barrage text in the barrage waiting queue; the activation unit is configured to perform barrage activation processing on each barrage text in the barrage text sequence according to the barrage wizard object group to generate a barrage sequence; the display unit is configured to dynamically display the barrage sequence according to the barrage wizard object group.
[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.
[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.
[0012] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the dynamic display method of barrage in some embodiments of the present disclosure, during the rendering process, a single dynamic barrage supports the setting of delayed display, and the display order of the barrage is guaranteed according to the order of entering the queue, and the barrage rendering task is processed in parallel to meet the high-concurrency rendering requirements. First, by setting the basic parameters such as the number of tracks, barrage speed, and scrolling direction, the basic data for barrage positioning is formed, and by calculating the barrage positioning and layout algorithm, the accurate position and reasonable display of each barrage on the screen are ensured to avoid overlapping and occlusion problems. Specifically, the phenomenon of barrage overlap and coverage is prone to occur, which affects the user experience. The reason is that the traditional system performance consumption is high, and in the case of high-concurrency dynamic barrage display, jamming often occurs, and the phenomenon of barrage overlap and coverage is prone to occur, which affects the user experience. Based on this, the dynamic display method of barrage in some embodiments of the present disclosure first receives the barrage setting parameter information group input by the barrage parameter setting personnel. Among them, the barrage setting parameter information in the above barrage setting parameter information group includes: barrage text, barrage dynamic background image setting information, barrage running speed, barrage trajectory direction, barrage track number, barrage text font size, and barrage background color. Secondly, according to the above barrage setting parameter information group, a barrage wizard object group is constructed; then, in response to receiving the barrage text to be displayed submitted by the user, the above barrage text to be displayed is added to the associated barrage text waiting queue; then, in response to determining that the current time is the target time, it is determined whether there is a barrage text in the above barrage waiting queue; then, in response to determining that there is a barrage text in the above barrage waiting queue, a barrage text sequence within the target period is selected from the above barrage waiting queue; thereafter, according to the above barrage wizard object group, each barrage text in the above barrage text sequence is subjected to barrage activation processing to generate a barrage sequence; finally, according to the above barrage wizard object group, the above barrage sequence is dynamically displayed. Therefore, during the rendering process, a single dynamic bullet comment can be set to display in a delayed manner, and the display order of the bullet comments is guaranteed according to the order in which they enter the queue, and the bullet comment rendering tasks are processed in parallel to meet the high-concurrency rendering requirements. By setting basic parameters such as the number of tracks, bullet comment speed, and scrolling direction, the basic data for bullet comment positioning is formed, and by calculating the bullet comment positioning and layout algorithm, the accurate position and reasonable display of each bullet comment on the screen are ensured to avoid overlapping and occlusion problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0014] Figure 1 is a flowchart of some embodiments of the method for dynamic display of bullet comments according to the present disclosure;
[0015] Figure 2 It is a structural schematic diagram of some embodiments of the dynamic bullet screen display device according to the present disclosure;
[0016] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0018] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0019] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0020] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0022] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0023] Figure 11 is a flow chart of some embodiments of the method for dynamic display of bullet screens according to the present disclosure. 100 of some embodiments of the method for dynamic display of bullet screens according to the present disclosure is shown. The method for dynamic display of bullet screens includes the following steps:
[0024] Step 101, receiving a barrage setting parameter information group input by a barrage parameter setting personnel.
[0025] In some embodiments, the execution subject (for example, a computing device) of the barrage dynamic display method can receive a barrage setting parameter information group input by a barrage parameter setting personnel. Among them, the barrage setting parameter information in the above barrage setting parameter information group includes: barrage text, barrage dynamic background image setting information, barrage running speed, barrage track direction, barrage track number, barrage text font size, and barrage background color. Barrage text: a necessary parameter used to display the barrage content. If it is not set, the barrage will not be displayed; barrage dynamic background image setting information: if not set, it is a static barrage, and after setting, it is a dynamic barrage; barrage running speed: the speed of the barrage during movement, the higher the value, the faster it moves; barrage track direction: supports four moving directions from left to right, from right to left, from top to bottom, and from bottom to top; number of barrage tracks: the maximum number of barrage tracks that will appear in the barrage container view; barrage text font size: the font size of the barrage text; barrage background color: control the background color of the barrage. It should be noted that the direction and number of barrage tracks corresponding to each barrage setting parameter information are the same.
[0026] Step 102, construct a barrage wizard object group according to the barrage setting parameter information group.
[0027] In some embodiments, the above-mentioned execution subject can construct a barrage wizard object group according to the above-mentioned barrage setting parameter information group. One barrage setting parameter information corresponds to a barrage wizard object. The barrage wizard object may refer to a barrage object used to render barrage text, which may include multiple ballistic objects, and a ballistic object may include multiple text objects. The barrage object may include multiple ballistic objects, and manage the ballistic objects, provide interfaces such as the number of allocated barrage tracks, hide and display ballistics, barrage queue cache, and barrage selection ballistic display. The ballistic object may include multiple text objects, and manage these text objects, providing interfaces such as adding text objects, deleting text objects, obtaining the number of text objects currently displayed, whether text objects can be added at present, clearing ballistics, and updating all text objects. The text object can be responsible for the display, hiding and moving of the barrage text, providing an interface for whether to enter the ballistics and whether to leave the ballistics, and providing a TICK interface for text movement. In practice, the above-mentioned execution subject can construct a barrage wizard object corresponding to the barrage setting parameter information through various object construction methods.
[0028] Step 103, in response to receiving the bullet screen text to be displayed submitted by the user, the bullet screen text to be displayed is added to the associated bullet screen text waiting queue.
[0029] In some embodiments, the above-mentioned execution entity may add the barrage text to be displayed to the associated barrage text waiting queue in response to receiving the barrage text to be displayed submitted by the user. The user can enter the barrage text to be displayed and set the barrage wizard object selection information through the barrage submission window provided by the above-mentioned execution entity. The barrage wizard object selection information may refer to the selection information of the barrage dynamic background image setting information, the barrage running speed, the font size of the barrage text and the barrage background color. The barrage submission window may be a page pop-up window for users to select the barrage wizard object parameters. The barrage text waiting queue may refer to the text waiting to be delivered.
[0030] Step 104, in response to determining that the current time is the target time, determining whether there is any barrage text in the barrage waiting queue.
[0031] In some embodiments, the execution subject may determine whether there is a bullet text in the bullet waiting queue in response to determining that the current time is the target time. The target time is a bullet refresh time node. During the operation of a bullet, multiple bullet refresh time nodes are set. For example, it is refreshed every 10 milliseconds.
[0032] Step 105, in response to determining that there are barrage texts in the barrage waiting queue, a barrage text sequence within a target period is selected from the barrage waiting queue.
[0033] In some embodiments, the execution subject may select a barrage text sequence within a target period from the barrage text waiting queue in response to determining that there are barrage texts in the barrage text waiting queue. The target period may refer to a time period starting from the current time and ending at a preset time length. For example, each barrage text added to the barrage text waiting queue within 10 milliseconds starting from the current time may be used as a barrage text sequence.
[0034] Step 106, based on the above-mentioned barrage wizard object group, each barrage text in the above-mentioned barrage text sequence is activated to generate a barrage sequence.
[0035] In some embodiments, the execution entity may perform a barrage activation process on each barrage text in the barrage text sequence according to the barrage wizard object group to generate a barrage sequence.
[0036] In practice, the execution subject may perform the following activation steps for each bullet text in the bullet text sequence:
[0037] The first step is to determine the barrage sprite object selection information corresponding to the barrage text. The barrage sprite object selection information includes: barrage dynamic background image setting information. That is, when the user corresponding to each barrage text enters the barrage text, the barrage sprite object selection information will also be configured. The barrage sprite object selection information also includes: barrage running speed, barrage text font size and barrage background color and other selection information.
[0038] The second step is to determine the barrage sprite object corresponding to the barrage text according to the barrage sprite object selection information, that is, a barrage sprite object having the same parameters as those in the barrage sprite object selection information can be selected from the local barrage sprite object group.
[0039] The third step is to perform barrage activation rendering processing on the barrage text according to the barrage sprite object to generate a barrage. That is, the barrage text can be rendered according to the configuration information of the barrage in the barrage sprite object to obtain the rendered barrage.
[0040] Step 107, dynamically display the above-mentioned barrage sequence according to the above-mentioned barrage wizard object group.
[0041] In some embodiments, the execution entity may dynamically display the barrage sequence according to the barrage wizard object group.
[0042] In practice, the execution subject can dynamically display the above bullet screen sequence through the following steps:
[0043] The first step is to determine the left vertex position and view size information of the current bullet message container view. The above view size information includes: view width and view height. The bullet message container view may refer to a page view that displays the bullet message.
[0044] The second step is to determine the height of a single barrage track according to the view height and the number of barrage tracks included in the barrage wizard object. That is, the ratio of the view height to the number of barrage tracks included in the barrage wizard object can be determined as the height of a single barrage track.
[0045] The third step is to determine the exit time of the last bullet discussion in each bullet discussion track in the current bullet discussion container view.
[0046] Step 4: For each bullet comment in the bullet comment sequence, perform the following processing steps:
[0047] The first processing step is to determine the height of the bullet screen. That is, determine the font size corresponding to the bullet screen, and round up the ratio of the font height corresponding to the bullet screen to the height of a single bullet screen track to determine the number of bullet screen tracks occupied. The product of the number of bullet screen tracks occupied and the height of the single bullet screen track is determined as the height of the bullet screen.
[0048] The second processing step is to determine the occupied quantity of the barrage track corresponding to the barrage according to the ratio of the barrage height to the height of the single barrage track. The ratio of the barrage height to the height of the single barrage track is determined as the occupied quantity of the barrage track corresponding to the barrage.
[0049] The third processing step is to determine the barrage sprite object corresponding to the barrage as the target barrage sprite object.
[0050] The fourth processing step is to determine the moving duration of the barrage sprite corresponding to the barrage according to the view width, the length of the barrage and the barrage running speed included in the barrage sprite object. First, the sum of the view width and the length of the barrage is determined as the total running distance. Then, the ratio of the total running distance to the barrage running speed included in the barrage sprite object is determined as the moving duration of the barrage sprite corresponding to the barrage.
[0051] The fifth processing step is to determine whether there is a bullet screen delivery track corresponding to the above bullet screen in the current bullet screen container view according to the exit time of the last bullet screen of each bullet screen track in the current bullet screen container view, the number of bullet screen tracks occupied and the moving time of the above bullet screen sprite. That is, for the last bullet screen of each bullet screen track, the view distance between the tail position of the bullet screen and the right border of the bullet screen container view can be determined. Then, the ratio of the view distance to the bullet screen running speed corresponding to the bullet screen can be determined as the remaining running time. After that, the sum of the current time and the remaining running time can be determined as the exit time of the last bullet screen.
[0052] The sixth processing step is, in response to determining that there is a bullet screen delivery track corresponding to the bullet screen, delivering the bullet screen to the bullet screen delivery track for dynamic display.
[0053] In an optional implementation of some embodiments, the execution subject may determine whether there is a bullet chat delivery track corresponding to the bullet chat in the current bullet chat container view through the following steps:
[0054] In the first step, for each of the above bullet screen tracks, the following processing steps are performed:
[0055] 1. Determine whether the last bullet comment in the bullet comment track has completely entered the bullet comment container view. That is, determine whether the tail of the last bullet comment in the bullet comment track is completely displayed in the bullet comment container view.
[0056] 2. In response to determining that the last bullet in the bullet track has completely entered the bullet container view, determine whether the exit time of the last bullet in the bullet track is before the exit time corresponding to the bullet. The exit time corresponding to the bullet can be the sum of the current time and the moving time of the bullet sprite corresponding to the bullet.
[0057] First, according to the tail position of the last bullet in the bullet track and the bullet running speed of the bullet, the remaining running time of the last bullet is determined. That is, the view distance between the tail position of the last bullet and the right edge of the bullet container view can be used. Then, the ratio of the view distance to the bullet running speed corresponding to the last bullet can be determined as the remaining running time.
[0058] Then, the sum of the current time and the remaining running time is determined as the exit time of the last bullet comment.
[0059] Finally, the sum of the current time and the moving time of the barrage sprite of the barrage is determined as the exit time corresponding to the barrage.
[0060] 3. In response to determining that the exit time of the last barrage in the barrage track is before the exit time corresponding to the barrage, the barrage track is determined as an alternative barrage track.
[0061] The second step is to determine whether there is an alternative barrage track group that meets the target condition for each alternative barrage track. The target condition is: the number of alternative barrage tracks included in the alternative barrage track group is equal to the number of barrage tracks occupied, and the track numbers corresponding to each alternative barrage track in the alternative barrage track group are adjacent. For example, if the number of barrage tracks occupied is 2, determine whether there are two alternative barrage tracks with adjacent numbers in each alternative barrage track.
[0062] In the third step, in response to determining that there is an alternative barrage track group that meets the target condition, the above alternative barrage track group is determined as the barrage delivery track of the above barrage.
[0063] Therefore, advanced barrage positioning and layout algorithms are used to accurately position and layout each barrage, avoiding overlapping and occlusion problems.
[0064] Optionally, in response to determining that there is no bullet screen delivery track corresponding to the bullet screen in the current bullet screen container view, the bullet screen is delivered again after a preset time. The delivery operation can refer to the bullet screen dynamic display steps of steps 104-107.
[0065] Optionally, for each barrage that has been displayed, the barrage sprite object corresponding to the barrage is stored in an associated barrage sprite object reuse pool.
[0066] In some embodiments, the execution subject may store the corresponding bullet screen sprite object of each bullet screen that has been displayed in the associated bullet screen sprite object reuse pool. The bullet screen sprite object reuse pool may store each invalid bullet screen sprite object for subsequent reuse.
[0067] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a dynamic display device for bullet screens. These embodiments of the dynamic display device for bullet screens are similar to Figure 1 Corresponding to the method embodiments shown, the barrage dynamic display device can be specifically applied to various electronic devices.
[0068] like Figure 2 As shown, some embodiments of the dynamic display device 200 of the barrage include: a receiving unit 201, a construction unit 202, an adding unit 203, a determining unit 204, a selecting unit 205, an activating unit 206 and a displaying unit 207. The receiving unit 201 is configured to receive a barrage setting parameter information group input by a barrage parameter setting personnel, wherein the barrage setting parameter information in the above barrage setting parameter information group includes: barrage text, barrage dynamic background image setting information, barrage running speed, barrage track direction, barrage track number, barrage text font size, barrage background color; the construction unit 202 is configured to construct a barrage wizard object group according to the above barrage setting parameter information group; the adding unit 203 is configured to add the above barrage text to be displayed to the associated barrage text in response to receiving the barrage text to be displayed submitted by the user. waiting queue; a determination unit 204 is configured to determine whether there is any barrage text in the barrage waiting queue in response to determining that the current time is the target time; a selection unit 205 is configured to select a barrage text sequence within the target period from the barrage waiting queue in response to determining that there is barrage text in the barrage waiting queue; an activation unit 206 is configured to perform barrage activation processing on each barrage text in the barrage text sequence according to the barrage wizard object group to generate a barrage sequence; a display unit 207 is configured to dynamically display the barrage sequence according to the barrage wizard object group.
[0069] It is understandable that the units recorded in the dynamic bullet screen display device 300 are similar to those in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the bullet screen dynamic display device 300 and the units contained therein, and will not be repeated here.
[0070] Reference below Figure 3, which shows a schematic diagram of the structure of an electronic device 300 (e.g., a computing device) suitable for implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0071] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0072] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0073] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0074] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0075] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0076] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: receives a barrage setting parameter information group input by a barrage parameter setting personnel, wherein the barrage setting parameter information in the barrage setting parameter information group includes: barrage text, barrage dynamic background image setting information, barrage running speed, barrage trajectory direction, number of barrage tracks, barrage text font size, and barrage background color; constructs a barrage wizard object group according to the barrage setting parameter information group; in response to receiving the barrage text to be displayed submitted by the user, adds the barrage text to be displayed to the associated barrage text waiting queue; in response to determining that the current time is the target time, determines whether there is barrage text in the barrage waiting queue; in response to determining that there is barrage text in the barrage waiting queue, selects a barrage text sequence within the target period from the barrage waiting queue; according to the barrage wizard object group, performs barrage activation processing on each barrage text in the barrage text sequence to generate a barrage sequence; according to the barrage wizard object group, dynamically displays the barrage sequence.
[0077] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0078] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0079] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor comprising: a receiving unit, a building unit, an adding unit, a determining unit, a selecting unit, an activating unit and a displaying unit. Among them, the names of these units do not constitute a limitation on the unit itself in certain cases, for example, the display unit may also be described as "a unit for dynamically displaying the above-mentioned barrage sequence according to the above-mentioned barrage wizard object group".
[0080] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0081] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for dynamic display of bullet screens, comprising: Receive a barrage setting parameter information group input by a barrage parameter setting personnel, wherein the barrage setting parameter information in the barrage setting parameter information group includes: barrage text, barrage dynamic background image setting information, barrage running speed, barrage track direction, barrage track number, barrage text font size, and barrage background color; Constructing a barrage wizard object group according to the barrage setting parameter information group; In response to receiving the bullet-screen text to be displayed submitted by the user, adding the bullet-screen text to be displayed to the associated bullet-screen text waiting queue; In response to determining that the current time is the target time, determining whether there is a bullet-screen text in the bullet-screen waiting queue; In response to determining that there are bullet-screen characters in the bullet-screen waiting queue, selecting a bullet-screen character sequence within a target period from the bullet-screen waiting queue; According to the barrage sprite object group, performing barrage activation processing on each barrage text in the barrage text sequence to generate a barrage sequence; According to the barrage wizard object group, the barrage sequence is dynamically displayed.
2. The method according to claim 1, wherein: The step of performing a barrage activation process on each barrage text in the barrage text sequence according to the barrage sprite object group to generate a barrage sequence includes: For each bullet text in the bullet text sequence, perform the following activation steps: Determine the barrage wizard object selection information corresponding to the barrage text, wherein the barrage wizard object selection information includes: barrage dynamic background image setting information; Determine the barrage sprite object corresponding to the barrage text according to the barrage sprite object selection information; According to the barrage wizard object, the barrage text is subjected to barrage activation rendering processing to generate a barrage.
3. The method according to claim 2, wherein: The dynamically displaying the barrage sequence according to the barrage wizard object group includes: Determine the left vertex position and view size information of the current bullet chat container view, wherein the view size information includes: view width and view height; Determine the height of a single barrage track according to the view height and the number of barrage tracks included in the barrage wizard object; Determine the exit time of the last bullet discussion in each bullet discussion track in the current bullet discussion container view; For each bullet comment in the bullet comment sequence, the following processing steps are performed: Determining a bullet screen height of the bullet screen; Determining the number of occupied barrage tracks corresponding to the barrage according to the ratio of the barrage height to the height of the single barrage track; Determine the barrage sprite object corresponding to the barrage as the target barrage sprite object; Determine the moving duration of the barrage sprite corresponding to the barrage according to the view width, the length of the barrage and the barrage running speed included in the barrage sprite object; According to the exit time of the last bullet in each bullet track in the current bullet container view, the number of bullet tracks occupied and the moving time of the bullet sprite, it is determined whether there is a bullet delivery track corresponding to the bullet in the current bullet container view; In response to determining that there is a bullet screen delivery track corresponding to the bullet screen, the bullet screen is delivered to the bullet screen delivery track for dynamic display.
4. The method according to claim 3, wherein: The method further comprises: In response to determining that there is no bullet screen delivery track corresponding to the bullet screen in the current bullet screen container view, after a preset time period, the bullet screen is delivered again.
5. The method according to claim 1, wherein: The method further comprises: For each barrage that has been displayed, the barrage sprite object corresponding to the barrage is stored in the associated barrage sprite object reuse pool.
6. A dynamic bullet screen display device, comprising: The receiving unit is configured to receive a barrage setting parameter information group input by a barrage parameter setting personnel, wherein the barrage setting parameter information in the barrage setting parameter information group includes: barrage text, barrage dynamic background image setting information, barrage running speed, barrage track direction, barrage track number, barrage text font size, and barrage background color; A construction unit, configured to construct a barrage wizard object group according to the barrage setting parameter information group; An adding unit is configured to, in response to receiving the bullet-screen text to be displayed submitted by the user, add the bullet-screen text to be displayed to the associated bullet-screen text waiting queue; a determination unit configured to determine whether there is a bullet-screen text in the bullet-screen waiting queue in response to determining that the current time is the target time; A selection unit is configured to select a barrage text sequence within a target period from the barrage text waiting queue in response to determining that there are barrage texts stored in the barrage text waiting queue; an activation unit, configured to perform a barrage activation process on each barrage text in the barrage text sequence according to the barrage sprite object group, so as to generate a barrage sequence; The display unit is configured to dynamically display the barrage sequence according to the barrage wizard object group.
7. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Barrage processing method and device and storage medium
CN107360459A
Bullet screen display method and device and computer readable memory medium
CN108696766A
Bullet screen playing method and device, computer readable storage medium and terminal
CN108696767A
Bullet screen rendering method and device, storage medium and electronic equipment
CN114173198A
Video bullet screen typesetting method, device and equipment and storage medium
CN114302212A
