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

Alternative suggestion:

1. Make the media streams themselves [Transferable][1]
2. Provide an API to get a media stream from a DOM node

Then, rather than creating a full-tab stream and then cropping, then having to pass an ID, the application would just create a MediaStream for the DOM node in question, and pass it to the other application via postMessage() directly. This seems both simpler and more general.

In particular, making MediaStream (and possibly some other API objects) transferable would also solve some use cases I have for [Sandstorm][2], see discussion at https://github.com/w3c/webrtc-extensions/issues/64#issuecomment-764912264, whereas it's not clear the proposal here would.

[1]: https://developer.mozilla.org/en-US/docs/Web/API/Transferable
[2]: https://sandstorm.io

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


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

Received on Thursday, 21 January 2021 21:26:58 UTC