HTML5 Video Not Displaying on iPad

后端 未结 3 1578
深忆病人
深忆病人 2021-02-07 10:47

I\'ve encoded a few videos on http://www.theparkerpalmsprings.com to play using HTML5 when loaded via an iPhone or iPad. In my testing, everything works as expected when viewing

3条回答
  •  天命终不由人
    2021-02-07 10:58

    Please don't sniff User-Agent!

    That completely misses the point of interoperability HTML5 tries to bring (and fails in my Flash-blocked desktop browser). and support automatic fallback and detection.


    Did you encode video as H.264 Baseline Profile? Flash supports full H.264 (High Profile), but iDevices can handle only lower-quality variants (iPad & iPhone 4 support Main, older devices only Baseline. Similarily with AAC.).


    If you ever add alternative format (WebM), put H.264 first, as iOS 3.2 cannot handle source selection properly.

    提交回复
    热议问题