The read-only property is a DOMString containing 36 characters denoting a unique identifier (GUID) for the object.


var id =;


var p = navigator.mediaDevices.getUserMedia({ audio: true, video: true });

p.then(function(stream) {


Specification Status Comment
Media Capture and Streams
The definition of '' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
idChrome No support ? — 54Edge Full support 12Firefox Full support 41IE No support NoOpera No support ? — 39Safari Full support YesWebView Android No support ? — 54Chrome Android No support ? — 54Edge Mobile Full support YesFirefox Android Full support 41Opera Android No support ? — 41Safari iOS Full support YesSamsung Internet Android Full support Yes


Full support  
Full support
No support  
No support

See Also

Document Tags and Contributors

Contributors to this page: mdnwebdocs-bot, Skarster, fscholz, libbymc, teoli
Last updated by: mdnwebdocs-bot,