Embedding Videos
From Wiki
Embedding a ShowMeDo video is easy - you need to add 10 lines of Javascript to your page and then It Just Works. You need to make one change to the code - replace the 2 occurrances of VIDEONAME with a ShowMeDo video name (full example below).
Contents |
License
You are allowed to embed our videos on your blog or elsewhere. You are required to link back to the original video page and the relevant category in a line of html nearby.
Template Code
<SCRIPT SRC="http://showmedo.com/static/javascript/swfobject.js" TYPE="text/javascript"></SCRIPT>
<P ID="player"><A HREF="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</A> to see this movie.</P>
<SCRIPT TYPE="text/javascript">
var so = new SWFObject('http://showmedo.com/static/flv/flvplayer.swf','mpl','636','496','7');
so.addParam("allowfullscreen","true");
so.addVariable("enablejs","true");
so.addVariable("file","http://videos3.showmedo.com/ShowMeDos/VIDEONAME.flv");
so.addVariable("image","http://videos3.showmedo.com/ShowMeDos/screenshots/VIDEONAME.jpg");
so.write('player');
</SCRIPT>
<p>This video originally comes from <a href="INSERTVIDEOPAGELINK">here</a>
at ShowMeDo from the <a href="INSERTCATEGORYLINK">XXX</a> category.</p>
Note - 2 videos on the same page
Harald Schilly has notes for embedding two videos into the same page in the Authors Group.
Working Example
If you want to embed 'Adding Python to DOS Path' to your own site then the 'original location' link is:
http://www.showmedo.com/videos/video?name=960000&fromSeriesID=96
and this makes 960000 the VIDEONAME. The 'category' is Python.
<!-- Code to embed video 960000 on your own site -->
<SCRIPT SRC="http://showmedo.com/static/javascript/swfobject.js" TYPE="text/javascript"></SCRIPT>
<P ID="player"><A HREF="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</A> to see this movie.</P>
<SCRIPT TYPE="text/javascript">
var so = new SWFObject('http://showmedo.com/static/flv/flvplayer.swf','mpl','636','496','7');
so.addParam("allowfullscreen","true");
so.addVariable("enablejs","true");
so.addVariable("file","http://videos3.showmedo.com/ShowMeDos/960000.flv");
so.addVariable("image","http://videos3.showmedo.com/ShowMeDos/screenshots/960000.jpg");
so.write('player');
</SCRIPT>
<p>Original location: '<a href="http://www.showmedo.com/videos/video?name=960000&fromSeriesID=96">Adding Python to DOS Path</a>'
at ShowMeDo from the <a href="http://www.showmedo.com/videos/python">Python</a> category.</p>
Gotchas
One bug we've seen is that with bloglines, if you copy in the src then it places
<br />
line-breaks after every line and that wrecks the SCRIPT section - you have to remove these break statements by hand if that's what you see. If you don't you'll just have a message in your site telling you to download Flash.
You can see a working bloglines embed here at Steve Holden's site.
The Player
The player is the JW FLV Player. You can find instructions for all of the features (auto-play etc) at Jeroen's site.

