VideoPlayerManager
VideoPlayerManager copied to clipboard
RecycleView fast scroll bug
hi,
this project is very helpful for me, i download the demo and import. when the recycleView scroll state is FLING, it will crash and throw an exception which is defined by yourself. and the log is:
Hi,
I see that you got the IO exception when Prepare message was running. And result of Prepare is "Error".
Then for some reason we call "Stop" and player cannot be stopped in "Error" state. That's why we throw exception. We should not call "Stop" in this case.
The library version is "0.2.0". It meant that it is still raw. But it is not in active phase of development. Please try to fix it by yourself. Don't hesitate to ask questions if you need something.
IO exception might be caused when you try to open a file that does not exist or when you don't have internet connection and trying to play cloud source
Thx,your explain is right.
Encountered the same problem, I hope the author can be repaired as soon as possible
to solve this problem,my solution is add SimpleMainThreadMediaPlayerListener and implements onErrorMainThread method like:
new SimpleMainThreadMediaPlayerListener(){
@Override
public void onErrorMainThread(int what, int extra) {
Log.d(TAG, "onErrorMainThread");
mVideoPlayerManager.resetMediaPlayer();
}
}
this works well for me