aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index d0fecc82..3c98dc26 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -309,6 +309,11 @@ class Plyr {
* Play the media
*/
play() {
+ if (this.ads) {
+ this.ads.playAds();
+ return this;
+ }
+
return this.media.play();
}