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
683ddab7
Commit
683ddab7
authored
Oct 25, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复切换视频时中间会有空白的问题
parent
028a89ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+1
-2
defaultData_sn03_playVideo.js
assets/sn03_playVideo/Script/defaultData_sn03_playVideo.js
+5
-0
No files found.
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
683ddab7
...
@@ -387,8 +387,7 @@ export default class VideoPlayerComponent extends cc.Component {
...
@@ -387,8 +387,7 @@ export default class VideoPlayerComponent extends cc.Component {
// cc.find(`Canvas/loading`).active = true;
// cc.find(`Canvas/loading`).active = true;
cc
.
find
(
`Canvas/bg`
).
active
=
true
;
cc
.
find
(
`Canvas/bg`
).
active
=
true
;
cc
.
find
(
`Canvas/bgwhite`
).
active
=
true
;
cc
.
find
(
`Canvas/bgwhite`
).
active
=
true
;
// this.videoPlayer.node.x = -5000;
this
.
noPlayCover
.
active
=
true
;
// this.videoPlayer.node.y = -5000;
cc
.
find
(
`Canvas/videolist/view/content`
).
children
.
forEach
(
row
=>
{
cc
.
find
(
`Canvas/videolist/view/content`
).
children
.
forEach
(
row
=>
{
cc
.
find
(
`item_active`
,
row
).
active
=
false
;
cc
.
find
(
`item_active`
,
row
).
active
=
false
;
...
...
assets/sn03_playVideo/Script/defaultData_sn03_playVideo.js
View file @
683ddab7
...
@@ -6,6 +6,11 @@ export const defaultData = {
...
@@ -6,6 +6,11 @@ export const defaultData = {
"
title
"
:
"
The Old Man
"
,
"
title
"
:
"
The Old Man
"
,
"
cover
"
:
"
http://staging-teach.cdn.ireadabc.com/c8abf7383d65bcbdba8f390785cece60.png
"
,
"
cover
"
:
"
http://staging-teach.cdn.ireadabc.com/c8abf7383d65bcbdba8f390785cece60.png
"
,
"
video_url
"
:
"
http://teach.cdn.ireadabc.com/1217ce2df743a07f5c52d04f5e029504.mp4
"
"
video_url
"
:
"
http://teach.cdn.ireadabc.com/1217ce2df743a07f5c52d04f5e029504.mp4
"
},
{
"
title
"
:
"
The Old Man
"
,
"
cover
"
:
"
http://staging-teach.cdn.ireadabc.com/c8abf7383d65bcbdba8f390785cece60.png
"
,
"
video_url
"
:
"
http://teach.cdn.ireadabc.com/3712df6d4bbe5590c26e8080214e703f.mp4
"
}
}
]
]
};
};
\ No newline at end of file
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