You are here

function emvideo_youtube_info in Media: YouTube 6

hook emvideo_PROVIDER_info this returns information relevant to a specific 3rd party video provider

Return value

an array of strings requested by various admin and other forms 'name' => the translated name of the provider 'url' => the url to the main page for the provider 'settings_description' => a description of the provider that will be posted in the admin settings form 'supported_features' => an array of rows describing the state of certain supported features by the provider. These will be rendered in a table, with the columns being 'Feature', 'Supported', 'Notes'.

File

providers/emvideo/youtube.inc, line 19
This include processes youtube.com media files for use by emfield.module.

Code

function emvideo_youtube_info() {
  $features = array(
    array(
      t('Autoplay'),
      t('Yes'),
      '',
    ),
    array(
      t('RSS Attachment'),
      t('Yes'),
      '',
    ),
    array(
      t('Show related videos'),
      t('Yes'),
      t('This is embedded in the video itself when enabled; currently not available with other providers. Set the feature above.'),
    ),
    array(
      t('Thumbnails'),
      t('Yes'),
      t(''),
    ),
    array(
      t('Duration'),
      t('Yes'),
      '',
    ),
    array(
      t('Status'),
      t('Yes'),
      t('Stores video status (available and unavailable).'),
    ),
    array(
      t('Custom player colors'),
      t('Yes'),
      t("You may customize the player's skin by choosing your own colors, and/or border in that setting field set."),
    ),
    array(
      t('Full screen mode'),
      t('Yes'),
      t('You may customize the player to enable or disable full screen playback. Full screen mode is enabled by default.'),
    ),
    array(
      t('Use JW FLV Media Player'),
      t('Yes'),
      t("You may opt to use the !flvplayer to play YouTube videos if it's installed on your server.", array(
        '!flvplayer' => l(t('JW FLV Media Player'), 'http://www.longtailvideo.com/players/jw-flv-player/'),
      )),
    ),
  );
  return array(
    'module' => 'media_youtube',
    'provides' => array(
      'emvideo',
    ),
    'provider' => 'youtube',
    'name' => t('YouTube'),
    'url' => MEDIA_YOUTUBE_MAIN_URL,
    'settings_description' => t('These settings specifically affect videos displayed from <a href="@youtube" target="_blank">YouTube</a>. You can learn more about its <a href="@api" target="_blank">API</a> here.', array(
      '@youtube' => MEDIA_YOUTUBE_MAIN_URL,
      '@api' => MEDIA_YOUTUBE_API_INFO,
    )),
    'supported_features' => $features,
  );
}