Exemplo n.º 1
0
 public static VideoRender GetInstance()
 {
     if (_videoRenderInstance == null)
     {
         _videoRenderInstance = new VideoRender();
     }
     return(_videoRenderInstance);
 }
Exemplo n.º 2
0
 public static VideoRender GetInstance(IRtcEngine rtcEngine)
 {
     if (_videoRenderInstance == null)
     {
         _videoRenderInstance = new VideoRender(rtcEngine);
     }
     return(_videoRenderInstance);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public static void ReleaseInstance()
 {
     _videoRenderInstance = null;
 }