播放本地视频不生效
ganzhex2019 opened this issue · comments
最新版demo里面没有播放本地视频
请问播放本地视频怎么生效呢
exoPlayerManager.setPlayUri(localPath)
请问是哪里不对吗
/**
* 本地播放器实例化
*/
private val wholeMediaSource by lazy {
WholeMediaSource(this, Data2Source(applicationContext))
}
private val exoPlayerManager by lazy {
VideoPlayerManager
.Builder(VideoPlayerManager.TYPE_PLAY_USER, localplayer_videoview)
.setDataSource(wholeMediaSource)
.create()
}