Android VideoPlayer 在滚动列表实现item视频播放(ListView控件和RecyclerView),在列表滚动时点击屏幕列表暂停,在item视频播放区域,视频播放时会出现闪屏问题。java
排查解决,VideoPlayerManager-》MediaPlayerWrapper.java->prepare()app
: { .prepareAsync().set(State.)(!= ) { .post()} } (IllegalStateException ex) { RuntimeException(ex)}
改成prepareAsync()异步准备播放。能够解决闪屏问题。异步
相关参考文章:ide
一、http://blog.csdn.net/u012519664/article/details/41173381 post
二、http://blog.csdn.net/qq_24223073/article/details/69315856 Android关于MediaPlayer中的prepare方法和prepareAsync方法的区别spa
三、http://blog.csdn.net/wooder111/article/details/51513582 Android在滚动列表中实现视频的播放(ListView & RecyclerView).net