1
0
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:
Steve Heffernan 2010-09-19 11:53:30 -07:00
parent cf20ff7217
commit 7a4df2780c

View File

@ -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