foscam_streamer
foscam_streamer copied to clipboard
How to change the display size of the image
Hello,
I would like to know how to change the display size of the image without having to change it in ffmpeg?
Is it possible?
Thank you for your project!
Try this JavaScript:
height = window.innerHeight;
canvas = document.getElementById('myCanvas'),
ratio = canvas.width / canvas.height;
width = height * ratio;
canvas.style.width = width + 'px';
canvas.style.height = height + 'px';