MediaStream.id
The MediaStream.id()
read-only property is a DOMString
containing 36 characters denoting a unique identifier (GUID) for the object.
Syntax
JavaScript
Copy Code
var id = mediaStream.id;
Example
HTML
Copy Code
var p = navigator.mediaDevices.getUserMedia({ audio: true, video: true }); p.then(function(stream) { console.log(stream.id); };)
Specifications
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'MediaStream.id' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | ? | 41 (41) | ? | ? | ? |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | ? | 41.0 (41) | ? | ? | ? |
See Also
MediaStream
, the interface this property belongs to.
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/mediastream/id