stopPreview abstract method
Future<void>
stopPreview({
- VideoSourceType sourceType = VideoSourceType.videoSourceCameraPrimary,
Stops video preview.
sourceTypeType 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. See Error Codes for details and resolution suggestions. < 0: Failure. See Error Codes for details and resolution suggestions.
Implementation
Future<void> stopPreview(
{VideoSourceType sourceType = VideoSourceType.videoSourceCameraPrimary});