作者 杨谦

1.视频切换使用Exo核心

... ... @@ -112,6 +112,10 @@ dependencies {
//完整版引入
implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer:v8.1.5-jitpack'
//是否需要 ExoPlayer 模式
// implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-exo_player2:v8.1.5-jitpack'
//更多 ijk 的编码支持
// implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v8.1.5-jitpack'
//权限
implementation 'com.github.tbruyelle:rxpermissions:0.12'
... ...
... ... @@ -10,10 +10,12 @@ import com.kingja.loadsir.core.LoadSir
import com.scwang.smart.refresh.footer.ClassicsFooter
import com.scwang.smart.refresh.header.ClassicsHeader
import com.scwang.smart.refresh.layout.SmartRefreshLayout
import com.shuyu.gsyvideoplayer.player.PlayerFactory
import com.tencent.map.geolocation.TencentLocationManager
import com.tencent.smtt.sdk.QbSdk
import com.tencent.smtt.sdk.TbsDownloader
import com.umeng.commonsdk.UMConfigure
import tv.danmaku.ijk.media.exo2.Exo2PlayerManager
import kotlin.properties.Delegates
/**
... ... @@ -57,6 +59,7 @@ open class BaseApplication : Application() {
TbsDownloader.startDownload(this);
}
initUmeng()
PlayerFactory.setPlayManager(Exo2PlayerManager::class.java)
}
fun initUmeng() {
... ...