PDA

View Full Version : Very OT - Testing new video embeds


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.

kato13
12-17-2014, 11:14 PM
I am testing the same video above as an attachment.

Again some viewers will not be able to see it.

I really dont expect to get many attachments at this video is 224kb and is only 6 seconds long. My bandwidth is too small to handle larger videos, but for simpler graphics it might work.


edit. Ok it looks like only images get embeded in the page when included as an attachment.

Targan
12-18-2014, 06:31 PM
I still don't know how to make webm files play on my PC.

Cdnwolf
12-18-2014, 09:47 PM
I still don't know how to make webm files play on my PC.

But, but... think of all the HD porn ... I mean religious ...sites you are missing.

kato13
12-20-2014, 02:57 PM
Ok I took the example file and uploaded it to youtube.

gGYpW3CI3Ko

Is anyone having an issue seeing it?