简体   繁体   中英

How do I (re)broadcast a mjpegstream using html5 and C#?

So far I have a C# project that has an event trigerred by new frames from an IPcam (stream in mjpeg). Those frames (as a video) I want to display to a webpage, so they are vieweble by all sorts of devices like iphones, android devices and other PC's. I think a HTML5 canvas is the way to go, but how?

I figured it out, altough the performance could be better:

I use VLC to rebroadcast the MJPEGstream as an mp4 one (h264/mp3) via HTTP protocol. Next I create a webpage that displays this stream using video-tags.

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