danylovolokh/VideoPlayerManager

RuntimeException: cannot perform action, you are not holding a lock

RameshJangama opened this issue · 0 comments

I have ported this VideoPlayerManager in my app. Whenever I refresh layout to get new videos from API, next video is not automatically playing. While debuging I found below exception. Has any one seen this problem? Any pointer or suggestions to fix this?

java.lang.RuntimeException: cannot perform action, you are not holding a lock
at com.volokh.danylo.video_player_manager.MessagesHandlerThread.clearAllPendingMessages(SourceFile:98)
at com.volokh.danylo.video_player_manager.manager.SingleVideoPlayerManager.startNewPlayback(SourceFile:212)
at com.volokh.danylo.video_player_manager.manager.SingleVideoPlayerManager.playNewVideo(SourceFile:90)
at chat.chit.com.app.socialDetail.video_manager.VideoItem.playNewVideo(SourceFile:111)
at chat.chit.com.app.socialDetail.video_manager.BaseVideoItem.setActive(SourceFile:64)
at chat.chit.com.app.home.home.HomeFragment.d(SourceFile:897)
at chat.chit.com.app.home.home.f.run(lambda)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7406)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)