label property

A label describing the device. For example, "External USB Microphone".

Syntax

JavaScript
label = object.label

 

Property values

Type: string

A label describing the device.

Remarks

If the device has no associated label, this attribute will return an empty string.

See also

MediaDeviceInfo
MediaStreamTrack

 

 

Show: