diff options
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 36b74e76..3cbbed4b 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -306,11 +306,12 @@ class Plyr { } /** - * Play the media, or play the advertisement + * Play the media, or play the advertisement (if they are not blocked) */ play() { - if (this.ads.enabled && !this.ads.initialized) { + if (this.ads.enabled && !this.ads.initialized && !this.ads.blocked) { this.ads.play(); + return; } this.media.play(); |