mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
Update ads docs
This commit is contained in:
1 parent
b584550917
commit
75baca8462
7 files changed
+198
-14
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user