New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错java.lang.IllegalStateException,偶发性. #162

Closed
zhew117 opened this Issue Jun 29, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@zhew117

zhew117 commented Jun 29, 2016

java.lang.IllegalStateException
at android.media.MediaPlayer._setVideoSurface(Native Method)
at android.media.MediaPlayer.setSurface(MediaPlayer.java:813)
at fm.jiecao.jcvideoplayer_lib.JCMediaManager$MediaHandler.handleMessage(JCMediaManager.java:104)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)

@zhew117

This comment has been minimized.

Show comment
Hide comment
@zhew117

zhew117 Jun 29, 2016

RecyclerView当中使用了

CVideoPlayerStandard jcVideoPlayerStandard = holder.getView(R.id.custom_videoplayer_standard);
jcVideoPlayerStandard.setUp(item.getShortVideo().getVideoUrlWithToken(),"1");
ImageLoaderUtil.displayImage(URLs.makeNormalRemoteImageUrl(
item.getShortVideo().getVideoPic(), thumbImageSize),jcVideoPlayerStandard.thumbImageView);

zhew117 commented Jun 29, 2016

RecyclerView当中使用了

CVideoPlayerStandard jcVideoPlayerStandard = holder.getView(R.id.custom_videoplayer_standard);
jcVideoPlayerStandard.setUp(item.getShortVideo().getVideoUrlWithToken(),"1");
ImageLoaderUtil.displayImage(URLs.makeNormalRemoteImageUrl(
item.getShortVideo().getVideoPic(), thumbImageSize),jcVideoPlayerStandard.thumbImageView);

@lipangit

This comment has been minimized.

Show comment
Hide comment
@lipangit

lipangit Jun 29, 2016

Owner

在setSurface之前已经判断了isValid了,不知道为什么还能设置失败,这个好像和RecyclerView关系不大,你在调试中有啥想法吗

Owner

lipangit commented Jun 29, 2016

在setSurface之前已经判断了isValid了,不知道为什么还能设置失败,这个好像和RecyclerView关系不大,你在调试中有啥想法吗

@zhew117

This comment has been minimized.

Show comment
Hide comment
@zhew117

zhew117 Jun 29, 2016

甩锅给三星~~~

zhew117 commented Jun 29, 2016

甩锅给三星~~~

@lipangit lipangit closed this Jul 17, 2016

@FYSong

This comment has been minimized.

Show comment
Hide comment
@FYSong

FYSong Jan 26, 2018

跟是否三星无关,应该是mediaPlayer release了

FYSong commented Jan 26, 2018

跟是否三星无关,应该是mediaPlayer release了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment