public static VideoRender GetInstance() { if (_videoRenderInstance == null) { _videoRenderInstance = new VideoRender(); } return(_videoRenderInstance); }
public static VideoRender GetInstance(IRtcEngine rtcEngine) { if (_videoRenderInstance == null) { _videoRenderInstance = new VideoRender(rtcEngine); } return(_videoRenderInstance); }
private IRtcEngine GetEngine() { agora_gaming_rtc.IRtcEngine engine = agora_gaming_rtc.IRtcEngine.QueryEngine(); if (!initRenderMode && engine != null) { videoRender = (VideoRender)engine.GetVideoRender(); videoRender.SetVideoRenderMode(VIDEO_RENDER_MODE.RENDER_RAWDATA); videoRender.AddUserVideoInfo(mUid, 0); initRenderMode = true; } return(engine); }
public static void ReleaseInstance() { _videoRenderInstance = null; }