w3c / mediacapture-transform

MediaStreamTrack Insertable Media Processing using Streams
https://w3c.github.io/mediacapture-transform/
Other
44 stars 20 forks source link

Spec should link to https://www.w3.org/TR/webcodecs/#close-videoframe instead of calling close() #91

Closed youennf closed 9 months ago

youennf commented 10 months ago

The spec says:

The [WritableStream](https://streams.spec.whatwg.org/#writablestream) accepts [VideoFrame](https://w3c.github.io/webcodecs/#videoframe) objects. When a [VideoFrame](https://w3c.github.io/webcodecs/#videoframe) is written to [writable](https://w3c.github.io/mediacapture-transform/#dom-videotrackgenerator-writable), the frame’s close() method is automatically invoked, so that its internal resources are no longer accessible from JavaScript.

Instead it should call the corresponding close algorithm.