Heads up! We're sunsetting this forum to streamline our community space.
join us on Discord for support, updates, and all things Snap AR! See you there!
join us on Discord for support, updates, and all things Snap AR! See you there!
Sign up for our live Camera Kit office hour on July 17 @ 9:30am (PT) / 4:30pm (GMT)
User media video quality
Can anyone tell if we can improve camera feed quality, I'm using Logitech Brio 4k but still it's pixelated on edges.
this is my code -
try {
const constraints = {
video: {
facingMode: 'environment',
width: { ideal: 3840, min: 1920 }, // 4K resolution as ideal, 1080p as minimum
height: { ideal: 2160, min: 1080 } // 4K resolution as ideal, 1080p as minimum
}
};
const mediaStream = await navigator.mediaDevices.getUserMedia(constraints);
const source = createMediaStreamSource(mediaStream, { cameraType: 'back' }); await session.setSource(source); session.source.setRenderSize(window.innerWidth, window.innerHeight); session.play();
}
})();
0
Answers
-
Hi @Aditya! Could you possibly share a screenshot?
0