This commit is contained in:
Harvey committed 2022-03-23 18:14:49 +08:00
1 parent 2a5913c658
commit 54882b4e25
10 files changed
+22 -18

No files matched your search

+3 -1
View File
@@ -6,6 +6,8 @@ export default function switchMix(art) {
function switchUrl(url, name, currentTime) {
return new Promise((resolve) => {
if (url === art.url) return resolve(url);
const { playing } = art;
art.pause();
URL.revokeObjectURL(art.url);
art.url = url;
art.once('video:canplay', () => {
@@ -15,7 +17,7 @@ export default function switchMix(art) {
art.autoSize = option.autoSize;
art.currentTime = currentTime;
art.notice.show = '';
if (art.playing) {
if (playing) {
art.play();
}
if (name) {