ParticipantMedia constructor

const ParticipantMedia({
  1. required ParticipantVideoInfo camera,
  2. required ParticipantAudioInfo microphone,
  3. required ParticipantVideoInfo screenVideo,
  4. required ParticipantAudioInfo screenAudio,
  5. @JsonKey(toJson: _customAudioMapToJson, fromJson: _customAudioMapFromJson) required Map<CustomTrackName, ParticipantAudioInfo> customAudio,
  6. @JsonKey(toJson: _customVideoMapToJson, fromJson: _customVideoMapFromJson) required Map<CustomTrackName, ParticipantVideoInfo> customVideo,
})

Implementation

const factory ParticipantMedia({
  /// Information about the participant's video device input tracks.
  required ParticipantVideoInfo camera,

  /// Information about the participant's audio device input tracks.
  required ParticipantAudioInfo microphone,

  /// Information about the participant's screen sharing video tracks.
  required ParticipantVideoInfo screenVideo,

  /// Information about the participant's screen sharing audio tracks.
  required ParticipantAudioInfo screenAudio,

  /// Information about the participant's custom audio tracks.
  @JsonKey(toJson: _customAudioMapToJson, fromJson: _customAudioMapFromJson)
  required Map<CustomTrackName, ParticipantAudioInfo> customAudio,

  /// Information about the participant's custom audio tracks.
  @JsonKey(toJson: _customVideoMapToJson, fromJson: _customVideoMapFromJson)
  required Map<CustomTrackName, ParticipantVideoInfo> customVideo,
}) = _ParticipantMedia;