Commit 6caca114 authored by 李帅's avatar 李帅

+1

parent 4cd126ac
/*
* @Author: ls
* @Date: 2022-05-15 18:22:18
* @LastEditTime: 2022-06-14 16:46:05
* @LastEditTime: 2022-06-14 17:32:24
* @LastEditors: ls
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\scene\ls_gramophone.ts
......@@ -308,8 +308,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (idx !== -1) {
this._records[idx] = res.audioUrl;
this.log(`${idx} ===> ${res.audioUrl}`);
this.content.children[idx].getComponent(Item).recorded();
// this.resetRecord();
}
}
......@@ -324,12 +322,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else {
if (idx !== -1) {
this.content.children[idx].getComponent(Item).recorded();
// this.resetRecord();
}
// 模拟测试
// this._records[idx] = 'http://staging-teach.cdn.ireadabc.com/92ddbc65e9af775f7a8450a5bef1a732.mp3';
}
this.scheduleOnce(() => {
this.resetRecord();
});
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment