public static function OSMPlayer::getPaths in MediaFront 6.2
Returns the paths to this player library.
1 call to OSMPlayer::getPaths()
- OSMPlayer::getPlayerSettings in players/
osmplayer/ player/ OSMPlayer.php - Returns the player settings.
File
- players/
osmplayer/ player/ OSMPlayer.php, line 97
Class
- OSMPlayer
- PHP wrapper class for the Open Standard Media (OSM) player.
Code
public static function getPaths() {
static $playerPath;
// Get the player path.
if (!$playerPath) {
$playerPath = trim(str_replace(realpath('.'), '', dirname(__FILE__)), '/');
$playerPath = trim(str_replace('\\', '/', $playerPath), '/');
$playerPath = $playerPath ? '/' . $playerPath . '/' : $playerPath;
}
// Return the player path.
return array(
'playerPath' => $playerPath,
);
}