MultiStreamsMixer icon indicating copy to clipboard operation
MultiStreamsMixer copied to clipboard

Apply width, height, left, and top params to newStream

Open ianjennings opened this issue 5 years ago • 0 comments

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.

ianjennings avatar Jul 12 '20 21:07 ianjennings