mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
23 lines
No EOL
601 B
PHP
23 lines
No EOL
601 B
PHP
<?php
|
|
$config = dirname(__FILE__) . '/../../../videos/configuration.php';
|
|
require_once $config;
|
|
|
|
if (!isCommandLineInterface()) {
|
|
return die('Command Line only');
|
|
}
|
|
ob_end_flush();
|
|
$obj = AVideoPlugin::getDataObjectIfEnabled('WebRTC');
|
|
|
|
if (empty($obj)) {
|
|
return die('Plugin disabled');
|
|
}
|
|
$global['printLogs'] = 1;
|
|
|
|
// Enable error reporting
|
|
error_reporting(E_ALL); // Report all PHP errors
|
|
ini_set('display_errors', '1'); // Display errors on the browser
|
|
ini_set('display_startup_errors', '1'); // Display startup errors
|
|
|
|
WebRTC::stopServer();
|
|
WebRTC::checkAndUpdate();
|
|
WebRTC::startServer(); |