function _videojs_get_filetype in Video.js (HTML5 Video Player) 6.2
1 call to _videojs_get_filetype()
- template_preprocess_videojs in includes/
videojs.theme.inc - Preprocess function for videojs.tpl.php when displaying a view as a playlist.
File
- includes/
videojs.theme.inc, line 129 - Theme and preprocess functions for the Video.js module.
Code
function _videojs_get_filetype($filemime) {
switch (drupal_strtolower($filemime)) {
case 'video/mp4':
case 'video/quicktime':
return 'video/mp4';
case 'video/ogg':
case 'application/ogg':
return 'video/ogg';
case 'video/webm':
case 'application/octet-stream':
return 'video/webm';
case 'video/flv':
case 'video/x-flv':
return 'video/flv';
case 'audio/mpeg':
return 'audio/mpeg';
case 'audio/ogg':
return 'audio/ogg';
case 'application/vnd.apple.mpegurl':
return 'application/vnd.apple.mpegurl';
}
return NULL;
}