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
c8a5561e
Commit
c8a5561e
authored
Nov 14, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉暂停视频逻辑
parent
e73c5be5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
videoControl_sn03_playVideo.ts
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts
+7
-7
No files found.
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts
View file @
c8a5561e
...
@@ -223,7 +223,7 @@ export default class NewClass extends cc.Component {
...
@@ -223,7 +223,7 @@ export default class NewClass extends cc.Component {
this
.
progressDot
.
off
(
cc
.
Node
.
EventType
.
TOUCH_START
);
this
.
progressDot
.
off
(
cc
.
Node
.
EventType
.
TOUCH_START
);
this
.
progressDot
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
e
)
=>
{
this
.
progressDot
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
e
)
=>
{
this
.
draging
=
true
;
this
.
draging
=
true
;
this
.
node
.
emit
(
"
pause
"
);
//
this.node.emit("pause");
});
});
this
.
progressDot
.
off
(
cc
.
Node
.
EventType
.
TOUCH_MOVE
);
this
.
progressDot
.
off
(
cc
.
Node
.
EventType
.
TOUCH_MOVE
);
...
@@ -246,9 +246,9 @@ export default class NewClass extends cc.Component {
...
@@ -246,9 +246,9 @@ export default class NewClass extends cc.Component {
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
(
e
)
=>
{
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
(
e
)
=>
{
if
(
this
.
draging
)
{
if
(
this
.
draging
)
{
this
.
draging
=
false
;
this
.
draging
=
false
;
this
.
node
.
emit
(
"
play
"
)
//
this.node.emit("play")
this
.
btn_play
.
active
=
false
;
//
this.btn_play.active = false;
this
.
btn_pause
.
active
=
true
;
//
this.btn_pause.active = true;
this
.
centerInfo
.
active
=
false
;
this
.
centerInfo
.
active
=
false
;
}
}
});
});
...
@@ -257,9 +257,9 @@ export default class NewClass extends cc.Component {
...
@@ -257,9 +257,9 @@ export default class NewClass extends cc.Component {
this
.
node
.
on
(
cc
.
Node
.
EventType
.
MOUSE_UP
,
(
e
)
=>
{
this
.
node
.
on
(
cc
.
Node
.
EventType
.
MOUSE_UP
,
(
e
)
=>
{
if
(
this
.
draging
)
{
if
(
this
.
draging
)
{
this
.
draging
=
false
;
this
.
draging
=
false
;
this
.
node
.
emit
(
"
play
"
)
//
this.node.emit("play")
this
.
btn_play
.
active
=
false
;
//
this.btn_play.active = false;
this
.
btn_pause
.
active
=
true
;
//
this.btn_pause.active = true;
this
.
centerInfo
.
active
=
false
;
this
.
centerInfo
.
active
=
false
;
}
}
});
});
...
...
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