diff options
author | Sam Potts <me@sampotts.me> | 2018-01-05 10:37:38 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2018-01-05 10:37:38 +1100 |
commit | e14e2cfaff8acb9a11719d8f5e5684ca7ff48a02 (patch) | |
tree | 71eba78d319de41582cd3ebbdb9c7acd88c09667 /src/js/plyr.js | |
parent | 04119b27e69472cce70c7f5b5359c6b45ad718f9 (diff) | |
parent | 92cb9e22e24d52e1843a5865651f7b2c5a00d47a (diff) | |
download | plyr-e14e2cfaff8acb9a11719d8f5e5684ca7ff48a02.tar.lz plyr-e14e2cfaff8acb9a11719d8f5e5684ca7ff48a02.tar.xz plyr-e14e2cfaff8acb9a11719d8f5e5684ca7ff48a02.zip |
Merge branch 'develop' of https://github.com/Selz/plyr into develop
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 7766cc47..e6df286c 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -35,7 +35,11 @@ let scrollPosition = { class Plyr { constructor(target, options) { this.timers = {}; + + // State this.ready = false; + this.loading = false; + this.failed = false; // Set the media element this.media = target; @@ -809,6 +813,11 @@ class Plyr { * @param {event} event */ toggleFullscreen(event) { + // Video only + if (this.isAudio) { + return; + } + // Check for native support if (fullscreen.enabled) { if (utils.is.event(event) && event.type === fullscreen.eventType) { |