Audio Uploads

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

I have a client asking about audio uploads. I know I will have to change the list of file formats to include these files but is there anything else I will have to do?

Also, could anyone give me any links to CMSB sites that have audio on the page so that I can see how the link will be displayed on the page and how other people have added audio (ie. audio players etc)?

Thanks! [:)]

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