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: , ,

5 Comments:

  • Aston Villa 4 lyf enit ppl braap avfc 2 win da premiership 2006/2007

    By Anonymous Anonymous, at 11/20/2006 12:44 PM  

  • Ha! Ha! I will find you!

    By Blogger Darren, at 11/29/2006 12:55 PM  

  • Finally! The code for embedding the RealAudio Player!
    Even at Real.com the knowledgebases don't mention it, or else they assume it's common knowledege and it's buried deep under a pile of how-to's.
    Why didn't I Google it sooner?
    And it's been here for a year!
    THANK YOU!

    By Blogger Charly Blog, at 10/11/2007 2:24 AM  

  • er...if only the sound would come out of the speakers!
    any reason that you might know, why .mp3 works fine and .m4a doesn't?
    It's the only reason I'm using RealP.
    Microsoft doesn't seem to even know .m4a/AAC exists.
    If you can help, please drop me a line at pkpublishers@gmail.com.
    Thanks again.

    Charly Blog

    By Blogger Charly Blog, at 10/11/2007 4:02 AM  

  • Thanks for commenting, I've just changed domains and this post wasn't working before. Glad this post helped you (a little). I don't know about the .m4a files. You could try this page: Why won't Real Player play my file?

    By Blogger Darren, at 3/13/2008 3:38 PM  

Post a Comment

<< Home

Agrégation et CAPES 2009

Latest Entries

Partners

Buy yourself something nice!

Currently Recommending

Archives