• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. MediaStreamTrack
  4. MediaStreamTrack.id
  • Change language

Table of contents

  • Syntax
  • Specifications
  • Browser compatibility
  • See also

MediaStreamTrack.id

The MediaStreamTrack.id read-only property returns a DOMString containing a unique identifier (GUID) for the track, which is generated by the user agent.

Syntax

const id = track.id

Specifications

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

Browser compatibility

BCD tables only load in the browser

See also

  • WebRTC

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Feb 19, 2021, by MDN contributors

Change your language

Related Topics

  1. Media Streams API
  2. MediaStreamTrack
  3. Properties
    1. enabled
    2. id
    3. kind
    4. label
    5. muted
    6. onended
    7. onmute
    8. This deprecated API should no longer be used, but will probably still work. onoverconstrained
    9. onunmute
    10. readyState
    11. This deprecated API should no longer be used, but will probably still work. remote
  4. Methods
    1. applyConstraints()
    2. clone()
    3. getCapabilities()
    4. getConstraints()
    5. getSettings()
    6. stop()
  5. Events
    1. ended
    2. mute
    3. unmute
  6. Related pages for Media Capture and Streams
    1. AudioStreamTrack
    2. BlobEvent
    3. CanvasCaptureMediaStream
    4. ConstrainBoolean
    5. ConstrainDOMString
    6. ConstrainDouble
    7. ConstrainLong
    8. DoubleRange
    9. HTMLCanvasElement.captureStream()
    10. LongRange
    11. MediaDevices
    12. MediaStream
    13. MediaStreamTrackEvent
    14. MediaTrackCapabilities
    15. MediaTrackConstraints
    16. MediaTrackSettings
    17. MediaTrackSupportedConstraints
    18. Navigator.mediaDevices
    19. NavigatorUserMedia
    20. NavigatorUserMediaError
    21. VideoStreamTrack
    22. navigator.mediaDevices.getUserMedia()
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies