setAudioScenario abstract method

Future<int?> setAudioScenario(
  1. AudioScenario audioScenario
)

Sets the audio scenarios.

You should choose the right type of audio scenario according to your need.
When an audio scenario is selected, the RTC automatically applies call volume/media volume based on the client audio routing and publishing subscription status.

Return value:

Notes:

  • You can call this API anytime before or after entering the room.
  • Call volume is more suitable for calls, meetings and other scenarios that demand information accuracy. Call volume will activate the system hardware signal processor, making the sound clearer. The volume cannot be reduced to 0.
  • Media volume is more suitable for entertainment scenarios, which require musical expression. The volume can be reduced to 0.

Implementation

Future<int?> setAudioScenario(AudioScenario audioScenario);