riju / WebCamera

Camera controls for the Web
Other
270 stars 59 forks source link

Fix the issue with two camera streams in filters demo. #29

Closed aleksazh closed 5 years ago

aleksazh commented 5 years ago

Now we use one stream which we resize with canvasContext.drawImage(..) function. We put resized image to extra canvas and then use this canvas context for processing of filtered previews.

The performance is still the same.

See drawImage(..) description here.