2.3.50 请问在多视频播放的时候 有提供切换到制定的视频吗 比如 switch2Index()
ganzhex2019 opened this issue · comments
这是设置视频UrlList exoPlayerManager.setPlayUri(urlList)
请问有 有提供切换到制定的视频的方法吗
看了下源码 只有上一个 下一个
/***
* 下跳转下一个视频
*/
public void next() {
player.next();
}
/***
* 下跳转上一个视频
*/
public void previous() {
player.previous();
}
好的 我知道了
重新加了个方法
/**
* 切换到指定 index视频
* @param index
*/
public void switch2Index(int index){
if (index != C.INDEX_UNSET) {
player.seekToDefaultPosition(index);
}
}