aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/support.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-04-25 07:38:17 +1000
committerGitHub <noreply@github.com>2018-04-25 07:38:17 +1000
commitf13260c10aad1e7e95f1d13a31c7f362c674ddb6 (patch)
treead4e351f2d3603325e2d388bdc64df8f15cd98b8 /src/js/support.js
parente138e6d51e3cd85d85ccbd32674f75a63a3771ef (diff)
parentf1b275aedce897b42f025afac7a0937dc5871235 (diff)
downloadplyr-f13260c10aad1e7e95f1d13a31c7f362c674ddb6.tar.lz
plyr-f13260c10aad1e7e95f1d13a31c7f362c674ddb6.tar.xz
plyr-f13260c10aad1e7e95f1d13a31c7f362c674ddb6.zip
Merge pull request #919 from sampotts/master
Merge back
Diffstat (limited to 'src/js/support.js')
-rw-r--r--src/js/support.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/support.js b/src/js/support.js
index a9a302f3..5528e898 100644
--- a/src/js/support.js
+++ b/src/js/support.js
@@ -12,16 +12,16 @@ const support = {
// Check for support
// Basic functionality vs full UI
- check(type, provider, inline) {
+ check(type, provider, playsinline) {
let api = false;
let ui = false;
const browser = utils.getBrowser();
- const playsInline = browser.isIPhone && inline && support.inline;
+ const canPlayInline = browser.isIPhone && playsinline && support.playsinline;
switch (`${provider}:${type}`) {
case 'html5:video':
api = support.video;
- ui = api && support.rangeInput && (!browser.isIPhone || playsInline);
+ ui = api && support.rangeInput && (!browser.isIPhone || canPlayInline);
break;
case 'html5:audio':
@@ -32,7 +32,7 @@ const support = {
case 'youtube:video':
case 'vimeo:video':
api = true;
- ui = support.rangeInput && (!browser.isIPhone || playsInline);
+ ui = support.rangeInput && (!browser.isIPhone || canPlayInline);
break;
default:
@@ -59,7 +59,7 @@ const support = {
// Inline playback support
// https://webkit.org/blog/6784/new-video-policies-for-ios/
- inline: 'playsInline' in document.createElement('video'),
+ playsinline: 'playsInline' in document.createElement('video'),
// Check for mime type support against a player instance
// Credits: http://diveintohtml5.info/everything.html