Example #1
0
require_once $kConfPath;
$kConf = new kConf();
// Kaltura HTML5lib Version
$wgKalturaVersion = basename(getcwd());
// Gets the version by the folder name
// The default Kaltura service url:
$wgKalturaServiceUrl = wgGetUrl('cdn_api_host');
// Default Kaltura CDN url:
$wgKalturaCDNUrl = wgGetUrl('cdn_host');
// Default Stats URL
$wgKalturaStatsServiceUrl = wgGetUrl('stats_host');
// SSL host names
if ($wgHTTPProtocol == 'https') {
    $wgKalturaServiceUrl = wgGetUrl('cdn_api_host_https');
    $wgKalturaCDNUrl = wgGetUrl('cdn_host_https');
    $wgKalturaStatsServiceUrl = wgGetUrl('stats_host_https');
}
// Default Asset CDN Path (used in ResouceLoader.php):
$wgCDNAssetPath = $wgKalturaCDNUrl;
// Default Kaltura Cache Path
$wgScriptCacheDirectory = $kConf->get('cache_root_path') . '/html5/' . $wgKalturaVersion;
$wgLoadScript = $wgKalturaServiceUrl . '/html5/html5lib/' . $wgKalturaVersion . '/load.php';
$wgResourceLoaderUrl = $wgLoadScript;
// Salt for proxy the user IP address to Kaltura API
if ($kConf->hasParam('remote_addr_header_salt')) {
    $wgKalturaRemoteAddressSalt = $kConf->get('remote_addr_header_salt');
}
// Disable Apple HLS if defined in kConf
if ($kConf->hasParam('use_apple_adaptive')) {
    $wgKalturaUseAppleAdaptive = $kConf->get('use_apple_adaptive');
}
$wgKalturaVersion = basename(getcwd());
// Gets the version by the folder name
// The default Kaltura service url:
$wgKalturaServiceUrl = wgGetUrl('cdn_api_host');
// Default Kaltura CDN url:
$wgKalturaCDNUrl = wgGetUrl('cdn_host');
// Default Stats URL
$wgKalturaStatsServiceUrl = wgGetUrl('stats_host');
// Default Live Stats URL
$wgKalturaLiveStatsServiceUrl = wgGetUrl('live_stats_host');
// SSL host names
if ($wgHTTPProtocol == 'https') {
    $wgKalturaServiceUrl = wgGetUrl('cdn_api_host_https');
    $wgKalturaCDNUrl = wgGetUrl('cdn_host_https');
    $wgKalturaStatsServiceUrl = wgGetUrl('stats_host_https');
    $wgKalturaLiveStatsServiceUrl = wgGetUrl('live_stats_host_https');
}
// Default Asset CDN Path (used in ResouceLoader.php):
$wgCDNAssetPath = $wgKalturaCDNUrl;
// Default Kaltura Cache Path
$wgScriptCacheDirectory = $kConf->get('cache_root_path') . '/html5/' . $wgKalturaVersion;
if (strpos($_SERVER["HTTP_HOST"], "kaltura.com")) {
    $wgLoadScript = $wgKalturaServiceUrl . '/html5/html5lib/' . $wgKalturaVersion . '/load.php';
    $wgResourceLoaderUrl = $wgLoadScript;
}
// Salt for proxy the user IP address to Kaltura API
if ($kConf->hasParam('remote_addr_header_salt')) {
    $wgKalturaRemoteAddressSalt = $kConf->get('remote_addr_header_salt');
}
// Disable Apple HLS if defined in kConf
if ($kConf->hasParam('use_apple_adaptive')) {
$wgKalturaServiceUrl = wgGetUrl('cdn_api_host');
// Default Kaltura CDN url:
$wgKalturaCDNUrl = wgGetUrl('cdn_host');
// Default Stats URL
$wgKalturaStatsServiceUrl = wgGetUrl('stats_host');
// Default Live Stats URL
$wgKalturaLiveStatsServiceUrl = wgGetUrl('live_stats_host');
// Default Kaltura Analytics URL
$wgKalturaAnalyticsServiceUrl = wgGetUrl('analytics_host');
// SSL host names
if ($wgHTTPProtocol == 'https') {
    $wgKalturaServiceUrl = wgGetUrl('cdn_api_host_https');
    $wgKalturaCDNUrl = wgGetUrl('cdn_host_https');
    $wgKalturaStatsServiceUrl = wgGetUrl('stats_host_https');
    $wgKalturaLiveStatsServiceUrl = wgGetUrl('live_stats_host_https');
    $wgKalturaAnalyticsServiceUrl = wgGetUrl('analytics_host_https');
}
// Default Asset CDN Path (used in ResouceLoader.php):
$wgCDNAssetPath = $wgKalturaCDNUrl;
// Default Kaltura Cache Path
$wgScriptCacheDirectory = $kConf->get('cache_root_path') . '/html5/' . $wgKalturaVersion;
if (strpos($_SERVER["HTTP_HOST"], "kaltura.com")) {
    $wgLoadScript = $wgKalturaServiceUrl . '/html5/html5lib/' . $wgKalturaVersion . '/load.php';
    $wgResourceLoaderUrl = $wgLoadScript;
}
// Salt for proxy the user IP address to Kaltura API
if ($kConf->hasParam('remote_addr_header_salt')) {
    $wgKalturaRemoteAddressSalt = $kConf->get('remote_addr_header_salt');
}
// Disable Apple HLS if defined in kConf
if ($kConf->hasParam('use_apple_adaptive')) {