Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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: 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

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

Embodiment Construction

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

[0047] Such as figure 1 As shown, the realization method of the barrage effect described in the present invention comprises the following steps:

[0048] Step 1, customize the Danmaku metadata class DanmakuBean, which is the Object type provided by the Android system, and is used to store the metadata of the Danmaku;

[0049] Step 2, customize the Danmaku layout class DanmakuItem, inherit the linear layout LinearLayout provided by the Android system, and use it to display bullet chatting;

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

[0051] In the custom Danmaku layout class DanmakuItem, define the method createItem, which is used to create the Danmaku layout, obtain the corresponding View object of the avatar text and background content;

[0052] The...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products