Commit 74a916fa authored by 李维's avatar 李维

在退出全屏时,隐藏控制条(程序隐藏)

parent b0bb37aa
......@@ -684,6 +684,8 @@ export default class VideoPlayerComponent extends cc.Component {
this.showHideMiddleLayerBackBtn(true);
// 标记退出全屏
this.isVideoFull = false;
// 主动隐藏全屏视频控制条
this.fullscreenVideoControls.emit("hide");
// 显示正常视频控制条
this.videoControls.active = true;
// 显示全屏按钮
......
......@@ -73,9 +73,11 @@ export default class NewClass extends cc.Component {
this.show()
})
// this.node.on("hide", (opt)=>{
// this.hide()
// })
this.node.on("hide", (opt)=>{
this.node.opacity = 255;
this.node.x = -this.winWidth;
this.cleanMyTimeout()
})
this.node.on("tips", (opt)=>{
const {message, startTime, endTime} = opt
......@@ -266,10 +268,7 @@ export default class NewClass extends cc.Component {
}
protected onDestroy(): void {
if(this.hideSetTimeoutId) {
clearTimeout(this.hideSetTimeoutId)
this.hideSetTimeoutId = null;
}
this.cleanMyTimeout()
}
// update (dt) {}
}
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