Commit fcf8356e authored by Li MingZhe's avatar Li MingZhe

fix: oncanplay

parent 3b697fdf
...@@ -2673,8 +2673,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -2673,8 +2673,9 @@ export class PlayComponent implements OnInit, OnDestroy {
preloadAudio(url) { preloadAudio(url) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const audio = new Audio(); const audio = new Audio();
audio.oncanplay = (a) => { resolve({})
resolve(); audio.oncanplay = (a) => {
//resolve();
}; };
audio.onerror = () => { audio.onerror = () => {
reject(); reject();
......
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