Class CameraInput

    • Constructor Summary

      Constructors 
      Constructor Description
      CameraInput​(CameraDevice cameraDevice)
      Create a new CameraInput
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void attach()
      Get started with the camera
      void detach()
      End working with the camera
      com.banuba.sdk.effect_player.FrameProcessor frameProcessor()
      Get the current frame
      long getFrameTimeNanos()
      Get frame timestamp in nanoseconds
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CameraInput

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

      • 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