On iOS 11 ReplayKit 2, I created Broadcast Upload Extension with SetupUI for screen live broadcast.
It runs without error, but sampleHandler.m functions below are never called:
- (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType
- (void)broadcastStartedWithSetupInfo:(NSDictionary<NSString *,NSObject *> *)setupInfo
info.plist is set to:
com.apple.broadcast-services-upload, and
com.apple.broadcast-services-setupui
NSExtensionPrincipalClass is set to SampleHandler
RPBroadcastProcessMode is set to RPBroadcastProcessModeSampleBuffer
What's wrong?
Any feedback is appreciated.
Thanks.