You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

2 years ago
#import <ReplayKit/ReplayKit.h>
NS_ASSUME_NONNULL_BEGIN
/**
* @brief
*/
@interface BroadcastSampleHandler : NSObject
/**
* @brief broadcastStartedWithSetupInfo中调用
* @param appGroupId app和extension共同的AppGroup Id
* @param sampleHandler RPBroadcastSampleHandler对象
* @return int
* @retval 0
*/
+ (int)broadcastStartedWithAppGroupId:(const char*)appGroupId initWithSampleHandler:(RPBroadcastSampleHandler *)sampleHandler;
/**
* @brief processSampleBuffer中调用
* @param sampleBuffer processSampleBuffer采集上来的sampleBuffer
* @param sampleBufferType processSampleBuffer采集上来的sampleBufferType
* @return int
* @retval 0
* @retval -1 socket未连接
*/
+ (int)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType;
/**
* @brief broadcastResumed中调用
* @return void
* @retval 0
*/
+ (int)broadcastResumed;
/**
* @brief broadcastFinished中调用
* @return int
* @retval 0
*/
+ (int)broadcastFinished;
@end
NS_ASSUME_NONNULL_END