IVideoTextureObserver

更新时间:
复制 MD 格式

This topic describes the methods of the IVideoTextureObserver class provided by Real-Time Communication (RTC) SDK for Windows.

List of methods

Method Description Supported earliest version
OnTextureCreate The callback that is invoked when an OpenGL texture is created. V2.1
OnTextureUpdate The callback that is invoked when an OpenGL texture is updated. V2.1
OnTextureDestory The callback that is invoked when an OpenGL texture is destroyed. V2.1

Details of methods

  • OnTextureCreate: the callback that is invoked when an OpenGL texture is created.
    void OnTextureCreate(void* context);
    Parameter Type Description
    context void* The context of the OpenGL texture.
  • OnTextureCreate: the callback that is invoked when an OpenGL texture is updated.
    int OnTextureUpdate(int textureId, int width, int height, AliEngineVideoRawData &videoRawData) { return 0; };
    Parameter Type Description
    textureId int The ID of the OpenGL texture.
    width int The width of the texture.
    height int The height of the texture.
    videoRawData AliEngineVideoRawData & The raw video data.
  • OnTextureDestory: the callback that is invoked when an OpenGL texture is destroyed.
    void OnTextureDestory();