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
12c66479
Commit
12c66479
authored
Oct 24, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复错误
parent
83cf299f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+3
-3
No files found.
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
12c66479
...
...
@@ -229,9 +229,9 @@ export default class VideoPlayerComponent extends cc.Component {
}
refreshLastNextBtns
(){
cc
.
find
(
"
Canvas/btn_last
"
).
active
=
this
.
videoPlayIndex
!=
0
cc
.
find
(
"
Canvas/
pageButton/
btn_last
"
).
active
=
this
.
videoPlayIndex
!=
0
if
(
this
.
videoItemList
)
{
cc
.
find
(
"
Canvas/btn_next
"
).
active
=
this
.
videoPlayIndex
!=
this
.
videoItemList
.
length
-
1
cc
.
find
(
"
Canvas/
pageButton/
btn_next
"
).
active
=
this
.
videoPlayIndex
!=
this
.
videoItemList
.
length
-
1
}
}
...
...
@@ -611,7 +611,7 @@ export default class VideoPlayerComponent extends cc.Component {
cc
.
find
(
`Canvas/btn_return`
).
active
=
!
this
.
isVideoFull
;
cc
.
find
(
`Canvas/title`
).
active
=
!
this
.
isVideoFull
;
cc
.
find
(
'
Canvas/pageButton
'
).
active
=
true
;
const
videoContainer
=
cc
.
find
(
'
Canvas/video_node
'
);
videoContainer
.
width
=
this
.
tempPos
.
videoPos
.
width
;
videoContainer
.
height
=
this
.
tempPos
.
videoPos
.
height
;
...
...
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