Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why in html5 are the tags switching between video and embed?

Tags:

html

Using Chrome on my windows 7 machine, an mpg video using the <video> tag plays as expected. However, on the ipad 1 it does not.

On my pc I used firebug and I could see that the <video> tag has changed to an <embed> tag with other attributes added.

So I changed the original tag to <embed> and the video can now be seen on the ipad (although it is not auto playing).

My question is why is this happening (the conversion from video to embed)?

JD

like image 601
JD. Avatar asked Oct 10 '22 07:10

JD.


1 Answers

Firefox simply converts the video tag to the embed tag under the hood because its only syntactic sugar for the browser and so they can reuse the embed parser.

The video tag should work with the iPad.

like image 183
Skomski Avatar answered Oct 20 '22 06:10

Skomski