Package com.banuba.sdk.input
Class CameraInput
java.lang.Object
com.banuba.sdk.input.CameraInput
- All Implemented Interfaces:
IAttachable,IInput
Delivers video stream from the
CameraDevice to the Player-
Constructor Details
-
CameraInput
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:
frameProcessorin interfaceIInput- Returns:
- the last frame received from the CameraDevice
-
getFrameTimeNanos
public long getFrameTimeNanos()Get frame timestamp in nanoseconds- Specified by:
getFrameTimeNanosin interfaceIInput- Returns:
- timestamp
-
attach
public void attach()Get started with the camera- Specified by:
attachin interfaceIAttachable
-
detach
public void detach()End working with the camera- Specified by:
detachin interfaceIAttachable
-