예제 #1
0
 protected void Stop()
 {
     if (_NdiFinder != null)
     {
         _NdiFinder.Sources.CollectionChanged -= HandleNdiSourcesChanged;
         _NdiFinder.Dispose();
         _NdiFinder = null;
     }
 }
예제 #2
0
 protected void Start()
 {
     Console.Error.WriteLine($"Looking for NDI device sources for {FindDuration} seconds.");
     _NdiFinder = new NDI.Finder(true);
     _NdiFinder.Sources.CollectionChanged += HandleNdiSourcesChanged;
 }