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