AliyunRecorderCustomRender
@protocol AliyunRecorderCustomRender <NSObject>
自定义渲染回调 API_AVAILABLE(3.22.0)
-
通过CMSampleBuffer自定义渲染,并返回结果的CVPixelBufferRef API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (CVPixelBufferRef) onAliyunRecorderCustomRenderToPixelBuffer:(AliyunRecorder *)recorder withSampleBuffer:(CMSampleBufferRef)sampleBuffer;
-
通过CMSampleBuffer自定义渲染,并返回结果的纹理ID API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (int)onAliyunRecorderCustomRenderToTexture:(AliyunRecorder *)recorder withSampleBuffer:(CMSampleBufferRef)sampleBuffer;
-
通过纹理ID渲染,并返回结果的纹理ID API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (int)onAliyunRecorderCustomRenderToTexture:(AliyunRecorder *)recorder withSrcTextureId:(int)textureId size:(CGSize)size;
Parameters
textureId
纹理id
size
纹理大小
-
建议销毁自定义渲染相关 API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)onAliyunRecorderDidDestory:(AliyunRecorder *)recorder;