Implementation method of barrage effect

An implementation method and technology of barrage, applied in the fields of instruments, electrical digital data processing, electrical components, etc., can solve the problems of waste of system resources, high CPU usage, power consumption, etc., to reduce freezes, enhance user experience, and improve The effect of fluency

Active Publication Date: 2018-09-28
BEIJING KUWO TECH
View PDF8 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The common solution is: Custom View performs translational animation on the control in the main thread to achieve the barrage effect. The disadvantage of this solution is: t

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method of barrage effect

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0046] The present invention will be further described in detail below in conjunction with the drawings.

[0047] Such as figure 1 As shown, the method for implementing the barrage effect of the present invention includes the following steps:

[0048] Step 1. Customize the DanmakuBean metadata class of the bullet screen, which is the Object type provided by the Android system to store the metadata of the bullet screen;

[0049] Step 2. Customize the DanmakuItem class of barrage layout, inheriting the linear layout LinearLayout provided by the Android system to display barrage;

[0050] The custom barrage layout class DanmakuItem finally returns a bitmap, which includes the user's avatar and the published barrage content;

[0051] In the custom barrage layout class DanmakuItem, define the method createItem to create the barrage layout, get the corresponding View object of the avatar text and background content;

[0052] The method createItem can be implemented with the following code:

[...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to an implementation method of a barrage effect, comprising the following steps: step 1, custom barrage metadata class DanmakuBean is used for storing barrage metadata; step 2, custom barrage layout class DanmakuItem is used for displaying barrage; step 3, custom barrage data class DrawerBean is used for providing relevant computation of barrage movement; step 4, custom classDanmakuItemDrawer is used for drawing barrage items; and step 5, custom class DanmakuView is used for drawing and rendering in the thread. According to the method, the custom class is used for drawing the barrage items, and local rendering and drawing updating are carried out on barrage information by sub threads in the custom class, so that the influence to the whole interface is little, the fluency is improved, lag is reduced, the user experience is enhanced, and the memory and cpu occupation is also reduced.

Description

technical field [0001] The invention relates to the technical field of barrage effect interaction, in particular to a method for realizing barrage effect. Background technique [0002] In order to improve the interaction between broadcast hosts and live broadcast users, existing live broadcast platforms provide barrage effects for broadcast hosts and live broadcast users to use. In the Android native system, there are no barrage-related controls, which need to be customized by developers. The common solution is: Custom View performs translational animation on the control in the main thread to achieve the barrage effect. The disadvantage of this solution is: the refresh of the View will cause the entire interface to be redrawn, resulting in a large waste of system resources and CPU usage. High, power consumption and other issues. Contents of the invention [0003] Aiming at the defects existing in the prior art, the purpose of the present invention is to provide a method ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04N21/4788H04N21/81H04N21/431G06F8/38
CPCG06F8/38H04N21/4312H04N21/4788H04N21/81
Inventor 孙征
Owner BEIJING KUWO TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products