On Thu, Oct 16, 2008 at 6:26 PM, Andrew Neil
<[EMAIL PROTECTED]>wrote:

> Hi folks,
>
> I'm thinking of writing a Radiant extension to add a flash audio player to
> your site. My plan is to use the Audio Player Wordpress plugin:
>
>        http://www.1pixelout.net/code/audio-player-wordpress-plugin/
>
> in a similar fashion to the plugin for Textpattern:
>
>        http://www.textpatternmania.com/2006/04/29/plugin-jnmaudio
>
> Before I get started, I just want to check if anyone else has already done
> this?
>

I'm not sure an extension is needed here. I think this is straightforward
enough to implement with a snippet. Here's what I did on one of my Radiant
sites:

http://gist.github.com/17467

<script language="JavaScript" src="/mp3_player/audio-player.js"></script>
<r:attachment:each>
  <br/>
  <object type="application/x-shockwave-flash" data="/mp3_player/player.swf"
id="audioplayer1" height="24" width="290">
    <param name="movie" value="/mp3_player/player.swf">
    <param name="FlashVars" value="playerID=1&amp;soundFile=<r:url />">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="wmode" value="transparent">
  </object>
  <br/>
  <p><r:attachment:link>Download MP3</r:attachment:link></p>
  <small>To download, right-click and choose &ldquo;Save Target
As..&rdquo;</small>
</r:attachment:each>

--
Tim
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to