function _videojs_create_url in Video.js (HTML5 Video Player) 6
Same name and namespace in other branches
- 6.2 includes/videojs.theme.inc \_videojs_create_url()
2 calls to _videojs_create_url()
- template_preprocess_videojs in includes/
videojs.theme.inc - Preprocess function for videojs.tpl.php when displaying a view as a playlist.
- template_preprocess_videojs_formatter_videojs in includes/
videojs.theme.inc - Preprocess function for videojs.tpl.php when using a playlist.
File
- includes/
videojs.theme.inc, line 286 - Theme and preprocess functions for the Video.js module.
Code
function _videojs_create_url($filepath) {
if (strncmp($filepath, 'http:', 5) === 0 || strncmp($filepath, 'https:', 6) === 0) {
return $filepath;
}
return file_create_url(drupal_urlencode($filepath));
}