Track constructor

Track(
  1. MediaTrack track
)

Implementation

Track(this.track) : kind = track.kind(), source = track.mediaSourceKind() {
  Log.debug('Track($kind, $source)', '$runtimeType');

  if (track is RemoteMediaTrack) {
    isMuted = RxBool((track as RemoteMediaTrack).muted());
  } else {
    isMuted = RxBool(false);
  }
}