void DropRenderers(VideoTrack track) { if (track?.Renderers?.Any() == true) { foreach (var r in track.Renderers.ToArray()) { track.RemoveRenderer(r); } } }
private void DropRenderings(VideoTrack track) { try { if (track?.Renderers?.Any() == true) { foreach (var r in track.Renderers.ToArray()) { track.RemoveRenderer(r); } } } catch (Exception e) { Console.WriteLine(e); } }
private void DropRenderings(VideoTrack track) { try { if (track?.Renderers?.Any() == true) { foreach (var r in track.Renderers.ToArray()) { track.RemoveRenderer(r); } } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }