How to implement switching camera/video screen/microphone/audio/speaker?
2023-03-01
Products / Plugins:Video Call / Audio Call / Live streaming
Platform / Framework:iOS / Android / macOS / Windows / Flutter / Electron / ReactNative / uni-app / Unity3D
Express SDK provides you with a series of interfaces to enable and disable related devices. The specific descriptions are as follows:
| Device | Interface | Description | Precautions |
|---|---|---|---|
| Camera | enableCamera | Enable or disable the camera on your (local device). |
|
| Video Screen | mutePublishStreamVideo | When pushing stream, whether to send video data. true means not to send. |
|
mutePlayStreamVideo | When playing stream, whether to play video data in a certain stream. true means not to play. | - When the audience does not want to see a certain person's screen, you can call this interface.- This interface will not truly stop playing stream. | |
| Microphone | enableAudioCaptureDevice | Enable or disable the microphone on your (local device). |
|
| Audio | muteMicrophone | Whether to mute your (local device) microphone. | The difference from enableAudioCaptureDevice is that muteMicrophone does not truly turn off the microphone, but only replaces the audio data collected by the device with silent data. |
mutePublishStreamAudio | When pushing stream, whether to send audio data. true means not to send. |
| |
mutePlayStreamAudio | When playing stream, whether to play audio data in a certain stream. true means not to play. | - When the audience does not want to hear a certain person's voice, you can use this interface.- This interface will not truly stop playing stream. | |
| Speaker/Headphone | muteSpeaker | Whether to mute your (local device) speaker/headphone. | After muting, all sounds from the SDK will not be played, including stream pulling, media player, etc. |
