You are here

function video_cck_livestream_info in Embedded Media Field 5

hook video_cck_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

contrib/video_cck/providers/livestream.inc, line 32
This include processes livestream.com media files for use by emfield.module.

Code

function video_cck_livestream_info() {
  $features = array(
    array(
      t('Autoplay'),
      t('Yes'),
      '',
    ),
    array(
      t('RSS Attachment'),
      t('No'),
      '',
    ),
    array(
      t('Show related videos'),
      t('No'),
      '',
    ),
    array(
      t('Thumbnails'),
      t('Yes'),
      t(''),
    ),
    array(
      t('Custom player colors'),
      t('No'),
      '',
    ),
    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.'),
    ),
  );
  return array(
    'provider' => 'livestream',
    'name' => t('Livestream'),
    'url' => VIDEO_CCK_LIVESTREAM_MAIN_URL,
    'settings_description' => t('These settings specifically affect videos displayed from <a href="@livestream" target="_blank">Livestream</a>. You can learn more about its <a href="@api" target="_blank">API</a> here.', array(
      '@livestream' => VIDEO_CCK_LIVESTREAM_MAIN_URL,
      '@api' => VIDEO_CCK_LIVESTREAM_API_INFO,
    )),
    'supported_features' => $features,
  );
}