PreviewView
A FrameLayout containing a preview for IPreviewableSource sources.
PreviewView displays the preview of a IPreviewableSource source when a streamer previewable video source is set.
It handles the display, the aspect ratio and the scaling of the preview.
In the case, you are using it, do not call IPreviewableSource.startPreview (or IPreviewableSource.stopPreview) on your side. It will be handled by the PreviewView.
The Manifest.permission.CAMERA permission must be granted before using this view.
Types
A listener for the PreviewView.
Options for the position of the PreviewView within its container.
Options for scaling the PreviewView within its container.
Properties
Enables tap to focus.
Enables zoom on pinch gesture.
The Listener to listen to specific view events.
The position of the PreviewView within its container.
The scale mode of the PreviewView within its container.
Sets the IWithVideoSource to preview. To force the preview to start, use startPreview.
Functions
Starts the preview.
Stops the preview.