Firefox Tomorrow

web api instance property

HTMLMediaElement: sinkId property

View on MDN ↗

Secure context

The sinkId read-only property of the HTMLMediaElement interface returns a string that is the unique ID of the device to be used for playing audio output.

This ID should be one of the deviceId values returned from enumerateDevices(). If the user agent default device is being used, it returns an empty string.

Value

A string indicating the current audio output device, or the empty string if the default user agent output device is being used.

Security requirements

Access to the property is subject to the following constraints:

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also