AliyunIRenderCallback

@protocol AliyunIRenderCallback <NSObject>

渲染回调协议

  • 自定义渲染初始化接口

    Declaration

    Objective-C

    - (void)renderSetup;
  • 自定义渲染销毁接口

    Declaration

    Objective-C

    - (void)renderDestroy;
  • 自定义渲染接口,渲染前纹理回调

    Declaration

    Objective-C

    - (int)customRender:(int)srcTexture size:(CGSize)size pts:(int64_t)pts;

    Parameters

    srcTexture

    原始视频帧纹理id

    size

    原始视频帧纹理size

    pts

    当前渲染的时间戳(微秒)

    Return Value

    返回纹理id

  • 自定义渲染接口,渲染后纹理回调

    Declaration

    Objective-C

    - (int)textureRender:(int)srcTexture size:(CGSize)size pts:(int64_t)pts;

    Parameters

    srcTexture

    原始视频帧纹理id

    size

    原始视频帧纹理size

    pts

    当前渲染的时间戳(微秒)

    Return Value

    返回纹理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:");