VideoPlayerManager icon indicating copy to clipboard operation
VideoPlayerManager copied to clipboard

MessagesHandlerThread may blocked

Open wkq87 opened this issue 8 years ago • 1 comments

In VideoPlayerView start method, object mReadyForPlaybackIndicator may wait all the time, try { mReadyForPlaybackIndicator.wait(); } catch (InterruptedException e) { throw new RuntimeException(e); } but sometimes the player may occur error while playing and no error callback,then the method may blocked forever. And this will cause MessagesHandlerThread blocked too. if (SHOW_LOGS) Logger.v(TAG, "run, mLastMessage " + mLastMessage); mLastMessage.runMessage(); if (SHOW_LOGS) Logger.v(TAG, "run, mLastMessage finished"); this make start method in VideoPlayerView becomes synchronized,so MessageHandler cannot work again even you start a new player. should we move this wait block to another place when we call method mReadyForPlaybackIndicator.notifyAll()?

wkq87 avatar Jan 24 '17 03:01 wkq87

遇到了这个问题,有好的解决方案吗 @wkq87

zzhangxiaoyun avatar Mar 16 '17 10:03 zzhangxiaoyun