Embedding media in HTML

As part of a gallery I’m writing (and numerous other projects) I found I needed a library of code to embed all different forms of media in web pages. Not finding an existing library to do this I’ve started to write one. As I want to get the (X)HTML code to be correct so I would really appreciate your input. As far as I know there is no resource listing all the classids necessary in the object tags for different media.

I’ve “thrown up a wiki”:http://peter.mapledesign.co.uk/ideas/pmwiki.php/MediaCode/MediaCode to aid discussion/collaboration. The PHP library I write will be released under the BSD license or one of its derivatives (probably PHP License 3.0), free for anyone in the community to use. I haven’t decided about the contents of this wiki page, but I’m thinking about Public Domain or a Creative Commons license. Just in case you’re worried about contributing!

It would be really cool to make a definitive resource in one place for this - I can’t be the only one who is asked to stick videos in web pages?

1 comment so far ↓

#1 Lars Olesen on 08.28.04 at 11:17 am

It is a brilliant idea. I am also using videoes on some of my pages, but find it difficult to do a crossbrowser implementation. However, shouldn’t the correct approach be to implement the correct player from the extension, and what if you are on a Linux machine, and don’t have MediaPlayer to play you avi’s but want to use another appropriate player?

Leave a Comment