logo
On this page

How to avoid volume changes when switching microphone on/off during live streaming?

2023-02-21
Products / Plugins:Video Call / Audio Call / Live streaming
Platform / Framework:iOS / Android / macOS / Windows

Under certain configurations of the ZEGO SDK, different volume modes are used when the microphone is on and off. For example, call volume is used when the microphone is on, and media volume is used when it is off. This configuration can provide a better experience for most scenarios, but it will also result in volume changes when switching the microphone on/off.

If you want to avoid volume change issues, you can set the application scenario to "COMMUNICATION" or "GENERAL" through the "scenario" parameter when calling the createEngine interface to create the engine.

  • In the "COMMUNICATION" scenario, both on and off microphone use call volume.
  • In the "GENERAL" scenario, both on and off microphone use media volume.

If you have other requirements for volume mode, you can contact ZEGOCLOUD Technical Support.

Related references:

What is the difference between media volume and call volume?

Previous

How to handle audio and video out of sync issues?

Next

How to ensure smooth audio and video streaming in poor network environments (flow control)?