Search code examples
iosobjective-creplaykit

iOS replayKit question. default load 'Broadcast Upload Extension' when running application?


If I run Broadcast Upload Extension scheme,

- (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType Get it sampleBuffer.

but if I run application scheme, Broadcast Upload Extension is not working.

Why can't I get sampleBuffer?

enter image description here enter image description here


Solution

  • Broadcast Upload Extension runs as different process name:replayKit on your case. This process runs when you start recording.

    Follow this step for start recording. https://support.apple.com/en-us/HT207935

    If you want to break at breakpoint, Xcode -> Debug -> Attach process by PID or Name... -> specify Broadcast Upload Extension name:"replayKit"