Exemple #1
0
 void DropRenderers(VideoTrack track)
 {
     if (track?.Renderers?.Any() == true)
     {
         foreach (var r in track.Renderers.ToArray())
         {
             track.RemoveRenderer(r);
         }
     }
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 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);
     }
 }