Unfortunately, there doesn't seem to be managed DirectShow support in DX9.0. However, I believe you can use the Windows Media Encoder SDK to capture live audio and video. Check out this complete example: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmencode/htm/windowsmediaencoderautomation.asp And get the SDK here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmencode/htm/windowsmediaencoderautomation.asp
参考--Streaming WebCam video with VB.NET: http://network.programming-in.net/articles/art7.asp?Webcam
Check out this complete example:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmencode/htm/windowsmediaencoderautomation.asp
And get the SDK here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmencode/htm/windowsmediaencoderautomation.asp
http://network.programming-in.net/articles/art7.asp?Webcam