Add Janus RTSP session timeout to PHP (front end) ⚗️

Signed-off-by: baudneo <86508179+baudneo@users.noreply.github.com>
pull/3652/head
baudneo 2023-01-09 17:11:54 -07:00
parent 8750e0e333
commit aab62c5a7e
No known key found for this signature in database
GPG Key ID: DAD7FFF0C3FE76D7
3 changed files with 14 additions and 0 deletions

View File

@ -149,6 +149,7 @@ public static function getStatuses() {
'Janus_Profile_Override' => '',
'Janus_Use_RTSP_Restream' => array('type'=>'boolean','default'=>0),
'Janus_RTSP_User' => null,
'Janus_RTSP_Session_Timeout' => array('type'=>'integer','default'=>0),
'LinkedMonitors' => array('type'=>'set', 'default'=>null),
'Triggers' => array('type'=>'set','default'=>''),
'EventStartCommand' => '',

View File

@ -93,6 +93,7 @@ if ($action == 'save') {
'JanusEnabled' => 0,
'JanusAudioEnabled' => 0,
'Janus_Use_RTSP_Restream' => 0,
// 'Janus_RTSP_Session_Timeout' => 0,
'Exif' => 0,
'RTSPDescribe' => 0,
'V4LMultiBuffer' => '',

View File

@ -1251,6 +1251,18 @@ echo htmlSelect('newMonitor[OutputContainer]', $videowriter_containers, $monitor
?>
</td>
</tr>
<tr id="FunctionJanusRTSPSessionTimeout">
<td><?php echo translate('Janus RTSP Session Timeout Override') ?></td>
<td><input type="text" name="newMonitor[Janus_RTSP_Session_Timeout]" value="<?php echo $monitor->Janus_RTSP_Session_Timeout()?>"/>
<?php
if ( isset($OLANG['FUNCTION_JANUS_RTSP_SESSION_TIMEOUT']) ) {
echo '<div class="form-text">'.$OLANG['FUNCTION_JANUS_RTSP_SESSION_TIMEOUT']['Help'].'</div>';
}
?>
</td>
</tr>
<tr id="FunctionJanusUseRTSPRestream">
<td><?php echo translate('Janus Use RTSP Restream') ?></td>
<td><input type="checkbox" name="newMonitor[Janus_Use_RTSP_Restream]" value="1"<?php echo $monitor->Janus_Use_RTSP_Restream() ? ' checked="checked"' : '' ?>/>