AFathi / ARVideoKit

Capture & record ARKit videos 📹, photos 🌄, Live Photos 🎇, and GIFs 🎆.
Apache License 2.0
1.62k stars 226 forks source link

Using RecordAR while using iOS Screen Recording causes crash #97

Open ZacheryWagner opened 4 years ago

ZacheryWagner commented 4 years ago

This happens both on record() and .photo() call.

Error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVAssetWriterInput initWithMediaType:outputSettings:sourceFormatHint:] 4 is not a valid channel count for Format ID 'aac '.  Use kAudioFormatProperty_AvailableEncodeNumberChannels (<AudioToolbox/AudioFormat.h>) to enumerate available channel counts for a given format.'

I doubt it matters but I'm using the Swift 5 branch.

jrz-afs commented 3 years ago

I believe this is related to the issue I'm seeing as well: https://github.com/AFathi/ARVideoKit/issues/118

Also on Swift 5 branch. Any updates on this from anyone?