mirror of
https://github.com/videojs/video.js.git
synced 2024-11-28 08:58:46 +02:00
Added iPhone check.
This commit is contained in:
parent
cf20ff7217
commit
7a4df2780c
1
video.js
1
video.js
@ -1062,6 +1062,7 @@ VideoJS.getFlashVersion = function(){
|
||||
|
||||
VideoJS.isIE = function(){ return !+"\v1"; };
|
||||
VideoJS.isIpad = function(){ return navigator.userAgent.match(/iPad/i) !== null; };
|
||||
VideoJS.isIphone = function(){ return navigator.userAgent.match(/iPhone/i) !== null; };
|
||||
VideoJS.isAndroid = function(){ return navigator.userAgent.match(/Android/i) !== null; };
|
||||
|
||||
// Allows for binding context to functions
|
||||
|
Loading…
Reference in New Issue
Block a user