Commit 4c9a6f38 authored by 李维's avatar 李维

修复切换全屏导致视频丢失的问题

parent 2d7921af
...@@ -5459,8 +5459,8 @@ ...@@ -5459,8 +5459,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-658.265, -658.5,
96.45499999999998, 88.5,
0, 0,
0, 0,
0, 0,
...@@ -5609,11 +5609,13 @@ ...@@ -5609,11 +5609,13 @@
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
"_target": null, "_target": {
"__id__": 2
},
"_alignFlags": 9, "_alignFlags": 9,
"_left": 250.235, "_left": 250,
"_right": 0, "_right": 0,
"_top": 392.045, "_top": 400,
"_bottom": 0, "_bottom": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
...@@ -5670,8 +5672,8 @@ ...@@ -5670,8 +5672,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
672.4639999999999, 658.5,
96.45499999999998, 88.5,
0, 0,
0, 0,
0, 0,
...@@ -5820,11 +5822,13 @@ ...@@ -5820,11 +5822,13 @@
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
"_target": null, "_target": {
"_alignFlags": 9, "__id__": 2
},
"_alignFlags": 33,
"_left": 1580.964, "_left": 1580.964,
"_right": 0, "_right": 250,
"_top": 392.045, "_top": 400,
"_bottom": 0, "_bottom": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
...@@ -5834,7 +5838,7 @@ ...@@ -5834,7 +5838,7 @@
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 0, "_originalWidth": 103,
"_originalHeight": 0, "_originalHeight": 0,
"_id": "12HwTNM6pDzJP+S+XhtaYG" "_id": "12HwTNM6pDzJP+S+XhtaYG"
}, },
......
...@@ -578,7 +578,6 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -578,7 +578,6 @@ export default class VideoPlayerComponent extends cc.Component {
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;
cc.find(`Canvas/title`).active = !this.isVideoFull; cc.find(`Canvas/title`).active = !this.isVideoFull;
cc.find(`Canvas/bg`).active = !this.isVideoFull;
const videoContainer = cc.find('Canvas/video_node'); const videoContainer = cc.find('Canvas/video_node');
this.tempPos.videoPos = { x: videoContainer.x, y: videoContainer.y, width: videoContainer.width, height: videoContainer.height }; this.tempPos.videoPos = { x: videoContainer.x, y: videoContainer.y, width: videoContainer.width, height: videoContainer.height };
...@@ -627,7 +626,6 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -627,7 +626,6 @@ export default class VideoPlayerComponent extends cc.Component {
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;
cc.find(`Canvas/title`).active = !this.isVideoFull; cc.find(`Canvas/title`).active = !this.isVideoFull;
cc.find(`Canvas/bg`).active = !this.isVideoFull;
const videoContainer = cc.find('Canvas/video_node'); const videoContainer = cc.find('Canvas/video_node');
videoContainer.width = this.tempPos.videoPos.width; videoContainer.width = this.tempPos.videoPos.width;
......
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