diff options
author | Sam Potts <sam@potts.es> | 2020-04-19 16:51:31 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-19 16:51:31 +1000 |
commit | 6f1366bd198e52ea17ead09c0e593572c2f846db (patch) | |
tree | 6247f6a1438697f156f91e3435daa1ddc59a36fe /src/js/plyr.js | |
parent | ad63af5096e014785bd22eac24bc8030c0dc70d6 (diff) | |
parent | 353e19e746d5f44c0a04b6dd6571b8fb97da073d (diff) | |
download | plyr-6f1366bd198e52ea17ead09c0e593572c2f846db.tar.lz plyr-6f1366bd198e52ea17ead09c0e593572c2f846db.tar.xz plyr-6f1366bd198e52ea17ead09c0e593572c2f846db.zip |
Merge pull request #1759 from theprojectsomething/features/fullscreen-container
Features/fullscreen container
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 7 |
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); |