Xeo
Xeo

Reputation: 357

HTML 5 <Video> markup not working with iPhone, but works with Safari / iPad

<video controls="controls" width="720" height="406"> <source src="test/kws.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> Your browser does not support the video tag. </video>

Any reason this markup doesn't work with iPhone?

Upvotes: 0

Views: 917

Answers (1)

Gaurav
Gaurav

Reputation: 12806

Have you tried removing the codecs part? If no codecs are specified, they will be autodetected.

Also, did you use the baseline format for the encoding? The iPhone does not support any part of h.264 other than baseline.

Upvotes: 1

Related Questions