CN110876086B - Bullet screen generation adjusting method, device, equipment and storage medium - Google Patents

Bullet screen generation adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN110876086B
CN110876086B CN201811024386.4A CN201811024386A CN110876086B CN 110876086 B CN110876086 B CN 110876086B CN 201811024386 A CN201811024386 A CN 201811024386A CN 110876086 B CN110876086 B CN 110876086B
Authority
CN
China
Prior art keywords
bullet screen
display
data
bullet
screen data
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
CN201811024386.4A
Other languages
Chinese (zh)
Other versions
CN110876086A (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 Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201811024386.4A priority Critical patent/CN110876086B/en
Publication of CN110876086A publication Critical patent/CN110876086A/en
Application granted granted Critical
Publication of CN110876086B publication Critical patent/CN110876086B/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a bullet screen generation and adjustment method, a bullet screen generation and adjustment device, bullet screen generation and adjustment equipment and a storage medium. The method comprises the following steps: in the real-time display process of the bullet screen data, detecting whether the bullet screen display terminal and/or the bullet screen data displayed in real time meet the bullet screen abnormal display condition or not; if so, generating new bullet screen data for display by adopting the bullet screen generation adjustment rule matched with the bullet screen abnormal display condition.

Description

Bullet screen generation adjusting method, device, equipment and storage medium
Technical Field
The present invention relates to rendering technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting bullet screen generation.
Background
The number of barrages in a live platform is an essential element for interaction between a main broadcast and audiences, and is generally used for measuring the popularity of the main broadcast. In the normal use process, the display mode of the bullet screen is that the bullet screen content moves from the right end of the screen of the terminal device to the left end of the screen at a preset speed and disappears.
The inventors found that an error in the display of the bullet screen from a position halfway on the screen and a large number of bullet screens in a short time are liable to occur, leading to a system error.
Disclosure of Invention
The embodiment of the invention provides a bullet screen generation and adjustment method, a bullet screen generation and adjustment device, bullet screen generation and adjustment equipment and a storage medium, which are used for avoiding the problem that a bullet screen starts to be displayed from a half position of a screen and the condition that a large number of bullet screens appear in a short time to further cause system errors.
In a first aspect, an embodiment of the present invention provides a bullet screen generation adjustment method, including:
in the real-time display process of the bullet screen data, detecting a bullet screen display terminal and/or detecting whether the bullet screen data displayed in real time meets bullet screen abnormal display conditions;
if yes, adopting a bullet screen generation adjustment rule matched with the bullet screen abnormal display condition to generate new bullet screen data for display.
Further, in the real-time display process of bullet screen data, whether detect bullet screen display terminal and satisfy bullet screen abnormal display condition includes:
monitoring the screen switching state of the bullet screen display terminal in real time in the real-time display process of bullet screen data;
and if the screen switching event is determined to be detected, determining that the bullet screen display terminal meets the bullet screen abnormal display condition.
Further, at the real-time display in-process of bullet screen data, real time monitoring bullet screen display terminal's screen switching state includes:
acquiring horizontal and vertical screen parameters in real time in the real-time display process of the bullet screen data;
monitoring the screen switching state of the bullet screen display terminal in real time according to the horizontal and vertical screen parameters;
accordingly, determining that a screen switching event is detected includes:
and if the parameters are inconsistent with the parameters acquired last time, determining that a screen switching event is detected.
Further, adopt with bullet screen generation adjustment rule that bullet screen abnormal display condition matches generates new bullet screen data and shows, include:
emptying the currently displayed bullet screen data, recalculating the bullet screen position, and generating new bullet screen data according to the bullet screen position for display.
Further, in the real-time display process of the bullet screen data, whether the bullet screen data that detect real-time display satisfy bullet screen abnormal display condition includes:
in the real-time display process of the bullet screen data, monitoring the displayed bullet screen data in real time;
and if the displayed bullet screen data is determined to be larger than the preset data, determining that the displayed bullet screen data meets the bullet screen abnormal display condition.
Further, adopt with bullet screen generation adjustment rule that bullet screen abnormal display condition matches generates new bullet screen data and shows, include:
acquiring a target picture identifier;
acquiring a target bitmap file in a bitmap file cache pool according to the target picture identification, wherein the bitmap file cache pool comprises a picture identification and a bitmap file, and the picture identification corresponds to the bitmap file one by one;
generating texture according to the target bitmap file;
and generating new bullet screen data according to the open graphic library and the texture for displaying.
In a second aspect, an embodiment of the present invention further provides a bullet screen generation adjusting device, where the device includes:
the detection module is used for detecting whether the bullet screen display terminal and/or the bullet screen data displayed in real time meet the bullet screen abnormal display condition or not in the real-time display process of the bullet screen data;
and the generation module is used for generating a new bullet screen data for display by adopting the bullet screen generation adjustment rule matched with the bullet screen abnormal display condition if the bullet screen abnormal display condition exists.
Further, the detection module is specifically configured to:
monitoring the screen switching state of the bullet screen display terminal in real time in the real-time display process of bullet screen data;
and if the screen switching event is determined to be detected, determining that the bullet screen display terminal meets bullet screen abnormal display conditions.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where when the processor executes the computer program, the bullet screen generation adjustment method according to any one of the embodiments of the present invention is implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the bullet screen generation adjustment method according to any one of the embodiments of the present invention.
In the embodiment of the invention, in the real-time display process of the bullet screen data, whether the bullet screen display terminal and/or the bullet screen data displayed in real time meet the bullet screen abnormal display condition is detected; if, then adopt with the bullet screen generation adjustment rule that bullet screen abnormal display condition matches generates new bullet screen data and shows, can avoid appearing the bullet screen and begin the problem that shows and appear a large amount of bullet screens in the short time from the position of half of screen, and then lead to the condition of system error.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a bullet screen generation adjustment method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a bullet screen generation adjustment method in the second embodiment of the present invention;
fig. 3 is a flowchart of a bullet screen generation adjustment method in the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a bullet screen generation adjusting device in the fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example one
Fig. 1 is a flowchart of a bullet screen generation adjustment method according to an embodiment of the present invention, where this embodiment is applicable to a bullet screen generation adjustment situation, and the method may be executed by a bullet screen generation adjustment device according to an embodiment of the present invention, where the device may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
s110, in the real-time display process of the bullet screen data, detecting whether the bullet screen display terminal and/or the bullet screen data displayed in real time meet the bullet screen abnormal display condition, if so, executing S120; if not, go to S130.
And the bullet screen data is displayed on a display interface of the terminal equipment in real time.
The bullet screen display terminal is a terminal device currently displaying bullet screen data, for example, a user may watch live video through a mobile phone, bullet screen data is displayed on a display screen of the mobile phone, and then the bullet screen display terminal is the mobile phone.
The mode of detecting whether the bullet screen display terminal meets the bullet screen abnormal display condition can be the screen switching state of the bullet screen display terminal, and if a screen switching event is detected, it is determined that the bullet screen display terminal meets the bullet screen abnormal display condition.
The mode of detecting whether the bullet screen data displayed in real time meets the bullet screen abnormal display condition can be whether the bullet screen data displayed in real time is larger than preset data or not, and if the bullet screen data is larger than the preset data, the bullet screen data displayed in real time is determined to meet the bullet screen abnormal display condition.
Specifically, in the real-time display process of the bullet screen data, whether the bullet screen display terminal meets the bullet screen abnormal display condition or not and/or whether the bullet screen data displayed in real time meets the bullet screen abnormal display condition or not is detected. It should be noted that, if it is detected that the bullet screen display terminal and the bullet screen data displayed in real time meet the bullet screen abnormal display condition, it may be detected that the bullet screen display terminal meets the bullet screen abnormal display condition first, and then it is detected that the bullet screen data displayed in real time meets the bullet screen abnormal display condition; or, it may be detected whether the bullet screen data displayed in real time meets the bullet screen abnormal display condition first, and then it is detected whether the bullet screen display terminal meets the bullet screen abnormal display condition, which is not limited in the embodiment of the present invention.
And S120, generating new bullet screen data for display by adopting bullet screen generation adjustment rules matched with the bullet screen abnormal display conditions.
The bullet screen generation adjustment rule matched with the bullet screen abnormal display condition can be used for emptying currently displayed bullet screen data and recalculating the bullet screen position; the texture data may also be obtained according to the bitmap file in the cache pool by establishing a bitmap file cache pool, or the texture data may also be obtained according to the bitmap file in the cache pool by not only emptying the currently displayed bullet screen data and recalculating the bullet screen position, but also establishing a bitmap file cache pool and obtaining the texture data according to the bitmap file in the cache pool, which is not limited in this embodiment of the present invention.
If the bullet screen abnormal display condition is that the bullet screen data is larger than the preset data, the bullet screen generating adjustment rule matched with the bullet screen abnormal display condition is to establish a bitmap file cache pool, and texture data is obtained according to the bitmap file in the cache pool; and if the bullet screen abnormal display condition is that a screen switching event is detected, generating an adjusting rule for the bullet screen matched with the bullet screen abnormal display condition to empty the currently displayed bullet screen data, and recalculating the bullet screen position.
Specifically, if the bullet screen display terminal and/or the bullet screen data displayed in real time meet the bullet screen abnormal display condition, the bullet screen matched with the bullet screen abnormal display condition is adopted to generate the adjustment rule, and new bullet screen data is generated to be displayed.
And S130, generating new bullet screen data for display by adopting the original bullet screen generation rule.
And the original bullet screen generation rule is a bullet screen generation rule when the bullet screen is normally displayed.
Specifically, if the bullet screen display terminal and the bullet screen data displayed in real time do not satisfy the bullet screen abnormal display condition, the original bullet screen generation rule is adopted, and new bullet screen data are generated to be displayed.
According to the technical scheme of the embodiment, in the real-time display process of the bullet screen data, whether the bullet screen display terminal and/or the bullet screen data displayed in real time meet the bullet screen abnormal display condition is detected; if, then adopt with the bullet screen generation adjustment rule that bullet screen abnormal display condition matches generates new bullet screen data and shows, can avoid appearing the bullet screen and begin the problem that shows and appear a large amount of bullet screens in the short time from the position of half of screen, and then lead to the condition of system error.
Example two
Fig. 2 is a flowchart of a bullet screen generation adjustment method in a second embodiment of the present invention, where the embodiment is optimized based on the foregoing embodiment, and in this embodiment, in a real-time display process of bullet screen data, detecting whether a bullet screen display terminal meets a bullet screen abnormal display condition includes: monitoring the screen switching state of the bullet screen display terminal in real time in the real-time display process of bullet screen data; and if the screen switching event is determined to be detected, determining that the bullet screen display terminal meets bullet screen abnormal display conditions.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
s210, monitoring the screen switching state of the bullet screen display terminal in real time in the real-time display process of bullet screen data.
The mode of monitoring the screen switching state of the bullet screen display terminal can be used for monitoring whether horizontal and vertical screen parameters are changed or not, judging the screen switching state of the bullet screen display terminal through data collected by the gravity sensor and realizing the screen switching state through other modes.
Specifically, in the real-time display process of the bullet screen data, the screen switching state of the terminal device currently displaying the bullet screen is monitored in real time.
And S220, if the screen switching event is detected, determining that the bullet screen display terminal meets bullet screen abnormal display conditions.
Specifically, if a screen switching event is detected, it is determined that the terminal device currently displaying the bullet screen meets the bullet screen abnormal display condition.
Optionally, in the real-time display process of bullet screen data, real-time monitoring bullet screen display terminal's screen switching state includes:
and in the real-time display process of the bullet screen data, acquiring horizontal and vertical screen parameters in real time.
The horizontal and vertical screen parameters may be the width and height of the screen, or may also be other parameters for determining the position of the bullet screen, which is not limited in this embodiment of the present invention.
Specifically, in the real-time display process of the barrage data, after the onfacechanged method is called, the horizontal and vertical screen parameters are obtained.
And monitoring the screen switching state of the bullet screen display terminal in real time according to the horizontal and vertical screen parameters.
Specifically, the screen switching state of the bullet screen display terminal is monitored according to whether the horizontal and vertical screen parameters are changed.
Accordingly, determining that a screen switch event is detected includes:
and if the parameters are inconsistent with the parameters acquired last time, determining that a screen switching event is detected.
Specifically, if the horizontal and vertical screen parameters are changed, the acquired horizontal and vertical screen parameters are inconsistent with the latest acquired horizontal and vertical screen parameters, and then the screen switching event is determined to be detected.
It should be noted that, because the input method pops up or retracts, the onSurfaceChanged method of barrage render is called to obtain the transferred horizontal and vertical screen parameters, and the horizontal and vertical screen parameters are not changed at this time; due to the screen switching event, an onSurfaceChange method of BarrageRender is called to acquire the transferred horizontal and vertical screen parameters, and the horizontal and vertical screen parameters at the moment are changed.
And S230, generating new bullet screen data for display by adopting bullet screen generation adjustment rules matched with the bullet screen abnormal display conditions.
Specifically, since it is determined that the screen switching event is detected, it is determined that the bullet screen display terminal satisfies the bullet screen abnormal display condition, and therefore, the bullet screen generation adjustment rule matched with the bullet screen abnormal display condition is to empty the currently displayed bullet screen data, and recalculate the bullet screen position.
Specifically, the bullet screen generation adjustment rule matched with the bullet screen abnormal display condition is adopted, the bullet screen position is recalculated, and new bullet screen data are generated for display. Optionally, the method includes the steps of generating a new bullet screen data for display by adopting a bullet screen generation adjustment rule matched with the bullet screen abnormal display condition, including:
emptying the currently displayed bullet screen data, recalculating the bullet screen position, and generating new bullet screen data according to the bullet screen position for display.
Specifically, after the screen switching event is determined to be detected, the currently displayed bullet screen data is emptied, the bullet screen position is recalculated, and new bullet screen data is generated according to the bullet screen position for displaying.
Horizontal vertical screen switching needs to clear the bullet screen data of current demonstration among the prior art, but some models have leaded to originally not because horizontal vertical screen switches, have also cleared the bullet screen data of current demonstration, lead to the bullet screen position of calculation incorrect like this, and then lead to the bullet screen to appear from the position of screen half. For example, some mobile phone systems call onsurface changed method of barrage render because of pop-up or retraction of input method, and the currently displayed bullet screen data is cleared, resulting in incorrect calculation of bullet screen position. The embodiment of the invention firstly judges whether the current screen switching is horizontal and vertical, if the current screen switching is horizontal and vertical, the currently displayed bullet screen is emptied, if the current screen switching is not horizontal and vertical, the currently displayed bullet screen is not emptied, and the code for emptying the currently displayed bullet screen can be shielded, namely the code for emptying the currently displayed bullet screen is not called.
The technical scheme of this embodiment, through the real-time display in-process at the bullet screen data, real time monitoring bullet screen display terminal's screen switching state, if the screen switching incident is detected out in the affirmation, then confirm bullet screen display terminal satisfies bullet screen abnormal display condition, adopt with bullet screen generation adjustment rule that bullet screen abnormal display condition matches generates new bullet screen data and shows, can avoid appearing the bullet screen and begin the problem that shows from the position that the screen is half and appear a large amount of bullet screens in the short time, and then lead to the wrong condition of system.
EXAMPLE III
Fig. 3 is a flowchart of a bullet screen generation adjustment method in the third embodiment of the present invention, which is optimized based on the above embodiments, in this embodiment, in the real-time display process of bullet screen data, detecting whether the bullet screen data displayed in real time meets the bullet screen abnormal display condition includes: in the real-time display process of the bullet screen data, monitoring the displayed bullet screen data in real time; and if the displayed bullet screen data is determined to be larger than the preset data, determining that the displayed bullet screen data meets the bullet screen abnormal display condition.
As shown in fig. 3, the method of this embodiment specifically includes the following steps:
and S310, monitoring the displayed bullet screen data in real time in the real-time display process of the bullet screen data.
The mode of the bullet screen data displayed by real-time monitoring is the quantity of the bullet screen data displayed by real-time monitoring.
Specifically, in the real-time display process of the bullet screen data, the quantity of the bullet screen data displayed is monitored in real time.
And S320, if the displayed bullet screen data is determined to be larger than the preset data, determining that the displayed bullet screen data meets the bullet screen abnormal display condition.
The preset number is related to the remaining memory amount of the terminal device displaying the bullet screen data, and the preset number can be adjusted according to the remaining memory amount of the terminal device.
Specifically, if it is determined that the displayed bullet screen data is greater than the preset data, the situation of overflow caused by insufficient memory of the device is easy to occur, and then it is determined that the displayed bullet screen data meets the bullet screen abnormal display condition.
And S330, generating new bullet screen data for display by adopting the bullet screen generation adjustment rule matched with the bullet screen abnormal display condition.
If the displayed bullet screen data is determined to be larger than the preset data, the displayed bullet screen data is determined to meet the bullet screen abnormal display condition, so that the bullet screen generation adjustment rule matched with the bullet screen abnormal display condition is determined to establish a bitmap file cache pool, and the texture is generated according to the bitmap file in the cache pool.
Specifically, a bullet screen generation adjustment rule matched with the bullet screen abnormal display condition is adopted, a bitmap file cache pool is established, textures are generated according to bitmap files in the cache pool, and new bullet screen data are generated according to the textures to be displayed.
Optionally, the method includes the steps of generating a new bullet screen data for display by adopting a bullet screen generation adjustment rule matched with the bullet screen abnormal display condition, including:
and acquiring a target picture identifier.
The target picture identification is a picture address, the bullet screen flowing water is a bullet screen with pictures, and the target picture identification is the address of the pictures in the bullet screen flowing water.
And acquiring a target bitmap file in a bitmap file cache pool according to the target picture identification, wherein the bitmap file cache pool comprises a picture identification and a bitmap file, and the picture identification corresponds to the bitmap file one by one.
The bitmap file cache pool stores bitmap files and picture identifications, the picture identifications and the bitmap files are in one-to-one correspondence, for example, the bitmap file cache pool stores bitmap files A corresponding to the picture identifications A; the picture identification B corresponds to the bitmap file B; the picture identifier C corresponds to the bitmap file C.
Specifically, the bitmap file corresponding to the picture identifier in the bitmap file cache pool, which is the same as the target picture identifier, is queried according to the target picture identifier and serves as the target bitmap file.
Specifically, the bitmap file is obtained from the bitmap file cache pool, so that the problem of memory overflow caused by a large amount of memory applications in a short time can be effectively prevented.
And generating texture according to the target bitmap file.
Specifically, the texture is generated according to bitmap.
And generating new barrage data according to the open graphic library and the texture for display.
Specifically, the texture is rendered according to opengl, and new barrage data is generated and displayed.
In the prior art, the bullet screen pipelining is to generate individual bitmaps, and then generate textures through opengl, but when the number of character bullet screens is large, the generation of the individual bitmaps can cause a large amount of memory waste, and even when a low-end machine type has insufficient memory to cause overflow crash.
The technical scheme of this embodiment, through the real-time display in-process at the bullet screen data, real time monitoring the bullet screen data that show, if confirm the bullet screen data that show are greater than preset data, then confirm the bullet screen data that show satisfy bullet screen abnormal display condition, adopt with the bullet screen generation adjustment rule that bullet screen abnormal display condition matches generates new bullet screen data and shows, can avoid appearing the bullet screen and begin the problem that shows from the half position of screen and appear a large amount of bullet screens in the short time, and then lead to the wrong condition of system.
Example four
Fig. 4 is a schematic structural diagram of a bullet screen generation adjusting device according to a fourth embodiment of the present invention. The present embodiment is applicable to the case of barrage generation adjustment, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device that provides a function of barrage generation adjustment, as shown in fig. 4, the barrage generation adjustment apparatus specifically includes: a detection module 410 and a generation module 420.
The detection module 410 is configured to detect, in a real-time display process of the bullet screen data, whether the bullet screen display terminal and/or the bullet screen data displayed in real time meet bullet screen abnormal display conditions;
and the generating module 420 is configured to generate new bullet screen data for display by using the bullet screen generation adjustment rule matched with the bullet screen abnormal display condition if the bullet screen abnormal display condition exists.
Optionally, the detecting module 410 includes:
the state monitoring unit is used for monitoring the screen switching state of the bullet screen display terminal in real time in the real-time display process of bullet screen data;
and the first determining unit is used for determining that the bullet screen display terminal meets bullet screen abnormal display conditions if the screen switching event is determined to be detected.
Optionally, the state monitoring unit is specifically configured to:
acquiring horizontal and vertical screen parameters in real time in the real-time display process of the bullet screen data;
monitoring the screen switching state of the bullet screen display terminal in real time according to the horizontal and vertical screen parameters;
accordingly, determining that a screen switch event is detected includes:
and if the parameters are inconsistent with the parameters acquired last time, determining that a screen switching event is detected.
Optionally, the generating module is specifically configured to:
and clearing the currently displayed bullet screen data, recalculating the bullet screen position, and generating new bullet screen data according to the bullet screen position for display.
Optionally, the detection module includes:
the data monitoring unit is used for monitoring the displayed bullet screen data in real time in the real-time display process of the bullet screen data;
and the second determining unit is used for determining that the displayed bullet screen data meets bullet screen abnormal display conditions if the displayed bullet screen data is determined to be larger than preset data.
Optionally, the generating module is specifically configured to:
acquiring a target picture identifier;
acquiring a target bitmap file in a bitmap file cache pool according to the target picture identification, wherein the bitmap file cache pool comprises a picture identification and a bitmap file, and the picture identification corresponds to the bitmap file one by one;
generating texture according to the target bitmap file;
and generating new barrage data according to the open graphic library and the texture for display.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme of the embodiment, in the real-time display process of the bullet screen data, whether the bullet screen display terminal and/or the bullet screen data displayed in real time meet the bullet screen abnormal display condition is detected; if, then adopt with the bullet screen generation adjustment rule that bullet screen abnormal display condition matches generates new bullet screen data and shows, can avoid appearing the bullet screen and begin the problem that shows and appear a large amount of bullet screens in the short time from the position of half of screen, and then lead to the condition of system error.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5 and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. In the computer device 12 of the present embodiment, the display 24 is not provided as a separate body but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, to implement the bullet screen generation and adjustment method provided by the embodiment of the present invention: in the real-time display process of the bullet screen data, detecting whether the bullet screen display terminal and/or the bullet screen data displayed in real time meet the bullet screen abnormal display condition or not; if yes, adopting a bullet screen generation adjustment rule matched with the bullet screen abnormal display condition to generate new bullet screen data for display.
EXAMPLE six
A sixth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a bullet screen generation adjustment method according to all embodiments of the present invention: in the real-time display process of the bullet screen data, detecting whether the bullet screen display terminal and/or the bullet screen data displayed in real time meet the bullet screen abnormal display condition or not; if yes, adopting a bullet screen generation adjustment rule matched with the bullet screen abnormal display condition to generate new bullet screen data for display.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (9)

1. A bullet screen generation adjusting method is characterized by comprising the following steps:
detecting whether a bullet screen display terminal meets bullet screen abnormal display conditions or not in the real-time display process of bullet screen data; the method for detecting whether the bullet screen display terminal meets the bullet screen abnormal display condition is to detect the screen switching state of the bullet screen display terminal;
if so, generating new bullet screen data for display by adopting bullet screen generation adjustment rules matched with the bullet screen abnormal display conditions;
the adoption with bullet screen generation adjustment rule that bullet screen abnormal display condition matches generates new bullet screen data and shows, includes:
emptying the currently displayed bullet screen data, recalculating the bullet screen position, and generating new bullet screen data according to the bullet screen position for display.
2. The method of claim 1, wherein detecting whether the bullet screen display terminal meets bullet screen abnormal display conditions in the real-time display process of bullet screen data comprises:
monitoring the screen switching state of the bullet screen display terminal in real time in the real-time display process of bullet screen data;
and if the screen switching event is determined to be detected, determining that the bullet screen display terminal meets bullet screen abnormal display conditions.
3. The method of claim 2, wherein monitoring the screen switching state of the bullet screen display terminal in real time during the real-time display of bullet screen data comprises:
acquiring horizontal and vertical screen parameters in real time in the real-time display process of the bullet screen data;
monitoring the screen switching state of the bullet screen display terminal in real time according to the horizontal and vertical screen parameters;
accordingly, determining that a screen switch event is detected includes:
and if the parameters are inconsistent with the parameters acquired last time, determining that a screen switching event is detected.
4. The method of claim 1, wherein detecting whether the bullet screen data displayed in real time meets bullet screen abnormal display conditions during the real time display of the bullet screen data comprises:
in the real-time display process of the bullet screen data, monitoring the displayed bullet screen data in real time;
and if the displayed bullet screen data is determined to be larger than the preset data, determining that the displayed bullet screen data meets the bullet screen abnormal display condition.
5. The method of claim 4, wherein generating new bullet screen data for display by using bullet screen generation adjustment rules matched with the bullet screen abnormal display conditions comprises:
acquiring a target picture identifier;
acquiring a target bitmap file in a bitmap file cache pool according to the target picture identification, wherein the bitmap file cache pool comprises a picture identification and a bitmap file, and the picture identification corresponds to the bitmap file one by one;
generating texture according to the target bitmap file;
and generating new barrage data according to the open graphic library and the texture for display.
6. A bullet screen generation adjustment device, comprising:
the detection module is used for detecting whether the bullet screen display terminal meets the bullet screen abnormal display condition or not in the real-time display process of the bullet screen data; the method for detecting whether the bullet screen display terminal meets the bullet screen abnormal display condition is to detect the screen switching state of the bullet screen display terminal;
the generation module is used for generating new bullet screen data for display by adopting bullet screen generation adjustment rules matched with the bullet screen abnormal display conditions if the bullet screen abnormal display conditions exist;
adopt with bullet screen generation adjustment rule that bullet screen abnormal display condition matches generates new bullet screen data and shows, include:
emptying the currently displayed bullet screen data, recalculating the bullet screen position, and generating new bullet screen data according to the bullet screen position for display.
7. The apparatus of claim 6, wherein the detection module is specifically configured to:
monitoring the screen switching state of the bullet screen display terminal in real time in the real-time display process of bullet screen data;
and if the screen switching event is determined to be detected, determining that the bullet screen display terminal meets bullet screen abnormal display conditions.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-5 when executing the program.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201811024386.4A 2018-09-04 2018-09-04 Bullet screen generation adjusting method, device, equipment and storage medium Active CN110876086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811024386.4A CN110876086B (en) 2018-09-04 2018-09-04 Bullet screen generation adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811024386.4A CN110876086B (en) 2018-09-04 2018-09-04 Bullet screen generation adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110876086A CN110876086A (en) 2020-03-10
CN110876086B true CN110876086B (en) 2023-01-06

Family

ID=69716879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811024386.4A Active CN110876086B (en) 2018-09-04 2018-09-04 Bullet screen generation adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110876086B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302216B (en) * 2021-08-25 2024-03-22 上海哔哩哔哩科技有限公司 Barrage processing method, device, equipment and system
CN113891137B (en) * 2021-09-27 2023-06-16 武汉斗鱼网络科技有限公司 Bullet screen display method and system during switching of horizontal and vertical video screens
CN115767163A (en) * 2022-10-14 2023-03-07 北京奇艺世纪科技有限公司 Bullet screen display method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104672A (en) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 Mobile phone and method for switching landscape display modes and portrait display modes of mobile phone
CN106469165A (en) * 2015-08-18 2017-03-01 腾讯科技(深圳)有限公司 Barrage methods of exhibiting and barrage exhibiting device
CN107241635A (en) * 2017-04-21 2017-10-10 武汉斗鱼网络科技有限公司 A kind of method and device of barrage position switching
CN108391154A (en) * 2018-01-30 2018-08-10 广州虎牙信息科技有限公司 Barrage display control method, storage medium and terminal
CN113891137A (en) * 2021-09-27 2022-01-04 武汉斗鱼网络科技有限公司 Barrage display method and system during switching of horizontal and vertical video screens

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533442B (en) * 2013-09-27 2018-01-23 北京奇虎科技有限公司 The loading method and device of video barrage
CN104363505B (en) * 2014-11-17 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of method and device for showing broadcast interface
CN105898377A (en) * 2015-12-11 2016-08-24 乐视网信息技术(北京)股份有限公司 User terminal, server and danmaku loading method and system
CN106371834B (en) * 2016-08-30 2020-04-10 广州新博庭网络信息科技股份有限公司 Bullet screen data display method and device
CN106791903B (en) * 2016-12-29 2019-07-26 广州爱九游信息技术有限公司 Processing system, unit and method is broadcast live
CN107071506A (en) * 2017-03-17 2017-08-18 武汉斗鱼网络科技有限公司 A kind of method and system for pushing barrage
CN107147936B (en) * 2017-04-21 2020-02-14 合一网络技术(北京)有限公司 Display control method and device for barrage
CN107750007A (en) * 2017-12-06 2018-03-02 北京搜狐新动力信息技术有限公司 A kind of processing method and processing device of video barrage
CN108243346B (en) * 2018-01-09 2020-10-16 武汉斗鱼网络科技有限公司 Method for filtering bullet screen information, server and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104672A (en) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 Mobile phone and method for switching landscape display modes and portrait display modes of mobile phone
CN106469165A (en) * 2015-08-18 2017-03-01 腾讯科技(深圳)有限公司 Barrage methods of exhibiting and barrage exhibiting device
CN107241635A (en) * 2017-04-21 2017-10-10 武汉斗鱼网络科技有限公司 A kind of method and device of barrage position switching
CN108391154A (en) * 2018-01-30 2018-08-10 广州虎牙信息科技有限公司 Barrage display control method, storage medium and terminal
CN113891137A (en) * 2021-09-27 2022-01-04 武汉斗鱼网络科技有限公司 Barrage display method and system during switching of horizontal and vertical video screens

Also Published As

Publication number Publication date
CN110876086A (en) 2020-03-10

Similar Documents

Publication Publication Date Title
CN110876086B (en) Bullet screen generation adjusting method, device, equipment and storage medium
CN107526631B (en) Task monitoring method, device, equipment and medium
CN111327913B (en) Message processing method and device and electronic equipment
CN111813641B (en) Method, device, medium and equipment for collecting crash information
CN110764986B (en) Page fluency detection method and device
CN111882634A (en) Image rendering method, device and equipment and storage medium
CN110781427A (en) Method, device, equipment and storage medium for calculating first screen time
CN108008876B (en) Display method, device and equipment of floating window and storage medium
CN110888731B (en) Method, device, equipment and storage medium for acquiring route data
CN111639018B (en) Memory leakage detection method and device
CN112037332A (en) Display verification method and device of browser, computer equipment and storage medium
CN112019891A (en) Multimedia content display method and device, terminal and storage medium
CN109873980B (en) Video monitoring method and device and terminal equipment
CN109165372B (en) Webpage loading method, device, equipment and storage medium
CN113780163A (en) Page loading time detection method and device, electronic equipment and medium
CN114330249A (en) Information editing method, device, equipment and storage medium
CN112581589A (en) View list layout method, device, equipment and storage medium
CN110740315A (en) Camera correction method and device, electronic equipment and storage medium
CN112740143A (en) Screen display content control method and device, electronic equipment and storage medium
CN110674050A (en) Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN108345486A (en) A kind of interface covering method, equipment and readable medium
CN106708605B (en) Method and device for detecting resource leakage
CN109242763B (en) Picture processing method, picture processing device and terminal equipment
CN112288774B (en) Mobile detection method, mobile detection device, electronic equipment and storage medium
CN113891109B (en) Adaptive noise reduction method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant