mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 11:21:20 -08:00
add ads.init()
This commit is contained in:
1 parent
558e439261
commit
9f7abe181c
3 files changed
+28
-22
No files matched your search
@@ -4733,16 +4733,7 @@
|
||||
_classCallCheck(this, Ads);
|
||||
|
||||
this.art = art;
|
||||
var option = art.option;
|
||||
this.index = 0;
|
||||
this.isEnd = false;
|
||||
this.playing = false;
|
||||
this.urlCache = option.url;
|
||||
|
||||
if (this.current) {
|
||||
this.playing = true;
|
||||
this.play(this.current);
|
||||
}
|
||||
this.init();
|
||||
}
|
||||
|
||||
_createClass(Ads, [{
|
||||
@@ -4760,6 +4751,19 @@
|
||||
get: function get() {
|
||||
return this.art.option.ads[this.index + 1];
|
||||
}
|
||||
}, {
|
||||
key: "init",
|
||||
value: function init() {
|
||||
this.index = 0;
|
||||
this.isEnd = false;
|
||||
this.playing = false;
|
||||
this.urlCache = this.art.option.url;
|
||||
|
||||
if (this.current) {
|
||||
this.playing = true;
|
||||
this.play(this.current);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "play",
|
||||
value: function play() {
|
||||
|
||||
Reference in new issue
Block a user