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

播放视频退出全屏后页面黑屏了,但是有声音 #122

Open
mojun opened this issue Jan 18, 2022 · 1 comment
Open

播放视频退出全屏后页面黑屏了,但是有声音 #122

mojun opened this issue Jan 18, 2022 · 1 comment

Comments

@mojun
Copy link

mojun commented Jan 18, 2022

初步怀疑是以下方法
private void fullViewAddView(View view) { //增强逻辑判断,尤其是getWindow() if (context!=null && context instanceof Activity){ Activity activity = (Activity) context; if (activity.getWindow()!=null){ FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); videoFullView = new FullscreenHolder(activity); videoFullView.addView(view); X5LogUtils.i("--Video-----onShowCustomView----添加view到decorView容齐中---"); decor.addView(videoFullView); } } }
添加到decorView上面的videoFullView未被移除掉
接下来只能先重新整个类

@xzz-666
Copy link

xzz-666 commented Oct 12, 2022

哥们,后面找到解决的方法了么 ,我也遇到了这个问题

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

2 participants