Forums
Show the VLDSCapture SelectVideoDevice dialog at runtime? - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: VCL Components (/forum-6.html)
+--- Forum: VideoLab (/forum-19.html)
+--- Thread: Show the VLDSCapture SelectVideoDevice dialog at runtime? (/thread-3503.html)



Show the VLDSCapture SelectVideoDevice dialog at runtime? - jfisher - 12-09-2016 12:50 AM

The Select Video Device, and Select Video Source dialogs work great in the Design tab.

When the application is running, cdVideoCapture and cdVideoCapturePin are the only available dialogs.

Is there a way to have these dialogs available when the application is running?

Alternatively, is there a control/property/function that returns the available video devices (you know, I'm going to ask for audio devices next) that I could put in a list for the user to select?

Current Code:
Code:
procedure TForm1.btnShowDialogClick(Sender: TObject);
var
  myVideoDialogs : VLDSCapture.TVLDSCaptureDialogs;
begin
  myVideoDialogs := VLDSCapture1.AvailableVideoDialogs;
  VLDSCapture1.ShowVideoDialog(VLDSCapture.TVLDSCaptureDialog.cdVideoCapture)​;
end;


Delphi, XE5, VCL 6.0.0.283 Labs....

Thanks!!!


RE: Show the VLDSCapture SelectVideoDevice dialog at runtime? - jfisher - 12-10-2016 02:49 AM

Just a follow up:

I am able to get the select video device dialog to show using VLCapture, but not VLDSCapture.

Interesting artificat is that the dialog box closes, then re-opens after selecting the device, with more options listed.

...AND, it only works when running without debugging. If I run with debugging, the application fails.