Video SDK v3.7.1 API Reference for Unity
Public Member Functions | List of all members
agora_gaming_rtc.IVideoRender Class Referenceabstract

Inherits IRtcEngineNative.

Inherited by agora_gaming_rtc.VideoRender.

Public Member Functions

abstract int SetVideoRenderMode (VIDEO_RENDER_MODE _renderMode)
 
abstract int GenerateNativeTexture ()
 
abstract void DeleteTexture (int tex)
 

Member Function Documentation

◆ SetVideoRenderMode()

abstract int agora_gaming_rtc.IVideoRender.SetVideoRenderMode ( VIDEO_RENDER_MODE  _renderMode)
pure virtual

choose the rendreMode of video. 1: VIDEO_RENDER_MODE.RENDER_RAWDATA this way can support any Unity Graphic API

2: VIDEO_RENDER_MODE.REDNER_OPENGL_ES2 this way only support openGLES2 and do not support multiTherad Rendering.

3: VIDEO_RENDER_MODE.RENDER_UNITY_LOW_LEVEL_INTERFACE this way use Unity Low level native Interface to render video.

Returns
return effect volume

Implemented in agora_gaming_rtc.VideoRender.

◆ UpdateTexture()

abstract int agora_gaming_rtc.IVideoRender.UpdateTexture ( int  tex,
uint  uid,
IntPtr  data,
ref int  width,
ref int  height 
)
pure virtual

◆ UpdateVideoRawData() [1/2]

abstract int agora_gaming_rtc.IVideoRender.UpdateVideoRawData ( uint  uid,
IntPtr  data,
ref int  width,
ref int  height 
)
pure virtual

◆ GenerateNativeTexture()

abstract int agora_gaming_rtc.IVideoRender.GenerateNativeTexture ( )
pure virtual

create Native texture and return textureId.

Implemented in agora_gaming_rtc.VideoRender.

◆ DeleteTexture()

abstract void agora_gaming_rtc.IVideoRender.DeleteTexture ( int  tex)
pure virtual

Delete native texture according to the textureId.

Implemented in agora_gaming_rtc.VideoRender.

◆ AddUserVideoInfo() [1/2]

abstract void agora_gaming_rtc.IVideoRender.AddUserVideoInfo ( uint  userId,
uint  textureId 
)
pure virtual

◆ RemoveUserVideoInfo() [1/2]

abstract void agora_gaming_rtc.IVideoRender.RemoveUserVideoInfo ( uint  _userId)
pure virtual

◆ AddUserVideoInfo() [2/2]

abstract void agora_gaming_rtc.IVideoRender.AddUserVideoInfo ( string  channelId,
uint  _userId,
uint  _textureId 
)
pure virtual

◆ RemoveUserVideoInfo() [2/2]

abstract void agora_gaming_rtc.IVideoRender.RemoveUserVideoInfo ( string  channelId,
uint  _userId 
)
pure virtual

◆ UpdateVideoRawData() [2/2]

abstract int agora_gaming_rtc.IVideoRender.UpdateVideoRawData ( string  channelId,
uint  uid,
IntPtr  data,
ref int  width,
ref int  height 
)
pure virtual

◆ GetMultiChannelWanted()

abstract bool agora_gaming_rtc.IVideoRender.GetMultiChannelWanted ( )
pure virtual

The documentation for this class was generated from the following file: