function StartCapture(EnableVideoFormatRGB32: Boolean = True): boolean;
Description
Start capturing of the sample. Applications can stop capturing by calling StopCapture.
If EnableVideoFormatRGB32=true, RGB32 will be added as a desired video format. This may be required for unsupported formats, like MJPG, but causes a significant lag when initializing the capture.
Returns True on success.
// Start the capturing ImageEnView1.IO.MediaFoundationSourceReader.StartCapture( False ); // Don't need to set to RGB32 as selected media type above
// Get actual video format mt := ImageEnView1.IO.MediaFoundationSourceReader.GetCurrentMediaType(mmf_VIDEO_STREAM); lblVideoFormat.Caption := Format( 'Actual video format: %d x %d %.1f fps %s', [ mt.GetInteger(IEFRAMEWIDTH_DICT_KEY), // width mt.GetInteger(IEFRAMEHEIGHT_DICT_KEY), // height mt.GetDouble(IEFRAMERATE_DICT_KEY), // frame rate mt.GetString(IESUBTYPE_DICT_KEY) // subtype = color space ]);