@@ -143,7 +143,10 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
143143 boolean useNewBandwidthAllocationStrategy = JiveGlobals .getBooleanProperty ( "ofmeet.use.new.bandwidth.allocation.strategy" , true );
144144
145145 boolean wsBridgeChannel = JiveGlobals .getBooleanProperty ( "ofmeet.bridge.ws.channel" , org .jitsi .util .OSUtils .IS_WINDOWS );
146-
146+
147+ JSONArray codecPreferenceOrder = new JSONArray (JiveGlobals .getProperty ( "ofmeet.codec.preference.order" , "[ \" AV1\" , \" VP9\" , \" VP8\" , \" H264\" ]" ));
148+ JSONArray mobileCodecPreferenceOrder = new JSONArray (JiveGlobals .getProperty ( "ofmeet.codec.preference.order" , "[ \" VP8\" , \" H264\" , \" VP9\" , \" AV1\" ]" ));
149+
147150 if ( xirsysUrl != null )
148151 {
149152 Log .info ( "OFMeetConfig. found xirsys Url " + xirsysUrl );
@@ -166,10 +169,8 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
166169
167170 final Map <String , Object > p2p = new HashMap <>();
168171 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 () );
172+ p2p .put ( "codecPreferenceOrder" , codecPreferenceOrder );
173+ p2p .put ( "mobileCodecPreferenceOrder" , mobileCodecPreferenceOrder );
173174 p2p .put ( "useStunTurn" , ofMeetConfig .getP2pUseStunTurn () );
174175 config .put ( "enableP2P" , true );
175176 config .put ( "p2p" , p2p );
@@ -244,39 +245,32 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
244245 config .put ( "useNewBandwidthAllocationStrategy" , useNewBandwidthAllocationStrategy );
245246
246247 final JSONObject videoQuality = new JSONObject ();
247- videoQuality .put ( "preferredCodec" , forceAv1 ? "AV1" : (forceVp9 ? "VP9" : "H264" ) );
248- final JSONObject maxBitratesVideo = new JSONObject ();
248+ videoQuality .put ( "enableAdaptiveMode" , true );
249+ videoQuality .put ( "codecPreferenceOrder" , codecPreferenceOrder );
250+ videoQuality .put ( "mobileCodecPreferenceOrder" , mobileCodecPreferenceOrder );
249251
250252 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-
253+ vp9 .put ( "scalabilityModeEnabled" , true );
254+ vp9 .put ( "useSimulcast" , false );
255+ videoQuality .put ( "vp9" , vp9 );
256+
256257 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 );
258+ videoQuality .put ( "h264" , h264 );
261259
262260 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 );
261+ av1 .put ( "useSimulcast" , false );
262+ videoQuality .put ( "av1" , av1 );
267263
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 );
275264 config .put ( "videoQuality" , videoQuality );
265+
266+ final JSONObject audioQuality = new JSONObject ();
267+ audioQuality .put ( "enableOpusDtx" , false );
268+ audioQuality .put ( "stereo" , enableStereo );
269+
270+ config .put ( "audioQuality" , audioQuality );
276271
277272 config .put ( "recordingType" , "colibri" );
278273 config .put ( "disableAudioLevels" , ! enableAudioLevels );
279- config .put ( "stereo" , false );
280274 config .put ( "requireDisplayName" , true );
281275 config .put ( "startAudioOnly" , ofMeetConfig .getStartAudioOnly () );
282276
@@ -330,7 +324,7 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
330324 testing .put ( "capScreenshareBitrate" , capScreenshareBitrate ? 1 : 0 );
331325 config .put ( "testing" , testing );
332326
333- config .put ( "maxFullResolutionParticipants" , - 1 );
327+ config .put ( "maxFullResolutionParticipants" , 1 );
334328 config .put ( "useRoomAsSharedDocumentName" , false );
335329 config .put ( "logStats" , logStats );
336330 config .put ( "ofmeetWinSSOEnabled" , ofmeetWinSSOEnabled );
@@ -373,7 +367,6 @@ public void doGet( HttpServletRequest request, HttpServletResponse response ) th
373367 config .put ( "disableAGC" , true );
374368 config .put ( "disableHPF" , true );
375369 config .put ( "enableLipSync" , false );
376- config .put ( "stereo" , true );
377370 config .put ( "opusMaxAverageBitrate" , 510000 );
378371 }
379372
0 commit comments