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
8ed61a1c
Commit
8ed61a1c
authored
Oct 26, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整为自动播放
parent
17d22488
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+3
-5
No files found.
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
8ed61a1c
...
...
@@ -445,8 +445,8 @@ export default class VideoPlayerComponent extends cc.Component {
cc
.
find
(
`Canvas/Controls`
).
y
=
-
670
;
cc
.
find
(
`Canvas/Controls`
).
x
+=
50
;
this
.
videoPlayIndex
=
0
;
this
.
videoItemList
[
0
].
emit
(
'
my_item_click
'
);
}
this
.
videoItemList
[
0
].
emit
(
'
my_item_click
'
);
});
if
(
window
.
CustomEvent
)
{
...
...
@@ -590,7 +590,7 @@ export default class VideoPlayerComponent extends cc.Component {
videoContainer
.
y
=
0
;
const
maskCom
=
videoContainer
.
getComponent
(
cc
.
Mask
);
maskCom
.
enabled
=
false
;
maskCom
.
type
=
cc
.
Mask
.
Type
.
RECT
;
cc
.
find
(
`Canvas/videolist`
).
active
=
false
;
const
controls
=
cc
.
find
(
`Canvas/Controls`
);
...
...
@@ -637,14 +637,12 @@ export default class VideoPlayerComponent extends cc.Component {
videoContainer
.
x
=
this
.
tempPos
.
videoPos
.
x
;
videoContainer
.
y
=
this
.
tempPos
.
videoPos
.
y
;
// this.videoPlayer.node.width = this.tempPos.videoPos.width;
// this.videoPlayer.node.height = this.tempPos.videoPos.height;
this
.
videoPlayer
.
node
.
scale
=
this
.
tempPos
.
videoPos
.
scale
;
this
.
videoPlayer
.
node
.
x
=
videoContainer
.
x
;
this
.
videoPlayer
.
node
.
y
=
videoContainer
.
y
;
const
maskCom
=
videoContainer
.
getComponent
(
cc
.
Mask
);
maskCom
.
enabled
=
true
;
maskCom
.
type
=
cc
.
Mask
.
Type
.
ELLIPSE
;
cc
.
find
(
`Canvas/videolist`
).
active
=
this
.
data
.
dataArr
.
length
>
1
;
...
...
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