Commit 9dde0c9a authored by 李维's avatar 李维

修复切换是全屏视频时背景白色的问题

parent 2fdf3931
...@@ -639,6 +639,7 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -639,6 +639,7 @@ export default class VideoPlayerComponent extends cc.Component {
} }
console.log("====退出全屏===", this.tempPos); console.log("====退出全屏===", this.tempPos);
this.isVideoFull = false; this.isVideoFull = false;
this.videoPlayer.stayOnBottom = false;
cc.find(`Canvas/Controls/fullscreen`).active = !this.isVideoFull; cc.find(`Canvas/Controls/fullscreen`).active = !this.isVideoFull;
cc.find(`Canvas/Controls/exitfull`).active = this.isVideoFull; cc.find(`Canvas/Controls/exitfull`).active = this.isVideoFull;
cc.find(`Canvas/btn_return`).active = !this.isVideoFull; cc.find(`Canvas/btn_return`).active = !this.isVideoFull;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment