update ads.js

This commit is contained in:
Harvey committed 2021-12-23 16:46:24 +08:00
1 parent 75baca8462
commit 3859c544c8
4 files changed
+7 -6

No files matched your search

+3 -2
View File
@@ -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);