mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-15 12:02:46 +02:00
Steps 4 and 5 are complete.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class StreamingBootstrap {
|
||||
public static function bootstrap($rFilename, $rSettings) {
|
||||
$rProbeEndpoints = array('probe', 'player_api');
|
||||
$rDefaultEndpoints = array('live', 'thumb', 'subtitle', 'timeshift', 'vod', 'status');
|
||||
$rPrivilegedEndpoints = array('rtmp', 'portal');
|
||||
|
||||
if (!in_array($rFilename, array_merge($rProbeEndpoints, $rDefaultEndpoints, $rPrivilegedEndpoints), true)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
require_once INCLUDES_PATH . 'libs/AsyncFileOperations.php';
|
||||
require_once MAIN_HOME . 'core/Database/DatabaseHandler.php';
|
||||
require_once INCLUDES_PATH . 'StreamingUtilities.php';
|
||||
|
||||
StreamingUtilities::$rSettings = $rSettings;
|
||||
StreamingUtilities::$rAccess = $rFilename;
|
||||
StreamingUtilities::init();
|
||||
|
||||
return StreamingUtilities::$db;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user