Add sid for reconnecting. (#168)

This commit is contained in:
CloudWebRTC
2022-09-11 11:49:57 +08:00
committed by GitHub
parent 7cfe402f1a
commit 68c705dc9f
3 changed files with 7 additions and 0 deletions
+2
View File
@@ -146,6 +146,7 @@ class Utils {
bool reconnect = false,
bool validate = false,
bool forceSecure = false,
String? sid,
}) async {
final Uri uri = Uri.parse(uriString);
@@ -171,6 +172,7 @@ class Utils {
'auto_subscribe': connectOptions.autoSubscribe ? '1' : '0',
'adaptive_stream': roomOptions.adaptiveStream ? '1' : '0',
if (reconnect) 'reconnect': '1',
if (reconnect && sid != null) 'sid': sid,
'protocol': connectOptions.protocolVersion.toStringValue(),
'sdk': 'flutter',
'version': LiveKitClient.version,