GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to detect which version iphone/ipod/ipad is viewing a page? (https://gfy.com/showthread.php?t=1013368)

gleem 03-08-2011 01:59 PM

How to detect which version iphone/ipod/ipad is viewing a page?
 
I know there are plenty of canned scripts that detect whether or not the surfer hitting your page is using a mobile phone / browser. What about detecting for example if they are on an iphone 4, or 3gs, or just 3g?

The reason is in testing I noticed that when using h.264:

iphone 3 only supports "baseline" profile which looks like crap on browsers

iphone 3gs/4/ & Ipad support "main" profile h.264 which is pretty nice on PC browsers

only pc's will support "advanced" h.264 profiles with high complexity and look great in pc browsers.


So I want to have my html5 player load the correct h.264 version of the video depending on the end users device (mobile surfers often goto full versions of sites instead of mobile when given a choice)

Any one have a script that can do this?

Sharky 03-08-2011 02:32 PM

I haven't used it, but this might be what you are looking for: http://detectmobilebrowsers.mobi/

FlexxAeon 03-08-2011 02:54 PM

not sure if its there's a sure fire way. i was doing some research for something related to that and remember reading that only way to detect was through an installed app. but i could be wrong.

you can get the OS and the webkit version numbers out of the user agent string. perhaps different iPhones use different web kits (again, i haven't looked it up).

gleem 03-08-2011 03:01 PM

Quote:

Originally Posted by Sharky (Post 17966381)
I haven't used it, but this might be what you are looking for: http://detectmobilebrowsers.mobi/

Yeah, that only sees if they are on mobile or not, not what version of phone they are using, but thanks :)


All times are GMT -7. The time now is 02:11 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123