Nothing Special   »   [go: up one dir, main page]

CN106454434B - Bullet screen playing method and device - Google Patents

Bullet screen playing method and device Download PDF

Info

Publication number
CN106454434B
CN106454434B CN201611035692.9A CN201611035692A CN106454434B CN 106454434 B CN106454434 B CN 106454434B CN 201611035692 A CN201611035692 A CN 201611035692A CN 106454434 B CN106454434 B CN 106454434B
Authority
CN
China
Prior art keywords
bullet screen
screen information
bullet
playing
moving speed
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
CN201611035692.9A
Other languages
Chinese (zh)
Other versions
CN106454434A (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.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201611035692.9A priority Critical patent/CN106454434B/en
Publication of CN106454434A publication Critical patent/CN106454434A/en
Application granted granted Critical
Publication of CN106454434B publication Critical patent/CN106454434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4314Generation 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 fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a bullet screen playing method and a bullet screen playing device, wherein the method comprises the following steps: the method comprises the steps of obtaining a first position corresponding to a first display frame where played first bullet screen information is located and a second position of a second display frame where played second bullet screen information is located, obtaining a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information when the fact that the distance between the first position and the second position is zero is detected, updating the first moving speed and/or the second moving speed, enabling the updated first moving speed to be larger than the earlier first moving speed and/or the updated second moving speed to be smaller than the earlier first moving speed, and playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed. The embodiment of the invention also discloses a corresponding bullet screen playing device. The embodiment of the invention is beneficial to avoiding the overlapped display of the bullet screen information and improving the watching effect of a user.

Description

Bullet screen playing method and device
Technical Field
The invention relates to the technical field of multimedia display, in particular to a bullet screen playing method and device.
Background
With the development and the rise of video websites, more and more people select to watch video programs such as movies and TV shows on a computer, and a video interaction mode of 'barrage' is produced. The bullet screen is a phenomenon that when a video is played, comments for the video are displayed on a video screen in a rolling manner. Specifically, when the client plays a video, the client sends a bullet screen information request to the server, the server acquires all bullet screen information published for the video according to the bullet screen information request, all the bullet screen information is sent to the client, the client displays bullet screen contents in all the bullet screen information in a rolling manner in a video playing interface,
however, when the amount of the bullet screens is large, the bullet screen contents in all the bullet screen information displayed by the client are overlapped, so that the user cannot see the bullet screen contents clearly, and the participation degree of the user in the live broadcast is greatly reduced.
Disclosure of Invention
The embodiment of the invention provides a bullet screen playing method and device, which are beneficial to avoiding overlapped display of bullet screen information and improving the watching effect of a user.
In a first aspect, an embodiment of the present invention provides a bullet screen playing method, including:
acquiring a first position corresponding to a first display frame where the played first bullet screen information is located and a second position of a second display frame where the played second bullet screen information is located, wherein the first bullet screen information and the second bullet screen information are bullet screen information of adjacent playing time on the same bullet track, the playing time of the first barrage information is earlier than that of the second barrage information, the first position and the second position are two abscissas with the shortest distance in a first abscissa set and a second abscissa set, and the abscissa sets to which the two abscissas belong are different, the first display frame corresponds to a first abscissa set of the current coordinate system, the second display frame corresponds to a second abscissa set of the current coordinate system, the track direction of the ejection track is the abscissa direction of the current coordinate system, and the starting position of the ejection track is the origin of the current coordinate system;
when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information;
updating the first movement speed and/or updating the second movement speed, wherein the updated first movement speed is greater than the more previous first movement speed and/or the updated second movement speed is less than the more previous first movement speed;
and playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed.
Optionally, before the obtaining of the first position corresponding to the first display frame where the played first bullet screen information is located and the second position of the second display frame where the played second bullet screen information is located, the method further includes:
receiving at least one piece of bullet screen information to be played, wherein the at least one piece of bullet screen information comprises the first bullet screen information and the second bullet screen information;
determining the bullet screen attribute of each bullet screen information, wherein the bullet screen attribute comprises a bullet track for moving the bullet screen information and the moving speed of the bullet screen information;
and playing each bullet screen information based on the bullet screen attribute of each bullet screen information.
Optionally, the determining the bullet screen attribute of each bullet screen information includes:
extracting at least one bullet screen content corresponding to the at least one bullet screen information;
determining the bullet screen word number corresponding to the at least one bullet screen content;
and determining the bullet track for bullet screen information movement, and determining the movement speed of each bullet screen information according to the determined bullet screen word number and the mapping relation between the prestored bullet screen word number and the movement speed of the bullet screen.
Optionally, the source client of the at least one bullet screen information includes: the local terminal and/or other client terminals except the local terminal; the receiving of at least one bullet screen information to be played includes:
when the source client of the bullet screen information is the home terminal, receiving the bullet screen information sent by the home terminal; and when the source client of the bullet screen information is other clients except the home terminal, receiving the bullet screen information sent by the server which establishes communication connection with the home terminal.
Optionally, the properties of the bullet screen further include a bullet screen information display color and a bullet screen information display texture;
the playing the information of each bullet screen comprises:
and playing each bullet screen information according to the determined bullet screen information display color and bullet screen information display texture.
Optionally, the barrage attribute further includes a barrage priority;
before the receiving at least one bullet screen information to be played, the method further includes:
determining the priority of the bullet screen information according to the bullet screen information priority determining factors, wherein the bullet screen information priority determining factors comprise: bullet screen content and/or bullet screen source;
the playing the information of each bullet screen comprises:
acquiring the bullet screen content of each bullet screen information, and identifying a source client of each bullet screen information;
determining the playing priority of each bullet screen information based on the source client and the bullet screen content of each bullet screen information and the mapping relation between the prestored bullet screen information priority determining factor and the playing priority of the bullet screen information;
and when detecting that the playing time corresponding to at least two bullet screen information to be played is the same, playing the at least two bullet screen information to be played according to the determined playing priority of the bullet screen information.
Optionally, before receiving at least one bullet screen information to be played, the method further includes:
setting the drawing speed of the bullet screen, the number n of bullet tracks, the height h of a display frame where bullet screen information is located and the spacing distance l between the bullet tracks and the front of the bullet tracks, wherein n x h + (n-1) x l is less than or equal to the height of a live broadcast display page of the client.
Optionally, before receiving at least one bullet screen information to be played, the method further includes:
determining a cache space of a bullet screen information buffer area of the client;
the receiving of at least one bullet screen information to be played includes:
and receiving at least one bullet screen information to be played according to the cache space of the bullet screen buffer area.
In a second aspect, an embodiment of the present invention provides a bullet screen playing device, where the device includes:
an obtaining unit, configured to obtain a first position corresponding to a first display frame where first bullet screen information is played and a second position of a second display frame where second bullet screen information is played, where the first bullet screen information and the second bullet screen information are bullet screen information of adjacent playing times on a same bullet track, the playing time of the first bullet screen information is earlier than the playing time of the second bullet screen information, the first position and the second position are two abscissas with the shortest distance in a first abscissa set and a second abscissa set, and abscissa sets to which the two abscissas belong are different, the first display frame corresponds to the first abscissa set of the current coordinate system, the second display frame corresponds to the second abscissa set of the current coordinate system, and a track direction of the bullet track is an abscissa direction of the current coordinate system, the starting position of the ejection track is the origin of the current coordinate system;
the acquiring unit is further configured to acquire a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information when it is detected that the distance between the first position and the second position is zero;
an updating unit, configured to update the first moving speed and/or update the second moving speed, where the updated first moving speed is greater than the earlier first moving speed and/or the updated second moving speed is less than the earlier first moving speed;
and the playing unit is used for playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed.
Optionally, the apparatus further comprises:
the receiving unit is used for receiving at least one piece of bullet screen information to be played before the acquiring unit acquires a first position corresponding to a first display frame where the played first bullet screen information is located and a second position of a second display frame where the played second bullet screen information is located, wherein the at least one piece of bullet screen information comprises the first bullet screen information and the second bullet screen information;
the determining unit is used for determining the bullet screen attributes of each bullet screen information, wherein the bullet screen attributes comprise a bullet track for moving the bullet screen information and the moving speed of the bullet screen information;
the playing unit is further configured to play each bullet screen information based on the bullet screen attribute of each bullet screen information.
Optionally, the determining unit is specifically configured to extract at least one bullet screen content corresponding to the at least one bullet screen information when the determining unit is configured to determine the bullet screen attribute of each bullet screen information; determining the bullet screen word number corresponding to the at least one bullet screen content; and determining the bullet track for bullet screen information movement, and determining the movement speed of each bullet screen information according to the determined bullet screen word number and the mapping relation between the prestored bullet screen word number and the movement speed of the bullet screen.
Optionally, the source client of the at least one bullet screen information includes: the local terminal and/or other client terminals except the local terminal; the receiving unit is specifically configured to receive the bullet screen information sent by the home terminal when the source client of the bullet screen information is the home terminal; and when the source client of the bullet screen information is other clients except the home terminal, receiving the bullet screen information sent by the server which establishes communication connection with the home terminal.
Optionally, the properties of the bullet screen further include a bullet screen information display color and a bullet screen information display texture;
and the playing unit is specifically configured to play each bullet screen information according to the determined bullet screen information display color and bullet screen information display texture when being used for playing each bullet screen information.
Optionally, the barrage attribute further includes a barrage priority;
the determining unit is further configured to determine the priority of the bullet screen information according to a bullet screen information priority determining factor before the receiving unit receives at least one bullet screen information to be played, where the bullet screen information priority determining factor includes: bullet screen content and/or bullet screen source;
the playing unit is specifically configured to obtain the bullet screen content of each bullet screen information and identify the source client of each bullet screen information when the playing unit is used for playing each bullet screen information; determining the playing priority of each bullet screen information based on the source client and the bullet screen content of each bullet screen information and the mapping relation between the prestored bullet screen information priority determining factor and the playing priority of the bullet screen information; and when detecting that the playing time corresponding to at least two bullet screen information to be played is the same, playing the at least two bullet screen information to be played according to the determined playing priority of the bullet screen information.
Optionally, the apparatus further comprises:
the first initialization unit is used for setting the drawing speed of the bullet screen, the number n of bullet tracks, the height h of a display frame where the bullet screen information is located and the spacing distance l between the bullet tracks and the positions in front of the bullet tracks before the receiving unit receives at least one piece of bullet screen information to be played, wherein n + h + (n-1) l is less than or equal to the height of a live broadcast display page of the client.
Optionally, the apparatus further comprises:
the second initialization unit is used for determining the cache space of the bullet screen information buffer area of the client before the receiving unit receives at least one bullet screen information to be played;
the receiving unit is specifically configured to receive at least one bullet screen information to be played according to the buffer space of the bullet screen buffer area.
In a third aspect, an embodiment of the present invention provides a bullet screen playing device, including:
the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are connected through the communication bus and complete mutual communication;
the memory stores executable program code, the communication interface is for wireless communication;
the processor is configured to call the executable program code in the memory to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present invention.
It can be seen that, in the bullet screen playing method provided in the embodiment of the present invention, a first position corresponding to a first display frame where the played first bullet screen information is located and a second position corresponding to a second display frame where the played second bullet screen information is located are obtained, when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information, updating the first moving speed and/or updating the second moving speed, wherein the updated first moving speed is greater than the more previous first moving speed and/or the updated second moving speed is less than the more previous first moving speed, and playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed. Therefore, the mobile terminal can update the moving speed of the bullet screen information in real time to avoid collision of the bullet screen information, and the phenomenon that the watching effect of a user is reduced due to mutual shielding of the bullet screen information is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a network architecture according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a bullet screen playing method disclosed in the embodiment of the present invention;
FIG. 2-1 is a schematic diagram illustrating the effect of the bullet screen information playing interface;
fig. 3 is a schematic flow chart of another bullet screen playing method disclosed in the embodiment of the present invention;
fig. 4 is a block diagram of the components of a bullet screen playing device according to an embodiment of the present invention;
fig. 5 is a block diagram of the components of a bullet screen playing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a bullet screen playing device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the invention discloses a bullet screen playing method and device, which are beneficial to avoiding overlapped display of bullet screen information and improving the watching effect of a user. The following are detailed below.
In order to better understand the bullet screen playing method, device and mobile terminal disclosed in the embodiments of the present invention, a network architecture suitable for the embodiments of the present invention is described below. Referring to fig. 1, fig. 1 is a schematic structural diagram of a network architecture according to an embodiment of the present invention. As shown in fig. 1, the network architecture diagram may include a service device and a mobile terminal, where the service device may include a server, a service host, a service system, a service platform, and the like, and the mobile terminal may include a barrage playing device, and the barrage playing device is a client that integrates functions of group chat, live video broadcast, channel karaoke, online game, online movie, and the like. In the network architecture shown in fig. 1, the mobile terminal may include, but is not limited to, a mobile phone, a mobile computer, a tablet computer, a Personal Digital Assistant (PDA), a media player, a smart television, a smart watch, smart glasses, a smart band, and other user equipment. The service equipment can be in communication connection with the mobile terminal through the Internet.
Based on the network architecture shown in fig. 1, the embodiment of the invention discloses a bullet screen playing method. Referring to fig. 2, fig. 2 is a schematic flow chart of a bullet screen playing method according to an embodiment of the present invention. As shown in fig. 2, the bullet screen playing method may include the following steps.
S201, acquiring a first position corresponding to a first display frame where the played first bullet screen information is located and a second position of a second display frame where the played second bullet screen information is located.
Wherein, as shown in fig. 2-1, fig. 2-1 is a schematic diagram of the effect of the bullet screen information playing interface, the first bullet screen information 1 and the second bullet screen information 2 are bullet screen information of adjacent playing time on the same bullet track, the playing time of the first barrage information is earlier than that of the second barrage information, the first position and the second position are two abscissas with the shortest distance in a first abscissa set and a second abscissa set, and the abscissa sets to which the two abscissas belong are different, the first display frame corresponds to a first abscissa set of the current coordinate system, the second display frame corresponds to a second abscissa set of the current coordinate system, the track direction of the ejection track is the abscissa direction of the current coordinate system, and the starting position of the ejection track is the origin of the current coordinate system.
Specifically, each bullet screen information in the embodiment of the present invention may be abstracted into one component, and the component is low-coupled, that is, the components are independent from each other, and can independently perform their functions. Each component can correspond to the source identification of the bullet screen information, the bullet screen content, the bullet screen information display color, the bullet screen information display texture and the like. Meanwhile, the bullet screen information component relates to two main processes, one is a process of acquiring bullet screen contents of bullet screen information and sorting the bullet screen contents, namely a process of processing data; one is a process of drawing the bullet screen content to the display screen, namely a process of processing a User Interface (UI), and in the code logic constructed by bullet screen information, the process of processing data and the process of processing the UI are two mutually independent processes.
Before the first position corresponding to the first display frame where the played first bullet screen information is located and the second position of the second display frame where the played second bullet screen information is located are obtained, the bullet screen playing device may further perform the following operations:
receiving at least one piece of bullet screen information to be played, wherein the at least one piece of bullet screen information comprises the first bullet screen information and the second bullet screen information;
determining the bullet screen attribute of each bullet screen information, wherein the bullet screen attribute comprises a bullet track for moving the bullet screen information and the moving speed of the bullet screen information;
and playing each bullet screen information based on the bullet screen attribute of each bullet screen information.
Optionally, the specific implementation manner of determining the bullet screen attribute of each bullet screen information may be:
extracting at least one bullet screen content corresponding to the at least one bullet screen information;
determining the bullet screen word number corresponding to the at least one bullet screen content;
and determining the bullet track for bullet screen information movement, and determining the movement speed of each bullet screen information according to the determined bullet screen word number and the mapping relation between the prestored bullet screen word number and the movement speed of the bullet screen.
S202, when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information.
S203, updating the first moving speed and/or updating the second moving speed, wherein the updated first moving speed is greater than the former first moving speed and/or the updated second moving speed is less than the former first moving speed.
S204, playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed.
It can be seen that, in the bullet screen playing method provided in the embodiment of the present invention, a first position corresponding to a first display frame where the played first bullet screen information is located and a second position corresponding to a second display frame where the played second bullet screen information is located are obtained, when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information, updating the first moving speed and/or updating the second moving speed, wherein the updated first moving speed is greater than the more previous first moving speed and/or the updated second moving speed is less than the more previous first moving speed, and playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed. Therefore, the mobile terminal can update the moving speed of the bullet screen information in real time to avoid collision of the bullet screen information, and the phenomenon that the watching effect of a user is reduced due to mutual shielding of the bullet screen information is avoided.
Optionally, the source client of the at least one bullet screen information includes: the local terminal and/or other client terminals except the local terminal; the specific implementation manner of receiving at least one bullet screen information to be played may be:
when the source client of the bullet screen information is the home terminal, receiving the bullet screen information sent by the home terminal; and when the source client of the bullet screen information is other clients except the home terminal, receiving the bullet screen information sent by the server which establishes communication connection with the home terminal.
Optionally, the properties of the bullet screen further include a bullet screen information display color and a bullet screen information display texture;
the specific implementation manner of playing the information of each bullet screen may be:
and playing each bullet screen information according to the determined bullet screen information display color and bullet screen information display texture.
Optionally, the barrage attribute further includes a barrage priority;
before receiving at least one bullet screen information to be played, the bullet screen playing device may further perform the following operations:
determining the priority of the bullet screen information according to the bullet screen information priority determining factors, wherein the bullet screen information priority determining factors comprise: bullet screen content and/or bullet screen source;
the playing the information of each bullet screen comprises:
acquiring the bullet screen content of each bullet screen information, and identifying a source client of each bullet screen information;
determining the playing priority of each bullet screen information based on the source client and the bullet screen content of each bullet screen information and the mapping relation between the prestored bullet screen information priority determining factor and the playing priority of the bullet screen information;
and when detecting that the playing time corresponding to at least two bullet screen information to be played is the same, playing the at least two bullet screen information to be played according to the determined playing priority of the bullet screen information.
Optionally, before receiving at least one bullet screen information to be played, the bullet screen playing device may further perform the following operations:
setting the drawing speed of the bullet screen, the number n of bullet tracks, the height h of a display frame where bullet screen information is located and the spacing distance l between the bullet tracks and the front of the bullet tracks, wherein n x h + (n-1) x l is less than or equal to the height of a live broadcast display page of the client.
Optionally, before receiving at least one bullet screen information to be played, the bullet screen playing device may further perform the following operations:
determining a cache space of a bullet screen information buffer area of the client;
the receiving of at least one bullet screen information to be played includes:
and receiving at least one bullet screen information to be played according to the cache space of the bullet screen buffer area.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another bullet screen playing method according to an embodiment of the present invention, consistent with the embodiment shown in fig. 2. As shown in fig. 3, the bullet screen playing method includes the following steps:
s301, determining the priority of the bullet screen information according to the bullet screen information priority determining factors, wherein the bullet screen information priority determining factors comprise: bullet screen content and/or bullet screen source.
S302, setting the drawing speed of the bullet screen, the number n of bullet tracks, the height h of a display frame where bullet screen information is located and the spacing distance l between the bullet tracks and the front of the bullet tracks, wherein n x h + (n-1) x l is less than or equal to the height of a live broadcast display page of the client.
S303, determining the cache space of the bullet screen information buffer area of the client.
That is, the processes of steps S301 to S303 are processes of initializing the bullet screen playback apparatus. And determining the priority of the bullet screen information according to the bullet screen content and/or the bullet screen source. For example, the priority of the bullet screen information sent by the home terminal may be set to be higher than the priority of bullet screen information sent by other clients except the home terminal; when the client identification corresponding to the source client of the bullet screen information is the member client identification, the corresponding priority is higher; when the bullet screen content corresponding to the bullet screen information is the gift, the priority of the corresponding bullet screen information is higher. The bullet screen information with higher priority can be preferentially put into the queue to realize preferential playing.
Wherein, the drawing speed of the bullet screen is the number of frames drawn in unit time. In the prior art, the drawing speed of the bullet screen is 34 milliseconds to draw one frame, and the drawing of the bullet screen information is processed through a drawing thread.
Theoretically, the more the bullet tracks, the more evenly the same number of bullet curtains can be distributed to each bullet track, so that the probability of collision of the bullet curtains in the same time is smaller. However, the size of the live broadcast display page of the client is limited, and if the number of the pop-up tracks is too large, the display of other contents in the live broadcast display page is affected, and taking the mobile YY client as an example, the mobile YY client sets 3 pop-up tracks.
The client can also set up the buffer memory space of barrage information buffer to the cell-phone YY client is for example, when the volume of drawing the barrage is too much, can lead to the live broadcast room card to pause, performance consumption problems such as power consumptive, need control the buffering quantity of barrage information this time, when the quantity of the barrage information of receiving surpassed the buffer memory space of barrage information buffer, directly abandoned. Or discarding according to the priority of the bullet screen information.
S304, receiving at least one bullet screen information to be played according to the buffer space of the bullet screen buffer area, wherein the at least one bullet screen information comprises first bullet screen information and second bullet screen information.
Wherein, the source client of the at least one bullet screen information comprises: the local terminal and/or other client terminals except the local terminal; the receiving of at least one bullet screen information to be played includes:
when the source client of the bullet screen information is the home terminal, receiving the bullet screen information sent by the home terminal; and when the source client of the bullet screen information is other clients except the home terminal, receiving the bullet screen information sent by the server which establishes communication connection with the home terminal.
Specifically, the client may receive the bullet screen information sent from different paths, including the bullet screen information sent by the user's own client and sent by an external client other than the user's own client.
S305, extracting at least one bullet screen content corresponding to the at least one bullet screen information, and determining the bullet screen word number corresponding to the at least one bullet screen content.
S306, determining the bullet track for movement of the bullet screen information, and determining the movement speed of each bullet screen information according to the determined bullet screen word number and the mapping relation between the pre-stored bullet screen word number and the movement speed of the bullet screen.
The specific implementation manner of determining the bullet track for bullet screen information movement may be: determining a bullet track for movement of the bullet screen information according to the bullet screen content corresponding to the bullet screen information or the source client, for example, if the bullet screen content corresponding to the bullet screen information is about delivering a gift to a live broadcast person, the bullet screen information can be specified to move to the first bullet track; if the bullet screen content corresponding to the bullet screen information is commented on the live broadcast or video content by the watching user, the bullet screen information can be appointed to move to the second bullet track; if the source client of the bullet screen information is a client corresponding to at least one user concerned by the local user, the bullet screen information may be specified to move on a third bullet track, and so on.
And determining the bullet tracks for bullet screen information movement to determine the Y-axis coordinates of the bullet screen information, so that the bullet screen information on different bullet tracks cannot generate Y-axis drawing overlapping.
S307, determining the display color and the display texture of the bullet screen information to play each bullet screen information.
And S308, playing each bullet screen information according to the determined bullet screen information display color and bullet screen information display texture based on the bullet track and the moving speed of each bullet screen information movement.
Before the bullet screen playing device plays the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed, the bullet screen playing device can also obtain bullet screen contents of each bullet screen information and identify a source client of each bullet screen information; determining the playing priority of each bullet screen information based on the source client and the bullet screen content of each bullet screen information and the mapping relation between the prestored bullet screen information priority determining factor and the playing priority of the bullet screen information; and when detecting that the playing time corresponding to at least two bullet screen information to be played is the same, playing the at least two bullet screen information to be played according to the determined playing priority of the bullet screen information.
S309, acquiring a first position corresponding to a first display frame where first bullet screen information is played and a second position corresponding to a second display frame where second bullet screen information is played, wherein the first bullet screen information and the second bullet screen information are bullet screen information of adjacent playing time on the same bullet track, the playing time of the first bullet screen information is earlier than the playing time of the second bullet screen information, the first position and the second position are two abscissas with the shortest distance in a first abscissa set and a second abscissa set, the abscissa sets to which the two abscissas belong are different, the first display frame corresponds to the first abscissa set of the current coordinate system, the second display frame corresponds to the second abscissa set of the current coordinate system, and the track direction of the bullet track is the abscissa direction of the current coordinate system, and the starting position of the ejection track is the origin of the current coordinate system.
S310, when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information.
S311, updating the first moving speed and/or updating the second moving speed, where the updated first moving speed is greater than the earlier first moving speed and/or the updated second moving speed is less than the earlier first moving speed.
Specifically, the first moving speed may be updated, the updated first moving speed being greater than the earlier first moving speed; or updating the second moving speed, wherein the updated second moving speed is smaller than the earlier first moving speed; or updating the first moving speed and updating the second moving speed, wherein the updated first moving speed is greater than the more previous first moving speed, and the updated second moving speed is less than the more previous first moving speed.
S312, playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed.
When the fact that the first position of the first bullet screen information exceeds the live broadcast display page of the client is detected, the drawing queue of the first bullet screen information is removed, content data of the bullet screen information is cleared, memory occupation of the bullet screen information in the system is cleared, and the memory in the system is prevented from being occupied by played bullet screen information all the time.
It can be seen that, in the bullet screen playing method provided in the embodiment of the present invention, a first position corresponding to a first display frame where the played first bullet screen information is located and a second position corresponding to a second display frame where the played second bullet screen information is located are obtained, when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information, updating the first moving speed and/or updating the second moving speed, wherein the updated first moving speed is greater than the more previous first moving speed and/or the updated second moving speed is less than the more previous first moving speed, and playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed. Therefore, the mobile terminal can update the moving speed of the bullet screen information in real time to avoid collision of the bullet screen information, and the phenomenon that the watching effect of a user is reduced due to mutual shielding of the bullet screen information is avoided.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. As shown in fig. 4, the bullet screen playing apparatus may include an acquisition unit 401, an updating unit 402, and a playing unit 403, where:
the obtaining unit 401 is configured to obtain a first position corresponding to a first display frame where first bullet screen information is played and a second position of a second display frame where second bullet screen information is played, where the first bullet screen information and the second bullet screen information are bullet screen information located at adjacent playing times on a same bullet track, the playing time of the first bullet screen information is earlier than the playing time of the second bullet screen information, the first position and the second position are two abscissas with the shortest distance in a first abscissa set and a second abscissa set, and abscissa sets to which the two abscissas belong are different, the first display frame corresponds to the first abscissa set of the current coordinate system, the second display frame corresponds to the second abscissa set of the current coordinate system, and a track direction of the bullet track is an abscissa direction of the current coordinate system, the starting position of the ejection track is the origin of the current coordinate system;
the obtaining unit 401 is further configured to obtain a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information when it is detected that the distance between the first position and the second position is zero;
the updating unit 402 is configured to update the first moving speed and/or update the second moving speed, where the updated first moving speed is greater than the earlier first moving speed and/or the updated second moving speed is less than the earlier first moving speed;
the playing unit 403 is configured to play the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed.
It can be seen that, in the bullet screen playing method provided in the embodiment of the present invention, a first position corresponding to a first display frame where the played first bullet screen information is located and a second position corresponding to a second display frame where the played second bullet screen information is located are obtained, when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information, updating the first moving speed and/or updating the second moving speed, wherein the updated first moving speed is greater than the more previous first moving speed and/or the updated second moving speed is less than the more previous first moving speed, and playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed. Therefore, the mobile terminal can update the moving speed of the bullet screen information in real time to avoid collision of the bullet screen information, and the phenomenon that the watching effect of a user is reduced due to mutual shielding of the bullet screen information is avoided.
Referring to fig. 5, fig. 5 is a block diagram of a unit composition of another bullet screen playing device according to an embodiment of the present invention, and as shown in fig. 5, the bullet screen playing device may include an obtaining unit 401, an updating unit 402, and a playing unit 403 in the embodiment corresponding to fig. 4.
Optionally, the apparatus further comprises:
a receiving unit 404, configured to receive at least one bullet screen information to be played before a first position corresponding to a first display frame where first bullet screen information to be played is acquired by the acquiring unit 401 and a second position corresponding to a second display frame where second bullet screen information to be played is acquired, where the at least one bullet screen information includes the first bullet screen information and the second bullet screen information;
a determining unit 405, configured to determine a bullet screen attribute of each bullet screen information, where the bullet screen attribute includes a bullet track where the bullet screen information moves and a moving speed of the bullet screen information;
the playing unit 403 is further configured to play each bullet screen information based on the bullet screen attribute of each bullet screen information.
Optionally, the determining unit 405 is specifically configured to extract at least one bullet screen content corresponding to the at least one bullet screen information when the determining unit is configured to determine the bullet screen attribute of each bullet screen information; determining the bullet screen word number corresponding to the at least one bullet screen content; and determining the bullet track for bullet screen information movement, and determining the movement speed of each bullet screen information according to the determined bullet screen word number and the mapping relation between the prestored bullet screen word number and the movement speed of the bullet screen.
Optionally, the source client of the at least one bullet screen information includes: the local terminal and/or other client terminals except the local terminal; the receiving unit 404 is specifically configured to receive the bullet screen information sent by the home terminal when the source client of the bullet screen information is the home terminal; and when the source client of the bullet screen information is other clients except the home terminal, receiving the bullet screen information sent by the server which establishes communication connection with the home terminal.
Optionally, the properties of the bullet screen further include a bullet screen information display color and a bullet screen information display texture;
the playing unit 403, when configured to play the respective bullet screen information, is specifically configured to play the respective bullet screen information according to the determined bullet screen information display color and bullet screen information display texture.
Optionally, the barrage attribute further includes a barrage priority;
the determining unit 405, before the receiving unit 404 receives at least one bullet screen information to be played, is further configured to determine a priority of the bullet screen information according to a bullet screen information priority determining factor, where the bullet screen information priority determining factor includes: bullet screen content and/or bullet screen source;
the playing unit 403, when configured to play each bullet screen information, is specifically configured to obtain bullet screen content of each bullet screen information, and identify a source client of each bullet screen information; determining the playing priority of each bullet screen information based on the source client and the bullet screen content of each bullet screen information and the mapping relation between the prestored bullet screen information priority determining factor and the playing priority of the bullet screen information; and when detecting that the playing time corresponding to at least two bullet screen information to be played is the same, playing the at least two bullet screen information to be played according to the determined playing priority of the bullet screen information.
Optionally, the apparatus further comprises:
the first initialization unit 406 is configured to set a drawing speed of the bullet screen, a number n of bullet tracks, a height h of a display frame where the bullet screen information is located, and a distance l between the bullet tracks and the front of the bullet tracks before the receiving unit 404 receives at least one piece of bullet screen information to be played, where n + h + (n-1) l is less than or equal to a height of a live broadcast display page of the client.
Optionally, the apparatus further comprises:
a second initialization unit 407, configured to determine a buffer space of a bullet screen information buffer of the client before the receiving unit 404 receives at least one bullet screen information to be played;
the receiving unit 404 is specifically configured to receive at least one bullet screen information to be played according to the buffer space of the bullet screen buffer.
It should be noted that the mobile terminal described in the embodiment of the apparatus of the present invention is in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
For example, the function of the instruction obtaining unit 401 obtaining the first position corresponding to the first display frame where the played first bullet screen information is located and the second position corresponding to the second display frame where the played second bullet screen information is located may be implemented by the bullet screen playing apparatus shown in fig. 6, and specifically, the processor 101 may obtain the first position corresponding to the first display frame where the played first bullet screen information is located and the second position corresponding to the second display frame where the played second bullet screen information is located by calling the executable program code in the memory 102.
It can be seen that, in the bullet screen playing method provided in the embodiment of the present invention, a first position corresponding to a first display frame where the played first bullet screen information is located and a second position corresponding to a second display frame where the played second bullet screen information is located are obtained, when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information, updating the first moving speed and/or updating the second moving speed, wherein the updated first moving speed is greater than the more previous first moving speed and/or the updated second moving speed is less than the more previous first moving speed, and playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed. Therefore, the mobile terminal can update the moving speed of the bullet screen information in real time to avoid collision of the bullet screen information, and the phenomenon that the watching effect of a user is reduced due to mutual shielding of the bullet screen information is avoided.
An embodiment of the present invention further provides another bullet screen playing device, as shown in fig. 6, including: a processor 101, a memory 102, a communication interface 103 and a communication bus 104; the processor 101, the memory 102 and the communication interface 103 are connected through a communication bus 104 and complete mutual communication; processor 101 controls wireless communications with an external cellular network through communication interface 103; the communication interface 103 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, an LNA (Low noise amplifier), a duplexer, and the like. The memory 102 includes at least one of: the random access memory, the nonvolatile memory and the external memory, the memory 102 stores executable program codes, and the executable program codes can guide the processor 101 to execute the bullet screen playing method specifically disclosed in the method embodiment of the present invention, and the method comprises the following steps:
the processor 101 obtains a first position corresponding to a first display frame where first bullet screen information to be played is located and a second position of a second display frame where second bullet screen information to be played is located, where the first bullet screen information and the second bullet screen information are bullet screen information of adjacent playing time on a same bullet track, the playing time of the first bullet screen information is earlier than the playing time of the second bullet screen information, the first position and the second position are two abscissas with the shortest distance in a first abscissa set and a second abscissa set, and the abscissa sets to which the two abscissas belong are different, the first display frame corresponds to the first abscissa set of the current coordinate system, the second display frame corresponds to the second abscissa set of the current coordinate system, and the track direction of the bullet track is the abscissa direction of the current coordinate system, the starting position of the ejection track is the origin of the current coordinate system;
when detecting that the distance between the first position and the second position is zero, the processor 101 acquires a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information;
the processor 101 updates the first moving speed and/or updates the second moving speed, wherein the updated first moving speed is greater than the earlier first moving speed and/or the updated second moving speed is less than the earlier first moving speed;
and the processor 101 plays the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed.
Optionally, the processor 101 may be further configured to receive at least one bullet screen information to be played before the processor is configured to obtain a first position corresponding to a first display frame where a played first bullet screen information is located and a second position of a second display frame where a played second bullet screen information is located, where the at least one bullet screen information includes the first bullet screen information and the second bullet screen information; determining the bullet screen attribute of each bullet screen information, wherein the bullet screen attribute comprises a bullet track for moving the bullet screen information and the moving speed of the bullet screen information; and playing each bullet screen information based on the bullet screen attribute of each bullet screen information.
Optionally, when the processor 101 is configured to determine the bullet screen attribute of each bullet screen information, the processor is specifically configured to extract at least one bullet screen content corresponding to the at least one bullet screen information; determining the bullet screen word number corresponding to the at least one bullet screen content; and determining the bullet track for bullet screen information movement, and determining the movement speed of each bullet screen information according to the determined bullet screen word number and the mapping relation between the prestored bullet screen word number and the movement speed of the bullet screen.
Optionally, the source client of the at least one bullet screen information includes: the local terminal and/or other client terminals except the local terminal; the processor 101 is configured to receive at least one piece of bullet screen information to be played, and specifically, receive bullet screen information sent by a home terminal when a source client of the bullet screen information is the home terminal; and when the source client of the bullet screen information is other clients except the home terminal, receiving the bullet screen information sent by the server which establishes communication connection with the home terminal.
Optionally, the properties of the bullet screen further include a bullet screen information display color and a bullet screen information display texture;
when the processor 101 is configured to play the respective bullet screen information, it is specifically configured to:
and playing each bullet screen information according to the determined bullet screen information display color and bullet screen information display texture.
Optionally, the barrage attribute further includes a barrage priority;
before the processor 101 is configured to receive at least one bullet screen information to be played, the following operations may be further performed:
determining the priority of the bullet screen information according to the bullet screen information priority determining factors, wherein the bullet screen information priority determining factors comprise: bullet screen content and/or bullet screen source;
the playing the information of each bullet screen comprises:
acquiring the bullet screen content of each bullet screen information, and identifying a source client of each bullet screen information;
determining the playing priority of each bullet screen information based on the source client and the bullet screen content of each bullet screen information and the mapping relation between the prestored bullet screen information priority determining factor and the playing priority of the bullet screen information;
and when detecting that the playing time corresponding to at least two bullet screen information to be played is the same, playing the at least two bullet screen information to be played according to the determined playing priority of the bullet screen information.
Optionally, before the processor 101 is configured to receive at least one bullet screen information to be played, the following operations may be further performed:
setting the drawing speed of the bullet screen, the number n of bullet tracks, the height h of a display frame where bullet screen information is located and the spacing distance l between the bullet tracks and the front of the bullet tracks, wherein n x h + (n-1) x l is less than or equal to the height of a live broadcast display page of the client.
Optionally, before the processor 101 receives at least one bullet screen information to be played, the following operations may also be performed:
determining a cache space of a bullet screen information buffer area of the client;
the receiving of at least one bullet screen information to be played includes:
and receiving at least one bullet screen information to be played according to the cache space of the bullet screen buffer area.
It can be seen that, in the bullet screen playing method provided in the embodiment of the present invention, a first position corresponding to a first display frame where the played first bullet screen information is located and a second position corresponding to a second display frame where the played second bullet screen information is located are obtained, when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information, updating the first moving speed and/or updating the second moving speed, wherein the updated first moving speed is greater than the more previous first moving speed and/or the updated second moving speed is less than the more previous first moving speed, and playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed. Therefore, the mobile terminal can update the moving speed of the bullet screen information in real time to avoid collision of the bullet screen information, and the phenomenon that the watching effect of a user is reduced due to mutual shielding of the bullet screen information is avoided.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the bullet screen playing methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A bullet screen playing method is characterized by comprising the following steps:
acquiring a first position corresponding to a first display frame where the played first bullet screen information is located and a second position of a second display frame where the played second bullet screen information is located, wherein the first bullet screen information and the second bullet screen information are bullet screen information of adjacent playing time on the same bullet track, the playing time of the first barrage information is earlier than that of the second barrage information, the first position and the second position are two abscissas with the shortest distance in a first abscissa set and a second abscissa set, and the abscissa sets of the two abscissas are different, the first display frame corresponds to a first abscissa set of the current coordinate system, the second display frame corresponds to a second abscissa set of the current coordinate system, the track direction of the ejection track is the abscissa direction of the current coordinate system, and the starting position of the ejection track is the origin of the current coordinate system;
when the distance between the first position and the second position is detected to be zero, acquiring a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information;
updating the first movement speed and/or updating the second movement speed, wherein the updated first movement speed is greater than the more previous first movement speed and/or the updated second movement speed is less than the more previous first movement speed;
playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed;
before the obtaining of the first position corresponding to the first display frame where the played first bullet screen information is located and the second position of the second display frame where the played second bullet screen information is located, the method further includes:
receiving at least one piece of bullet screen information to be played according to the cache space of a bullet screen buffer area, wherein the at least one piece of bullet screen information comprises the first bullet screen information and the second bullet screen information, when the quantity of the received bullet screen information exceeds the cache space of the bullet screen information buffer area, the bullet screen information is abandoned according to the priority of the bullet screen information, and the priority of the bullet screen information is determined according to the source of the bullet screen;
determining the bullet screen attribute of each bullet screen information, wherein the bullet screen attribute comprises a bullet track for moving the bullet screen information and the moving speed of the bullet screen information;
playing each bullet screen information based on the bullet screen attribute of each bullet screen information;
before receiving at least one bullet screen information to be played according to the buffer space of the bullet screen buffer area, the method further includes: setting the drawing speed of the bullet screen, the number n of bullet tracks, the height h of a display frame where bullet screen information is located and the spacing distance l between the bullet tracks and the front of the bullet tracks, wherein n x h + (n-1) x l is less than or equal to the height of a live broadcast display page of the client.
2. The method of claim 1, wherein the determining the bullet screen attributes of each bullet screen message comprises:
extracting at least one bullet screen content corresponding to the at least one bullet screen information;
determining the bullet screen word number corresponding to the at least one bullet screen content;
and determining the bullet track for bullet screen information movement, and determining the movement speed of each bullet screen information according to the determined bullet screen word number and the mapping relation between the prestored bullet screen word number and the movement speed of the bullet screen.
3. The method of claim 1,
the source client of the at least one bullet screen information comprises: the local terminal and/or other client terminals except the local terminal; the receiving of at least one bullet screen information to be played includes:
when the source client of the bullet screen information is the home terminal, receiving the bullet screen information sent by the home terminal; and when the source client of the bullet screen information is other clients except the home terminal, receiving the bullet screen information sent by the server which establishes communication connection with the home terminal.
4. The method of claim 1, wherein the bullet screen attributes further include a bullet screen priority;
before the receiving at least one bullet screen information to be played, the method further includes:
determining the priority of the bullet screen information according to the bullet screen information priority determining factors, wherein the bullet screen information priority determining factors comprise: bullet screen content and/or bullet screen source;
the playing the information of each bullet screen comprises:
acquiring the bullet screen content of each bullet screen information, and identifying a source client of each bullet screen information;
determining the playing priority of each bullet screen information based on the source client and the bullet screen content of each bullet screen information and the mapping relation between the prestored bullet screen information priority determining factor and the playing priority of the bullet screen information;
and when detecting that the playing time corresponding to at least two bullet screen information to be played is the same, playing the at least two bullet screen information to be played according to the determined playing priority of the bullet screen information.
5. A bullet screen playing device, characterized in that the device comprises:
an obtaining unit, configured to obtain a first position corresponding to a first display frame where first bullet screen information is played and a second position of a second display frame where second bullet screen information is played, where the first bullet screen information and the second bullet screen information are bullet screen information of adjacent playing time on a same bullet track, the playing time of the first bullet screen information is earlier than the playing time of the second bullet screen information, the first position and the second position are two abscissas with the shortest distance in a first abscissa set and a second abscissa set, and abscissa sets to which the two abscissas belong are different, the first display frame corresponds to a first abscissa set of a current coordinate system, the second display frame corresponds to a second abscissa set of the current coordinate system, and a track direction of the bullet track is an abscissa direction of the current coordinate system, the starting position of the ejection track is the origin of the current coordinate system;
the acquiring unit is further configured to acquire a first moving speed of the first bullet screen information and a second moving speed of the second bullet screen information when it is detected that the distance between the first position and the second position is zero;
an updating unit, configured to update the first moving speed and/or update the second moving speed, where the updated first moving speed is greater than the earlier first moving speed and/or the updated second moving speed is less than the earlier first moving speed;
the playing unit is used for playing the first bullet screen information and the second bullet screen information according to the updated first moving speed and/or the updated second moving speed;
the device further comprises: the receiving unit is used for receiving at least one piece of bullet screen information to be played according to the cache space of a bullet screen buffer area before the acquiring unit acquires the first position corresponding to the first display frame where the played first bullet screen information is located and the second position of the second display frame where the played second bullet screen information is located, wherein the at least one piece of bullet screen information comprises the first bullet screen information and the second bullet screen information, when the number of the received bullet screen information exceeds the cache space of the bullet screen information buffer area, the bullet screen information is discarded according to the priority of the bullet screen information, and the priority of the bullet screen information is determined according to the bullet screen source;
the determining unit is used for determining the bullet screen attributes of each bullet screen information, wherein the bullet screen attributes comprise a bullet track for moving the bullet screen information and the moving speed of the bullet screen information;
the playing unit is further configured to play each bullet screen information based on the bullet screen attribute of each bullet screen information;
the device further comprises: the first initialization unit is used for setting the drawing speed of the bullet screen, the number n of bullet tracks, the height h of a display frame where the bullet screen information is located and the spacing distance l between the bullet tracks and the positions in front of the bullet tracks before the receiving unit receives at least one piece of bullet screen information to be played, wherein n + h + (n-1) l is less than or equal to the height of a live broadcast display page of the client.
6. The apparatus of claim 5,
the determining unit is specifically configured to extract at least one bullet screen content corresponding to the at least one bullet screen information when the determining unit is configured to determine the bullet screen attribute of each bullet screen information; determining the bullet screen word number corresponding to the at least one bullet screen content; and determining the bullet track for bullet screen information movement, and determining the movement speed of each bullet screen information according to the determined bullet screen word number and the mapping relation between the prestored bullet screen word number and the movement speed of the bullet screen.
7. The apparatus of claim 5,
the source client of the at least one bullet screen information comprises: the local terminal and/or other client terminals except the local terminal; the receiving unit is specifically configured to receive the bullet screen information sent by the home terminal when the source client of the bullet screen information is the home terminal; and when the source client of the bullet screen information is other clients except the home terminal, receiving the bullet screen information sent by the server which establishes communication connection with the home terminal.
8. The apparatus of claim 5,
the bullet screen attribute also comprises a bullet screen priority;
the determining unit is further configured to determine the priority of the bullet screen information according to a bullet screen information priority determining factor before the receiving unit receives at least one bullet screen information to be played, where the bullet screen information priority determining factor includes: bullet screen content and/or bullet screen source;
the playing unit is specifically configured to obtain the bullet screen content of each bullet screen information and identify the source client of each bullet screen information when the playing unit is used for playing each bullet screen information; determining the playing priority of each bullet screen information based on the source client and the bullet screen content of each bullet screen information and the mapping relation between the prestored bullet screen information priority determining factor and the playing priority of the bullet screen information; and when detecting that the playing time corresponding to at least two bullet screen information to be played is the same, playing the at least two bullet screen information to be played according to the determined playing priority of the bullet screen information.
CN201611035692.9A 2016-11-15 2016-11-15 Bullet screen playing method and device Active CN106454434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611035692.9A CN106454434B (en) 2016-11-15 2016-11-15 Bullet screen playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611035692.9A CN106454434B (en) 2016-11-15 2016-11-15 Bullet screen playing method and device

Publications (2)

Publication Number Publication Date
CN106454434A CN106454434A (en) 2017-02-22
CN106454434B true CN106454434B (en) 2020-04-03

Family

ID=58221140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611035692.9A Active CN106454434B (en) 2016-11-15 2016-11-15 Bullet screen playing method and device

Country Status (1)

Country Link
CN (1) CN106454434B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106990891B (en) * 2017-03-02 2020-07-28 阿里巴巴(中国)有限公司 Display control method and device for barrage
CN106998492A (en) * 2017-03-02 2017-08-01 合网络技术(北京)有限公司 The display control method and device of barrage
CN107241635B (en) * 2017-04-21 2020-09-08 武汉斗鱼网络科技有限公司 Bullet screen position switching method and device
CN108810598A (en) * 2017-04-26 2018-11-13 武汉斗鱼网络科技有限公司 The drift of the barrage of live streaming or video playing renders the method and system of display
CN107197355B (en) * 2017-06-02 2020-02-21 北京潘达互娱科技有限公司 Bullet screen display method and device
CN107302717B (en) * 2017-06-30 2019-04-05 武汉斗鱼网络科技有限公司 Barrage information broadcasting method and device
CN107371056A (en) * 2017-07-18 2017-11-21 北京蜜莱坞网络科技有限公司 A kind of method and apparatus for loading barrage
CN107750007A (en) * 2017-12-06 2018-03-02 北京搜狐新动力信息技术有限公司 A kind of processing method and processing device of video barrage
CN109982127B (en) * 2017-12-28 2022-01-07 阿里巴巴(中国)有限公司 Bullet screen speed control method and device
CN108540850A (en) * 2018-03-27 2018-09-14 优酷网络技术(北京)有限公司 Barrage display methods and device
CN110781343B (en) * 2019-10-25 2024-03-08 广州酷狗计算机科技有限公司 Method, device, equipment and storage medium for displaying comment information of music
CN110891194B (en) * 2019-12-06 2022-06-03 北京小米移动软件有限公司 Comment information display method and device, terminal and storage medium
CN112291580A (en) * 2020-10-27 2021-01-29 珠海格力电器股份有限公司 Bullet screen information control method and device
CN112689190B (en) * 2021-03-22 2022-07-01 游艺星际(北京)科技有限公司 Barrage display method, device, terminal and storage medium
CN113573134A (en) * 2021-07-07 2021-10-29 网易(杭州)网络有限公司 Bullet screen data processing method and device, storage medium and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245960A (en) * 2014-07-07 2016-01-13 乐视网信息技术(北京)股份有限公司 Live comment display method and device for videos
CN104244103A (en) * 2014-08-22 2014-12-24 苏州乐聚一堂电子科技有限公司 Mobile phone screen playing system for virtual concert
CN104935997B (en) * 2015-06-01 2020-08-18 上海幻电信息科技有限公司 Method and device for customizing advanced barrage by viewer
CN105578209B (en) * 2015-12-16 2019-03-12 广州酷狗计算机科技有限公司 Barrage display methods and device
CN105848006A (en) * 2016-03-30 2016-08-10 苏州合欣美电子科技有限公司 Adaptive subtitle adjustment method for video player
CN105939493B (en) * 2016-03-30 2019-02-22 广州华多网络科技有限公司 A kind of display methods and display device of video barrage
CN105847718B (en) * 2016-06-01 2018-10-23 上海幻电信息科技有限公司 Live video barrage display methods based on scene Recognition and its display device

Also Published As

Publication number Publication date
CN106454434A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106454434B (en) Bullet screen playing method and device
CN109618177B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN113630615B (en) Live broadcast room virtual gift display method and device
US20220318306A1 (en) Video-based interaction implementation method and apparatus, device and medium
US10701301B2 (en) Video playing method and device
CN107018440B (en) Methods, systems, and media for presenting advertisements while buffering video
CN111491208B (en) Video processing method and device, electronic equipment and computer readable medium
CN112019907A (en) Live broadcast picture distribution method, computer equipment and readable storage medium
CN114679628B (en) Bullet screen adding method and device, electronic equipment and storage medium
CN110996157A (en) Video playing method and device, electronic equipment and machine-readable storage medium
CN106408623A (en) Character presentation method, device and terminal
AU2023205944A1 (en) Interface display method and apparatus in livestreaming process, device, medium, and product
CN107404662B (en) Method and device for content promotion in live broadcast room
CN115604500A (en) Method and device for displaying pages in live broadcast room, electronic equipment and storage medium
CN105744338B (en) A kind of method for processing video frequency and its equipment
CN113975806B (en) In-game interface interaction method and device, storage medium and computer equipment
CN109714626B (en) Information interaction method and device, electronic equipment and computer readable storage medium
CN115690664A (en) Image processing method and device, electronic equipment and storage medium
CN112019906A (en) Live broadcast method, computer equipment and readable storage medium
WO2017185645A1 (en) Portrait full screen playback method, apparatus and mobile playback terminal thereof
CN111667313A (en) Advertisement display method and device, client device and storage medium
EP4344218A1 (en) Special effect playback method and system for live broadcast room, and device
CN111954041A (en) Video loading method, computer equipment and readable storage medium
CN106649621B (en) A kind of method and device showing comment information
CN103368960A (en) Method, related equipment and system for media information push

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210120

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511449 28th floor, block B1, Wanda Plaza, Wanbo business district, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.