Exemplo n.º 1
0
 public void ResetLocalRenderer()
 {
     if (LocalVideoRenderer != null)
     {
         LocalVideoRenderer.Teardown();
         LocalVideoRenderer = null;
     }
     LocalVideoRenderer = null;
     GC.Collect();
     LocalVideoRenderer = new Renderer();
     LocalVideoRenderer.RenderFormatUpdate += LocalVideoRenderer_RenderFormatUpdate;
 }
        public void ResetRenderers()
        {
            if (LocalVideoRenderer != null)
            {
                LocalVideoRenderer.Teardown();
            }
            if (RemoteVideoRenderer != null)
            {
                RemoteVideoRenderer.Teardown();
            }

            LocalVideoRenderer  = _renderResolver();
            RemoteVideoRenderer = _renderResolver();

            LocalVideoRenderer.RenderFormatUpdate  += LocalVideoRenderer_RenderFormatUpdate;
            RemoteVideoRenderer.RenderFormatUpdate += RemoteVideoRenderer_RenderFormatUpdate;
            GC.Collect();
        }