The MediaStreamTrack.id
read-only property returns a string containing a unique identifier (GUID) for the track, which is generated by the user agent.
The MediaStreamTrack.id
read-only property returns a string containing a unique identifier (GUID) for the track, which is generated by the user agent.
js
const id = track.id
Specification |
---|
Media Capture and Streams # dom-mediastreamtrack-id |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
id |
26 | 12 | 22 | No | 15 | 11 | 4.4 | 26 | 22 | 14 | 11 | 1.5 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/id