Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn03_playVideo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
sn03_playVideo
Commits
4c9a6f38
Commit
4c9a6f38
authored
Oct 23, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复切换全屏导致视频丢失的问题
parent
2d7921af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
sn03_playVideo.fire
assets/sn03_playVideo/Scene/sn03_playVideo.fire
+16
-12
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+0
-2
No files found.
assets/sn03_playVideo/Scene/sn03_playVideo.fire
View file @
4c9a6f38
...
@@ -5459,8 +5459,8 @@
...
@@ -5459,8 +5459,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-658.
26
5,
-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": [
6
72.4639999999999
,
6
58.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":
25
0,
"_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"
},
},
...
...
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
4c9a6f38
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment