Interface CameraCapturer.Listener

Enclosing class:
CameraCapturer

public static interface CameraCapturer.Listener
Interface that provides events and errors related to CameraCapturer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCameraSwitched(String newCameraId)
    Notifies when a camera switch is complete.
    void
    onError(int errorCode)
    Reports an error that occurred in CameraCapturer.
    void
    Indicates when the first frame has been captured from the camera.
  • Method Details

    • onFirstFrameAvailable

      void onFirstFrameAvailable()
      Indicates when the first frame has been captured from the camera.
    • onCameraSwitched

      void onCameraSwitched(@NonNull String newCameraId)
      Notifies when a camera switch is complete.
      Parameters:
      newCameraId - the camera ID after camera switch is complete.
    • onError

      void onError(int errorCode)
      Reports an error that occurred in CameraCapturer.
      Parameters:
      errorCode - the code that describes the error that occurred.