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