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
71939b6a
Commit
71939b6a
authored
Oct 23, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整布局
parent
9dde0c9a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
256 additions
and
614 deletions
+256
-614
.DS_Store
.DS_Store
+0
-0
sn03_playVideo.fire
assets/sn03_playVideo/Scene/sn03_playVideo.fire
+256
-608
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+0
-6
No files found.
.DS_Store
View file @
71939b6a
No preview for this file type
assets/sn03_playVideo/Scene/sn03_playVideo.fire
View file @
71939b6a
This diff is collapsed.
Click to expand it.
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
71939b6a
...
...
@@ -144,7 +144,6 @@ export default class VideoPlayerComponent extends cc.Component {
// cc.find('Canvas/bg').zIndex=-1
// cc.find('Canvas/VideoNode').zIndex=0
// cc.find('Canvas/video_node').zIndex=1
// cc.find('Canvas/bg_video_shadow').zIndex=2
// cc.find('Canvas/Controls').zIndex=3
// cc.find('Canvas/videolist').zIndex=4
// cc.find('Canvas/btn_return').zIndex=5
...
...
@@ -156,7 +155,6 @@ export default class VideoPlayerComponent extends cc.Component {
this
.
videoPlayer
.
node
.
on
(
'
ready-to-play
'
,
()
=>
{
console
.
log
(
'
ready-to-play
'
);
this
.
playButton
.
node
.
active
=
true
;
cc
.
find
(
`Canvas/bg_video_shadow`
).
active
=
false
;
// cc.find(`Canvas/loading`).active = false;
this
.
durationLabel
.
string
=
this
.
formatTime
(
this
.
videoPlayer
.
getDuration
());
this
.
_isReadyToPlay
=
true
;
...
...
@@ -395,7 +393,6 @@ export default class VideoPlayerComponent extends cc.Component {
// cc.find(`Canvas/loading`).active = true;
cc
.
find
(
`Canvas/bg`
).
active
=
true
;
cc
.
find
(
`Canvas/bgwhite`
).
active
=
true
;
// cc.find(`Canvas/bg_video_shadow`).active = true;
// this.videoPlayer.node.x = -5000;
// this.videoPlayer.node.y = -5000;
...
...
@@ -451,8 +448,6 @@ export default class VideoPlayerComponent extends cc.Component {
cc
.
find
(
`Canvas/video_node`
).
width
*=
1.2
cc
.
find
(
`Canvas/video_node`
).
height
*=
1.2
cc
.
find
(
`Canvas/video_node`
).
y
=
73.311
cc
.
find
(
`Canvas/bg_video_shadow`
).
scale
=
1.2
cc
.
find
(
`Canvas/bg_video_shadow`
).
y
=
59.039
cc
.
find
(
`Canvas/btn_last`
).
x
=-
734.101
cc
.
find
(
`Canvas/btn_last`
).
y
=-
39.603
cc
.
find
(
`Canvas/btn_next`
).
x
=
734.101
...
...
@@ -544,7 +539,6 @@ export default class VideoPlayerComponent extends cc.Component {
cc
.
find
(
`Canvas/text_tips`
).
active
=
false
;
// cc.find(`Canvas/bg`).active = false;
cc
.
find
(
`Canvas/bgwhite`
).
active
=
false
;
cc
.
find
(
`Canvas/bg_video_shadow`
).
active
=
false
;
const
videoContainer
=
cc
.
find
(
'
Canvas/video_node
'
);
cc
.
find
(
'
bg
'
,
videoContainer
).
width
=
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