* @copyright 2025-2026 Vateron Media * @link https://github.com/Vateron-Media/XC_VM * @license AGPL-3.0 https://www.gnu.org/licenses/agpl-3.0.html */ class RtmpMonitorController extends BaseAdminController { public function index() { $this->requirePermission(); global $rServers; if (!RequestManager::has('server') || !isset($rServers[RequestManager::get('server')])) { RequestManager::update('server', SERVER_ID); } $rRTMPInfo = ServerRepository::getRTMPStats(RequestManager::get('server')); $this->setTitle('RTMP Monitor'); $this->render('rtmp_monitor', ['rRTMPInfo' => $rRTMPInfo]); } }