I am using LLSimpleCamera for recording a video. It's recording fine when I use rear camera but when I switch to front camera, app crashes and the error reported is
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[AVAssetWriterInput appendSampleBuffer:] Media type of sample buffer must match receiver's media type ("soun")'
I have tried many of the stackOverflow posts but not able to fix crash. Can anyone let me know what can be the issue ?
The answer to the question is :
Changing AVCaptureDeviceInput leads to AVAssetWriterStatusFailed
Thanks to Stackoverflow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With