AbstractPreviewableSource
Abstract class for previewable sources to manage requestRelease.
Properties
Orientation provider of the capture source. It is used to orientate the frame according to the source orientation.
Flow of the last previewing state.
Flow of the last streaming state.
The offset between source capture time and MONOTONIC clock in nanoseconds. It is used to synchronize video with audio. It is only useful for camera source.
Functions
Configure the Configurable implementation.
Whether the video source has a preview.
Requests release.
Resets output and releases if isReleasedRequested is true.
Resets output implementation.
Resets preview and releases if isReleasedRequested is true.
Resets preview implementation.
Sets preview surface.
Sets a preview surface holder.
Sets a preview surface.
Starts video preview.
Sets preview surface and start video preview.
Starts audio and video capture. If you can prefer to call SingleStreamer.setAudioConfig before starting preview. It is a shortcut for setPreview and startPreview.
Starts frames or data stream generation Throws an exception if not ready for live stream
Stops video preview.
Stops frames or data stream generation