Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_03_1
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
OP_03_1
Commits
4105c92c
Commit
4105c92c
authored
Dec 21, 2021
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:调整音频播放逻辑
parent
2fb2c068
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
OP_03_1.js
play/assets/OP_03_1/scene/OP_03_1.js
+19
-12
No files found.
play/assets/OP_03_1/scene/OP_03_1.js
View file @
4105c92c
...
...
@@ -475,10 +475,17 @@ cc.Class({
//设置不可点击
this
.
_cantouch
=
false
;
playAudio
(
this
.
audioBtn
.
clip
,
()
=>
{
let
audioUrl
=
word
.
lrcData
.
audio_url
;
if
(
isInitial
){
this
.
playTextAutio
(
labelNode
,
audioUrl
,
()
=>
{
this
.
_cantouch
=
true
;
})
}
else
{
playAudio
(
this
.
audioBtn
.
clip
,
()
=>
{
//显示完,则播放音频
if
(
this
.
_shown
)
{
this
.
playTextAutio
(
labelNode
,
audioUrl
,
()
=>
{
...
...
@@ -490,7 +497,7 @@ cc.Class({
}
})
}
})
return
labelNode
;
...
...
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