Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sbox_video
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
sbox_video
Commits
62377d35
Commit
62377d35
authored
Dec 20, 2021
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8b3b714e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sbox_video.js
assets/sbox_video/Scene/sbox_video.js
+3
-2
No files found.
assets/sbox_video/Scene/sbox_video.js
View file @
62377d35
...
...
@@ -154,7 +154,7 @@ cc.Class({
this
.
ProgressBar
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
e
)
=>
{
const
pos
=
e
.
getLocation
();
const
pPos
=
this
.
ProgressBar
.
node
.
convertToNodeSpaceAR
(
pos
);
newX
=
Math
.
min
(
maxX
,
Math
.
max
(
pPos
.
x
,
minX
));
const
newX
=
Math
.
min
(
maxX
,
Math
.
max
(
pPos
.
x
,
minX
));
this
.
updateBarByPos
(
newX
);
// console.log("ProgressBar TOUCH_START", newX);
});
...
...
@@ -296,7 +296,8 @@ cc.Class({
},
getDefaultData
()
{
// return {video_url: "http://staging-teach.cdn.ireadabc.com/5826aa205a4d33bf65552778b2aaf6f8.mp4"}
return
{
video_url
:
"
http://staging-teach.cdn.ireadabc.com/d2b6b86798ef09034bf29417a0e747d2.mp4
"
}
// return {video_url: "http://staging-teach.cdn.ireadabc.com/d2b6b86798ef09034bf29417a0e747d2.mp4"}
return
{
video_url
:
"
https://iplayabc-teach-yun-test.oss-cn-beijing.aliyuncs.com/movie2.mp4
"
}
},
play
(){
...
...
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