This sample shows how to perform cropping on a video stream using the experimental mediacapture-transform API in a Worker.
Note: This sample is using an experimental API that has not yet been standardized. As of 2022-11-21, this API is available in the latest version of Chrome based browsers.
View source on GitHub