@@ -243,10 +243,10 @@ class KTVApiImpl(
243
243
244
244
// mutipath
245
245
enableMultipathing = true
246
- mRtcEngine.setParameters(" {\" rtc.enableMultipath\" : true}" )
246
+ // mRtcEngine.setParameters("{\"rtc.enableMultipath\": true}")
247
247
mRtcEngine.setParameters(" {\" rtc.enable_tds_request_on_join\" : true}" )
248
- mRtcEngine.setParameters(" {\" rtc.remote_path_scheduling_strategy\" : 0}" )
249
- mRtcEngine.setParameters(" {\" rtc.path_scheduling_strategy\" : 0}" )
248
+ // mRtcEngine.setParameters("{\"rtc.remote_path_scheduling_strategy\": 0}")
249
+ // mRtcEngine.setParameters("{\"rtc.path_scheduling_strategy\": 0}")
250
250
}
251
251
252
252
override fun addEventHandler (ktvApiEventHandler : IKTVApiEventHandler ) {
@@ -334,17 +334,17 @@ class KTVApiImpl(
334
334
override fun enableMulitpathing (enable : Boolean ) {
335
335
reportCallScenarioApi(" enableMulitpathing" , JSONObject ().put(" enable" , enable))
336
336
this .enableMultipathing = enable
337
- mRtcEngine.setParameters(" {\" rtc.enableMultipath\" : $enable }" )
338
- if (enable) {
339
- mRtcEngine.setParameters(" {\" rtc.enable_tds_request_on_join\" : true}" )
340
- mRtcEngine.setParameters(" {\" rtc.remote_path_scheduling_strategy\" : 0}" )
341
- mRtcEngine.setParameters(" {\" rtc.path_scheduling_strategy\" : 0}" )
342
- }
337
+ // mRtcEngine.setParameters("{\"rtc.enableMultipath\": $enable}")
338
+ // if (enable) {
339
+ // mRtcEngine.setParameters("{\"rtc.enable_tds_request_on_join\": true}")
340
+ // mRtcEngine.setParameters("{\"rtc.remote_path_scheduling_strategy\": 0}")
341
+ // mRtcEngine.setParameters("{\"rtc.path_scheduling_strategy\": 0}")
342
+ // }
343
343
344
344
if (singerRole == KTVSingRole .LeadSinger || singerRole == KTVSingRole .CoSinger ) {
345
345
subChorusConnection?.let {
346
346
mRtcEngine.updateChannelMediaOptionsEx(ChannelMediaOptions ().apply {
347
- parameters = " {\" rtc.enableMultipath\" : $enable , \" rtc.path_scheduling_strategy\" : 0}"
347
+ parameters = " {\" rtc.enableMultipath\" : $enable , \" rtc.path_scheduling_strategy\" : 0, \" rtc.remote_path_scheduling_strategy \" : 0 }"
348
348
}, subChorusConnection)
349
349
}
350
350
}
@@ -966,7 +966,7 @@ class KTVApiImpl(
966
966
newRole != KTVSingRole .LeadSinger
967
967
channelMediaOption.clientRoleType = CLIENT_ROLE_BROADCASTER
968
968
if (enableMultipathing) {
969
- channelMediaOption.parameters = " {\" rtc.path_scheduling_strategy\" :0, \" rtc.enableMultipath\" : true}"
969
+ channelMediaOption.parameters = " {\" rtc.path_scheduling_strategy\" :0, \" rtc.enableMultipath\" : true, \" rtc.remote_path_scheduling_strategy \" : 0 }"
970
970
}
971
971
972
972
val rtcConnection = RtcConnection ()
0 commit comments