Skip to content

Commit

Permalink
Make disableRtx configurable (and 'false' by default).
Browse files Browse the repository at this point in the history
As suggested by George, disableRtx is generaly a good thing to have disabled. This commit makes the option
configurable, and switches the default setting from 'true' to 'false'.
  • Loading branch information
guusdk committed Feb 16, 2019
1 parent ab3e688 commit b6d6ae4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,22 @@ public boolean getSimulcast()

public void resetSimulcast()
{
JiveGlobals.deleteXMLProperty("org.jitsi.videobridge.ofmeet.simulcast" );
JiveGlobals.deleteXMLProperty( "org.jitsi.videobridge.ofmeet.simulcast" );
}

public void setDisableRtx( boolean disableRtx )
{
JiveGlobals.setProperty( "org.jitsi.videobridge.ofmeet.disableRtx", Boolean.toString( disableRtx ) );
}

public boolean getDisableRtx()
{
return JiveGlobals.getBooleanProperty( "org.jitsi.videobridge.ofmeet.disableRtx", false );
}

public void resetDisableRtx()
{
JiveGlobals.deleteXMLProperty( "org.jitsi.videobridge.ofmeet.disableRtx" );
}

public void setAdaptiveSimulcast( boolean simulcast )
Expand Down
1 change: 1 addition & 0 deletions ofmeet/src/i18n/ofmeet_i18n.properties
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ config.page.configuration.save.title=Save Settings
config.page.configuration.save.success=Settings successfully saved!
config.page.configuration.restart.warning=Changes to some of these parameters requires a restart of Openfire.
config.page.configuration.ofmeet.title=Application Configuration
config.page.configuration.ofmeet.disableRtx.enabled_desc=Enable RTX
config.page.configuration.ofmeet.useipv6.enabled=Enable IPv6
config.page.configuration.ofmeet.useipv6.enabled_desc=Enable webrtc to use IPv6
config.page.configuration.ofmeet.useipv6.disabled=Disable IPv6
Expand Down
8 changes: 8 additions & 0 deletions ofmeet/src/web/ofmeet-settings.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
}
final boolean securityenabled = ParamUtils.getBooleanParameter( request, "securityenabled" );
final boolean disableRtx = !ParamUtils.getBooleanParameter( request, "enableRtx" );
final String authusername = request.getParameter( "authusername" );
final String sippassword = request.getParameter( "sippassword" );
final String server = request.getParameter( "server" );
Expand Down Expand Up @@ -133,6 +134,7 @@
JiveGlobals.setProperty( "org.jitsi.videobridge.ofmeet.allow.direct.sip", Boolean.toString( allowdirectsip ) );
JiveGlobals.setProperty( "org.jitsi.videobridge.ofmeet.sip.hq.voice", hqVoice );
ofmeetConfig.setDisableRtx( disableRtx );
ofmeetConfig.setStartAudioOnly( startaudioonly );
ofmeetConfig.setStartAudioMuted( startaudiomuted == null || startaudiomuted.isEmpty() ? null : Integer.parseInt( startaudiomuted ));
ofmeetConfig.setStartVideoMuted( startvideomuted == null || startvideomuted.isEmpty() ? null : Integer.parseInt( startvideomuted ));
Expand Down Expand Up @@ -202,6 +204,12 @@
<fmt:message key="config.page.configuration.ofmeet.title" var="boxtitleofmeet"/>
<admin:contentBox title="${boxtitleofmeet}">
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<td nowrap colspan="2">
<input type="checkbox" name="enableRtx" ${ofmeetConfig.disableRtx ? "" : "checked"}>
<fmt:message key="config.page.configuration.ofmeet.disableRtx.enabled_desc" />
</td>
</tr>
<tr>
<td nowrap colspan="2">
<input type="checkbox" name="useipv6" ${admin:getBooleanProperty( "org.jitsi.videobridge.ofmeet.useipv6", false) ? "checked" : ""}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
{
config.put( "globalConferenceId", globalConferenceId );
}
config.put( "disableRtx", true );
config.put( "disableRtx", ofMeetConfig.getDisableRtx() );
config.put( "bosh", getMostPreferredConnectionURL( request ) );

config.put( "channelLastN", ofMeetConfig.getChannelLastN() );
Expand Down

0 comments on commit b6d6ae4

Please sign in to comment.