AliyunIRenderCallback
@protocol AliyunIRenderCallback <NSObject>
* The protocol of render callbacks.
-
* The callback of the render setup
Declaration
Objective-C
- (void)renderSetup;
-
* The callback of the render destory
Declaration
Objective-C
- (void)renderDestroy;
-
* The callback that outputs the texture id before adding custom effects to the video.
Declaration
Objective-C
- (int)customRender:(int)srcTexture size:(CGSize)size pts:(int64_t)pts;
Parameters
srcTexture
The old texture id.
size
The old texture size.
pts
The timestamp of current render in microseconds
Return Value
The texture id.
-
* The callback that outputs the texture id after adding custom effects to the video.
Declaration
Objective-C
- (int)textureRender:(int)srcTexture size:(CGSize)size pts:(int64_t)pts;
Parameters
srcTexture
The old texture id.
size
The old texture size.
pts
The timestamp of current render in microseconds
Return Value
The texture id.
-
Deprecated
please use customRender:size:pts:
Undocumented
Declaration
Objective-C
- (int)customRender:(int)srcTexture size:(CGSize)size __deprecated_msg("please use customRender:size:pts:");
-
Deprecated
please use textureRender:size:pts:
Undocumented
Declaration
Objective-C
- (int)textureRender:(int)srcTexture size:(CGSize)size __deprecated_msg("please use textureRender:size:pts:");