AliyunViewRecordSource

@interface AliyunViewRecordSource
    : NSObject <AliyunRecordDataSource, AliyunRecordSourceFPS>

视图源 API_AVAILABLE(3.22.0)

The Record soruce of view / layer API_AVAILABLE(3.22.0)

  • 是否混合了avplayer API_AVAILABLE(3.22.0) 如果使用initWithTargetView,但没有设置混合avplayer,默认忽略视图内avplayer内容

    Declaration

    Objective-C

    @property (nonatomic) BOOL mixAVPlayer;
  • 不在主线程进行采集(不能采集包含GPU内容,如GLView) API_AVAILABLE(3.22.0) 默认YES; 不在主线程采集

    Declaration

    Objective-C

    @property (nonatomic) BOOL captureInBackground;
  • 采集的目标图层 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    @property (nonatomic, readonly) CALayer *targetLayer;
  • 使用视图初始化 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (instancetype)initWithTargetView:(id)view fps:(int)fps;

    Parameters

    view

    采集的目标视图

    fps

    采集的频率

  • 使用avplayerlayer初始化 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (instancetype)initWithAVPlayerLayer:(AVPlayerLayer *)layer fps:(int)fps;

    Parameters

    layer

    视频播放图层

    fps

    采集的帧率