MV Video Capture Source Enumeration Combo Box ActiveX
Control
The MV VideoSourceComboBox is an ActiveX Control
which enumerates all available video sources. Use this control
to select a video source within your applications.
This MontiVision ActiveX Control is used in
combination with the MontiVision Smart Control and
the MV Demo
Source DirectShow Filter in most of the Smart Control
Sample Applications.
Interface: IVideoSourceComboBox
Events: _IVideoSourceComboBoxEvents
File:
MVVideoSourceControl.dll
How To Use
The first step ist to insert the control into your dialog form.
To replace a video source in an filter graph configuration you have
to set the new source before loading the MontiVision Project File
(*.mvp). Call the SetSourceFilter() method from
IMVSCSetSourceFilter
interface of the MV Smart
Control. Read this HowTo for more
information.
Example Code C++:
// Init Video Source
CComBSTR bstrSelectedDevice =
m_comboVideoSource.GetSelectedDevice();
m_pISetSource->SetSourceFilter(bstrVideoSource.m_str,
bstrSelectedDevice.m_str);
// Load configuration
CComBSTR bstrPath(".\\recording.mvp");
m_pIFilterGraph->LoadConfig(bstrPath.m_str);
|