I have only one xspf_player_slim player in sites/all/libraries/player, and i posted a story page with a audio field attached, but the player doesn't display.

i checked the output html of the generated page.

see below:

<object id="audioplayer2" height="24" width="290" data="/sites/all/libraries/player/audio-player/player.swf" type="application/x-shockwave-flash">
<param value="/sites/all/libraries/player/audio-player/player.swf" name="movie"/>
<param value="playerID=2&bg=0xCDDFF3&leftbg=0x357DCE&lefticon=0xF2F2F2&rightbg=0xF06A51&rightbghover=0xAF2910&righticon=0xF2F2F2&righticonhover=0xFFFFFF&text=0x357DCE&slider=0x357DCE&track=0xFFFFFF&border=0xFFFFFF&loader=0xAF2910&soundFile=/sites/default/files/audio/104-40-100525.mp3" name="FlashVars"/>
<param value="high" name="quality"/>
<param value="false" name="menu"/>
 <param value="#FFFFFF" name="bgcolor"/></object>
<!--0-->

pay attention to the last line: <!--0-->

i added a debug statement in my audiofield_formatter.inc like this:

if ($player==0) {
    $output='<object id="audioplayer2" height="24" width="290" data="' . $base_path . 'sites/all/libraries/player/audio-player/player.swf" type="application/x-shockwave-flash">
             <param value="' . $base_path . 'sites/all/libraries/player/audio-player/player.swf" name="movie"/>
             <param value="playerID=2&bg=0xCDDFF3&leftbg=0x357DCE&lefticon=0xF2F2F2&rightbg=0xF06A51&rightbghover=0xAF2910&righticon=0xF2F2F2&righticonhover=0xFFFFFF&text=0x357DCE&slider=0x357DCE&track=0xFFFFFF&border=0xFFFFFF&loader=0xAF2910&soundFile=' . $base_path . $element['#item']['filepath'] . '" name="FlashVars"/>
             <param value="high" name="quality"/>
             <param value="false" name="menu"/>
             <param value="#FFFFFF" name="bgcolor"/></object>'.
            '<!--'.$player.'-->';
  }

see the last line above

i think this should a bug, if i have only one player, this code will just output the audio-player as the page player, no matter what player i selected on admin-setting page.

Comments

tamerzg’s picture

Status: Active » Fixed

Yes this is a bug. It is fixed and commited to HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.