Not really sure what to make of this, but could use some assistance troubleshooting.
Using the media plugin and can't get it to work. My audio files are stored in paths similar to this (/audio/200907/file.mp3). However, when I pass the path to the player - either as a src parameter like this:
- $(function() {
- $('a.media').media( { width: 200, height: 20, src: '/audio/200906/file.mp3' } );
- $('div.media').css('width','300px');
- });
or like this, in the body:
- <a class="media" href="/audio/200906/file.mp3">My file</a>
... the generated code is urlencoded and the player fails to find the file:
- <div style="background-color: rgb(255, 255, 255); width: 300px;" class="media">
- <embed style="display: block;" src="mediaplayer.swf?file=%2Faudio%2F200906%2Ffile.mp3" bgcolor="#ffffff" wmode="transparent" autoplay="false" flashvars="file=%2Faudio%2F200906%2Ffile.mp3" height="20" width="200">
- <div>My file</div>
- </div>
What am I missing?