public void ResetRemoteRenderer()
 {
     if (RemoteVideoRenderer != null)
     {
         RemoteVideoRenderer.Teardown();
         RemoteVideoRenderer = null;
     }
     RemoteVideoRenderer = null;
     GC.Collect();
     RemoteVideoRenderer = new Renderer();
     RemoteVideoRenderer.RenderFormatUpdate += RemoteVideoRenderer_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();
        }