Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Jib

Учасник з
Jib

Недавня активність в документації

Переглянути всю активність
Сторінка Дата Коментар

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()