CameraManager
Interface that may be used to manage cameras on Android device.
Methods
getCallVideoSettings
getCallVideoSettings(call: ):
Return video settings of the specified call as the CameraParams object.
Parameters
call:
Returns
type:
getDefaultVideoSettings
getDefaultVideoSettings():
Return default video settings as the CameraParams object.
Returns
type:
getInputDevices
getInputDevices(): Promise<VideoSourceInfo[]>
Return available video input devices (web camera(s)).
Returns
type:
Promise<VideoSourceInfo[]>
loadResolutionTestResult
loadResolutionTestResult(data: any
): boolean
Restoring a camera resolution test result previously got by testResolutions function.
Parameters
data:
any
Returns
type:
boolean
setCallVideoSettings
setCallVideoSettings(call: , params: ): Promise<void>
Set video settings for the specified call.
Parameters
call:
params:
Returns
type:
Promise<void>
setDefaultVideoSettings
setDefaultVideoSettings(params: ): Promise<void>
Set default video settings for calls.
Parameters
params:
Returns
type:
Promise<void>
testResolutions
testResolutions(cameraId: string
): Promise<any>
Start camera resolution test for each video source in system. Attention! This procedure may take a lot of time and send multiple Camera requests for the Mozilla Firefox and Apple Safari browsers! Please, do not run it without warning user's request and attention. After running this function, please, save result to a browser storage (like LocalStorage or IndexedDB) and use it in future with the loadResolutionTestResult function to restore results. This function is mandatory only if you use Hardware.VideoQuality.VIDEO_QUALITY_HIGH,Hardware.VideoQuality.VIDEO_QUALITY_MEDIUM or Hardware.VideoQuality.VIDEO_QUALITY_LOW enums as video settings and strongly not recommended to use in another case.
Parameters
cameraId:
string
Optional
Returns
type:
Promise<any>