@@ -119,8 +119,6 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
119119 boolean enableStereo = JiveGlobals .getBooleanProperty ( "ofmeet.stereo.enabled" , false );
120120 boolean enableAudioLevels = JiveGlobals .getBooleanProperty ( "ofmeet.audioLevels.enabled" , false );
121121 boolean enableFeedback = JiveGlobals .getBooleanProperty ( "ofmeet.feedback.enabled" , true );
122- boolean forceVp9 = JiveGlobals .getBooleanProperty ( "ofmeet.jicofo.force.vp9" , false );
123- boolean forceAv1 = JiveGlobals .getBooleanProperty ( "ofmeet.jicofo.force.av1" , true );
124122
125123 int video_width_ideal = JiveGlobals .getIntProperty ( "org.jitsi.videobridge.ofmeet.constraints.video.width.ideal" , ofMeetConfig .getVideoConstraintsIdealHeight () * 16 /9 );
126124 int video_width_max = JiveGlobals .getIntProperty ( "org.jitsi.videobridge.ofmeet.constraints.video.width.max" , ofMeetConfig .getVideoConstraintsMaxHeight () * 16 /9 );
@@ -143,6 +141,10 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
143141 boolean useNewBandwidthAllocationStrategy = JiveGlobals .getBooleanProperty ( "ofmeet.use.new.bandwidth.allocation.strategy" , true );
144142
145143 boolean wsBridgeChannel = JiveGlobals .getBooleanProperty ( "ofmeet.bridge.ws.channel" , org .jitsi .util .OSUtils .IS_WINDOWS );
144+
145+ JSONArray codecPreferenceOrder = new JSONArray (JiveGlobals .getProperty ( "ofmeet.codec.preference.order" , "[ \" AV1\" , \" VP9\" , \" VP8\" , \" H264\" ]" ));
146+ JSONArray mobileCodecPreferenceOrder = new JSONArray (JiveGlobals .getProperty ( "ofmeet.codec.preference.order" , "[ \" VP8\" , \" H264\" , \" VP9\" , \" AV1\" ]" ));
147+
146148
147149 if ( xirsysUrl != null )
148150 {
@@ -166,10 +168,8 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
166168
167169 final Map <String , Object > p2p = new HashMap <>();
168170 p2p .put ( "enabled" , ofMeetConfig .getP2pEnabled () );
169- p2p .put ( "enableUnifiedOnChrome" , true );
170- p2p .put ( "preferredCodec" , forceAv1 ? "AV1" : (forceVp9 ? "VP9" : "H264" ) );
171- p2p .put ( "preferH264" , ofMeetConfig .getP2pPreferH264 () );
172- p2p .put ( "disableH264" , ofMeetConfig .getP2pDisableH264 () );
171+ p2p .put ( "codecPreferenceOrder" , codecPreferenceOrder );
172+ p2p .put ( "mobileCodecPreferenceOrder" , mobileCodecPreferenceOrder );
173173 p2p .put ( "useStunTurn" , ofMeetConfig .getP2pUseStunTurn () );
174174 config .put ( "enableP2P" , true );
175175 config .put ( "p2p" , p2p );
@@ -244,39 +244,32 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
244244 config .put ( "useNewBandwidthAllocationStrategy" , useNewBandwidthAllocationStrategy );
245245
246246 final JSONObject videoQuality = new JSONObject ();
247- videoQuality .put ( "preferredCodec" , forceAv1 ? "AV1" : (forceVp9 ? "VP9" : "H264" ) );
248- final JSONObject maxBitratesVideo = new JSONObject ();
247+ videoQuality .put ( "enableAdaptiveMode" , true );
248+ videoQuality .put ( "codecPreferenceOrder" , codecPreferenceOrder );
249+ videoQuality .put ( "mobileCodecPreferenceOrder" , mobileCodecPreferenceOrder );
249250
250251 final JSONObject vp9 = new JSONObject ();
251- vp9 .put ( "low" , lowMaxBitratesVideo );
252- vp9 .put ( "standard" , standardMaxBitratesVideo );
253- vp9 .put ( "high" , highMaxBitratesVideo );
254- maxBitratesVideo .put ( "VP9" , vp9 );
255-
252+ vp9 .put ( "scalabilityModeEnabled" , true );
253+ vp9 .put ( "useSimulcast" , false );
254+ videoQuality .put ( "vp9" , vp9 );
255+
256256 final JSONObject h264 = new JSONObject ();
257- h264 .put ( "low" , lowMaxBitratesVideo );
258- h264 .put ( "standard" , standardMaxBitratesVideo );
259- h264 .put ( "high" , highMaxBitratesVideo );
260- maxBitratesVideo .put ( "H264" , h264 );
257+ videoQuality .put ( "h264" , h264 );
261258
262259 final JSONObject av1 = new JSONObject ();
263- av1 .put ( "low" , lowMaxBitratesVideo );
264- av1 .put ( "standard" , standardMaxBitratesVideo );
265- av1 .put ( "high" , highMaxBitratesVideo );
266- maxBitratesVideo .put ( "AV1" , av1 );
260+ av1 .put ( "useSimulcast" , false );
261+ videoQuality .put ( "av1" , av1 );
267262
268- videoQuality .put ( "maxBitratesVideo" , maxBitratesVideo );
269-
270- final JSONObject minHeightForQualityLvl = new JSONObject ();
271- minHeightForQualityLvl .put ( minHeightForQualityLvlLow , "low" );
272- minHeightForQualityLvl .put ( minHeightForQualityLvlStd , "standard" );
273- minHeightForQualityLvl .put ( minHeightForQualityLvlHigh , "high" );
274- videoQuality .put ( "minHeightForQualityLvl" , minHeightForQualityLvl );
275263 config .put ( "videoQuality" , videoQuality );
264+
265+ final JSONObject audioQuality = new JSONObject ();
266+ audioQuality .put ( "enableOpusDtx" , false );
267+ audioQuality .put ( "stereo" , enableStereo );
268+
269+ config .put ( "audioQuality" , audioQuality );
276270
277271 config .put ( "recordingType" , "colibri" );
278272 config .put ( "disableAudioLevels" , ! enableAudioLevels );
279- config .put ( "stereo" , false );
280273 config .put ( "requireDisplayName" , true );
281274 config .put ( "startAudioOnly" , ofMeetConfig .getStartAudioOnly () );
282275
@@ -312,7 +305,9 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
312305
313306 videoConstraints .put ( "width" , width );
314307 constraints .put ( "video" , videoConstraints );
308+
315309 config .put ( "constraints" , constraints );
310+
316311 config .put ( "enableLayerSuspension" , enableLayerSuspension );
317312 config .put ( "enableUnifiedOnChrome" , true );
318313 config .put ( "enableForcedReload" , true );
@@ -330,7 +325,7 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
330325 testing .put ( "capScreenshareBitrate" , capScreenshareBitrate ? 1 : 0 );
331326 config .put ( "testing" , testing );
332327
333- config .put ( "maxFullResolutionParticipants" , - 1 );
328+ config .put ( "maxFullResolutionParticipants" , 1 );
334329 config .put ( "useRoomAsSharedDocumentName" , false );
335330 config .put ( "logStats" , logStats );
336331 config .put ( "ofmeetWinSSOEnabled" , ofmeetWinSSOEnabled );
@@ -376,7 +371,6 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
376371 config .put ( "disableAGC" , true );
377372 config .put ( "disableHPF" , true );
378373 config .put ( "enableLipSync" , false );
379- config .put ( "stereo" , true );
380374 config .put ( "opusMaxAverageBitrate" , 510000 );
381375 }
382376
0 commit comments