Recente documentactiviteit
Alle activiteit weergevenPagina | Datum | Reactie |
---|---|---|
MediaDevices.getUserMedia() |
Switched the two examples around, as constraints were not likely to work with the polyfill. | |
MediaDevices.getUserMedia() |
let p = foo(); p.then(() => {}); p.catch(() => {}); is an anti-pattern we should avoid. Each line returns a promise, and line 2 leaves an uncaught rejection. Instead chain head to tail. | |
MediaDevices.getUserMedia() |
Avoid terms that imply the promise-returning API can throw exceptions, which it can't. On failure, it returns a rejected promise with the (poorly-named) DOMException error object. | |
MediaStream |
||
MediaStream() |