We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capture()
startRecordVideo()
Throwing error when trying any method:
{message: 'Camera is not running'}
async recordVid() { try { let opt: CameraPreviewOptions = { position: 'front', width: window.screen.width, height: window.screen.height } await CameraPreview.startRecordVideo(opt) await new Promise(resolve => setTimeout(resolve, 5000)) const fileUrl = await CameraPreview.stopRecordVideo() console.log(fileUrl) } catch (err) { console.log(err) } }
Getting this error:
Added permissions in manifest:
<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" /> <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Throwing error when trying any method:
{message: 'Camera is not running'}
Getting this error:
Added permissions in manifest:
The text was updated successfully, but these errors were encountered: