enableVideoPreview

open fun enableVideoPreview(deviceName: String, resolution: String, enableBlurring: Boolean): Boolean

Enables a video preview on specified device using the specified resolution.Application can call getLastError for more details if call failed.

Return

Returns true if operation successful, returns false otherwise.

Parameters

deviceName

Name of desired camera to open: ANDROID_FRONT_CAMERA or ANDROID_BACK_CAMERA

resolution

Video resolution/codec to be utilized. List of supported video resolutions for the current camera can be retrieved using getSupportedVideoSendResolutions .

enableBlurring

Flag that indicates whether or not blurring should be enabled on the preview

open fun enableVideoPreview(deviceName: String, resolution: String): Boolean

Enables a video preview on specified device using the specified resolution and NO blurring.Application can call getLastError for more details if call failed.

Return

Returns true if operation successful, returns false otherwise.

Parameters

deviceName

Name of desired camera to open: ANDROID_FRONT_CAMERA or ANDROID_BACK_CAMERA

resolution

Video resolution/codec to be utilized. List of supported video resolutions for the current camera can be retrieved using getSupportedVideoSendResolutions .