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:
@@ -124,6 +124,7 @@ extension LocalVideoTrackExt on LocalVideoTrack {
|
||||
}
|
||||
|
||||
if (fastSwitch) {
|
||||
currentOptions = options.copyWith(deviceId: deviceId);
|
||||
await rtc.Helper.switchCamera(mediaStreamTrack, deviceId, mediaStream);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user