remove player object

This commit is contained in:
zhw2590582 committed 2022-01-07 17:38:10 +08:00
1 parent 59a8ccce81
commit 59400eb3bf
58 files changed
+295 -313

No files matched your search

+2 -2
View File
@@ -30,7 +30,7 @@ export default class Ads {
play(item = {}) {
if (this.isEnd) return;
this.art.player.switchUrl(item.url);
this.art.switchUrl(item.url);
this.art.once('video:timeupdate', () => {
this.art.emit('ads:start', item);
@@ -52,7 +52,7 @@ export default class Ads {
this.isEnd = true;
this.playing = false;
this.art.option.url = this.urlCache;
this.art.player.switchUrl(this.urlCache);
this.art.switchUrl(this.urlCache);
this.art.emit('ads:end');
}
}