setDirectCdnStreamingAudioConfiguration abstract method

Future<void> setDirectCdnStreamingAudioConfiguration(
  1. AudioProfileType profile
)

Sets the audio profile of the audio streams directly pushed to the CDN by the host.

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.

  • profile The audio profile, including the sampling rate, bitrate, encoding mode, and the number of channels. See AudioProfileType.

Returns 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.

Implementation

Future<void> setDirectCdnStreamingAudioConfiguration(
    AudioProfileType profile);