How to use MJPEG (multipart) image streams with WebRTC

2,513 views
Skip to first unread message

Martin Stave

unread,
Apr 6, 2017, 11:11:19 AM4/6/17
to discuss-webrtc
I have an IPCam that genereates a multipart image stream which Chrome displays fine with the IMG element.

What I like to do is add this stream to WebRTC, is it possible ?

Having the proper CORS header on the server and crossOrigin="Anonymous" I can draw the image on a Canvas.

but  can.CaptureStream always fails with  "Canvas is not origin-clean".

using a normal image this works, but anyway it will not be stream.

Are there any other ways to use this image stream ?

Martin
  " I

Webmaster Webmaster

unread,
Apr 7, 2017, 6:37:03 AM4/7/17
to discuss-webrtc

Martin Stave

unread,
Apr 9, 2017, 12:17:10 PM4/9/17
to discuss-webrtc
Thanks for the tip. I think I have some Windows c# code for a virtual camera that could be modified.

Martin
Reply all
Reply to author
Forward
0 new messages