斗鱼直播项目(已开源)

这是一个仿斗鱼直播的应用项目,包含了详细的开发环境、更新日志和三方库说明,适合开发者学习和借鉴。项目涵盖视频弹幕、播放控制、手势控制等功能,并使用了Vitamio播放器进行直播流媒体播放。

推荐一个项目,仿斗鱼直播的,功能强大,可以借鉴学习。

目录结构

  • 开发环境

  • 更新日志

  • 应用截图

  • 下载地址

  • 接口文档说明

  • 项目中使用到的三方库说明

  • 项目反馈

  • 参考资料

一.开发环境

开发工具 开发语言 SDK版本 JDK版本
AndroidStudio2.2 JAVA 25 1.8

二.更新日志

2017-2-23


  • 1.添加视频弹幕功能(扩展弹幕show,hide等!)

  • 2.绘制播放Loading动画

  • 3.添加直播视频控制界面

  • 4.添加直播手势控制(音量,亮度等)


2017-2-20


  • 1.主UI框架搭建

  • 2.项目框架封装(包括网络,图片等)

  • 3.封装项目中使用到的三方库,工具类等

  • 4.针对申请Android6.0权限问题进行处理

  • 5.接口抓取(首页,直播,视频模块接口完成度60%)

  • 6.加入Android适配方案(百分比适配与Dimens适配)

  • 7.书写业务逻辑(首页,直播,视频模块逻辑)

  • 8.使用Vitamio作为直播流媒体播放器

三.应用截图

四.三方库说明

  1. compile 'com.zhy:autolayout:1.4.5'

  2. //黄油刀

  3. compile 'com.jakewharton:butterknife:8.1.0'

  4. apt 'com.jakewharton:butterknife-compiler:8.1.0'

  5. //提示框,消息框等

  6. compile 'com.github.GaoYin2016:Android-SVProgressHUD:1.0'

  7. //    侧滑返回

  8. compile 'me.imid.swipebacklayout.lib:library:1.0.0'

  9. //RxJava and RxAndroid

  10. compile 'io.reactivex:rxjava:1.1.8'

  11. compile 'io.reactivex:rxandroid:1.2.1'

  12. // permissions

  13. compile 'com.tbruyelle.rxpermissions:rxpermissions:0.9.0@aar'

  14. //RxLifecycle 内存泄露

  15. compile 'com.trello:rxlifecycle:0.6.1'

  16. compile 'com.trello:rxlifecycle-components:0.6.1'

  17. compile 'com.android.support:appcompat-v7:25.0.1'

  18. compile 'com.android.support:recyclerview-v7:25.0.1'

  19. //    网络依赖库日志打印

  20. compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'

  21. //Retrofit2

  22. compile 'com.squareup.retrofit2:retrofit:2.1.0'

  23. compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'

  24. compile 'com.squareup.retrofit2:converter-gson:2.1.0'

  25. // log管理

  26. compile 'com.orhanobut:logger:1.15'

  27. compile files('libs/tbs_sdk_thirdapp_v2.5.0.1031_36880_sharewithdownload_obfs_20161107_154437.jar')

  28. //-------图片框架------

  29. compile 'com.facebook.fresco:fresco:0.12.0'

  30. compile 'com.facebook.fresco:imagepipeline-okhttp3:0.12.0'

  31. // 在 API < 14 上的机器支持 WebP 时,需要添加

  32. compile 'com.facebook.fresco:animated-base-support:0.12.0'

  33. // 支持 GIF 动图,需要添加

    • compile 'com.facebook.fresco:animated-gif:0.12.0'

    • // 支持 WebP (静态图+动图),需要添加

    • compile 'com.facebook.fresco:animated-webp:0.12.0'

    • compile 'com.facebook.fresco:webpsupport:0.12.0'

    • // 仅支持 WebP 静态图,需要添加

    • compile 'com.facebook.fresco:webpsupport:0.12.0'

    • compile files('libs/tbs_sdk_thirdapp_v2.5.0.1037_36880_minsize_obfs_20161110_102536.jar')

    • //TabLayout

    • compile 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.0@aar'

    • // 轮播图

    • compile 'cn.bingoogolapple:bga-banner:2.1.5@aar'

    • compile 'com.android.support:support-v4:25.0.1'

    • // eventbus

    • compile 'org.greenrobot:eventbus:3.0.0'

    • // 视频播放器

    • compile project(path: ':InitActivity')

    • ////    adapter

    • compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.7.7'

    • //    弹幕

    • compile 'com.github.ctiao:DanmakuFlameMaster:0.4.6'

五.参考资料

  • 弹幕三方库:DanMu

  • 轮播图:BGABanner

  • 刷新加载控件XRefreshView

  • 导航栏控件 FlyCoTabLayout

  • 弹幕与房间加密参考项目:斗鱼项目

  • 直播视频播放器 :vitamio播放器 (备注:直播视频格式:HLS,RTMP)

点击阅读原文,可查看此项目下载地址。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值