简体   繁体   中英

how to C# stream video (images) to HTML5 client?

I am using C# to receive continuous bitmaps (video) from an ipcamera. Then I am converting them to base64string and sending (JSON) to HTML5 canvas. Canvas is rendering the images.

While searching I found how to send images from C# to HTML5 and render them on canvas.

My question is how to buffer the received images from IpCamera and send to HTML5 (multiple) clients in background?

any suggestions. Can I create mpeg stream in C# app? then how to read the mpeg from html5? Is there any thing like stream reader on HTML5 side?

thank you

You could use SignalR to stream bitmaps from server (written in C#) to many clients (in JS/HTML5). SignalR has hubs that can be used to stream to a group of clients (eg see SignalR Hubs Tutorial )

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