Related products: Video Capture SDK .Net

Select video input (configure crossbar) in Video Capture SDK .Net

1. Initialize crossbar

CrossBarFound = VideoCapture1.Video_CaptureDevice_CrossBar_Init();

2. Get available inputs, fill combobox

VideoCapture1.Video_CaptureDevice_CrossBar_ClearConnections();

cbCrossbarVideoInput.Items.Clear();
foreach (string s in VideoCapture1.Video_CaptureDevice_CrossBar_GetInputsForOutput("Video Decoder"))
{
  cbCrossbarVideoInput.Items.Add(s);
}

3. Apply selected input

VideoCapture1.Video_CaptureDevice_CrossBar_ClearConnections(); 
VideoCapture1.Video_CaptureDevice_CrossBar_Connect(cbCrossbarVideoInput.Text, "Video Decoder", true);

VisioForge © 2006-2019

  • GitHub-Mark-64px
  • Twitter Социальные Иконка
  • VisioForge Facebook page
  • YouTube channel