startPreview abstract method
Future<void>
startPreview({
- VideoSourceType sourceType = VideoSourceType.videoSourceCameraPrimary,
Enables the local video preview and specifies the video source for the preview.
This method is used to start local video preview and specify the video source that appears in the preview screen.
sourceType
The type of the video source. See VideoSourceType.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.
Implementation
Future<void> startPreview(
{VideoSourceType sourceType = VideoSourceType.videoSourceCameraPrimary});