mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 20:21:20 -08:00
use ads.current
This commit is contained in:
1 parent
76eea4bfd5
commit
b584550917
3 files changed
+7
-7
No files matched your search
@@ -4739,9 +4739,9 @@
|
||||
this.playing = false;
|
||||
this.urlCache = option.url;
|
||||
|
||||
if (option.ads.length) {
|
||||
if (this.current) {
|
||||
this.playing = true;
|
||||
this.play(option.ads[this.index]);
|
||||
this.play(this.current);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4784,8 +4784,8 @@
|
||||
}, {
|
||||
key: "end",
|
||||
value: function end() {
|
||||
this.playing = false;
|
||||
this.isEnd = true;
|
||||
this.playing = false;
|
||||
this.art.option.url = this.urlCache;
|
||||
this.art.player.switchUrl(this.urlCache);
|
||||
this.art.emit('ads:end');
|
||||
|
||||
Reference in new issue
Block a user