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
c2d73f53
Commit
c2d73f53
authored
Oct 23, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整全屏尺寸
parent
350476a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+3
-2
defaultData_sn03_playVideo.js
assets/sn03_playVideo/Script/defaultData_sn03_playVideo.js
+1
-1
No files found.
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
c2d73f53
...
...
@@ -444,13 +444,12 @@ export default class VideoPlayerComponent extends cc.Component {
cc
.
find
(
`Canvas/btn_last`
).
y
=
-
39.603
;
cc
.
find
(
`Canvas/btn_next`
).
x
=
734.101
;
cc
.
find
(
`Canvas/btn_next`
).
y
=
-
39.603
;
cc
.
find
(
`Canvas/VideoNode`
).
scale
=
1.4
7
;
cc
.
find
(
`Canvas/VideoNode`
).
scale
=
1.4
39
;
cc
.
find
(
`Canvas/Controls`
).
scale
=
1.2
;
cc
.
find
(
`Canvas/Controls`
).
y
=
-
670
;
cc
.
find
(
`Canvas/Controls`
).
x
+=
50
;
this
.
videoPlayIndex
=
0
;
this
.
videoItemList
[
0
].
emit
(
'
my_item_click
'
);
}
});
...
...
@@ -581,6 +580,8 @@ export default class VideoPlayerComponent extends cc.Component {
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
.
width
*=
videoContainer
.
scale
;
this
.
tempPos
.
videoPos
.
height
*=
videoContainer
.
scale
;
videoContainer
.
width
=
this
.
node
.
width
;
videoContainer
.
height
=
this
.
node
.
height
;
videoContainer
.
x
=
0
;
...
...
assets/sn03_playVideo/Script/defaultData_sn03_playVideo.js
View file @
c2d73f53
...
...
@@ -5,7 +5,7 @@ export const defaultData = {
{
"
title
"
:
"
The Old Man
"
,
"
cover
"
:
"
http://staging-teach.cdn.ireadabc.com/c8abf7383d65bcbdba8f390785cece60.png
"
,
"
video_url
"
:
"
http://
staging-teach.cdn.ireadabc.com/c37a3945121274a1f7d95717327539ec
.mp4
"
"
video_url
"
:
"
http://
teach.cdn.ireadabc.com/1217ce2df743a07f5c52d04f5e029504
.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