Recording video with iOS broadcasting extension
问题 I'm trying to tweak the iOS broadcasting extension feature to record the video instead of live streaming. It seems possible because you can get pixel buffer in processSampleBuffer:withType: method. Then I have coded like below but it fails when appending the buffer. I'm familiar neither to AVAssetWriter nor App Extension programming so I cannot figure out what's wrong here. Am I doing something we're not supposed to do in the extension? Or the usage of AVAssetWriter is wrong? Any idea is