mozilla / standards-positions

https://mozilla.github.io/standards-positions/
Mozilla Public License 2.0
633 stars 69 forks source link

Transferable MediaStreamTrack (Media Capture and Streams Extension) #1044

Closed jan-ivar closed 3 weeks ago

jan-ivar commented 2 months ago

Request for Mozilla Position on an Emerging Web Specification

Other information

Filed from news in https://webkit.org/blog/15443/news-from-wwdc24-webkit-in-safari-18-beta:

WebKit for Safari 18 beta adds support for MediaStreamTrack processing in a dedicated worker.

Transfer of MST is a prerequisite for the APIs MediaStreamTrackProcessor and VideoTrackGenerator, which in the spec are only exposed in DedicatedWorker.

jan-ivar commented 2 months ago

I'm supportive of this API as it gets JS processing of the browser's media pipeline off the main thread.

This seems the right approach, and avoids relying on optimizations like https://github.com/whatwg/streams/issues/1124.