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, 4 insertions, 3 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 00b95a5f..a69e793d 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -80,6 +80,7 @@ class Plyr {
// Elements cache
this.elements = {
container: null,
+ fullscreen: null,
captions: null,
buttons: {},
display: {},
@@ -282,6 +283,9 @@ class Plyr {
});
}
+ // Setup fullscreen
+ this.fullscreen = new Fullscreen(this);
+
// Setup interface
// If embed but not fully supported, build interface now to avoid flash of controls
if (this.isHTML5 || (this.isEmbed && !this.supported.ui)) {
@@ -294,9 +298,6 @@ class Plyr {
// Global listeners
this.listeners.global();
- // Setup fullscreen
- this.fullscreen = new Fullscreen(this);
-
// Setup ads if provided
if (this.config.ads.enabled) {
this.ads = new Ads(this);