DirectCdnStreamingMediaOptions

Used to configure media streaming options.

struct DirectCdnStreamingMediaOptions {
  Optional<bool> publishCameraTrack;
  Optional<bool> publishMicrophoneTrack;
  Optional<bool> publishCustomAudioTrack;
  Optional<bool> publishCustomVideoTrack;
  Optional<bool> publishMediaPlayerAudioTrack;
  Optional<int> publishMediaPlayerId;
  Optional<video_track_id_t> customVideoTrackId;
}
Deprecated
Deprecated since v4.6.0.

Properties

publishCameraTrack
Sets whether to publish the camera-captured video:
  • true: Publish the camera-captured video.
  • false: (Default) Do not publish the camera-captured video.
publishMicrophoneTrack
Sets whether to publish the microphone-captured audio:
  • true: Publish the microphone-captured audio.
  • false: (Default) Do not publish the microphone-captured audio.
publishCustomAudioTrack
Sets whether to publish audio captured from a custom audio source:
  • true: Publish audio from the custom audio source.
  • false: (Default) Do not publish audio from the custom audio source.
publishCustomVideoTrack
Sets whether to publish video captured from a custom video source:
  • true: Publish video from the custom video source.
  • false: (Default) Do not publish video from the custom video source.
publishMediaPlayerAudioTrack
Sets whether to publish the media player audio track:
  • true: Publish the media player audio track.
  • false: (Default) Do not publish the media player audio track.
publishMediaPlayerId
Sets the media player source to publish. You can get the media player ID after calling the getMediaPlayerId method.
customVideoTrackId
The video track ID returned after calling the createCustomVideoTrack method. The default value is 0.