We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mVideoPlayer.setDataSource(liveRoom.getLivePlayUrl()); mVideoPlayer.prepareAsync();
......
Log.d(msg,"=================> positionMs=" + (positionMs/1000)); Log.d(msg,"=================> player.getCurrentPosition()1=" + player.getCurrentPosition()); player.seekTo(positionMs); Log.d(msg,"=================> player.getCurrentPosition()2=" + player.getCurrentPosition());
player.seekTo(positionMs)的前后获取的player.getCurrentPosition()居然是一样的。视频也没有前进到指定时间。
The text was updated successfully, but these errors were encountered:
找到问题了,请忽略。 源码里面跳转判断播放了才能跳转,刚好我在跳转之前,先暂停。 取消暂停,直接跳转,就可以了。谢谢
Sorry, something went wrong.
客气了~
No branches or pull requests
mVideoPlayer.setDataSource(liveRoom.getLivePlayUrl());
mVideoPlayer.prepareAsync();
......
Log.d(msg,"=================> positionMs=" + (positionMs/1000));
Log.d(msg,"=================> player.getCurrentPosition()1=" + player.getCurrentPosition());
player.seekTo(positionMs);
Log.d(msg,"=================> player.getCurrentPosition()2=" + player.getCurrentPosition());
player.seekTo(positionMs)的前后获取的player.getCurrentPosition()居然是一样的。视频也没有前进到指定时间。
The text was updated successfully, but these errors were encountered: