aledg
New Member
Hi guys,
I'm using your mixer API, I want to stream a simple static image from canvas.
Starting from your exemple canvas_streaming I try to change the code like this:
function createCanvasStream() {
var canvasContext = canvas.getContext("2d");
var canvasStream = canvas.captureStream(30);
var img = document.getElementById("myimage");
canvasContext.drawImage(img, 10, 10);
return canvasStream;
}
I draw correctly inside canvas but I can't stream the content to WCS...
Any suggestion?
I'm using your mixer API, I want to stream a simple static image from canvas.
Starting from your exemple canvas_streaming I try to change the code like this:
function createCanvasStream() {
var canvasContext = canvas.getContext("2d");
var canvasStream = canvas.captureStream(30);
var img = document.getElementById("myimage");
canvasContext.drawImage(img, 10, 10);
return canvasStream;
}
I draw correctly inside canvas but I can't stream the content to WCS...
Any suggestion?