Skip to content

Commit 16e8c38

Browse files
author
Matt Fawcett
committed
Add support for native fullscreen api in Internet explorer.
Currenly works in IE11 (the latest) using the ms prefix.
1 parent aca237f commit 16e8c38

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

jquery.jplayer/jquery.jplayer.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,22 @@
353353
'webkitExitFullscreen',
354354
'',
355355
''
356+
],
357+
ms: [
358+
'',
359+
'msFullscreenElement',
360+
'msRequestFullscreen',
361+
'msExitFullscreen',
362+
'MSFullscreenChange',
363+
'MSFullscreenError'
356364
]
357365
},
358366
specOrder = [
359367
'w3c',
360368
'moz',
361369
'webkit',
362-
'webkitVideo'
370+
'webkitVideo',
371+
'ms'
363372
],
364373
fs, i, il;
365374

@@ -368,7 +377,8 @@
368377
w3c: !!d[spec.w3c[0]],
369378
moz: !!d[spec.moz[0]],
370379
webkit: typeof d[spec.webkit[3]] === 'function',
371-
webkitVideo: typeof v[spec.webkitVideo[2]] === 'function'
380+
webkitVideo: typeof v[spec.webkitVideo[2]] === 'function',
381+
ms: typeof v[spec.ms[2]] === 'function'
372382
},
373383
used: {}
374384
};

0 commit comments

Comments
 (0)