dimanche 27 avril 2014

Capture de flux vidéo sur le serveur web avec c# - Stack Overflow


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.



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.


Related Posts:

0 commentaires:

Enregistrer un commentaire