CN108696766B - Barrage display method and device and computer readable storage medium - Google Patents

Barrage display method and device and computer readable storage medium Download PDF

Info

Publication number
CN108696766B
CN108696766B CN201810463040.8A CN201810463040A CN108696766B CN 108696766 B CN108696766 B CN 108696766B CN 201810463040 A CN201810463040 A CN 201810463040A CN 108696766 B CN108696766 B CN 108696766B
Authority
CN
China
Prior art keywords
bullet screen
screen data
displayed
currently
track
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810463040.8A
Other languages
Chinese (zh)
Other versions
CN108696766A (en
Inventor
银国徽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201810463040.8A priority Critical patent/CN108696766B/en
Publication of CN108696766A publication Critical patent/CN108696766A/en
Application granted granted Critical
Publication of CN108696766B publication Critical patent/CN108696766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The invention discloses a bullet screen display method, a bullet screen display device and a computer readable storage medium. The bullet screen display method comprises the following steps: reading bullet screen data to be displayed currently; detecting whether a bullet screen track matched with bullet screen data to be displayed currently exists; and if so, loading the bullet screen data to be displayed currently and displaying on the matched bullet screen track. According to the technical scheme, the technical problem of how to well display the bullet screen is solved, and the scheduling efficiency of bullet screen data and the space utilization rate of bullet screen tracks are improved.

Description

Barrage display method and device and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a bullet screen display method and apparatus, and a computer-readable storage medium.
Background
Currently, in video playing services, barrage display is more and more popular.
In the existing bullet screen application, sometimes, the display of bullet screen data is incomplete because the font height of bullet screen data is not matched with the width of bullet screen track; in addition, the bullet screens collide with each other due to different playing time lengths of the bullet screens.
Therefore, the prior art has the defect that the bullet screen cannot be well displayed due to the reasons that the font height of the bullet screen data is not matched with the width of the bullet screen track, the playing time lengths of the bullet screens are different, and the like.
Disclosure of Invention
The invention aims to provide a bullet screen display method, a bullet screen display device and a computer readable storage medium, so as to solve the technical problem of how to well display bullet screens.
In order to achieve the above object, according to a first aspect of the present invention, the following technical solutions are provided:
a bullet screen display method comprises the following steps:
reading bullet screen data to be displayed currently;
detecting whether a bullet screen track matched with the bullet screen data to be displayed currently exists or not, wherein a plurality of bullet screen tracks can be combined to match the bullet screen data to be displayed currently;
and if so, loading the bullet screen data to be displayed currently and displaying on the matched bullet screen track.
Further, the currently displayed bullet screen data comprises attribute information;
whether the step of detecting the bullet screen track matched with the bullet screen data to be displayed currently exists or not specifically comprises the following steps:
and determining whether a bullet screen track matched with the bullet screen data to be displayed currently exists or not according to the attribute information.
Further, after the step of detecting whether there is a bullet screen track matched with the bullet screen data to be currently displayed, the method further includes:
if not, refusing to load the currently-to-be-displayed bullet screen data;
and reading next bullet screen data to be displayed, and taking the next bullet screen data to be displayed as the current bullet screen data to be displayed.
Further, before the step of reading the bullet screen data to be displayed currently, the method further includes:
when receiving a bullet screen request, checking whether bullet screen data exists;
if not, sending a bullet screen data request;
and receiving the bullet screen data when the response information of the bullet screen data request is received.
Further, after the step of determining whether there is a bullet screen track matched with the bullet screen data to be currently displayed according to the attribute information, the method further includes:
according to the determination result, recording matching information between the bullet screen data to be displayed currently and the bullet screen track; wherein the matching information comprises track occupation information;
after the step of loading the currently-to-be-displayed bullet screen data and displaying on the matched bullet screen track, the method further comprises:
deleting the currently-to-be-displayed bullet screen data;
updating the track occupation information;
and determining whether to read the bullet screen data to be displayed according to the updating result.
In order to achieve the above object, according to a second aspect of the present invention, the following technical solutions are further provided:
a bullet screen display device comprising:
the first reading module is used for reading the bullet screen data to be displayed currently;
the detection module is used for detecting whether a bullet screen track matched with the bullet screen data to be displayed currently exists or not, wherein a plurality of bullet screen tracks can be combined to match the bullet screen data to be displayed currently;
and the loading module is used for loading the bullet screen data to be displayed currently and displaying the bullet screen data on the matched bullet screen track when the bullet screen track matched with the bullet screen data to be displayed currently is detected.
Further, the currently displayed bullet screen data comprises attribute information;
the detection module is specifically configured to: and determining whether a bullet screen track matched with the bullet screen data to be displayed currently exists or not according to the attribute information.
Further, the apparatus further comprises:
the rejection module is used for rejecting loading of the bullet screen data to be displayed currently when the bullet screen track matched with the bullet screen data to be displayed currently is not detected;
and the second reading module is used for reading next bullet screen data to be displayed and taking the next bullet screen data to be displayed as the current bullet screen data to be displayed.
Further, the apparatus further comprises:
the checking module is used for checking whether bullet screen data exist or not when a bullet screen request is received;
the sending module is used for sending the bullet screen data request when the bullet screen data is not checked;
and the receiving module is used for receiving the bullet screen data when the response information of the bullet screen data request is received.
Further, the apparatus further comprises:
the recording module is used for recording the matching information between the bullet screen data to be displayed currently and the bullet screen track according to the determination result; wherein the matching information comprises track occupation information;
the deleting module is used for deleting the bullet screen data to be displayed currently;
the updating module is used for updating the track occupation information;
and the determining module is used for determining whether to read the bullet screen data to be displayed according to the updating result.
In order to achieve the above object, according to a third aspect of the present invention, the following technical solutions are further provided:
a bullet screen display hardware device comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions, so that the processor implements the bullet screen display method according to the first aspect of the present invention when executing the computer readable instructions.
In order to achieve the above object, according to a fourth aspect of the present invention, the following technical solutions are further provided:
a computer readable storage medium storing non-transitory computer readable instructions which, when executed by a computer, cause the computer to perform the bullet screen display method according to the first aspect of the present invention.
In order to achieve the above object, according to a fifth aspect of the present invention, the following technical solutions are further provided:
a bullet screen display terminal comprises the bullet screen display device of the second aspect of the invention.
The embodiment of the invention provides a bullet screen display method and device and a computer readable storage medium. The bullet screen display method comprises the following steps: reading bullet screen data to be displayed currently; detecting whether a bullet screen track matched with bullet screen data to be displayed currently exists; and if so, loading the bullet screen data to be displayed currently and displaying on the matched bullet screen track. According to the technical scheme, the bullet screen can be well displayed, and the situations of incomplete bullet screen display, bullet screen collision, asynchrony between the bullet screen and the video and the like in the prior art are avoided; and the scheduling efficiency of the bullet screen data and the space utilization rate of the bullet screen track are also improved.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more clearly understandable, the following preferred embodiments are described in detail with reference to the accompanying drawings.
Drawings
Fig. 1a is a schematic flowchart of a bullet screen display method according to an embodiment of the present invention;
FIG. 1b is a diagram illustrating the flow of bullet screen data between a bullet screen track, a bullet screen queue and a player according to one embodiment of the present invention;
fig. 2a is a schematic structural diagram of a bullet screen display device according to an embodiment of the present invention;
fig. 2b is a schematic structural diagram of a bullet screen display device according to another embodiment of the invention;
FIG. 3 is a diagram illustrating a bullet screen display hardware device according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a computer-readable storage medium according to one embodiment of the present invention;
fig. 5 is a schematic structural diagram of a bullet screen display terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a bullet screen display terminal according to another embodiment of the present invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than the number, shape and size of the components in practical implementation, and the type, quantity and proportion of the components in practical implementation can be changed freely, and the layout of the components can be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
In order to solve the technical problem of how to well display the bullet screen, the embodiment of the invention provides a bullet screen display method. As shown in fig. 1a, the method mainly includes the following steps S100 to S120.
Wherein:
s100: and reading the bullet screen data to be displayed currently.
The bullet screen data to be displayed currently can be bullet screen data to be displayed in a bullet screen queue.
The bullet screen data to be displayed at present can be read from a local cache of the terminal, and can also be read from a cloud or a server cluster. The terminal includes, but is not limited to, a smart phone, a tablet computer, a desktop computer, a laptop computer, a smart tv, a wearable device, a virtual reality device, and the like. If the bullet screen data to be displayed currently is read from a local cache of the terminal, a bullet screen queue can be constructed in the cache in advance; and then, sequentially reading the bullet screen data to be displayed from the bullet screen queue.
In practical application, the step may read the bullet screen data to be displayed currently according to a predetermined period. The predetermined period may be, for example, 2 seconds, 5 seconds, or the like.
S110: and detecting whether a bullet screen track matched with the bullet screen data to be displayed currently exists.
Wherein, the bullet screen track can be set according to the pixel of terminal screen. Each track may be merged or redirected. For example, when the font height of one bullet screen data is greater than the width of one track, several bullet screen tracks may be merged to realize the display of the bullet screen data.
In an optional embodiment, the bullet screen data to be displayed currently comprises attribute information; step S110 specifically includes:
sa 1: and determining whether a bullet screen track matched with the bullet screen data to be displayed currently exists or not according to the attribute information.
In this embodiment, the attribute information of the bullet screen data to be currently displayed includes, but is not limited to, a bullet screen identifier, a bullet screen height, a bullet screen length, a bullet screen font, a bullet screen color, a relative time of bullet screen playing, a playing speed of bullet screen, and the like.
In an alternative embodiment, after step S110, the bullet screen display method may further include steps Sb1 and Sb 2. Wherein:
sb 1: and if the bullet screen track matched with the bullet screen data to be displayed currently does not exist, refusing to load the bullet screen data to be displayed currently.
The situation that there is no bullet screen track matching with the bullet screen data to be currently displayed includes, but is not limited to, the situation that there is no idle bullet screen track, and the situation that there is no bullet screen track suitable for the bullet screen data to be currently displayed.
Sb 2: and reading the next bullet screen data to be displayed, and taking the next bullet screen data to be displayed as the current bullet screen data to be displayed.
After the current bullet screen data to be displayed are refused to be loaded, if bullet screen data exist in the bullet screen queue, next bullet screen data to be displayed are read from the bullet screen queue, and the next bullet screen data to be displayed are used as the current bullet screen data to be displayed.
The embodiment does not load the bullet screen data to be displayed currently under the condition that the bullet screen track matched with the bullet screen data to be displayed currently does not exist. At this time, if there are other bullet screen data in the bullet screen queue, the detection may be continued on the other bullet screen data, for example, the step S110 may be executed again; and by analogy, all the bullet screen data in the bullet screen queue are traversed, so that the scheduling efficiency of the bullet screen data is improved.
S120: and when the bullet screen track matched with the bullet screen data to be displayed currently exists, loading the bullet screen data to be displayed currently and displaying the bullet screen data on the matched bullet screen track.
The situation that the currently to-be-displayed bullet screen data is matched with the bullet screen track includes, but is not limited to, the situation that an idle bullet screen track exists and the bullet screen track is suitable for displaying the currently to-be-displayed bullet screen data.
In this step, under the condition that the currently to-be-displayed bullet screen data is matched with a certain bullet screen track, it is determined that the currently to-be-displayed bullet screen data can enter the bullet screen track, so that the currently to-be-displayed bullet screen data can be loaded through a browser and rendered, and then a bullet screen is displayed.
In an optional embodiment, after step Sa1, the bullet screen display method further includes:
step Sc 1: according to the determination result, recording matching information between the bullet screen data to be displayed and the bullet screen track; wherein the matching information comprises track occupation information;
and, after step S120, the bullet screen display method further includes:
step Sc 2: deleting the bullet screen data to be displayed currently;
step Sc 3: updating the track occupation information;
step Sc 4: and determining whether to read the bullet screen data to be displayed according to the updating result.
In this embodiment, the matching situation between the bullet screen data and the bullet screen track that wait to show at present is recorded to obtain the orbital occupation condition of bullet screen, thereby be convenient for reading of bullet screen data, and then can improve the orbital space utilization of bullet screen. In addition, a part of cache space can be released by deleting the displayed bullet screen data, so that the released cache space can be used for displaying other bullet screen data, and the smoothness degree of bullet screen display can be improved.
In this embodiment, the track occupation information may be updated periodically or aperiodically, and the usage of the bullet screen track may be dynamically determined by recording the track occupation information, so that the reading efficiency of the bullet screen data may be improved.
In an optional embodiment, before step S100, the bullet screen display method may further include the following step Sd1 to step Sd 3. Wherein:
step Sd 1: when receiving a bullet screen request, checking whether bullet screen data exists.
In practical applications, the barrage request may be sent by the user through the terminal. For example, the user performs an operation such as touching or clicking on the screen of the terminal to transmit a bullet screen request. Then, after receiving the barrage request, the embodiment of the invention checks whether barrage data exists in the local cache of the terminal.
Step Sd 2: and if not, sending the bullet screen data request.
Along with the above example, if there is no barrage data in the local cache, a barrage data request may be sent to the cloud or the server cluster, etc.
Step Sd 3: and receiving the bullet screen data when the response information of the bullet screen data request is received.
In this step, the received bullet screen data may be stored in a memory (e.g., a cache) of the terminal for reading.
Continuing to use the above example, if the cloud or the server cluster and the like receive the barrage data request, and after the authentication and the right authentication are performed, the response information (namely, response information) of the barrage data request is fed back to the terminal; and finally, when receiving the response information of the barrage data request, the terminal receives barrage data sent by a cloud or a server cluster and the like. After receiving the barrage data, the terminal can cache the barrage data in the local memory so as to read the barrage data at any time.
To facilitate an understanding of the present invention, the following detailed description of the invention is made with reference to FIG. 1 b.
Fig. 1b shows a schematic diagram of the flow of bullet screen data between bullet screen tracks, bullet screen queues and players.
In this embodiment, it is taken as an example that there is no barrage data in the local cache. The bullet screen display method provided by the embodiment mainly includes the following steps S1 to S11.
S1: and starting the bullet screen.
This step may be initiated by the user on the terminal.
S2: request for barrage data.
In the step, under the condition that the bullet screen data is not cached locally, the bullet screen data is requested.
S3: and carrying out data conversion on the bullet screen data.
This step performs data conversion on the requested bullet screen data to make it suitable for bullet screen play.
S4: and caching the converted bullet screen data according to a preset period.
The converted bullet screen data is cached through a timer according to a preset period for being read at any time.
S5: and reading the bullet screen data to be displayed to a bullet screen queue.
S6: application for bullet screen track.
Bullet screen data in the bullet screen queue, for example, bullet screen data to be displayed currently, applies for a bullet screen track according to a period set by the timer.
S7: and inputting the bullet screen data to be displayed currently to the player.
S8: at the playing time, a timer is set.
In this step, the user can set the timer at the playing time.
S9: and updating the bullet screen data.
And updating the bullet screen data in the cache according to the period set by the timer.
S10: and when the bullet screen playing is finished, releasing the bullet screen track occupied by the bullet screen data to be displayed currently.
This step is through releasing the shared bullet screen track of bullet screen data that treat at present showing to next bullet screen data utilizes this bullet screen track, thereby can improve the utilization ratio of bullet screen track dispatch.
S11: and when the bullet screen playing is finished, removing the bullet screen data to be displayed currently from the bullet screen queue.
In the step, the storage space of the bullet screen queue can be released by removing the bullet screen data to be displayed from the bullet screen queue, so that the utilization rate of the storage space of the bullet screen queue is improved.
In summary, by adopting the technical scheme, the bullet screen can be well displayed, and the situations of incomplete bullet screen display, bullet screen collision, asynchrony between the bullet screen and the video and the like in the prior art are avoided; and moreover, the scheduling efficiency of the bullet screen data and the space utilization rate of the bullet screen track are improved.
Although the foregoing describes the steps in the bullet screen display method embodiment in the above order, it should be clear to those skilled in the art that the steps in the embodiment of the present invention are not necessarily performed in the above order, and may also be performed in other orders, such as reverse order, parallel order, cross order, etc., and further, on the basis of the above steps, those skilled in the art may add other steps, and these obvious modifications or equivalents should also be included in the protection scope of the present invention, and are not described herein again.
For convenience of description, only the relevant parts of the embodiments of the present invention are shown, and details of the specific technology are not disclosed, please refer to the embodiments of the present invention.
In order to solve the technical problem of how to well display the bullet screen, the embodiment of the invention also provides a bullet screen display device based on the same technical concept as the bullet screen display method embodiment. As shown in fig. 2a, the bullet screen display device mainly includes: a first reading module 21, a detection module 22 and a loading module 23. The first reading module 21 is configured to read bullet screen data to be currently displayed; the detection module 22 is configured to detect whether there is a bullet screen track matching with the bullet screen data to be currently displayed; the loading module 23 is configured to, when a bullet screen track matched with the bullet screen data to be currently displayed is detected, load the bullet screen data to be currently displayed and display the bullet screen data on the matched bullet screen track.
The bullet screen data to be displayed at present can be read from a local cache of the terminal, or can be read from a cloud or a server cluster. The terminal includes, but is not limited to, a smart phone, a tablet computer, a desktop computer, a laptop computer, a smart tv, a wearable device, a virtual reality device, and the like. If the bullet screen data to be displayed currently is read from a local cache of the terminal, a bullet screen queue can be constructed in the cache in advance; and then, sequentially reading the bullet screen data to be displayed from the bullet screen queue.
In practical application, the embodiment may read the bullet screen data to be currently displayed according to a predetermined period. The predetermined period may be, for example, 2 seconds, 5 seconds, or the like.
The bullet screen track can be set according to the pixels of the terminal screen. Each track may be merged or redirected. For example, when the font height of one bullet screen data is greater than the width of one track, several bullet screen tracks may be merged to realize the display of the bullet screen data.
In an optional embodiment, the bullet screen data to be displayed currently comprises attribute information; the detection module 22 is specifically configured to: and determining whether a bullet screen track matched with the bullet screen data to be displayed currently exists or not according to the attribute information.
The attribute information of the bullet screen data to be displayed currently includes, but is not limited to, bullet screen identification, bullet screen height, bullet screen length, bullet screen font, bullet screen color, relative time of bullet screen playing, playing speed of bullet screen, and the like.
In an alternative embodiment, as shown in fig. 2b, the bullet screen display device may further include a rejection module 24 and a second reading module 25. The rejecting module 24 is configured to reject to load the bullet screen data to be currently displayed when the bullet screen track matched with the bullet screen data to be currently displayed is not detected; the second reading module 25 is configured to read next bullet screen data to be displayed, and use the next bullet screen data to be displayed as the current bullet screen data to be displayed.
The situation that the bullet screen track matched with the bullet screen data to be displayed currently is not detected includes but is not limited to the situation that no idle bullet screen track exists and the situation that no bullet screen track suitable for the bullet screen data to be displayed currently exists.
After the loading of the bullet screen data to be displayed currently is refused, if there is bullet screen data in the bullet screen queue, the next bullet screen data to be displayed is read from the bullet screen queue, and the next bullet screen data to be displayed is used as the current bullet screen data to be displayed, so that the scheduling efficiency of the bullet screen data is improved.
In an optional embodiment, the bullet screen display device may further include: the device comprises a checking module, a sending module and a receiving module. The detection module is used for detecting whether bullet screen data exist or not when a bullet screen request is received; the sending module is used for sending a bullet screen data request when bullet screen data are not checked; the receiving module is used for receiving the bullet screen data when receiving the response information of the bullet screen data request.
In practical applications, the barrage request may be sent by the user through the terminal. For example, the user performs an operation such as touching or clicking on the screen of the terminal to transmit a bullet screen request. Then, after receiving the barrage request, the embodiment of the invention checks whether barrage data exists in the local cache of the terminal through the checking module.
The present invention will be described in detail with reference to specific examples.
If the check module does not check the bullet screen data in the local cache, the check module triggers the sending module to send a bullet screen data request to a cloud or a server cluster and the like. If the cloud end or the server cluster and the like receive the bullet screen data request, and after the bullet screen data request is authenticated and authenticated correctly, response information (namely response information) of the bullet screen data request is fed back to the bullet screen display device; and finally, the receiving module receives the barrage data sent by the cloud or the server cluster and the like when receiving the response information of the barrage data request. After receiving the bullet screen data, the bullet screen display device can cache the bullet screen data in the local memory, so that the first reading module 21 can read the bullet screen data at any time.
In an optional embodiment, the bullet screen display device may further include: the device comprises a recording module, a deleting module, an updating module and a determining module. The recording module is used for recording matching information between the bullet screen data to be displayed currently and the bullet screen track according to the determination result; wherein the matching information comprises track occupation information; the deleting module is used for deleting the bullet screen data to be displayed currently; the updating module is used for updating the track occupation information; and the determining module is used for determining whether to read the bullet screen data to be displayed according to the updating result.
In this embodiment, through the recording module to the matching condition between the bullet screen data that treat the demonstration at present and the bullet screen track record to obtain the orbital condition of occuping of bullet screen, thereby be convenient for the reading of bullet screen data, can in time know current track condition of occuping through updating the module and confirming the module, and then can improve the orbital space utilization of bullet screen. And, delete the bullet screen data that have already shown through the deletion module, can also release partly buffer memory space to can be used for the demonstration of other bullet screen data with the buffer memory space that releases, thereby can improve the smooth degree that the bullet screen shows.
The bullet screen display device may be, for example, a video player, and the video player may be implemented by software and/or hardware, or a combination thereof; the player can well display the bullet screen, and the situations of incomplete bullet screen display, bullet screen collision, asynchrony between the bullet screen and the video and the like in the prior art are avoided; and moreover, the scheduling efficiency of the bullet screen data and the space utilization rate of the bullet screen track are improved.
Fig. 3 is a hardware block diagram illustrating a bullet screen display hardware device according to an embodiment of the present disclosure. As shown in fig. 3, the bullet screen display hardware device 30 according to the embodiment of the present disclosure includes a memory 31 and a processor 32.
The memory 31 is used to store non-transitory computer readable instructions. In particular, memory 31 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc.
The processor 32 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the bullet screen display hardware device 30 to perform desired functions. In an embodiment of the present disclosure, the processor 32 is configured to execute the computer readable instructions stored in the memory 31, so that the bullet screen display hardware device 30 performs all or part of the steps of the bullet screen display method of the embodiments of the present disclosure.
Those skilled in the art should understand that, in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus, an interface, and the like, and these well-known structures should also be included in the protection scope of the present invention.
For the detailed description of the present embodiment, reference may be made to the corresponding descriptions in the foregoing embodiments, which are not repeated herein.
In the embodiment, when the processor 32 executes the non-transitory computer readable instructions on the memory 31, the bullet screen can be displayed well, so that the situations of incomplete bullet screen display, bullet screen collision, asynchronism between the bullet screen and the video and the like in the prior art are avoided; and moreover, the scheduling efficiency of the bullet screen data and the space utilization rate of the bullet screen track are improved.
Fig. 4 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. As shown in fig. 4, a computer-readable storage medium 40, having non-transitory computer-readable instructions 41 stored thereon, in accordance with an embodiment of the present disclosure. When executed by a processor, the non-transitory computer readable instructions 41 perform all or some of the steps of the bullet screen display method of the embodiments of the present disclosure as described above.
The computer-readable storage medium 40 includes, but is not limited to: optical storage media (e.g., CD-ROMs and DVDs), magneto-optical storage media (e.g., MOs), magnetic storage media (e.g., magnetic tapes or removable disks), media with built-in rewritable non-volatile memory (e.g., memory cards), and media with built-in ROMs (e.g., ROM cartridges).
For the detailed description of the present embodiment, reference may be made to the corresponding descriptions in the foregoing embodiments, which are not repeated herein.
The computer-readable storage medium 40 provided in this embodiment can well display the bullet screen when the non-transitory computer-readable instructions 41 are executed by the processor, so as to avoid the situations of incomplete bullet screen display, bullet screen collision, asynchronization between the bullet screen and the video, and the like in the prior art; and moreover, the scheduling efficiency of the bullet screen data and the space utilization rate of the bullet screen track are improved.
Fig. 5 is a diagram illustrating a hardware structure of a terminal according to an embodiment of the present disclosure. The bullet screen display terminal 50 includes the bullet screen display device 51.
The terminal may be implemented in various forms, and the terminal in the present disclosure may include, but is not limited to, mobile terminal devices such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, a vehicle-mounted terminal device, a vehicle-mounted display terminal, a vehicle-mounted electronic rear view mirror, etc., and fixed terminal devices such as a digital TV, a desktop computer, etc.
The terminal may also include other components as equivalent alternative embodiments. As shown in fig. 6, the bullet screen display terminal 60 may include a power supply unit 61, a wireless communication unit 62, an a/V (audio/video) input unit 63, a user input unit 64, a sensing unit 65, an interface unit 66, a controller 67, an output unit 68, a memory 69, and the like. Fig. 6 illustrates a terminal having various components, but it is to be understood that not all of the illustrated components are required to be implemented, and that more or fewer components can alternatively be implemented.
The wireless communication unit 62 allows, among other things, radio communication between the terminal 60 and a wireless communication system or network. The a/V input unit 63 serves to receive an audio or video signal. The user input unit 64 may generate key input data to control various operations of the terminal device according to a command input by a user. The sensing unit 65 detects a current state of the terminal 60, a position of the terminal 60, presence or absence of a touch input of the terminal 60 by a user, an orientation of the terminal 60, acceleration or deceleration movement and direction of the terminal 60, and the like, and generates a command or signal for controlling an operation of the terminal 60. The interface unit 66 serves as an interface through which at least one external device is connected to the terminal 60. The output unit 68 is configured to provide output signals in a visual, audio, and/or tactile manner. The memory 69 may store software programs or the like for processing and control operations performed by the controller 67, or may temporarily store data that has been output or is to be output. The memory 69 may include at least one type of storage medium. Also, the terminal 60 may cooperate with a network storage device that performs a storage function of the memory 69 through a network connection. The controller 67 generally controls the overall operation of the terminal device. In addition, the controller 67 may include a multimedia module for reproducing or playing back multimedia data. The controller 67 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image. The power supply unit 61 receives external power or internal power and supplies appropriate power required to operate the respective elements and components under the control of the controller 67.
Various embodiments of the bullet screen display method presented in this disclosure may be implemented using a computer readable medium, such as computer software, hardware, or any combination thereof. For a hardware implementation, various embodiments of the bullet screen display method proposed by the present disclosure may be implemented by using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, and an electronic unit designed to perform the functions described herein, and in some cases, various embodiments of the bullet screen display method proposed by the present disclosure may be implemented in the controller 67. For software implementation, various embodiments of the bullet screen display method presented in the present disclosure may be implemented with a separate software module that allows at least one function or operation to be performed. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in memory 69 and executed by controller 67.
For the detailed description of the present embodiment, reference may be made to the corresponding descriptions in the foregoing embodiments, which are not repeated herein.
The bullet screen display terminal provided by the embodiment can well display the bullet screen, and the situations of incomplete bullet screen display, bullet screen collision, asynchrony between the bullet screen and a video and the like in the prior art are avoided; and moreover, the scheduling efficiency of the bullet screen data and the space utilization rate of the bullet screen track are improved.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
Also, as used herein, "or" as used in a list of items beginning with "at least one" indicates a separate list, such that, for example, a list of "A, B or at least one of C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the described example is preferred or better than other examples.
It is also noted that in the systems and methods of the present disclosure, components or steps may be decomposed and/or re-combined. These decompositions and/or recombinations are to be considered equivalents of the present disclosure.
Various changes, substitutions and alterations to the techniques herein may be made without departing from the techniques of the teachings as defined by the appended claims. Moreover, the scope of the claims of the present disclosure is not limited to the particular aspects of the process, machine, manufacture, composition of matter, means, methods and acts described above. Processes, machines, manufacture, compositions of matter, means, methods, or acts, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein may be utilized. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or acts.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (8)

1. A bullet screen display method is characterized by comprising the following steps:
reading bullet screen data to be displayed currently;
detecting whether a bullet screen track matched with the bullet screen data to be displayed currently exists or not, wherein a plurality of bullet screen tracks can be combined to match the font height of the bullet screen data to be displayed currently;
and if so, loading the bullet screen data to be displayed currently and displaying on the matched bullet screen track.
2. The method of claim 1, wherein the currently-to-be-displayed barrage data includes attribute information;
whether the step of detecting the bullet screen track matched with the bullet screen data to be displayed currently exists or not specifically comprises the following steps:
and determining whether a bullet screen track matched with the bullet screen data to be displayed currently exists or not according to the attribute information.
3. The method of claim 1, wherein after the step of detecting whether there is a bullet screen track matching the bullet screen data currently to be displayed, the method further comprises:
if not, refusing to load the currently-to-be-displayed bullet screen data;
and reading next bullet screen data to be displayed, and taking the next bullet screen data to be displayed as the current bullet screen data to be displayed.
4. The method of claim 1, wherein prior to the step of reading the bullet screen data currently to be displayed, the method further comprises:
when receiving a bullet screen request, checking whether bullet screen data exists;
if not, sending a bullet screen data request;
and receiving the bullet screen data when the response information of the bullet screen data request is received.
5. The method according to claim 2, wherein after the step of determining whether there is a bullet screen track matching the bullet screen data to be currently displayed according to the attribute information, the method further comprises:
according to the determination result, recording matching information between the bullet screen data to be displayed currently and the bullet screen track; wherein the matching information comprises track occupation information;
after the step of loading the currently-to-be-displayed bullet screen data and displaying on the matched bullet screen track, the method further comprises:
deleting the currently-to-be-displayed bullet screen data;
updating the track occupation information;
and determining whether to read the bullet screen data to be displayed according to the updating result.
6. A bullet screen display device, comprising:
the first reading module is used for reading the bullet screen data to be displayed currently;
the detection module is used for detecting whether a bullet screen track matched with the bullet screen data to be displayed currently exists or not, wherein a plurality of bullet screen tracks can be combined to match the font height of the bullet screen data to be displayed currently;
and the loading module is used for loading the bullet screen data to be displayed currently and displaying the bullet screen data on the matched bullet screen track when the bullet screen track matched with the bullet screen data to be displayed currently is detected.
7. A bullet screen display hardware device comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions, such that the processor when executing implements the bullet screen display method according to any one of claims 1-5.
8. A computer-readable storage medium storing non-transitory computer-readable instructions which, when executed by a computer, cause the computer to perform the bullet screen display method of any one of claims 1-5.
CN201810463040.8A 2018-05-15 2018-05-15 Barrage display method and device and computer readable storage medium Active CN108696766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810463040.8A CN108696766B (en) 2018-05-15 2018-05-15 Barrage display method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810463040.8A CN108696766B (en) 2018-05-15 2018-05-15 Barrage display method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108696766A CN108696766A (en) 2018-10-23
CN108696766B true CN108696766B (en) 2022-01-14

Family

ID=63847374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810463040.8A Active CN108696766B (en) 2018-05-15 2018-05-15 Barrage display method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108696766B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729414A (en) * 2019-01-18 2019-05-07 北京达佳互联信息技术有限公司 A kind of transmission, display methods, device, server and terminal for commenting on message
CN111031399B (en) * 2019-11-25 2020-10-02 上海哔哩哔哩科技有限公司 Bullet screen processing method and system
CN111031400B (en) * 2019-11-25 2021-04-27 上海哔哩哔哩科技有限公司 Barrage presenting method and system
CN111026558B (en) 2019-11-25 2020-11-17 上海哔哩哔哩科技有限公司 Bullet screen processing method and system based on WeChat applet
CN112565916B (en) * 2020-11-26 2022-09-23 厦门理工学院 Bullet screen display method, bullet screen display device, bullet screen display equipment and computer readable storage medium
CN113573134A (en) * 2021-07-07 2021-10-29 网易(杭州)网络有限公司 Bullet screen data processing method and device, storage medium and electronic equipment
CN114302212B (en) * 2021-12-30 2024-03-15 北京爱奇艺科技有限公司 Video bullet screen typesetting method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939493A (en) * 2016-03-30 2016-09-14 广州华多网络科技有限公司 Video barrage display method and video barrage display device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162298B (en) * 2015-03-27 2020-07-03 天脉聚源(北京)科技有限公司 Method and system for realizing bullet screen
CN105872709A (en) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 Display method and device of bullet screen information
CN106792086B (en) * 2016-12-12 2019-08-16 上海幻电信息科技有限公司 A kind of barrage composition method and composing system
CN107360459B (en) * 2017-07-07 2021-02-02 腾讯科技(深圳)有限公司 Bullet screen processing method and device and storage medium
CN107371056A (en) * 2017-07-18 2017-11-21 北京蜜莱坞网络科技有限公司 A kind of method and apparatus for loading barrage

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939493A (en) * 2016-03-30 2016-09-14 广州华多网络科技有限公司 Video barrage display method and video barrage display device

Also Published As

Publication number Publication date
CN108696766A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN108696766B (en) Barrage display method and device and computer readable storage medium
CN110908625B (en) Multi-screen display method, device, equipment, system, cabin and storage medium
CN108696767B (en) Barrage playing method and device, computer readable storage medium and terminal
US9684604B2 (en) Electronic device with cache memory and method of operating the same
US20140115506A1 (en) Systems And Methods For Measurement Of User Interface Actions
KR20150089074A (en) Using clamping to modify scrolling
CN106716332A (en) Gesture navigation for secondary user interface
WO2020088118A1 (en) Electronic apparatus and method employing mobile device and display device to display duplicate screens
US10204598B2 (en) Predictive pre-decoding of encoded media item
US20180196584A1 (en) Execution of multiple applications on a device
WO2022166551A1 (en) Interaction method and apparatus, electronic device and storage medium
CN113268212A (en) Screen projection method and device, storage medium and electronic equipment
US20150067398A1 (en) Method, apparatus, and recording medium for interworking with external terminal
CN114302208A (en) Video distribution method, video distribution device, electronic equipment, storage medium and program product
CN109462777B (en) Video heat updating method, device, terminal and storage medium
CN108769771B (en) Barrage display method and device and computer readable storage medium
US20230123119A1 (en) Terminal, control method therefor, and recording medium in which program for implementing method is recorded
US11023098B2 (en) Rendering on a mobile device
US20220121355A1 (en) Terminal, method for controlling same, and recording medium in which program for implementing the method is recorded
JP2022119921A (en) Moving image distribution method and distribution server
CN115269077A (en) Picture display method, module, mobile terminal and storage medium
KR102223554B1 (en) Terminal, method for contrlling thereof and recording medium on which a program for implemeting the method
CN110866203B (en) Page jump method, device, equipment and computer readable storage medium
CN110221892B (en) Method, device, medium and electronic equipment for scrolling window information
JP2013073441A (en) Display control method and display control program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder