samples
samples copied to clipboard
Change video-processing sample to process on a worker
Following up to https://github.com/w3c/mediacapture-transform/issues/28, the sample at https://github.com/webrtc/samples/tree/gh-pages/src/content/insertable-streams/video-processing should be changed to (optionally?) process the video on a worker rather than the main thread.
@dogben do you still want to do this? The cropping sample uses a worker so we have an example of how it should be done
I think it would be a good idea, since the final spec that reached consensus (https://www.w3.org/TR/mediacapture-transform/) has the MediaStreamTrackProcessor and VideoTrackGenerator exposed only on DedicatedWorker. Making the sample fully spec-compliant seems desirable.
@alvestrand