Commit fcf8356e authored by Li MingZhe's avatar Li MingZhe

fix: oncanplay

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