ParticipantMedia constructor
const
ParticipantMedia({
- required ParticipantVideoInfo camera,
- required ParticipantAudioInfo microphone,
- required ParticipantVideoInfo screenVideo,
- required ParticipantAudioInfo screenAudio,
- @JsonKey(toJson: _customAudioMapToJson, fromJson: _customAudioMapFromJson) required Map<
CustomTrackName, ParticipantAudioInfo> customAudio, - @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;