Commit 81af3630 authored by liujiangnan's avatar liujiangnan

fix:

parent dcb84103
......@@ -14,7 +14,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
// this._audioResList.push({ url: this.data.video_url || '' });
this.getVideoUrl(url => {
this._audioResList.push({ url: this.data.video_url || '' });
});
}
addPreloadAnima() {
......@@ -91,7 +93,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
refreshBtnState() {
// await asyncDelay(0.01);
if(!this.video) {
return;
}
if (this.video.isPlaying()) {
this.pauseBtn.active = true;
this.playBtn.active = false;
......
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