fix blocking play() if ads are set
This commit is contained in:
@ -309,6 +309,11 @@ class Plyr {
|
||||
* Play the media
|
||||
*/
|
||||
play() {
|
||||
if (this.ads) {
|
||||
this.ads.playAds();
|
||||
return this;
|
||||
}
|
||||
|
||||
return this.media.play();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user