You are here

function videojs_get_path in Video.js (HTML5 Video Player) 6

Same name and namespace in other branches
  1. 6.2 videojs.module \videojs_get_path()
  2. 7.3 videojs.module \videojs_get_path()

Get the path to the video.js external library.

Return value

The path to the directory where video.js library is located.

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 81
Provides an HTML5-compatible with Flash-fallback video player.

Code

function videojs_get_path() {
  $directory = variable_get('videojs_directory', 'sites/all/libraries/video-js');
  if (!file_exists($directory . '/video.js') && module_exists('libraries')) {

    // Libraries API integration
    $directory = libraries_get_path('video-js');
  }
  return $directory;
}