rePublishAllTracks method

Future<void> rePublishAllTracks()

Implementation

Future<void> rePublishAllTracks() async {
  final tracks = trackPublications.values.toList();
  trackPublications.clear();
  for (LocalTrackPublication track in tracks) {
    if (track.track is LocalAudioTrack) {
      await publishAudioTrack(track.track as LocalAudioTrack);
    } else if (track.track is LocalVideoTrack) {
      await publishVideoTrack(track.track as LocalVideoTrack);
    }
  }
}