unpublishAllTracks method

Future<void> unpublishAllTracks(
  1. {bool notify = true,
  2. bool? stopOnUnpublish}
)

Convenience method to unpublish all tracks.

Implementation

Future<void> unpublishAllTracks(
    {bool notify = true, bool? stopOnUnpublish}) async {
  final trackSids = trackPublications.keys.toSet();
  for (final trackid in trackSids) {
    await unpublishTrack(trackid, notify: notify);
  }
}