Re: [mediacapture-screen-share] Add ability to crop a MediaStream obtained through the share-this-tab API (#158)

The work on Insertable Streams and Breakout Box has brought the issues of transferring buffers between processes very much to the forefront.
The critical part is where things are exposed to Javascript - if we expose them to the user, they have to be in that user's process. As long as they don't need to be exposed, we can shuffle them around via references, which will often allow us to keep the "real" buffer in the process where they need to be and not move them out (for instance if they can remain in GPU buffers).

A MediaStreamTrack (MediaStreams are boring!) doesn't necessarily move much, but what making it transferable does is to move it to another context where the content *might* be exposed to Javascript - which means that we need code for every path that would allow such exposure. Which is, again, a nontrivial undertaking.


-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/158#issuecomment-765379341 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 22 January 2021 12:56:35 UTC