fix ice config issues. (#192)

* fix ice config issues.

* update comment.

* The client has high-priority to set ice settings.
This commit is contained in:
CloudWebRTC
2022-10-19 15:30:49 +08:00
committed by GitHub
parent 7acfb3faac
commit 3faa7a2094
2 changed files with 38 additions and 17 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ extension ICEServerExt on lk_rtc.ICEServer {
RTCIceServer toSDKType() => RTCIceServer(
urls: urls,
username: username.isNotEmpty ? username : null,
credential: credential.isNotEmpty ? username : null,
credential: credential.isNotEmpty ? credential : null,
);
}