简体   繁体   中英

Capture video stream on the web server with C#

I build the ASP.NET MVC application that should access client's web cam in a browser and send the video stream to my web server and there some screenshots must be taken from that stream at a specific moment. I reviewed a lot of technologies but I can not figure out which matches.

The Flash is not suitable because I do not need a separate Flash media server. The WebRTC seems like establishing peer-to-peer connection between clients omitting web srver (I do not see how to capture WebRTC video stream on a web server). IIS Media service require some streaming encoders and it is not about working directly with client's web cam.

And for Silverlight I only found examples how to use it as video player and screenshot maker, but not a broadcaster. But I must make screenshots on the server, not in the client.

So I lost my way.

Can anybody prompt me the right direction?

Short answer: You can capture a WebRTC video/audio on the server. Just provide a WebRTC client (running on the server) that communicates with the other WebRTC clients. You may want to check the open source C client by Google ( https://code.google.com/p/webrtc/ ). However, this means that you do not need ASP.NET at all. You can adapt the aforementioned client and copy them to a specific directory and process them with ASP.NET from there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM