Recording video with iOS broadcasting extension

后端 未结 1 1770
耶瑟儿~
耶瑟儿~ 2021-01-19 10:50

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

相关标签:
1条回答
  • 2021-01-19 11:18

    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)"
        }
    }
    
    0 讨论(0)
提交回复
热议问题