Commit 295ee9b3 authored by Li MingZhe's avatar Li MingZhe

fix: oncanplay

parent 1c88858e
......@@ -3033,8 +3033,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