Audio Uploads

5 posts by 3 authors in: Forums > CMS Builder
Last Post: September 23, 2009   (RSS)

Re: [Kittybiccy] Audio Uploads

By Chris - September 22, 2009

Hi Kittybiccy,

Sorry, I don't have any examples for you, but I thought I'd point out that the [url http://www.macloo.com/examples/audio_player/]"Audio Player Wordpress plugin" flash audio player[/url] looks promising.

Please keep us updated on your progress and let us know if you have any problems getting CMSB to generate the correct code to get things working.
All the best,
Chris

Re: [Kittybiccy] Audio Uploads

By Kenny - September 22, 2009

Kittybiccy,

Try this: http://www.eradiosports.com/podcast

We used a normal upload field allowing mp3's as an acceptable extension. Click on each link and the detail page will show up using an embedded audio player that plays the file.

Let me know if this is what you are looking for and I will post the source and code here.

Kenny

Re: [sagentic] Audio Uploads

By Chris - September 23, 2009

Hi Kenny,

That's pretty cool! Please post the code that you use in your detail pages to embed that widget! :D
All the best,
Chris

Re: [chris] Audio Uploads

By Kenny - September 23, 2009 - edited: September 23, 2009

Sure -

Here's the code:

<table>
<?php foreach ($mediaRecord['upload_file'] as $upload): ?>
<tr>
<td><?php echo $media_downloadsRecord['title'] ?></td>
</tr>
<tr>
<td><embed wmode="transparent" src="music.swf?url=<?php echo $upload['urlPath'] ?>&amp;autostart=false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="50">
</td>
</tr>
<?php endforeach ?>
</table>


The embedded player is attached to this post.

I have tried to put several players on one page before, but some browsers ignore the autostart=false and have all the players start playing at the same time. This can get annoying.


Kenny
Attachments:

music.swf 9K