ZegoExpressEngine(Device)
Declared in
ZegoExpressEngine+Device.h
Includes
Public-Func Lists
Public-Func Docs
muteMicrophone:
- (void)muteMicrophone:(BOOL) mute;
Whether to mute microphone input.
| Parameters | |
|---|---|
| mute | Whether to turn off the microphone, YES: turn off microphone, NO: turn on microphone. The default is YES. |
muteSpeaker:
- (void)muteSpeaker:(BOOL) mute;
Whether to mute speaker output.
| Parameters | |
|---|---|
| mute | Whether to disable audio output to the device, YES: disable audio output, NO: enable audio output. The default value is NO |
useAudioDevice:deviceType:
- (void)useAudioDevice:(NSString *) deviceID deviceType:(ZegoAudioDeviceType) deviceType;
Choose to use an audio device.
| Parameters | |
|---|---|
| deviceID | ID of a device obtained by getAudioDeviceList |
| deviceType | Audio device type |
getAudioDeviceList:
- (NSArray< ZegoDeviceInfo * > *)getAudioDeviceList:(ZegoAudioDeviceType) deviceType;
Get a list of audio devices.
| Parameters | |
|---|---|
| deviceType | Audio device type |
enableAudioCaptureDevice:
- (void)enableAudioCaptureDevice:(BOOL) enable;
On/off audio capture device.
| Parameters | |
|---|---|
| enable | Whether to enable the audio capture device, YES: disable audio capture device, NO: enable audio capture device |
setBuiltInSpeakerOn:
- (void)setBuiltInSpeakerOn:(BOOL) enable;
Whether to use the built-in speaker to play sound.
| Parameters | |
|---|---|
| enable | Whether to use the built-in speaker to play sound, YES: use the built-in speaker to play sound, NO: use the highest priority audio output device scheduled by the current system to play sound |
enableCamera:
- (void)enableCamera:(BOOL) enable;
On/off camera.
| Parameters | |
|---|---|
| enable | Whether to turn on the camera, YES: turn on camera, NO: turn off camera |
enableCamera:channel:
- (void)enableCamera:(BOOL) enable channel:(ZegoPublishChannel) channel;
On/off camera.
useFrontCamera:
- (void)useFrontCamera:(BOOL) enable;
Switch front and rear camera.
| Parameters | |
|---|---|
| enable | Whether to use the front camera, YES: use the front camera, NO: use the the rear camera. The default value is YES |
useFrontCamera:channel:
- (void)useFrontCamera:(BOOL) enable channel:(ZegoPublishChannel) channel;
Switch front and rear camera.You can call this api to set params when publishing another streams.
| Parameters | |
|---|---|
| enable | Whether to use the front camera, YES: use the front camera, NO: use the the rear camera. The default value is YES |
| channel | Publishing stream channel. |
useVideoDevice:
- (void)useVideoDevice:(NSString *) deviceID;
Choose to use a video device.
| Parameters | |
|---|---|
| deviceID | ID of a device obtained by getVideoDeviceList |
useVideoDevice:channel:
- (void)useVideoDevice:(NSString *) deviceID channel:(ZegoPublishChannel) channel;
Choose to use a video device.
getVideoDeviceList
- (NSArray< ZegoDeviceInfo * > *)getVideoDeviceList:;
Get a list of video devices.
startSoundLevelMonitor
- (void)startSoundLevelMonitor:;
Start the sound level monitor.
stopSoundLevelMonitor
- (void)stopSoundLevelMonitor:;
Stop the sound level monitor.
startAudioSpectrumMonitor
- (void)startAudioSpectrumMonitor:;
Start the audio spectrum monitor.
stopAudioSpectrumMonitor
- (void)stopAudioSpectrumMonitor:;
Stop the audio spectrum monitor.