You are here

function swftools_flowplayer3_swftools_methods in SWF Tools 6.3

Implementation of hook_swftools_methods().

File

flowplayer3/swftools_flowplayer3.module, line 32
Enables SWF Tools support for Flowplayer 3.

Code

function swftools_flowplayer3_swftools_methods() {

  // Get the path to the library
  $library = swftools_get_library('flowplayer3');

  // Define flowplayer3
  $flowplayer3 = array(
    'module' => 'swftools_flowplayer3',
    'version' => 9,
    'title' => t('Flowplayer 3'),
    'download' => 'http://flowplayer.org',
    'width' => 500,
    'height' => 375,
    'library' => $library . '/' . variable_get('swftools_flowplayer3_file', SWFTOOLS_FLOWPLAYER3_FILE),
    'profile' => array(
      'path' => 'flowplayer3',
      'settings' => array(
        'swftools_flowplayer3',
        'swftools_flowplayer3_palette',
        'swftools_flowplayer3_scheme',
      ),
      'file' => 'swftools_flowplayer3.admin.inc',
      'page argument' => 'swftools_flowplayer3_profile_form',
    ),
  );

  /**
   * Define actions that the player can support by returning an array with keys
   * [action][name_of_player] = [player_details]
   */
  $methods['video']['flowplayer3'] = $flowplayer3;
  $methods['video_list']['flowplayer3'] = $flowplayer3;
  $methods['audio']['flowplayer3'] = $flowplayer3;
  $methods['audio_list']['flowplayer3'] = $flowplayer3;
  $methods['image_list']['flowplayer3'] = $flowplayer3;
  $methods['swftools_media_display']['flowplayer3'] = $flowplayer3;
  $methods['media_list']['flowplayer3'] = $flowplayer3;

  // Return the method results
  return $methods;
}