Skip to content

Instantly share code, notes, and snippets.

@mariotacke mariotacke/medium.js
Last active Jun 30, 2019

Embed
What would you like to do?
const constraints = {
video: {
width: 512,
height: 512,
},
};
navigator.getUserMedia(constraints, function (stream) {
video.srcObject = stream;
video.play();
}, (err) => console.error(err));
video.addEventListener('play', function () {
window.requestAnimationFrame(processFrame);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.