mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:31:20 -08:00
update ads.js
This commit is contained in:
1 parent
75baca8462
commit
3859c544c8
4 files changed
+7
-6
No files matched your search
@@ -26,8 +26,8 @@ export default class Ads {
|
||||
return this.art.option.ads[this.index + 1];
|
||||
}
|
||||
|
||||
play(item) {
|
||||
if (this.isEnd || !item.url) return;
|
||||
play(item = {}) {
|
||||
if (this.isEnd) return;
|
||||
this.art.player.switchUrl(item.url);
|
||||
|
||||
this.art.once('video:timeupdate', () => {
|
||||
|
||||
Reference in new issue
Block a user