MultiStreamsMixer
MultiStreamsMixer copied to clipboard
Apply width, height, left, and top params to newStream
The code from examples here don't work properly as the positional properties don't carry to newStream on creation.
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;
This pull ensures the positional properties of the given stram map to the newStream.