I have tried Broadcast Extension. I have added that extension via target. But, I don't know how to record when my app is in background.
Two ways I am trying to record:
Via Control center: I can see my app’s target name, after selecting that name, then I start to record by clicking Start Broadcast
, next by clicking Stop Record
, but my video not getting stored either in Camera Roll or in my app. Ref Link
: ReplayKit's RPSystemBroadcastPickerView not showing preferredExtension
Via my app: Once press Start button, recording get started, I am trying to record background from my app by clicking home button, obviously recording has been stopped. Ref Link
: https://medium.com/@giridharvc7/replaykit-screen-recording-8ee9a61dd762.
RPSystemBroadcastPickerView
, this giving "press the home button, and expect recording to continue". @Preview . But, I cannot detect when my recording get finish via my app. – SqueakBroadcastExtension
will store saved file to its own folder, you need to manually copy the file to app's document folder, then save the file to Gallery. – ConoscentiBroadcastExtension
. Once broadcast completed, asset.finishWriting{} is not called. Do u know how to make this Completion handler to invoke automatically? But, while we recording, if we face any error inprocessSampleBuffer
, asset.finishWriting{} its get called automatically. But, record is completed without any error, this function not getting called. – Squeak