Things up with which I will put...

Saturday, October 07, 2006

Embed a Real Player for audio playback

A colleague was having trouble getting his embedded RealPlayer to work in Firefox. It turns out he was only using the <embed> tag. However, a combination of <object>and <embed> seems to be the best option. The code used in this page works in Firefox and IE6 for me. Here is the basic source code:

<object classid="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" 
width="100" 
height="30"> 
<param name="src" value="FILEPATH" /> 
<param name="autostart" value="false" /> 
<param name="controls" value="ControlPanel" /> 

<embed type="audio/x-pn-realaudio-plugin"
 src="FILEPATH"
 autostart="0" 
width="100" 
height="30" 
 controls="ControlPanel">
</embed>
</object>

Below, there should be a couple of embedded Real Player widgets which should play a recording of Aston Villa FC's Holte End in full voice (Only the best will do...)

The Holte End

Start Small Embedded Real Player

End embedded Real Player

Start Large Embedded Real Player

End embedded Real Player

Labels: , ,

Agrégation et CAPES 2009

Partners

Buy yourself something nice!

Currently Recommending

Archives