Update ads docs

This commit is contained in:
Harvey committed 2021-12-23 16:42:26 +08:00
1 parent b584550917
commit 75baca8462
7 files changed
+198 -14

No files matched your search

+2
View File
@@ -27,6 +27,7 @@ export default class Ads {
}
play(item) {
if (this.isEnd || !item.url) return;
this.art.player.switchUrl(item.url);
this.art.once('video:timeupdate', () => {
@@ -45,6 +46,7 @@ export default class Ads {
}
end() {
if (this.isEnd) return;
this.isEnd = true;
this.playing = false;
this.art.option.url = this.urlCache;