This sample shows how to perform mirroring of a video stream using the experimental mediacapture-transform API in a Worker. It also provides comparison between mirroring in the main thread using canvas and mirroring 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