w3c / mediacapture-fromelement

API to create a MediaStream from Media Element
https://w3c.github.io/mediacapture-fromelement
Other
21 stars 15 forks source link

captureStream() should return a promise #66

Closed guidou closed 6 years ago

guidou commented 6 years ago

captureStream() returning a fully configured MediaStream introduces restrictions for the implementation since the stream and its tracks have to be configured synchronously. It would be more flexible if it returned a promise, like getUserMedia() which resolves the promise with the fully configrued stream and allows asynchronous creation.

yellowdoge commented 6 years ago

Same as https://github.com/w3c/mediacapture-fromelement/issues/58?

guidou commented 6 years ago

Indeed. Closing as it's a duplicate.