Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ngt_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
ngt_video
Commits
7374b001
Commit
7374b001
authored
Oct 21, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 拖动进度条总会弹到第一帧的问题
parent
bc81ef00
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
11 deletions
+27
-11
ngt_video.meta
assets/ngt_video.meta
+15
-1
ngt_video.js
assets/ngt_video/Scene/ngt_video.js
+9
-8
defaultData.js
assets/ngt_video/Script/defaultData.js
+3
-2
No files found.
assets/ngt_video.meta
View file @
7374b001
{"ver":"1.1.2","uuid":"4f557179-a05f-4891-bac0-6a3d0275c8ce","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "4f557179-a05f-4891-bac0-6a3d0275c8ce",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/ngt_video/Scene/ngt_video.js
View file @
7374b001
...
...
@@ -283,14 +283,15 @@ cc.Class({
this
.
updateBarByPos
(
this
.
barTag
.
x
);
this
.
triggerInteractive
()
});
this
.
ProgressBar
.
off
(
cc
.
Node
.
EventType
.
TOUCH_START
);
this
.
ProgressBar
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
e
)
=>
{
const
pos
=
e
.
getLocation
();
const
pPos
=
this
.
ProgressBar
.
convertToNodeSpaceAR
(
pos
);
const
newX
=
Math
.
min
(
maxX
,
Math
.
max
(
pPos
.
x
,
minX
));
this
.
updateBarByPos
(
newX
);
// console.log("ProgressBar TOUCH_START", newX);
});
// this.ProgressBar.off(cc.Node.EventType.TOUCH_START);
// this.ProgressBar.on(cc.Node.EventType.TOUCH_START, (e) => {
// console.log("==ProgressBar TOUCH_START==");
// const pos = e.getLocation();
// const pPos = this.ProgressBar.convertToNodeSpaceAR(pos);
// const newX = Math.min(maxX, Math.max(pPos.x, minX));
// this.updateBarByPos(newX);
// // console.log("ProgressBar TOUCH_START", newX);
// });
// this.videoPlayer.node.off(cc.Node.EventType.TOUCH_START);
// this.videoPlayer.node.on(cc.Node.EventType.TOUCH_START, (e) => {
// console.log("screen TOUCH_START");
...
...
assets/ngt_video/Script/defaultData.js
View file @
7374b001
...
...
@@ -2,7 +2,7 @@
export
const
defaultData
=
{
"
title
"
:
"
Look,count and say and.
"
,
"
tipSwitch
"
:
"
1
"
,
"
tipSwitch
"
:
"
0
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/af5208a0e0d869f6be410c46e50bb501_l.mp3
"
,
"
imgAni
"
:
{
"
ske
"
:
{
...
...
@@ -18,6 +18,7 @@ export const defaultData = {
"
name
"
:
"
niao_tex.png
"
}
},
"
video_url
"
:
"
http://staging-teach.cdn.ireadabc.com/c8b49f6f032bd91a637df072c01ccaf7.mp4
"
,
// "video_url": "http://staging-teach.cdn.ireadabc.com/c8b49f6f032bd91a637df072c01ccaf7.mp4",
"
video_url
"
:
"
http://staging-teach.cdn.ireadabc.com/5d2e56f9c0d4307ab08df600d913b011.mp4
"
,
"
audioName
"
:
""
};
\ 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