You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalStateException
at android.media.MediaPlayer._reset(Native Method)
at android.media.MediaPlayer.reset(MediaPlayer.java:2242)
at com.kk.taurus.playerbase.player.SysMediaPlayer.reset(SysMediaPlayer.java:364)
at com.kk.taurus.playerbase.player.SysMediaPlayer.handleException(SysMediaPlayer.java:384)
at com.kk.taurus.playerbase.player.SysMediaPlayer.setSurface(SysMediaPlayer.java:161)
at com.kk.taurus.playerbase.AVPlayer.setSurface(AVPlayer.java:471)
at com.kk.taurus.playerbase.widget.BaseVideoView.setRenderType(BaseVideoView.java:351)
at com.kk.taurus.playerbase.widget.BaseVideoView.setDataSource(BaseVideoView.java:198)
at com.maiyawx.oa.pages.message.adapter.VideoProvider.changeVideoState(VideoProvider.java:129)
at com.maiyawx.oa.pages.message.adapter.VideoProvider$1.onClick(VideoProvider.java:40)
at android.view.View.performClick(View.java:6608)
at android.view.View.performClickInternal(View.java:6585)
at android.view.View.access$3100(View.java:785)
at android.view.View$PerformClick.run(View.java:25921)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6806)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
The text was updated successfully, but these errors were encountered:
我在做RecyclerView 列表播放器功能
目前就是我想要在item被隐藏时调用 stopPlayback对播放器进行销毁操作
现在隐藏时调用stopPlayback后再去 执行setDataSource 会报错
java.lang.IllegalStateException
at android.media.MediaPlayer._reset(Native Method)
at android.media.MediaPlayer.reset(MediaPlayer.java:2242)
at com.kk.taurus.playerbase.player.SysMediaPlayer.reset(SysMediaPlayer.java:364)
at com.kk.taurus.playerbase.player.SysMediaPlayer.handleException(SysMediaPlayer.java:384)
at com.kk.taurus.playerbase.player.SysMediaPlayer.setSurface(SysMediaPlayer.java:161)
at com.kk.taurus.playerbase.AVPlayer.setSurface(AVPlayer.java:471)
at com.kk.taurus.playerbase.widget.BaseVideoView.setRenderType(BaseVideoView.java:351)
at com.kk.taurus.playerbase.widget.BaseVideoView.setDataSource(BaseVideoView.java:198)
at com.maiyawx.oa.pages.message.adapter.VideoProvider.changeVideoState(VideoProvider.java:129)
at com.maiyawx.oa.pages.message.adapter.VideoProvider$1.onClick(VideoProvider.java:40)
at android.view.View.performClick(View.java:6608)
at android.view.View.performClickInternal(View.java:6585)
at android.view.View.access$3100(View.java:785)
at android.view.View$PerformClick.run(View.java:25921)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6806)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
The text was updated successfully, but these errors were encountered: