- From: youennf <notifications@github.com>
- Date: Wed, 15 Dec 2021 01:27:39 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 15 December 2021 09:27:51 UTC
@youennf commented on this pull request. > +* Performing realtime transformations of `VideoFrame` objects, for instance taking a camera `MediaStreamTrack` and applying + a background blur effect as a `TransformStream` on each `VideoFrame` of the `MediaStreamTrack`. + +## End-user benefit + +* `VideoFrame` needs specific management and be closed as quickly as possible, without relying on garbage collection. + This is important to not create hangs/stutters in the processing pipeline. By building support for safe patterns + directly in streams, this will allow web developers to optimize `VideoFrame` management, and allow user experience + to be more consistent accross devices. + +## Principles + +The envisioned changes to the streams specification could look like the following: +* Add a new 'transfer' value that can be passed to `ReadableStream` type, `WritableStream` type and `TransformStream` readableType/writableType. + For streams that do not use the 'transfer' type, nothing changes. +* Streams of the 'transfer' type can only manipulate that are marked both as Transferable and Serializable. Moved to chunk -- 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_r769428681
Received on Wednesday, 15 December 2021 09:27:51 UTC