kato13
12-17-2014, 11:08 PM
Following a request of a user, I am looking at the new HTML5 methods of embedding videos (specifically .webm files). Currently you can embed youtube videos in the site using the "youtube" tag, but that is only because youtube determines which browser you are using and sends you the right type of file.
I should explain. Every browser has a different compatibility set regarding HTML5 videos. As seen by this chart
http://www.htmlgoodies.com/imagesvr_ce/5760/codecSupportMatrix_color.png
Webm is supported by Firefox and Chrome and I want to see if it will work as an embed. See below
http://techslides.com/demos/sample-videos/small.webm
Some of you wont be able to see what is above, but I am looking to see if there is some way to switch up the code based on browser types. I am not sure how much use this will get but as everything on the web is moving to HTML5 I felt I should take the first steps.
I should explain. Every browser has a different compatibility set regarding HTML5 videos. As seen by this chart
http://www.htmlgoodies.com/imagesvr_ce/5760/codecSupportMatrix_color.png
Webm is supported by Firefox and Chrome and I want to see if it will work as an embed. See below
http://techslides.com/demos/sample-videos/small.webm
Some of you wont be able to see what is above, but I am looking to see if there is some way to switch up the code based on browser types. I am not sure how much use this will get but as everything on the web is moving to HTML5 I felt I should take the first steps.