(no subject)

Apr 08, 2010 14:48

Today I learned how to embed video into html.

It started with finding out that basic html for this is not basic; It involved making decisions in implementing a blend of the two tags. No matter what, it seemed, you would leave a hole in compatibility somehow. http://www.alistapart.com/articles/flashembedcagematch/

In frustration I started looking at how Youtube does it, and noticed that they were using Javascript somehow. Although I started frustrated with this, I got lucky and found a free GNU licensed SWF and JS pair in the form of Flowplayer 3.1.5. http://flowplayer.org

By mixing this with an flv converter, I not only got over some combined video/player SWF artifacting in the video stream, I got basic inline javascript library calls and multibrowser support. While discussing with a coworker, I then learned how to turn off autoplay, autobuffering, and call the javascript from the header of Blog/Wordpress environment while embedding the video in individual posts.

PS: Calling from the header script and body tags is supposed to initialize the SWF and JS a little bit faster than inline...

A good day!
Previous post Next post
Up