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 proces
I tested this behavior on iOS 13.7 (17H35)
It seems that AVAssetWriter
requires Foreground Privileges, which the extension doesn't have. (source)
The startWriting
method returns false
and assetWriter.error
equals:
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={
NSLocalizedFailureReason=An unknown error occurred (-17508),
NSLocalizedDescription=The operation could not be completed,
NSUnderlyingError=0x282a80120 {
Error Domain=NSOSStatusErrorDomain Code=-17508 "(null)"
}
}