mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-04 20:03:11 +02:00
23 lines
618 B
PHP
23 lines
618 B
PHP
<?php
|
|||
|
|
/**
|
||
|
|
* RtmpMonitorController — мониторинг RTMP (Phase 6.3 — Group A).
|
||
|
|
*/
|
||
|
|
class RtmpMonitorController extends BaseAdminController
|
||
|
|
{
|
||
|
|
public function index()
|
||
|
|
{
|
||
|
|
$this->requirePermission();
|
||
|
|
|
||
|
|
global $rServers;
|
||
|
|
|
||
|
|
if (!isset(CoreUtilities::$rRequest['server']) || !isset($rServers[CoreUtilities::$rRequest['server']])) {
|
||
|
|
CoreUtilities::$rRequest['server'] = SERVER_ID;
|
||
|
|
}
|
||
|
|
|
||
|
|
$rRTMPInfo = getRTMPStats(CoreUtilities::$rRequest['server']);
|
||
|
|
|
||
|
|
$this->setTitle('RTMP Monitor');
|
||
|
|
$this->render('rtmp_monitor', compact('rRTMPInfo'));
|
||
|
|
}
|
||
|
|
}
|