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.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 927eb33d..ebc3d1de 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1,6 +1,6 @@
// ==========================================================================
// Plyr
-// plyr.js v3.4.8
+// plyr.js v3.5.0-beta.4
// https://github.com/sampotts/plyr
// License: The MIT License (MIT)
// ==========================================================================
@@ -353,6 +353,11 @@ class Plyr {
return null;
}
+ // Intecept play with ads
+ if (this.ads && this.ads.enabled) {
+ this.ads.managerPromise.then(() => this.ads.play()).catch(() => this.media.play());
+ }
+
// Return the promise (for HTML5)
return this.media.play();
}