There are easy ways to embed movies on a web page from YouTube or similar sites. The script for YouTube movies can for example be found for each movie just next to it and all you have to do is to copy and paste the html-code on a web page:
When you want to embed your own movies the code have to be slightly different and also different depending on the format. Here is a JavaScript function for creating and returning an html-block which creates an embedded video on a web page based on the path of the video, the url. This one is for videos with the Windows Media Player format. It also works for movies with the file extension 'mpg':
<html> <head> <script type='text/javascript'> function genMPlayer(fldVal) { var r0 = '<!-- EMBEDDED MOVIE -->'; var r1 = '<object classid=clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 width=238 height=195 type=application/x-oleobject>\n'; var r2 = '<param name=url value='; var r3 = fldVal; var r4 = ' />\n'; var r5 = '<embed src='; var r6 = fldVal; var r7 = ' width=238 height=195'; var r8 = ' type=application/x-mplayer2'; var r9 = ' pluginspage=http://www.microsoft.com/Windows/MediaPlayer/>'; var r10 = '</embed>\n'; var r11 = '</object>\n';
Glad you like it! It gives some extra interactivity to the website. As long as the video is streamed it doesn't slow down the site too much either. So some of this together with some other mashups and AJAX certainly increases the feeling of a live and user-focused site in my opinion.
See http://www.onside.se for a job that Randolph and me did together a while ago, which uses embedded videos among other things.