Some tweaks

This commit is contained in:
ferdiemmen
2018-01-16 23:06:40 +01:00
parent 1cef48d4f8
commit ec73d34bd3
7 changed files with 102 additions and 82 deletions

View File

@ -310,11 +310,12 @@ class Plyr {
*/
play() {
if (this.ads) {
this.ads.playAds();
return this;
this.ads.play();
}
return this.media.play();
if (!this.ads.playing) {
return this.media.play();
}
}
/**