HTML5 Video Not Displaying on iPad

后端 未结 3 1530
深忆病人
深忆病人 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 11:09

    The answer was incredibly simple, which is why it was overlooked:

    The iPad requires you to include the "controls" attribute in the video tag, otherwise there's no way for it to start playback of the video, unlike on the iPhone, where a large play button appears over all HTML5 video elements. The videos were all encoded properly but this simple tag was skipped over. Hopefully this will save someone the headache it caused me.

提交回复
热议问题