Rate this page:

ICameraEventsListener

Camera events listener to be notified about camera events.

Methods

onCameraClosed

Copy URL

void

onCameraClosed()

Triggered if a camera is closed.

The event is triggered when a camera is started due to:

  1. stop sending video
  2. camera switch
  3. camera resolution change

Returns

  • type:

    void

onCameraDisconnected

Copy URL

void

onCameraDisconnected()

Triggered if a camera is disconnected.

Returns

  • type:

    void

onCameraError

Copy URL

void

onCameraError(

String

errorDescription
)

Triggered if a camera cannot be opened or any camera exception happens.

Parameters

  • errorDescription:

    String

    Description of error occurred

Returns

  • type:

    void

onCameraOpened

Copy URL

void

onCameraOpened()

Triggered if a camera is opened.

The event is triggered when a camera is started due to:

  1. start sending video
  2. camera switch
  3. camera resolution change

Returns

  • type:

    void

onCameraSwitchDone

Copy URL

void

onCameraSwitchDone(

boolean

isFrontCamera
)

Triggered if a camera switch has been successful.

Parameters

  • isFrontCamera:

    boolean

    Whether a new camera is a front facing camera

Returns

  • type:

    void

onCameraSwitchError

Copy URL

void

onCameraSwitchError(

String

errorDescription
)

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