setDirectCdnStreamingAudioConfiguration
Sets the audio profile of the audio streams directly pushed to the CDN by the host.
abstract setDirectCdnStreamingAudioConfiguration( profile: AudioProfileType ): number;
When you set the publishMicrophoneTrack or publishCustomAudioTrack in the DirectCdnStreamingMediaOptions as true
to capture audios, you can call this method to set the audio profile.
Parameters
- profile
-
The audio profile, including the sampling rate, bitrate, encoding mode, and the number of channels. See AudioProfileType.
Returns
- 0: Success.
- < 0: Failure.