diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/js/plyr.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 6cc1ffbd..3d856364 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -1,7 +1,7 @@ // ========================================================================== // Plyr // plyr.js v1.0.25 -// https://github.com/sampotts/plyr +// https://github.com/selz/plyr // License: The MIT License (MIT) // ========================================================================== // Credits: http://paypal.github.io/accessible-html5-video-player/ @@ -650,7 +650,7 @@ player.media.removeAttribute("controls"); // Set media type - player.type = (player.media.tagName == "VIDEO" ? "video" : "audio"); + player.type = player.media.tagName.toLowerCase(); // Add type class _toggleClass(player.container, config.classes[player.type], true); @@ -1366,7 +1366,7 @@ // Disabled for <video> for iPhone // Since it doesn't allow customisation - if (element.querySelectorAll("audio, video")[0].tagName === "VIDEO" + if (element.querySelectorAll("audio, video")[0].tagName.toLowerCase() === "video" && /iPhone/i.test(navigator.userAgent)) { continue; } @@ -1382,4 +1382,4 @@ return players; } -}(this.plyr = this.plyr || {}));
\ No newline at end of file +}(this.plyr = this.plyr || {})); |