diff options
author | Sam Potts <me@sampotts.me> | 2015-03-10 23:57:36 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-03-10 23:57:36 +1100 |
commit | b677c3d7ad3168d54ea62df20087ca349dc12b29 (patch) | |
tree | ef49d80cb4ca51fd0ea470409dbbc78700862a08 /src/js/plyr.js | |
parent | aa6bc2df2f64cf1d386c895f721282dc60c37b56 (diff) | |
parent | a16579fd21eb9603b883393b524071111e568717 (diff) | |
download | plyr-b677c3d7ad3168d54ea62df20087ca349dc12b29.tar.lz plyr-b677c3d7ad3168d54ea62df20087ca349dc12b29.tar.xz plyr-b677c3d7ad3168d54ea62df20087ca349dc12b29.zip |
Merge branch 'master' of https://github.com/selz/plyr
Conflicts:
dist/plyr.js
src/js/plyr.js
Diffstat (limited to 'src/js/plyr.js')
-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 || {})); |