You are here: Home » Tutorials » for HotPotatoes » Podcasting

Podcasting with JW's player

Posted by Stan Bogdanov on 13 April 2006 - 07:00
Last updated 11 September 2009 - 12:31

Education and Teaching Related Podcasts

Get the Flash Player to see this movie.


The code

<div id="player">
<a href="http://www.macromedia.com/go/getflashplayer">
 Get the Flash Player</a> to see this movie.</div>
<script type="text/javascript">
  var s = new SWFObject("assets/flash/flvplayer.swf",
     "assets/flash/playlist.xml","540","160","9.0.124");
  s.addParam('allowscriptaccess','always');
  s.addVariable("file","assets/flash/playlist.xml");
  s.addVariable('displaywidth','160');
  s.addVariable('height','160');
  s.addVariable('width','540');
  s.addVariable('thumbsinplaylist','false');
  s.addVariable('shuffle','false');
  s.addVariable("backcolor","0x111111");
  s.addVariable("frontcolor","0xdddddd");
  s.addVariable("lightcolor","0x99cc00");
  s.write("player");
</script>

The XML playlist file

The playlist.xml file looks like this
 
<playlist version="1" xmlns="http://xspf.org/ns/0/">
  <trackList>   
    <track>
     <title>Podcast Title - January '08</title>
     <creator>Podcast Creator</creator>
     <location>http://www.url.to/podcast/file.mp3</location>
    </track>
 
    <track>
     <title>Podcast Title - January '08</title>
     <creator>Podcast Creator</creator>
     <location>http://www.url.to/podcast/file.mp3</location>
    </track>
  </trackList>
</playlist>



Feedback Form
Feedback Analytics