视频直播源从斗鱼接口抓取,直播源分析来自斗鱼API,斗鱼弹幕提供官方API,具体实现是从斗鱼官网提供的java版本修改得到(TextUtils替换StringUtils、添加弹幕消息处理接口),视频播放器使用vitamio,弹幕实现使用弹幕烈焰使。点击此处下载apk安装文件。
android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile project(path: ':InitActivity')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'in.srain.cube:ultra-ptr:1.0.11'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.github.ctiao:DanmakuFlameMaster:0.4.6'
compile 'com.android.support:support-v4:23.4.0'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'com.android.support:design:23.4.0'
compile 'com.rengwuxian.materialedittext:library:2.1.4'
}