DefaultCameraCaptureSource
DefaultCameraCaptureSource will configure a reasonably standard capture stream which will use the Surface provided by the capture source provided by a SurfaceTextureCaptureSourceFactory
Constructors
Properties
Functions
Add a capture source observer to receive callbacks from the source on lifecycle events which can be used to trigger UI. This observer is entirely optional.
Add a video sink which will immediately begin to receive new frames.
Receive a video frame from some upstream source. The VideoSink may render, store, process, and forward the frame, among other applications.
Remove a capture source observer
Remove a video sink which will no longer receive new frames on return
Set max resolution for video capture source DefaultCameraCaptureSource and DefaultScreenCaptureSource call this function to set max resolution for camera and screen capture
Helper function to switch from front to back cameras or reverse. This also switches from any external cameras to the front camera.