Open Bouchemel-Nasreddine opened 2 years ago
On what platform? Android or IOS
if this is on IOS add this permission on the ios/runner/info.plist
`
<key>io.flutter.embedded_views_preview</key>
<true/>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>App needs access to allow you to capture your best moment</string>
<key>NSMicrophoneUsageDescription</key>
<string>App needs access to your mic to help your record voice notes on chat/message conversations</string>
`
no, this is on android
here is my manifest
`
`
Hi, OnVideoRecordingComplete doesn't get invoked when stopVideoRecording is called
here is the handler inside the initState()
@override void initState() { super.initState(); CameraDeepArController.checkPermissions(); deepArController.setEventHandler(DeepArEventHandler( onCameraReady: (v) { _platformVersion = "onCameraReady $v"; setState(() {}); }, onSnapPhotoCompleted: (v) { _platformVersion = "onSnapPhotoCompleted $v"; setState(() {}); }, onVideoRecordingComplete: (v) { _platformVersion = "onVideoRecordingComplete $v"; setState(() {}); }, onSwitchEffect: (v) { _platformVersion = "onSwitchEffect $v"; setState(() {}); } ) ); }
and this is the Button that starts and stops recording
ElevatedButton( onPressed: () { !_isVideoRecording ? deepArController.startVideoRecording() : deepArController.stopVideoRecording(); _isVideoRecording = !_isVideoRecording;