Error shows up when I call "admin/config/media/audiofield".

Drupal-Version: 7.7
Default themes.
Some other module, mostly latest versions.

CommentFileSizeAuthor
#3 audiofield-theme_flowplayer-1246798.patch713 bytesinterx

Comments

drupa11y’s picture

There was no message in the log.

drupa11y’s picture

Problem was due to the Flowplayer API enabled. After Disabling the module it works fine.
It recognizes jPlayer, wordpress audio player & the XSPF Slim Player.

interx’s picture

Status: Active » Needs review
StatusFileSize
new713 bytes

This happens when you have the flowplayer module installed.
You need to change the theme('flowplayer') call to pass the variables as an array:

if (module_exists('flowplayer')) {
  function audiofield_flowplayer($player_path, $audio_file) {
    $variables = array(
      'config' =>  $audio_file,
      'id' => 'audiofield',
      'attributes' => array('style' => 'height: 24px',),
    );
    return theme('flowplayer', $variables);
  }
}

or in my case to disable autoplay :

if (module_exists('flowplayer')) {
  function audiofield_flowplayer($player_path, $audio_file) {
    $variables = array(
      'config' => array(
        'clip' => array(
          'url' => $audio_file,
          'autoPlay' => FALSE,
        ),
      ),
      'id' => 'audiofield',
      'attributes' => array('style' => 'height: 24px',),
    );
    return theme('flowplayer', $variables);
  }
}

Ideally, autoplay should be configurable.

Taxoman’s picture

FYI: Marked #1158666: admin/config/media/audiofield as a duplicate of this one.

Taxoman’s picture

A confirmation that this patch works was just posted over at the duplicate issue: #1158666: admin/config/media/audiofield

tamerzg’s picture

Status: Needs review » Fixed

Commited to dev.

Status: Fixed » Closed (fixed)

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