diff --git a/web/skins/classic/views/js/monitor.js b/web/skins/classic/views/js/monitor.js index f36f3e2b3..a80ea031f 100644 --- a/web/skins/classic/views/js/monitor.js +++ b/web/skins/classic/views/js/monitor.js @@ -262,18 +262,26 @@ function initPage() { window.location.assign('?view=console'); }); - //manage the Janus audio check + //manage the Janus settings div if (document.getElementsByName("newMonitor[JanusEnabled]")[0].checked) { document.getElementById("FunctionJanusAudioEnabled").hidden = false; + document.getElementById("FunctionJanusProfileOverride").hidden = false; + document.getElementById("FunctionJanusUseRTSPRestream").hidden = false; } else { document.getElementById("FunctionJanusAudioEnabled").hidden = true; + document.getElementById("FunctionJanusProfileOverride").hidden = true; + document.getElementById("FunctionJanusUseRTSPRestream").hidden = true; } document.getElementsByName("newMonitor[JanusEnabled]")[0].addEventListener('change', function() { if (this.checked) { document.getElementById("FunctionJanusAudioEnabled").hidden = false; + document.getElementById("FunctionJanusProfileOverride").hidden = false; + document.getElementById("FunctionJanusUseRTSPRestream").hidden = false; } else { document.getElementById("FunctionJanusAudioEnabled").hidden = true; + document.getElementById("FunctionJanusProfileOverride").hidden = true; + document.getElementById("FunctionJanusUseRTSPRestream").hidden = true; } }); diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index e5b88aec8..644e8f2fb 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -1180,7 +1180,6 @@ echo htmlSelect('newMonitor[OutputContainer]', $videowriter_containers, $monitor ?> -
JanusAudioEnabled() ? ' checked="checked"' : '' ?>/> @@ -1211,7 +1210,6 @@ echo htmlSelect('newMonitor[OutputContainer]', $videowriter_containers, $monitor ?> -
DefaultRate()); ?>