Transferable MediaStreamTracks
- Category
- WebRTC
- Type
- Chromium catches up
- Status
- No active development (Chrome No active development)
- Intent stage
- Start prototyping
Summary
Expose MediaStreamTracks in Workers and allow them to be transferred between contexts. Allowing this transfer makes it easier to access and process media in contexts other that where it was created, eg in Workers or other documents.
Motivation
Having transferable MediaStreamTracks allows much more flexibility for architecting web applications which have multiple windows which each wish to contribute video or audio tracks to a single WebRTC conference, without having to have independent competing network connections via PeerConnection. This also allows transferring all media processing to a separate context eg a worker, rather than mediating control signals through the window.
Standards & signals
- Specification: https://w3c.github.io/mediacapture-extensions/#transferable-mediastreamtrack
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1288839
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=transferable-mediastreamtracks
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Transferable%20MediaStreamTracks
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Transferable%20MediaStreamTracks
- Baseline status: https://webstatus.dev/?q=Transferable%20MediaStreamTracks