Home > Forum > USB Device class, MediaPlayer configuration. WPF

USB Device class, MediaPlayer configuration. WPF

Feb 20, 2017
Adrian Bartczak wrote
Hello!
I'm testing visioForge SDK on WPF platform and i have some problems.
1) In my project i need to have access to all camera device settings (USB device class) from VideoCapture1.Video_CaptureDevice_SettingsDialog_Show(). For example i need to create separate controls like sliders for focus, switch on/off light compensation or other options in device. I serched all demo and i could't find any example.
2) When the mediaPlayer end playing it always shows black screen and lock player. I need to set MediaPlayer like this: when play ends MediaPlayer becomes in PauseState - shows last frame on wpf controll and slider should be active - user can slide between frames.
Thanks for help!
Reply
1 Answer
Feb 20, 2017
Roman Miniailov agent wrote
Hi

1. Please check WinForms demo. You can see Camera Control API and Video Adjustments API partially implemented in demo and fully available using SDK. So, we have full subset of DirectShow API for capture device. Some vendors can create custom device settings dialog, we unable to use them directly, but you can ask vendor for interface if required.
2. Set Selection_Enabled to true, set start time to 0, stop time same as file duration, that's enable loop playback and disable stop of file. You can control current timestamp using OnVideoFrameBuffer event, call Pause (from UI thread) in right moment, seek to last frame using Position_Set call.