This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I connect to a USB webcam in .NET?
I'm developing .Net solution with C#.
In my application, I need to know whole connected Webcams or cams. And getting Inputs from these webcams. But main problem is connected webcam devices are unknown.
For example, if someone use my application on their computer, my application must scan all connected webcams and also should be ask to user which webcam user wants to use.it likes Skype does. Skype enables users to select webcam to use. And Skype get inputs from selected webcam.
How can scan webcams and get streams from that web cam?
I would seggest to you to use AForge framework for this, it has all you need in very clean way: http://www.aforgenet.com/framework/samples/video.html
Related
This question already has answers here:
USB HID Devices
(2 answers)
Closed 9 years ago.
I am new in writing diver for HID device. So please tell me how can i start to writing driver for HID device using c# windows application.
Writing a driver in .NET is more or less impossible (more importantly, getting .NET anywhere near the kernel is a bad idea; user mode drivers are an option (although only a recent one on Windows) - but it's still somewhat tricky). However, to use a HID device, you don't have to write a driver, as long as you only want to use the HID out of your application and not eg. Explorer.
A good start might be something like https://github.com/mikeobrien/HidLibrary.
This question already has answers here:
ASP.NET/Silverlight Control USB Device
(3 answers)
Closed 10 years ago.
I'm developing web application using MVC3 and the requirement is to access USB port. if not possible is there other way or workaround for accessing port using web browser. Please send me a sample link.
Thanks
You might find more answers if you provided detail on why your App required access to a USB port. If this Intranet, then you are talking Corporate and you have more control over the Client side. If this is Internet, it's hopeless (or should be).
Yes - it is possible. Silverlight 5 can access the Win32 API using PInvoke (platform invocation). The Silverlight application must be a trusted application.
Here's an example (there are lots of others, Google it):
http://blogs.msdn.com/b/silverlight_sdk/archive/2011/09/27/pinvoke-in-silverlight5-and-net-framework.aspx
This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Access the Windows Media Player library C#
I'm trying to figure out how to programmatically query the Windows Media Player library from a C# program. I don't want to control the media player, just be able to query the index of recordings stored in the library.
Using OleDbConnections I have been able to connect to the Windows SystemIndex to query for various files and conditions, but these searches are across all files in my system and not just those maintained in the WMP library.
Can anyone point me in the right direction, please?
-- Robert
MSDN has a whole section on the Media Player SDK - and this page in particular should be of considerable use to you, I hope.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Path of the USB devices which are connected to the machine?
I'm working on a tool which perform different kind of copying - from and to different kind of USB devices, is there any way to know which kind of USB device is connected to my machine through the code? I need it for the copying path
you need to listen for removable device events and write your code there. i have a post about this here:
Listen for removable device events
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to capture image from client webcam in asp.net
Hi i want to capture a video using asp.net c# webapplication. How can i do it?
(Just like recording video in facebook)
Can you have any examples plz help me.
I've gone through google but nothing is suitable for me
Not really much to go on is there...
I am assuming you want a user to be able to record video in your app. This is not possible without a plugin on the user's machine, like Flash, because it means accessing hardware on the client machine. Flash has this built in and will ask for it to be allowed to access the user's webcam.
You might want to bwe a bit more clear with your question though...
Use Microsoft Expression Encoder for broadcast, and simple Silverlight of Flash control for presentation on a client side.