Skip to content
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

横竖屏切换会闪退 #268

Open
yoakerin opened this issue Feb 26, 2024 · 0 comments
Open

横竖屏切换会闪退 #268

yoakerin opened this issue Feb 26, 2024 · 0 comments

Comments

@yoakerin
Copy link

采用取出播放器后重新添加到decorView的方式实现全屏的时候,会闪退
//从当前FrameLayout中移除播放器视图
removeView(binding.root)
//将播放器视图添加到DecorView中即实现了全屏
decorView.addView(binding.root)

java.lang.IllegalStateException: Unable to update texture contents (see logcat for details)
at android.graphics.SurfaceTexture.nativeUpdateTexImage(Native Method)
at android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:243)
at com.asha.vrlib.texture.MD360VideoTexture.texture(MD360VideoTexture.java:101)
at com.asha.vrlib.plugins.MDPanoramaPlugin.renderer(MDPanoramaPlugin.java:80)
at com.asha.vrlib.MD360Renderer.onDrawFrame(MD360Renderer.java:119)
at com.google.android.apps.muzei.render.GLTextureView$GLThread.guardedRun(GLTextureView.java:1321)
at com.google.android.apps.muzei.render.GLTextureView$GLThread.run(GLTextureView.java:1023)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant