通知
本站点除 Legacy 产品与方案外,已迁移至 声网新文档中心 ,当前页面不再维护
Documentation
All
Console 官网 Community Technical support

How can I prevent volume changes when the users switch their roles in an interactive live streaming channel?

Type: Quality issues    Platform: Android / iOS   Last Updated: 2022/09/14 02:20:23

To ensure a better audio experience in different scenarios, by default, the SDK adjusts the underlying audio settings when the user switches user roles, as follows:

  • The audience role uses the media volume control.
  • The host role uses the call volume control.

The media volume and call volume have separate volume control mechanisms.

To avoid volume changes when the user switches user roles, ensure that the volume type used by the SDK remains the same before and after the switch. The volume type used by the SDK varies from case to case. See Volume type introduction for details.

For example, if you use AUDIO_SCENARIO_CHATROOM_ENTERTAINMENT on Android and AUDIO_SCENARIO_GAME_STREAMING on iOS, then even if the user role switches and the audio routing changes, the user's volume type does not change, and thus the volume is not affected.