Enum TXSystemVolumeType
5.4 System volume type (for mobile devices only)
Most smartphones have two system volume types: call volume and media volume.
Call volume is designed for call scenarios. It uses phones’ built-in acoustic echo cancellation (AEC) technique and delivers lower audio quality than media volume. In the call volume mode, you cannot turn the volume to 0 using the volume buttons, but can use Bluetooth earphones for audio capturing.
Media volume is designed for music scenarios. It delivers better audio quality than call volume. In the media volume mode, if you enable AEC, the SDK will use its built-in algorithm to process audio. You can only use the phone’s mic, not Bluetooth earphones, for audio capturing.
The SDK provides three control modes for system volume types, including:
Auto: Call volume is used for anchors and co-anchoring users, and media volume for users not co-anchoring. This mode is suitable for live streaming scenarios. If you set the scenario to
TRTCAppSceneLIVE
orTRTCAppSceneVoiceChatRoom
when callingenterRoom
, the SDK will use this mode by default.VOIP: Call volume is used throughout a call. This is suitable for conferencing scenarios. If you set the scenario to
TRTCAppSceneVideoCall
orTRTCAppSceneAudioCall
when callingenterRoom
, the SDK will use this mode by default.Media: Media volume is used throughout a call. This mode is not used often, only under special circumstances such as when the anchor uses an external sound card.
Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public enum TXSystemVolumeType
Fields
Name | Description |
---|---|
TXSystemVolumeTypeAuto | Call volume is used for anchors and co-anchoring users, and media volume for users not co-anchoring. This mode is suitable for live streaming scenarios.
If you set the scenario to |
TXSystemVolumeTypeMedia | Media volume is used throughout a call. This mode is not used often, only under special circumstances such as when the anchor uses an external sound card. |
TXSystemVolumeTypeVOIP | Call volume is used throughout a call. This is suitable for conferencing scenarios.
If you set the scenario to |