You are here

function videojs_field_formatter_info in Video.js (HTML5 Video Player) 7.3

Same name and namespace in other branches
  1. 6.2 videojs.module \videojs_field_formatter_info()
  2. 6 videojs.module \videojs_field_formatter_info()
  3. 7 videojs.module \videojs_field_formatter_info()
  4. 7.2 videojs.module \videojs_field_formatter_info()

Implements hook_field_formatter_info().

File

./videojs.module, line 53
Provides an HTML5-compatible with Flash-fallback video player.

Code

function videojs_field_formatter_info() {
  module_load_include('inc', 'videojs', 'includes/videojs.utility');
  $options = videojs_utility::getDefaultDisplaySettings();
  foreach (array_keys($options) as $key) {
    $options[$key] = NULL;
  }
  $options['posterimage_field'] = NULL;
  $options['posterimage_style'] = NULL;
  $options['tracks_field'] = NULL;
  return array(
    'videojs' => array(
      'label' => t('Video.js'),
      'field types' => array(
        'file',
        'media',
        'link_field',
      ),
      'description' => t('Display a video file as an HTML5-compatible player with Flash-fallback.'),
      'settings' => $options,
    ),
  );
}