-
Notifications
You must be signed in to change notification settings - Fork 358
Description
采用取出播放器后重新添加到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)