You are here

function audiofield_flowplayer in AudioField 7

Callback function for AudioField Flowplayer player.

1 string reference to 'audiofield_flowplayer'
audiofield_players in ./audiofield.players.inc
Implements hook_audiofield_players().

File

./audiofield.players.inc, line 421
Declares the available audio players for the Audio Field module.

Code

function audiofield_flowplayer($player_path, $audio_file) {
  static $seq = 1;
  return theme('flowplayer', array(
    'config' => array(
      'clip' => array(
        'url' => $audio_file,
        'autoPlay' => FALSE,
      ),
    ),
    'id' => 'audiofield-' . $seq++,
    'attributes' => array(
      'style' => 'height: 24px',
    ),
  ));
}