JRTCSDK-iOS v2401.0
视频客服 API 文档
载入中...
搜索中...
未找到
类方法 | 所有成员列表
JRTCBroadcastSampleHandler类 参考

屏幕采集 更多...

#import <JRTCBroadcastSampleHandler.h>

类方法

(void) + broadcastStartedWithAppGroupId:initWithSampleHandler:
 broadcastStartedWithSetupInfo时调用,开启屏幕共享
 
(void) + processSampleBuffer:withType:
 processSampleBuffer时调用
 
(void) + broadcastFinished
 broadcastFinished时调用
 
(void) + broadcastResumed
 broadcastResumed时调用
 
(void) + broadcastPaused
 broadcastPaused时调用
 

详细描述

屏幕采集

函数文档

◆ broadcastStartedWithAppGroupId:initWithSampleHandler:

+ (void) broadcastStartedWithAppGroupId: (NSString *)  appGroupId
initWithSampleHandler: (ios(10.0))  API_AVAILABLE 

broadcastStartedWithSetupInfo时调用,开启屏幕共享

参数
appGroupIdapp和extension共同的groupId
sampleHandler系统回掉的RPBroadcastSampleHandler对象,包含插件信息

◆ processSampleBuffer:withType:

+ (void) processSampleBuffer: (CMSampleBufferRef)  sampleBuffer
withType: (ios(10.0))  API_AVAILABLE 

processSampleBuffer时调用

参数
sampleBufferprocessSampleBuffer采集上来的sampleBuffer
sampleBufferTypeprocessSampleBuffer采集上来的sampleBufferType