Class CameraInput

java.lang.Object
com.banuba.sdk.input.CameraInput
All Implemented Interfaces:
IAttachable, IInput

public class CameraInput extends Object implements IInput
Delivers video stream from the CameraDevice to the Player
  • Constructor Details

    • CameraInput

      public CameraInput(@NonNull CameraDevice cameraDevice)
      Create a new CameraInput
      Parameters:
      cameraDevice - the video stream will come from this class
  • Method Details

    • frameProcessor

      @NonNull public com.banuba.sdk.effect_player.FrameProcessor frameProcessor()
      Get the current frame
      Specified by:
      frameProcessor in interface IInput
      Returns:
      the last frame received from the CameraDevice
    • getFrameTimeNanos

      public long getFrameTimeNanos()
      Get frame timestamp in nanoseconds
      Specified by:
      getFrameTimeNanos in interface IInput
      Returns:
      timestamp
    • attach

      public void attach()
      Get started with the camera
      Specified by:
      attach in interface IAttachable
    • detach

      public void detach()
      End working with the camera
      Specified by:
      detach in interface IAttachable