How to detect which version iphone/ipod/ipad is viewing a page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gleem
    Confirmed User
    • Jun 2001
    • 5593

    #1

    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?




    Contact me: \\// E: webmaster /at/ unprofessional.com
  • Sharky
    Confirmed User
    • Mar 2002
    • 4938

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

    Comment

    • FlexxAeon
      Confirmed User
      • May 2003
      • 3765

      #3
      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).
      flexx [dot] aeon [at] gmail

      Comment

      • gleem
        Confirmed User
        • Jun 2001
        • 5593

        #4
        Originally posted by Sharky
        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




        Contact me: \\// E: webmaster /at/ unprofessional.com

        Comment

        Working...