ICameraEventsListener
Camera events listener to be notified about camera events.
Methods
onCameraClosed
onCameraClosed(): void
Triggered if a camera is closed.
The event is triggered when a camera is started due to:
- stop sending video
- camera switch
- camera resolution change
Returns
type:
void
onCameraDisconnected
onCameraDisconnected(): void
Triggered if a camera is disconnected.
Returns
type:
void
onCameraError
onCameraError(errorDescription: String
): void
Triggered if a camera cannot be opened or any camera exception happens.
Parameters
errorDescription:
String
Description of error occurred
Returns
type:
void
onCameraOpened
onCameraOpened(): void
Triggered if a camera is opened.
The event is triggered when a camera is started due to:
- start sending video
- camera switch
- camera resolution change
Returns
type:
void
onCameraSwitchDone
onCameraSwitchDone(isFrontCamera: boolean
): void
Triggered if a camera switch has been successful.
Parameters
isFrontCamera:
boolean
Whether a new camera is a front facing camera
Returns
type:
void
onCameraSwitchError
onCameraSwitchError(errorDescription: String
): void
Triggered if a camera switch is failed, e.g. camera is stopped or only one camera is available.
Parameters
errorDescription:
String
Description of error occurred
Returns
type:
void