Send Canvas stream to UDP Multicast address

Viewed 475

I currently have a canvas where users can draw in. What I'm doing then is this:

var canvas = $('#can')[0];
var ctx = canvas.getContext('2d');
var stream = canvas.captureStream(60);

var video = $('#video')[0];
video.srcObject = stream;

So I get the canvas, and use the captureStream method to get a live stream of the content of the canvas and then put it into a html video tag as srcObject.

What I want to achieve now, is that that live stream (saved in the variable stream) is sent to a udp multicast address, so I could receive it with MPV or another video player.

Are then any approaches you can give to me on how I could getting started with this? Or is there an easy way to do this?

1 Answers
Related