public interface VideoCapturer
Modifier and Type | Interface and Description |
---|---|
static interface |
VideoCapturer.Listener
Interface that allows an implementation of
VideoCapturer to forward events to the
video capturer pipeline. |
Modifier and Type | Method and Description |
---|---|
List<VideoFormat> |
getSupportedFormats()
Returns list of all supported video formats this capturer supports.
|
boolean |
isScreencast()
Indicates whether the capturer is a screen cast.
|
default void |
setSurfaceTextureHelper(SurfaceTextureHelper surfaceTextureHelper)
This method enables SDK provided video capturers to capture to a surface texture.
|
void |
startCapture(VideoFormat captureFormat,
VideoCapturer.Listener capturerListener)
Starts capturing frames at the specified format.
|
void |
stopCapture()
Stops all frames being captured.
|
default void setSurfaceTextureHelper(SurfaceTextureHelper surfaceTextureHelper)
Camera2Capturer
and ScreenCapturer
.List<VideoFormat> getSupportedFormats()
boolean isScreencast()
void startCapture(VideoFormat captureFormat, VideoCapturer.Listener capturerListener)
Note: This method is not meant to be invoked directly.
captureFormat
- the format in which to capture frames.capturerListener
- consumer of available frames.void stopCapture()
Note: This method is not meant to be invoked directly.
5.13.0