Skip to content

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

@mojun

Description

@mojun

初步怀疑是以下方法
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未被移除掉
接下来只能先重新整个类

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions