setDirectCdnStreamingAudioConfiguration
Sets the audio profile of the audio streams directly pushed to the CDN by the host.
Future<void> setDirectCdnStreamingAudioConfiguration( AudioProfileType profile);
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.
Exceptions
When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.