yingzhuo
yingzhuo

Reputation: 91

How to trigger broadcast upload extension by iOS 11 Control Center?

I have added a broadcast upload extension and my APP shows in the Control Center. But I am not able to fetch the video samples in the upload extension when I tapped the start live button. What's wrong? Anybody knows why? I would appreciate your reply.

Upvotes: 2

Views: 1599

Answers (2)

user3806731
user3806731

Reputation: 919

Also make sure you add the extension to your containing app as embedded binaries check containing app build phase > Embedded App Extension is set to Plugins.In info.plist set NSExtensionPrincipalClass to SampleHandler.m is you didn't subclass the sample handler class. Also RPBroadcastProcessMode needs to be RPBroadcastProcessModeSampleBuffer.

Upvotes: 3

charvel
charvel

Reputation: 251

You need look next method if invoked:

- (void)broadcastStartedWithSetupInfo:(NSDictionary<NSString *,NSObject *> *)setupInfo; - (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType ;

at last, Find your plist file in broadcast extension target, and check NSExtension key for a dictionary, Find NSExtensionPrincipalClass's value is equol to your RPBroadcastSampleHandler subclass

Upvotes: 1

Related Questions