Commit 2140c56f authored by Li MingZhe's avatar Li MingZhe

fix: oncanplay

parent 848859c9
......@@ -386,8 +386,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