Skip to content
New issue

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

网络异常,恢复网络后如何从断开的位置继续播放 #116

Closed
chenwulue opened this issue May 23, 2016 · 1 comment
Closed

Comments

@chenwulue
Copy link

chenwulue commented May 23, 2016

网络断开
播到01:22提示网络出错
网络恢复
执行resume无效。。。
看demo说
The PLMediaPlayer has moved to the Error state, if you want to retry, must reset first !
try {
mMediaPlayer.reset();
mMediaPlayer.setDisplay(mSurfaceView.getHolder());
mMediaPlayer.setDataSource(mVideoPath);
mMediaPlayer.prepareAsync();
} catch (IOException e) {
e.printStackTrace();
}
但是这样就直接从头开发播放了,请问要怎么从停止的位置播放呢?自己记录position,用seekTo实现?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants