AliyunViewRecordSource

@interface AliyunViewRecordSource : NSObject<AliyunRecordDataSource, AliyunRecordSourceFPS>
/****
 is mix avplayer in view API_AVAILABLE(3.22.0)
 in using initWithTargetView, it will ignore avplayer content if mixAVPlayer is NO
 */
@property (nonatomic, assign) BOOL mixAVPlayer;
/****
 capture not in mainThread (can not capture content in gpu, eg. glview) API_AVAILABLE(3.22.0)
 */
@property (nonatomic, assign) BOOL captureInBackground;
/****
 The layer of capture target API_AVAILABLE(3.22.0)
 */
@property (nonatomic, readonly) CALayer *targetLayer;
/****
 Init with view API_AVAILABLE(3.22.0)
 
 @param view The target of capture view
 @param fps The fps of capture
 */
- (instancetype) initWithTargetView:(UIView *)view fps:(int)fps;
/****
 using AVPlayerLayer to init API_AVAILABLE(3.22.0)
 
 @param layer The target AVPlayerLayer of capture
 @param fps The fps of capture
 */
- (instancetype) initWithAVPlayerLayer:(AVPlayerLayer *)layer fps:(int)fps;
@end

Undocumented

  • * is mix avplayer in view API_AVAILABLE(3.22.0) in using initWithTargetView, it will ignore avplayer content if mixAVPlayer is NO

    Declaration

    Objective-C

    @property (nonatomic) BOOL mixAVPlayer;
  • * capture not in mainThread (can not capture content in gpu, eg. glview) API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    @property (nonatomic) BOOL captureInBackground;
  • * The layer of capture target API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    @property (nonatomic, readonly) CALayer *targetLayer;
  • * Init with view API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

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

    Parameters

    view

    The target of capture view

    fps

    The fps of capture

  • * using AVPlayerLayer to init API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

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

    Parameters

    layer

    The target AVPlayerLayer of capture

    fps

    The fps of capture