Android開源 - 高仿斗魚TV項目

03093010 7年前發布 | 25K 次閱讀 開源 安卓開發 Android開發 移動開發

項目架構采用MVP模式,使用 Retorfit2.0+RxJava1.0+OKhttp+Fresco+Rtmp直播,高仿斗魚TV項目,僅供代碼參考學習!

斗魚Tv項目

版權說明:該項目純屬練手項目,不作為商用項目!有涉及到侵權請告知刪除,涉及商用侵權與本人無關

目錄結構

一.開發環境

開發工具 開發語言 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作為直播流媒體播放器

三.應用截圖

四.下載地址

下載方式

五.斗魚接口文檔

六.三方庫說明

  //     適配
   compile 'com.zhy:autolayout:1.4.5'
   //黃油刀
   compile 'com.jakewharton:butterknife:8.1.0'
   apt 'com.jakewharton:butterknife-compiler:8.1.0'
   //提示框,消息框等
   compile 'com.github.GaoYin2016:Android-SVProgressHUD:1.0'
   //    側滑返回
   compile 'me.imid.swipebacklayout.lib:library:1.0.0'
   //RxJava and RxAndroid
   compile 'io.reactivex:rxjava:1.1.8'
   compile 'io.reactivex:rxandroid:1.2.1'
   // permissions
   compile 'com.tbruyelle.rxpermissions:rxpermissions:0.9.0@aar'
   //RxLifecycle 內存泄露
   compile 'com.trello:rxlifecycle:0.6.1'
   compile 'com.trello:rxlifecycle-components:0.6.1'
   compile 'com.android.support:appcompat-v7:25.0.1'
   compile 'com.android.support:recyclerview-v7:25.0.1'
   //    網絡依賴庫日志打印
   compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
   //Retrofit2
   compile 'com.squareup.retrofit2:retrofit:2.1.0'
   compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
   compile 'com.squareup.retrofit2:converter-gson:2.1.0'
   // log管理
   compile 'com.orhanobut:logger:1.15'
   compile files('libs/tbs_sdk_thirdapp_v2.5.0.1031_36880_sharewithdownload_obfs_20161107_154437.jar')
   //-------圖片框架------
   compile 'com.非死book.fresco:fresco:0.12.0'
   compile 'com.非死book.fresco:imagepipeline-okhttp3:0.12.0'
   // 在 API < 14 上的機器支持 WebP 時,需要添加
   compile 'com.非死book.fresco:animated-base-support:0.12.0'

   // 支持 GIF 動圖,需要添加
   compile 'com.非死book.fresco:animated-gif:0.12.0'
   // 支持 WebP (靜態圖+動圖),需要添加
   compile 'com.非死book.fresco:animated-webp:0.12.0'
   compile 'com.非死book.fresco:webpsupport:0.12.0'
   // 僅支持 WebP 靜態圖,需要添加
   compile 'com.非死book.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'

七.項目反饋

聯系人 QQ 郵箱
高印 377413612 gaoyin_vip@126.com

八.參考資料

九.Issuse

 

     本項目所有的API利用Charles抓取,項目只適合分享,學習,交流!不得用于商業用途,覺得項目不錯的小伙伴,可以在右上角Star一下,后期項目會不斷優化,在這過程中遇到什么問題與BUG ,歡迎大家Issuse Me

 

 

 

 本文由用戶 03093010 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!