samples icon indicating copy to clipboard operation
samples copied to clipboard

Change video-processing sample to process on a worker

Open dogben opened this issue 3 years ago • 2 comments

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 avatar May 03 '21 14:05 dogben

@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

fippo avatar Apr 07 '22 15:04 fippo

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

dogben avatar Apr 08 '22 07:04 dogben