Try as I might, I can’t seem to get the audio player to show up. The
field type is set to audio, and I’ve uploaded a .mp3 successfully.
I’ve tried various alterations on get_audio($fieldName, $groupIndex=1,
$fieldIndex=1), as well as just get_audio(‘fieldname’) and the code
for the player shows up in the HTML, but not in the browser.
It shows up like this in the browser:
<div style='padding-top:3px;'><object classid='clsid:D27CDB6E- AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='95%' height='20' wmode='transparent' ><param name='movie' value='http:// domainname.com/subdirectory/wp-content/plugins/fresh-page/js/ singlemp3player.swf?file=http%3A%2F%2Fdomainname.com%2Fsubdirectory %2Fwp-content%2Ffiles_flutter%2F126210487606WeddingDress.mp3' wmode='transparent' /><param name='quality' value='high' wmode='transparent' /><embed src='http://domainname.com/subdirectory/
wp-content/plugins/fresh-page/js/singlemp3player.swf?file=http%3A%2F %2Fdomainname.com%2Fsubdirectory%2Fwp-content%2Ffiles_flutter %2F126210487606WeddingDress.mp3' width='50%' height='20' quality='high' pluginspage='http://www.macromedia.com/go/
getflashplayer' type='application/x-shockwave-flash' wmode='transparent' ></embed></object></div>
I did a little work on that, and added something to decode the URL to get the “/” slashes back, but that didn’t work either. I checked – the file exists, and I can get to it by copying the URL from the HTML code generated. And, going to the copy of the .swf player file loads in my browser as well. The file permission checks out. So, why won’t it show up? Wah.