function videojs_get_path in Video.js (HTML5 Video Player) 7.3
Same name and namespace in other branches
- 6.2 videojs.module \videojs_get_path()
- 6 videojs.module \videojs_get_path()
Return the configured path or URL of Video.js.
The validity of the path is not checked.
Return value
string|bool The path or URL to video js, without a filename. FALSE when the path can't be determined.
2 calls to videojs_get_path()
- videojs_add in ./
videojs.module - Add the Video.js library to the page.
- videojs_get_version in ./
videojs.module - Return the version of Video.js installed.
File
- ./
videojs.module, line 460 - Provides an HTML5-compatible with Flash-fallback video player.
Code
function videojs_get_path() {
switch (variable_get('videojs_location', 'cdn')) {
case 'path':
return variable_get('videojs_directory', 'sites/all/libraries/video-js');
case 'libraries':
if (!module_exists('libraries')) {
return FALSE;
}
return libraries_get_path('video-js');
case 'cdn':
default:
$cdnversion = videojs_utility::getCdnVersion();
return videojs_utility::CDN_HOST . $cdnversion;
}
}