danylovolokh / VideoPlayerManager

This is a project designed to help controlling Android MediaPlayer class. It makes it easier to use MediaPlayer ListView and RecyclerView. Also it tracks the most visible item in scrolling list. When new item in the list become the most visible, this library gives an API to track it.
3.15k stars 746 forks source link

cannot stop. Player in mState ERROR #59

Open alaaodeh95 opened 7 years ago

alaaodeh95 commented 7 years ago

02-18 12:22:11.787 29632-29959/? E/AndroidRuntime: FATAL EXCEPTION: pool-6-thread-1 Process: com.maddarek.guzel, PID: 29632 java.lang.IllegalStateException: cannot stop. Player in mState ERROR at com.volokh.danylo.video_player_manager.ui.MediaPlayerWrapper.stop(MediaPlayerWrapper.java:433) at com.volokh.danylo.video_player_manager.ui.VideoPlayerView.stop(VideoPlayerView.java:186) at com.volokh.danylo.video_player_manager.player_messages.Stop.performAction(Stop.java:19) at com.volokh.danylo.video_player_manager.player_messages.PlayerMessage.runMessage(PlayerMessage.java:40) at com.volokh.danylo.video_player_manager.MessagesHandlerThread$1.run(MessagesHandlerThread.java:61) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841)

hasanmumin commented 7 years ago

any solution ?

dayanithi06 commented 7 years ago

@hasanmumin I also received the error because i did not load the correct file or url try to load the correct file format or the url . especially check weather u are loading it in the image. I am not sure is this is the case for you. thx