Documentation
Video Call
Agora.io Community
What is the difference between the in-call volume and the media volume?
Type: Integration issues    Platform: Android / iOS / macOS / Windows / Unity / Cocos Creator / Electron / React Native / Flutter   Last Updated: 2021/07/23 00:13:18

Volume type introduction

The in-call volume refers to the volume of voice and video calls, while the media volume refers to the volume at which background music, videos, and audio effects are played. The in-call volume and the media volume are independent of each other, and the setting of one does not affect the other. The difference between the in-call volume and the media volume is as follows:

  • The in-call volume cannot be adjusted to 0.
  • The media volume can be adjusted to 0.

The system volume is the volume adjusted on the device, which is controlled by the volume type used by the Agora RTC SDK. For example, if the SDK uses the in-call volume, then when you adjust the system volume, you actually adjust the in-call volume.

The volume type used by the SDK is determined by the channel profile set in setChannelProfile, the user role set in setClientRole, and the audio scenario set in setAudioProfile. The following table shows the volume types used by the SDK in each scenario:

This page takes C++ as an example.
Audio scenario\Channel profile Communication profile Live streaming profile
DEFAULT In-call volume
  • Audience members use the media volume.
  • A single host uses the media volume.
  • Hosts in co-hosting scenarios use the in-call volume.
  • CHATROOM_ENTERTAINMENT In-call volume In-call volume
    EDUCATION In-call volume
  • Audience members use the media volume.
  • A single host or multiple hosts use the in-call volume.
  • GAME_STREAMING Media volume Media volume
    SHOWROOM In-call volume
  • Audience members use the media volume.
  • A single host uses the media volume.
  • Hosts in co-hosting scenarios use the in-call volume.
  • CHATROOM_GAMING In-call volume In-call volume
    IOT In-call volume In-call volume
    MEETING Media volume Media volume

    Q & A

    I set the volume of the game effects before joining the channel, why did the volume change after joining a channel?

    The in-call volume and the media volume are independent of each other, and the setting of one does not affect the other. Before joining the channel, the user sets the media volume; after joining the channel, if the Agora RTC SDK uses the in-call volume and the settings of the media volume and the in-call volume are different, the volume of the game effects changes. To avoid this issue, Agora recommends setting the SDK's volume type to media volume by referring to volume_type introduction.