Agora RTC Objective-C API Reference Refactor

Properties
AgoraDirectCdnStreamingMediaOptions Class Reference

Inherits <NSObject>.

## Properties
BOOL | publishCameraTrack
BOOL | publishMicrophoneTrack
BOOL | publishCustomAudioTrack
BOOL | publishCustomVideoTrack
BOOL | publishMediaPlayerAudioTrack
NSInteger | publishMediaPlayerId
NSInteger | customVideoTrackId

## Detailed Description

The cdn streaming media options.

## Property Documentation

## ◆ publishCameraTrack

- (BOOL) publishCameraTrack
| read write nonatomic assign

Determines whether to publish the video of the camera track.

- `YES`: Publish the video track of the camera capturer.
- `NO`: (Default) Do not publish the video track of the camera capturer.

## ◆ publishMicrophoneTrack

- (BOOL) publishMicrophoneTrack
| read write nonatomic assign

Determines whether to publish the recorded audio.

- `YES`: Publish the recorded audio.
- `NO`: (Default) Do not publish the recorded audio.

## ◆ publishCustomAudioTrack

- (BOOL) publishCustomAudioTrack
| read write nonatomic assign

Determines whether to publish the audio of the custom audio track.

- `YES`: Publish the audio of the custom audio track.
- `NO`: (Default) Do not publish the audio of the custom audio track.

## ◆ publishCustomVideoTrack

- (BOOL) publishCustomVideoTrack
| read write nonatomic assign

Determines whether to publish the video of the custom video track.

- `YES`: Publish the video of the custom video track.
- `NO`: (Default) Do not publish the video of the custom video track.

## ◆ publishMediaPlayerAudioTrack

- (BOOL) publishMediaPlayerAudioTrack
| read write nonatomic assign

Determines whether to publish the audio track of media player source.

- `YES`: Publish the audio track of media player source.
- `NO`: (Default) Do not publish the audio track of media player source.

## ◆ publishMediaPlayerId

- (NSInteger) publishMediaPlayerId
| read write nonatomic assign

Determines which media player source should be published. This parameter get from function getMediaPlayerId() of AgoraMediaPlayer.

## ◆ customVideoTrackId

- (NSInteger) customVideoTrackId
| read write nonatomic assign

The custom video track id which will used to publish.