DirectCdnStreamingMediaOptions

Media options for the host.

class DirectCdnStreamingMediaOptions {
  const DirectCdnStreamingMediaOptions(
      {this.publishCameraTrack,
      this.publishMicrophoneTrack,
      this.publishCustomAudioTrack,
      this.publishCustomVideoTrack,
      this.publishMediaPlayerAudioTrack,
      this.publishMediaPlayerId,
      this.customVideoTrackId});

  @JsonKey(name: 'publishCameraTrack')
  final bool? publishCameraTrack;

  @JsonKey(name: 'publishMicrophoneTrack')
  final bool? publishMicrophoneTrack;

  @JsonKey(name: 'publishCustomAudioTrack')
  final bool? publishCustomAudioTrack;

  @JsonKey(name: 'publishCustomVideoTrack')
  final bool? publishCustomVideoTrack;

  @JsonKey(name: 'publishMediaPlayerAudioTrack')
  final bool? publishMediaPlayerAudioTrack;

  @JsonKey(name: 'publishMediaPlayerId')
  final int? publishMediaPlayerId;

  @JsonKey(name: 'customVideoTrackId')
  final int? customVideoTrackId;

  factory DirectCdnStreamingMediaOptions.fromJson(Map<String, dynamic> json) =>
      _$DirectCdnStreamingMediaOptionsFromJson(json);

  Map<String, dynamic> toJson() => _$DirectCdnStreamingMediaOptionsToJson(this);
}
Deprecated
Deprecated since v4.6.2.

Properties

publishCameraTrack
Sets whether to publish video captured by the camera.
  • true: Publish video captured by the camera.
  • false: (Default) Do not publish video captured by the camera.
publishMicrophoneTrack
Sets whether to publish audio captured by the microphone.
  • true: Publish audio captured by the microphone.
  • false: (Default) Do not publish audio captured by the microphone.
publishCustomAudioTrack
Sets whether to publish custom captured audio.
  • true: Publish custom captured audio.
  • false: (Default) Do not publish custom captured audio.
publishCustomVideoTrack
Sets whether to publish custom captured video.
  • true: Publish custom captured video.
  • false: (Default) Do not publish custom captured video.
customVideoTrackId
The video track ID returned by the createCustomVideoTrack method. Default value is 0.