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.
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.