Skip to content

Instantly share code, notes, and snippets.

@sb2702

sb2702/upscaling-conferencing.html Secret

Last active Feb 26, 2021
Embed
What would you like to do?
<head>
<script src="upscaler.js"></script>
</head>
<body>
<div id="container" style="width: 960px; height: 720px;">
<video autoplay="" width="320" height="240" crossorigin="anonymous">
</div>
<script>
const constraints = {
video: { width:320, height: 240 },
};
const video = document.querySelector("video");
navigator.mediaDevices.getUserMedia(constraints).then((stream) => {
video.srcObject = stream;
});
const upscaler = new vectoryUpscaler(video, {width: 320, height: 240});
</script>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment