- From: youennf <notifications@github.com>
- Date: Wed, 15 Dec 2021 00:54:00 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 15 December 2021 08:54:12 UTC
@youennf commented on this pull request. > +const cameraStream = await navigator.mediaDevices.getUserMedia({ video : true }); +const videoFrameStream = getReadableStreamFromTrack(cameraStream.getVideoTracks()[0]); +const blurredVideoFrameStream = videoFrameStream.pipeThrough(backgroundBlurTransform) + .pipeThrough(frameCountTransform); +const blurredStream = new MediaStream([getTrackFromReadableStream(blurredVideoFrameStream)]); +// Make use of blurredStream. I prefer we keep it abstract from MediaStreamTrackProcessor and we keep the example as small as possible. I'll remove the call to getUserMedia which is indeed confusing. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/1193#discussion_r769395408
Received on Wednesday, 15 December 2021 08:54:12 UTC