HMSRemoteVideoTrack.fromMap constructor

HMSRemoteVideoTrack.fromMap({
  1. required Map map,
})

Implementation

factory HMSRemoteVideoTrack.fromMap({required Map map}) {
  HMSRemoteVideoTrack track = HMSRemoteVideoTrack(
      trackId: map['track_id'],
      trackDescription: map['track_description'],
      source: (map['track_source']),
      kind: HMSTrackKindValue.getHMSTrackKindFromName(map['track_kind']),
      isMute: map['track_mute'],
      isDegraded: map['is_degraded'],
      isPlaybackAllowed: map['is_playback_allowed']);
  return track;
}