Information Resources & Technology (IRT)

Audio

The Web and New Media Services Group supports two options for making audio available on your Web site: embed the audio as a downloadable file or use a Flash audio player. To broaden the distribution of your files, you may also want to post them as a podcast on Stanford on Itunes.

Linked Audio File

The easiest way to post audio to your site is to upload it to the Web server and link to it. When a user clicks the link, the audio file will either be played by an audio player inherent to your user's browser, or it will be downloaded to your user's desktop where it can be played locally.

Preferred file formats: mp3, wav, midi

Flash Audio Player (mp3)

This Flash device can be used to play MP3 files from your page more elegantly, and with controls for the user. The following example uses a player available to all Stanford Medicine sites via the path "/Templates/flash/audioPlayer.swf"

Note: Flash players and the files they play must be served from the same domain, or a security alert will occur.

Play Audio

Here's the code that drives the player. Note: It uses plugin detection.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="177" height="20" id="flashContent"> <param name="movie" value="/Templates/flash/audioPlayer.swf" /> <param name="FlashVars" value="playerID=1&amp;noinfo=yes&amp;bg=ffffff&amp;soundFile=/media/audio/mednews_121_rhoads.mp3" /> <param name="wmode" value="transparent" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="/Templates/flash/audioPlayer.swf" width="177" height="20"> <param name="FlashVars" value="playerID=1&amp;noinfo=yes&amp;bg=ffffff&amp;soundFile=/media/audio/mednews_121_rhoads.mp3" /> <param name="wmode" value="transparent" /> <!--<![endif]--> <a href="/media/audio/mednews_121_rhoads.mp3" class="text_bodytiny">Play Audio</a> <!--[if !IE]>--> </object> <!--<![endif]--> </object>

The player can be combined with a photo of the speaker for a nicer presentation.

Kim R
Play Audio

Here's the code for this version.

<a href="/121/2009/rhoads.html"><img src="/images/121-rhoads.jpg" alt="Kim R" width="177" height="103" /></a> <div style="margin-top: -20px;"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="177" height="20" id="flashContent"> <param name="movie" value="/Templates/flash/audioPlayer.swf" /> <param name="FlashVars" value="playerID=1&amp;noinfo=yes&amp;bg=ffffff&amp;soundFile=/media/audio/mednews_121_rhoads.mp3" /> <param name="wmode" value="transparent" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="/Templates/flash/audioPlayer.swf" width="177" height="20"> <param name="FlashVars" value="playerID=1&amp;noinfo=yes&amp;bg=ffffff&amp;soundFile=/media/audio/mednews_121_rhoads.mp3" /> <param name="wmode" value="transparent" /> <!--<![endif]--> <a href="/media/audio/mednews_121_rhoads.mp3" class="text_bodytiny">Play Audio</a> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </div>

Smaller Audio Player (mp3 only)

If you want an audio player with controls on your Web page, we recommend the XSPF Web Music Player. This Flash audio player is an open source player for MP3 files that is easy to use and freely available. When installing this player, you'll also need to include our Flash detection plug-in. Please contact Web Help for further assistance.

Richard Simmons on the unfolding national obesity crisis Play Audio


(courtesy of Stanford Medicine Magazine Fall 2007)

Here's the code for this version.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="17" height="17" id="flashOject"> <param name="movie" value="/Templates/flash/musicplayer.swf?song_url=/stanmed/media/audio/RichardSimmons.mp3" /> <param name="wmode" value="opaque" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="/Templates/flash/musicplayer.swf?song_url=/stanmed/media/audio/RichardSimmons.mp3" width="17" height="17"> <param name="wmode" value="opaque" /> <!--<![endif]--> <a href="/stanmed/media/audio/RichardSimmons.mp3" class="link_nounderline">Play Audio</a> <!--[if !IE]>--> </object> <!--<![endif]--> </object>

Stanford Medicine Resources:

Footer Links: