AliyunRecorderCustomRender
@protocol AliyunRecorderCustomRender <NSObject>
* The callback of custom render API_AVAILABLE(3.22.0)
-
* custom render from cmsamplebuffer to cvpixelbufferref API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (CVPixelBufferRef) onAliyunRecorderCustomRenderToPixelBuffer:(AliyunRecorder *)recorder withSampleBuffer:(CMSampleBufferRef)sampleBuffer;
-
* custom render from cmsamplebuffer to texture id API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (int)onAliyunRecorderCustomRenderToTexture:(AliyunRecorder *)recorder withSampleBuffer:(CMSampleBufferRef)sampleBuffer;
-
* custom render from texture id to texture id API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (int)onAliyunRecorderCustomRenderToTexture:(AliyunRecorder *)recorder withSrcTextureId:(int)textureId size:(CGSize)size;
Parameters
textureid
the id of texture in opengl
size
the size of texture
-
* suggest to destory the resource of custom render API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)onAliyunRecorderDidDestory:(AliyunRecorder *)recorder;