-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Labels
enhancementNew feature or requestNew feature or requestfixedFixed and needs validationFixed and needs validation
Description
Our repo - device.load(with: rtpCapabilities)
Android, web repo has extra parameters to set ICE server configuration - check last load function
`
code
for (i in 0 until mIceServers!!.length()) {
val server = mIceServers!!.getJSONObject(i)
var iceServer = IceServer(
server.getString("urls"),
server.getString("username"),
server.getString("credential")
)
serverList.add(iceServer)
}
val rtcConfiguration = RTCConfiguration(serverList)
if (icePolicy == "relay") rtcConfiguration.iceTransportsType =
org.webrtc.PeerConnection.IceTransportsType.RELAY
mOptions!!.setRTCConfig(rtcConfiguration)
mJMMediaDevice?.load(rtpCapabilities.toString(), mOptions)
`
so how to set ice server in iOS?
I can see send transport has few functions.
`
code
public func restartICE(with iceParameters: String) throws
public func updateICEServers(_ iceServers: String) throws
public func updateICETransportPolicy(_ transportPolicy: Mediasoup.ICETransportPolicy) throws
`
Question
- What is the right way to set ice server like android?
- Will updateICEServer work? do we need to call restartICE as well?
Note - I tried this too. server is not receiving any ice server info. please help.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfixedFixed and needs validationFixed and needs validation