Fix: re-publish tracks after re connect (#238)

* fix republish local tracks after reconnect.

* update flutter-webrtc.

* remove unused import.

* add dart_webrtc.

* cleanup.

* fix: Fix sendSyncState timing error, when reconnecting is sending.

* Adjust the re-connect logic to ensure that the publisher negotiates and reconnects correctly.

* Update room.dart
This commit is contained in:
CloudWebRTC
2023-02-17 09:04:56 +08:00
committed by GitHub
parent 5018f355f8
commit 5c4761bc7c
6 changed files with 29 additions and 31 deletions
+1
View File
@@ -124,6 +124,7 @@ extension LocalVideoTrackExt on LocalVideoTrack {
}
if (fastSwitch) {
currentOptions = options.copyWith(deviceId: deviceId);
await rtc.Helper.switchCamera(mediaStreamTrack, deviceId, mediaStream);
return;
}