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
84c54d2f
Commit
84c54d2f
authored
Oct 20, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
a85f11af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
ngt_video.js
assets/ngt_video/Scene/ngt_video.js
+9
-7
No files found.
assets/ngt_video/Scene/ngt_video.js
View file @
84c54d2f
...
@@ -176,6 +176,8 @@ cc.Class({
...
@@ -176,6 +176,8 @@ cc.Class({
});
});
this
.
videoPlayer
.
node
.
on
(
'
clicked
'
,
()
=>
{
this
.
videoPlayer
.
node
.
on
(
'
clicked
'
,
()
=>
{
console
.
log
(
'
clicked
'
);
console
.
log
(
'
clicked
'
);
});
this
.
videoPlayer
.
node
.
on
(
'
touchstart
'
,
()
=>
{
if
(
this
.
isVideoFull
)
{
if
(
this
.
isVideoFull
)
{
this
.
videoPlayer
.
stayOnBottom
=
true
;
this
.
videoPlayer
.
stayOnBottom
=
true
;
cc
.
find
(
`Canvas/Controls`
).
active
=
true
;
cc
.
find
(
`Canvas/Controls`
).
active
=
true
;
...
@@ -187,7 +189,7 @@ cc.Class({
...
@@ -187,7 +189,7 @@ cc.Class({
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
},
6000
);
},
6000
);
}
}
});
})
this
.
videoPlayer
.
node
.
on
(
'
playing
'
,
()
=>
{
this
.
videoPlayer
.
node
.
on
(
'
playing
'
,
()
=>
{
console
.
log
(
'
playing
'
);
console
.
log
(
'
playing
'
);
this
.
durationLabel
.
string
=
this
.
formatTime
(
this
.
videoPlayer
.
getDuration
());
this
.
durationLabel
.
string
=
this
.
formatTime
(
this
.
videoPlayer
.
getDuration
());
...
@@ -277,11 +279,11 @@ cc.Class({
...
@@ -277,11 +279,11 @@ cc.Class({
this
.
updateBarByPos
(
newX
);
this
.
updateBarByPos
(
newX
);
// console.log("ProgressBar TOUCH_START", newX);
// console.log("ProgressBar TOUCH_START", newX);
});
});
this
.
videoPlayer
.
node
.
off
(
cc
.
Node
.
EventType
.
TOUCH_START
);
//
this.videoPlayer.node.off(cc.Node.EventType.TOUCH_START);
this
.
videoPlayer
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
e
)
=>
{
//
this.videoPlayer.node.on(cc.Node.EventType.TOUCH_START, (e) => {
console
.
log
(
"
screen TOUCH_START
"
);
//
console.log("screen TOUCH_START");
this
.
triggerInteractive
()
//
this.triggerInteractive()
});
//
});
const
pgBar
=
this
.
ProgressBar
;
const
pgBar
=
this
.
ProgressBar
;
this
.
tw
=
new
(
function
(){
this
.
tw
=
new
(
function
(){
this
.
_tw
=
cc
.
tween
(
pgBar
).
delay
(
3
).
to
(.
6
,
{
this
.
_tw
=
cc
.
tween
(
pgBar
).
delay
(
3
).
to
(.
6
,
{
...
...
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