ios

Videos on iPhone and iPad

I guess a lot of people that have to deal with integrating videos on a website for iPhone and iPad, will  - at some point - run into the problem that some videos simply won't play. In most cases embedding the video is the simple part: either we use the fantastic HTML5 specifcation or use some weird snippet for loading a Flash Video Player. But I don't want to look at that in this post, I want to dig a little deeper into the encoding problematics. But this is not about dealing with whether to use OGG TheoraVP8 or h264, or how to use them all at once. In this case I stumbled upon an iOS specific problem. So h264 would be the codec to look at, as this is the favourite on Apple devices.

Videos auf iPhone und iPad

Viele, die sich mit dem Thema Videos auf Webseiten für iPhone und iPad abzuspielen schon beschäftigt haben, landen früher oder später immer wieder bei dem Problem, dass manche Videos einfach nicht abgespielt werden wollen. Das Einbetten der Videos ist ja im Regelfall ziemlich einfach, entweder nutzt man direkt die HTML5-Auszeichnung oder ein kleines JavaScript-Snippet um einen Fallback für einen Flash-Video-Player einzubinden. Das soll aber in diesem Post gerade kein Thema sein. Vielmehr will ich hier aus aktuellem Anlass auf die Encodierung der Videos eingehen. Ungeachtet der Präsenz von OGG Theora und VP8 auf anderen Browsern dreht sich die aktuelle Problematik hier um h264, da dies auf dem iOS immer noch den Vorzug erhält.

ios abonnieren