VideoPlayerManager icon indicating copy to clipboard operation
VideoPlayerManager copied to clipboard

RecycleView fast scroll bug

Open wy353208214 opened this issue 9 years ago • 5 comments

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: qq 20160125193206

wy353208214 avatar Jan 25 '16 11:01 wy353208214

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.

danylovolokh avatar Jan 25 '16 20:01 danylovolokh

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

danylovolokh avatar Jan 25 '16 20:01 danylovolokh

Thx,your explain is right.

wy353208214 avatar Jan 25 '16 23:01 wy353208214

Encountered the same problem, I hope the author can be repaired as soon as possible

focusnews avatar Apr 11 '16 13:04 focusnews

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

olivine13 avatar May 19 '16 02:05 olivine13