public static function video_utility::getVideoExtensionPlayers in Video 7.2
Return our list of video extensions and their associated player.
4 calls to video_utility::getVideoExtensionPlayers()
- theme_video_formatter_player in ./
video.theme.inc - Default video cck formatter.
- video_players_admin_settings in modules/
video_ui/ video.admin.inc - Video player admin settings
- video_players_admin_settings_submit in modules/
video_ui/ video.admin.inc - Submit helper to remove unneeded variables before they are saved.
- video_utility::getMediaExtensions in ./
video.utility.inc - Return the list of known video/audio extensions.
File
- ./
video.utility.inc, line 246 - This file will be used to keep all utility functions data structures.
Class
- video_utility
- Helper functions for the Video module.
Code
public static function getVideoExtensionPlayers() {
return array(
'divx' => 'video_play_divx',
'mkv' => 'video_play_divx',
'mov' => 'video_play_quicktime',
'3gp' => 'video_play_quicktime',
'3g2' => 'video_play_quicktime',
'mp4' => 'video_play_html5',
'm4v' => 'video_play_html5',
'rm' => 'video_play_realmedia',
'f4v' => 'video_play_flv',
'flv' => 'video_play_flv',
'swf' => 'video_play_flash',
'dir' => 'video_play_dcr',
'dcr' => 'video_play_dcr',
'asf' => 'video_play_windowsmedia',
'wmv' => 'video_play_windowsmedia',
'avi' => 'video_play_windowsmedia',
'mpg' => 'video_play_windowsmedia',
'mpeg' => 'video_play_windowsmedia',
'ogg' => 'video_play_html5',
'ogv' => 'video_play_html5',
'webm' => 'video_play_html5',
'mp3' => 'video_play_html5',
);
}