You are here

function swftools_flowplayer_swftools_methods in SWF Tools 6.3

Implementation of hook_swftools_methods().

File

flowplayer/swftools_flowplayer.module, line 11
Enables SWF Tools support for Flowplayer.

Code

function swftools_flowplayer_swftools_methods() {

  // Flowplayer has a few different player files, so we need to determine
  // which one is currently active
  $saved_settings = _swftools_flowplayer_settings();
  $shared_file = $saved_settings['player'];
  $flowplayer = array(
    'module' => 'swftools_flowplayer',
    'title' => t('Flowplayer'),
    'download' => 'http://www.tucows.com/download.html?software_id=519713&t=2',
    'width' => 320,
    'height' => 263,
    'library' => 'sites/all/libraries/' . $shared_file,
  );

  // Flowplayer support various actions with the same player and info.
  $methods['video']['flowplayer'] = $flowplayer;
  $methods['video_list']['flowplayer'] = $flowplayer;
  $methods['audio']['flowplayer'] = $flowplayer;
  $methods['audio_list']['flowplayer'] = $flowplayer;
  $methods['media_list']['flowplayer'] = $flowplayer;
  $methods['image_list']['flowplayer'] = $flowplayer;
  return $methods;
}