Skip to content

Commit

Permalink
Add support for native fullscreen api in Internet explorer.
Browse files Browse the repository at this point in the history
Currenly works in IE11 (the latest) using the ms prefix.
  • Loading branch information
Matt Fawcett committed May 2, 2014
1 parent aca237f commit 16e8c38
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions jquery.jplayer/jquery.jplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,22 @@
'webkitExitFullscreen',
'',
''
],
ms: [
'',
'msFullscreenElement',
'msRequestFullscreen',
'msExitFullscreen',
'MSFullscreenChange',
'MSFullscreenError'
]
},
specOrder = [
'w3c',
'moz',
'webkit',
'webkitVideo'
'webkitVideo',
'ms'
],
fs, i, il;

Expand All @@ -368,7 +377,8 @@
w3c: !!d[spec.w3c[0]],
moz: !!d[spec.moz[0]],
webkit: typeof d[spec.webkit[3]] === 'function',
webkitVideo: typeof v[spec.webkitVideo[2]] === 'function'
webkitVideo: typeof v[spec.webkitVideo[2]] === 'function',
ms: typeof v[spec.ms[2]] === 'function'
},
used: {}
};
Expand Down

0 comments on commit 16e8c38

Please sign in to comment.