Back to Content

MediaStreamTrack: label property

files/en-us/web/api/mediastreamtrack/label/index.md

latest554 B
Original Source

{{APIRef("Media Capture and Streams")}}

The label read-only property of the {{domxref("MediaStreamTrack")}} interface returns a string containing a {{glossary("user agent")}}-assigned label that identifies the track source, as in "internal microphone".

The string may be left empty and is empty as long as no source has been connected. When the track is disassociated from its source, the label is not changed.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also