getTrackPublicationBySource method

  1. @override
LocalTrackPublication<LocalTrack>? getTrackPublicationBySource(
  1. TrackSource source
)
override

Tries to find a TrackPublication by its TrackSource. Otherwise, will return a compatible type of TrackPublication for the TrackSource specified. returns null when not found.

Implementation

@override
LocalTrackPublication? getTrackPublicationBySource(TrackSource source) {
  final track = super.getTrackPublicationBySource(source);
  if (track != null) {
    return track;
  }
  return null;
}