问题
I'm adding a chat functionality to one of our softwares, I've got the chat functionality up and running using WCF. I'm thinking of trying to add a video chat functionality again using WCF, basically instead of sending the clients messages I will send the video stream. I was wondering if anybody has done this with WCF? Is it very recommended to do this with WCF?
Also has anybody used (and recommends) any components (preferably open source) or libraries for video conferencing in .NET 4. Thanks for any help.
回答1:
You could use the following approach:
- Use the avicap32.dll and COM-interop (or DirectShow.NET) to capture the webcam's video.
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/7cd5e561-0e1e-46f7-92e0-800276ce9cf9
http://www.c-sharpcorner.com/uploadfile/yougerthen/integrate-the-web-webcam-functionality-using-C-Sharp-net-and-com-part-viii/
http://www.codeproject.com/Articles/7637/DirectX-Video-Stream-and-frame-capture
- Use streamed transfer to send the streams over WCF. Possible using IIS Live Smooth streaming:
http://learn.iis.net/page.aspx/620/getting-started-with-iis-live-smooth-streaming
Some components / libraries that allow you to capture video:
- http://www.fathsoft.com/videocapx.html
- http://easywebcam.codeplex.com/
- http://directshownet.sourceforge.net/about.html
- http://www.aforgenet.com/framework/features/
来源:https://stackoverflow.com/questions/10353575/video-conferencing-in-net