finish the ads.js

This commit is contained in:
Harvey committed 2021-12-23 15:43:42 +08:00
1 parent 6c32895d34
commit 76eea4bfd5
10 files changed
+83 -42

No files matched your search

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