Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
et_21
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
et_21
Commits
140dbb6f
Commit
140dbb6f
authored
Mar 19, 2021
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
load remote
parent
5a4189ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
karaoke.js
play/assets/et_21/components/karaoke/scripts/karaoke.js
+4
-4
No files found.
play/assets/et_21/components/karaoke/scripts/karaoke.js
View file @
140dbb6f
...
...
@@ -105,7 +105,7 @@ cc.Class({
initialize
()
{
if
(
this
.
audio_url
)
{
cc
.
assetManager
.
loadRemote
(
this
.
audio_url
,
null
,
(
err
,
audioClip
)
=>
{
cc
.
assetManager
.
loadRemote
(
this
.
audio_url
,
null
,
(
function
(
err
,
audioClip
)
{
if
(
err
)
{
// TODO handle error
return
;
...
...
@@ -130,11 +130,11 @@ cc.Class({
this
.
renderHighlight
();
// this.currentAudioId = audioEngine.play(audioClip, false, 1);
// console.log(this.displayMode);
});
})
.
bind
(
this
))
;
}
if
(
this
.
accompany_audio_url
)
{
cc
.
assetManager
.
loadRemote
(
this
.
accompany_audio_url
,
null
,
(
err
,
audioClip
)
=>
{
cc
.
assetManager
.
loadRemote
(
this
.
accompany_audio_url
,
null
,
(
function
(
err
,
audioClip
)
{
if
(
err
)
{
// TODO handle error
return
;
...
...
@@ -158,7 +158,7 @@ cc.Class({
// audioEngine.pause(this.currentAcAudioId);
// audioEngine.setCurrentTime(this.currentAcAudioId, 0);
// audioEngine.setVolume(this.currentAcAudioId, 1);
});
})
.
bind
(
this
))
;
}
},
...
...
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