muaz-khan/MultiStreamsMixer

Screen size

jersobh opened this issue ยท 1 comments

Hi Muaz,

Great job there ๐Ÿ‘

Idk how to "fit" the captured video. I'm capturing two sources, following your example

screenStream.fullcanvas = true;
screenStream.width = screen.width; // or 3840
screenStream.height = screen.height; // or 2160

cameraStream.width = parseInt((20 / 100) * screenStream.width);
cameraStream.height = parseInt((20 / 100) * screenStream.height);
cameraStream.top = screenStream.height - cameraStream.height;
cameraStream.left = screenStream.width - cameraStream.width;

var mixer = new MultiStreamsMixer([screenStream, cameraStream]);

But then I got the whole screen in just half of the video, like this https://imgur.com/a/zzsWnEJ

Nevermind, it was meant to be screenStream.stream.fullcanvas = true in my case. Thank you!