Android弹幕实现:基于B站弹幕开源系统(1)
Android弹幕实现:基于B站弹幕开源系统(1) 如今的视频播放,流行在视频上飘弹幕。这里面做的相对比较成熟、稳定、使用量较多的弹幕系统,当推B站的弹幕系统,B站的弹幕系统已经作为开源项目在github上,其项目地址:https://github.com/Bilibili/DanmakuFlameMaster 以B站开源的弹幕项目为基础,现给出一个简单的例子,实现发送简单的文本弹幕。第一步,首先要在Android的build.gradle文件中引入B站的项目: repositories { jcenter() } dependencies { compile 'com.github.ctiao:DanmakuFlameMaster:0.7.3' compile 'com.github.ctiao:ndkbitmap-armv7a:0.7.3' } 第二步,写一个布局文件,引入B站的弹幕view: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas....
