startLocalPreview method
Implementation
Future<MediaStream?> startLocalPreview(
StreamMode mode, {
VideoParams? videoParams,
}) async {
videoParams = videoParams ?? VideoParams.middle;
try {
return await StreamCreator.create(mode, videoParams: videoParams);
} catch (e) {
throw NotPermissionError();
}
}