ZegoScreenCaptureConfig
ZegoScreenCaptureConfig
Screen capture configuration parameters.
Declared in ZegoExpressDefines.h
Properties
captureVideo
nonatomic, assign BOOL captureVideoWhether to capture video when screen capture. The default is true.
captureAudio
nonatomic, assign BOOL captureAudioWhether to capture audio when screen capture. The default is true.
microphoneVolume
nonatomic, assign unsigned int microphoneVolumeSet Microphone audio volume for ReplayKit. The range is 0 ~ 200. The default is 100. (only for iOS)
applicationVolume
nonatomic, assign unsigned int applicationVolumeSet Application audio volume for ReplayKit. The range is 0 ~ 200. The default is 100. (only for iOS and Android)
cropRect
nonatomic, assign CGRect cropRectSet the crop rectangle during screen capture. The crop rectangle must be included in the rectangle of the original data, unit is pixel. (only for iOS/Android)
orientation
nonatomic, assign ZegoScreenCaptureOrientation orientationSet the capture orientation of the screen capture. The capture orientation will be fixed, ignoring the system returned orientation. (only for iOS/Android)
muteExtensMicrophone
nonatomic, assign BOOL muteExtensMicrophoneSet whether to mute the microphone of the extension process. The default is false. (only for iOS)
audioDeviceMode
nonatomic, assign ZegoScreenCaptureAudioDeviceMode audioDeviceModeSet the audio device mode for the specified scene, the default is None. (only for iOS) s:
- Only works when the audio main source is always a microphone;
- Only works for [startScreenCapture] interface, [updateScreenCapture] does not take effect;
- The audio device mode changes during screen capture may cause the audio output of the screen capture to be abnormal, which can be monitored through [onMobileScreenCaptureExceptionOccurred] callback, and if necessary, the screen capture needs to be restarted.;
- After the screen capture is stopped, the audio device mode before the screen capture will be restored.
