The MediaStream.id()
read-only property is a DOMString
containing 36 characters denoting a unique identifier (GUID) for the object.
Syntax
var id = mediaStream.id;
Example
var p = navigator.mediaDevices.getUserMedia({ audio: true, video: true });
p.then(function(stream) {
console.log(stream.id);
};)
Specifications
Browser compatibility
Feature |
Chrome |
Edge |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari |
Basic support |
? |
(Yes) |
41 (41) |
? |
? |
? |
Feature |
Android |
Edge |
Firefox Mobile (Gecko) |
IE Mobile |
Opera Mobile |
Safari Mobile |
Basic support |
? |
(Yes) |
41.0 (41) |
? |
? |
? |
See Also
Document Tags and Contributors
Last updated by:
libbymc,