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.js9
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) {