Publisher.CameraListener

public abstract static interface CameraListener

Enclosing class: Publisher

Monitors when the camera used by the publisher changes.

Methods

Name Description
onCameraChanged(publisher, newCameraId) Invoked when the publisher changes the active camera.
onCameraError(publisher, error) Invoked when there is an error accessing the camera.

onCameraChanged(publisher, newCameraId)

Invoked when the publisher changes the active camera.

Parameters:
Name Type Description
publisher Publisher The publisher.
newCameraId int The ID of the new active camera.

onCameraError(publisher, error)

Invoked when there is an error accessing the camera.

Parameters:
Name Type Description
publisher Publisher The publisher.
error OpentokError The error.