MediaCaptureWPF icon indicating copy to clipboard operation
MediaCaptureWPF copied to clipboard

Requirements - Windows 10 x64 new machine

Open moh-a-med opened this issue 9 years ago • 10 comments

What are the requirements to get wpfmediacapture.dll work on a new machine. Windows 10 x64.

My application is Wpf and works on development computer. It has been tested with a build x86 and with a build x64.

I installed visual c++ 2013 runtime x64 et x86 on the target machine windows 10.

I have zero error. Nothing is catched in exceptions. My camera is well detected. But i am not able to get the capture preview.

It just do nothing.

Has someone encountered that? Any ideas?

moh-a-med avatar Feb 07 '16 17:02 moh-a-med

I haven't hit that issue, but I only tested on a machine with Visual Studio installed on it so that doesn't help much. Is it possible to attach a native C++ or mixed C++/C# to check if the assembly gets at least loaded and if there are first-change native exceptions getting fired?

mmaitre314 avatar Feb 08 '16 07:02 mmaitre314

Im not sure to understand.

How can i do that. Do you have a tutorual or any reference?

I havent precise it is a virtual machine.

moh-a-med avatar Feb 08 '16 10:02 moh-a-med

Here is some doc on VS remote debugging: https://msdn.microsoft.com/en-us/library/y7f5zaaa.aspx .

How did you get the virtual machine to access a camera and a microphone?

mmaitre314 avatar Feb 08 '16 15:02 mmaitre314

I just play the virtual machine and I connect my camera on the host through Removable devices Menu.

I tried my code on another physical machine . Windows 8.1. Its working !

Thanks for your answers.

I have another question. Have you been able to use with your MediaCaptureWpf.dll the TorchControl and the FlashControl ?

All WinRT issues on the net says it cannot work without preview.

Is the WPF preview compatible with TorchControl and FlashControl ?

My tablet windows 8.1 has a flash and a torch and both elements are logged as not supported in my WPF application even with the preview active ...

moh-a-med avatar Feb 09 '16 08:02 moh-a-med

For the VM, there is probably no mic. You can try setting MediaCaptureInitializationSettings.StreamincaptureMode to Video when initializing MediaCapture.

I'll ask around for torch/flash. The tablet driver likely exposes them using an older API. That might require some native COM code for you to access it.


From: moh-a-medmailto:[email protected] Sent: ‎2/‎9/‎2016 12:39 AM To: mmaitre314/MediaCaptureWPFmailto:[email protected] Cc: Matthieu Maitremailto:[email protected] Subject: Re: [MediaCaptureWPF] Requirements - Windows 10 x64 new machine (#3)

I just play the virtual machine and I connect my camera on the host through Removable devices Menu.

I tried my code on another physical machine . Windows 8.1. Its working !

Thanks for your answers.

I have another question. Have you been able to use with your MediaCaptureWpf.dll the TorchControl and the FlashControl ?

All WinRT issues on the net says it cannot work without preview.

Is the WPF preview compatible with TorchControl and FlashControl ?

My tablet windows 8.1 has a flash and a torch and both elements are logged as not supported in my WPF application even with the preview active ...


Reply to this email directly or view it on GitHub: https://github.com/mmaitre314/MediaCaptureWPF/issues/3#issuecomment-181760274

mmaitre314 avatar Feb 09 '16 15:02 mmaitre314

This API may help (not sure what the driver requirements are for this one): https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.lights.lamp

mmaitre314 avatar Feb 10 '16 03:02 mmaitre314

Hello,

I am also having the same issue with moh-a-med.

I am running the MediaCaptureWPF on Win8.1 x64 machine DX11. Solution is built successfully. There are no errors, no warnings. But there is nothing on MainWindow as seen on image below.

I can see that camera is working properly. When I register Changed event of CapturePreview object, I can get preview object as D3dImage. Then I convert it to Bitmap and I can see frames streaming successfully. I can also see C++ projects loaded and working.

But when I run the unmodified version of application, there is nothing on screen. Do you have any idea for this ?

Thank you.

aaaaa

super55 avatar Feb 18 '16 13:02 super55

Now, I have debugged MediaCaptureWPF.Native and realised that it's always hitting the breakpoint located in snapshot.(After about 4.or 5. frames). So, RefreshPreview method couldn't be called.

Any idea ?

untitled

super55 avatar Feb 19 '16 07:02 super55

As i understand MediaCapture will not work on Windows 7?

squalsoft avatar Oct 05 '16 08:10 squalsoft

Hi,

What about moh-a-med question about flash ? Is it possible to interface desktop application with WinRT (UWP ?) API ? I'm looking for a FlashControl solution.

Thanks for any hints.

Max.

Maxima078 avatar Feb 03 '17 15:02 Maxima078