mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51: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
@@ -4762,10 +4762,11 @@
|
||||
}
|
||||
}, {
|
||||
key: "play",
|
||||
value: function play(item) {
|
||||
value: function play() {
|
||||
var _this = this;
|
||||
|
||||
if (this.isEnd || !item.url) return;
|
||||
var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
if (this.isEnd) return;
|
||||
this.art.player.switchUrl(item.url);
|
||||
this.art.once('video:timeupdate', function () {
|
||||
_this.art.emit('ads:start', item);
|
||||
|
||||
Reference in new issue
Block a user