Interface Publisher.CameraListener

Enclosing class:
Publisher

public static interface Publisher.CameraListener
Monitors when the camera used by the publisher changes.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCameraChanged(Publisher publisher, int newCameraId)
    Invoked when the publisher changes the active camera.
    void
    Invoked when there is an error accessing the camera.
  • Method Details

    • onCameraChanged

      void onCameraChanged(Publisher publisher, int newCameraId)
      Invoked when the publisher changes the active camera.
      Parameters:
      publisher - The publisher.
      newCameraId - The ID of the new active camera.
    • onCameraError

      void onCameraError(Publisher publisher, OpentokError error)
      Invoked when there is an error accessing the camera.
      Parameters:
      publisher - The publisher.
      error - The error.