fix blocking play() if ads are set

This commit is contained in:
ferdiemmen
2018-01-15 23:30:54 +01:00
parent c24c05226d
commit 1cef48d4f8
6 changed files with 53 additions and 53 deletions

View File

@ -309,6 +309,11 @@ class Plyr {
* Play the media
*/
play() {
if (this.ads) {
this.ads.playAds();
return this;
}
return this.media.play();
}