HTMLMediaElement: sinkId property

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The HTMLMediaElement.sinkId read-only property returns a string that is the unique ID of the audio device delivering output. If it is using the user agent default, it returns an empty string. This ID should be one of the MediaDeviceInfo.deviceId values returned from MediaDevices.enumerateDevices(), id-multimedia, or id-communications.


A string.

Security requirements

Access to the property is subject to the following constraints:


Audio Output Devices API
# dom-htmlmediaelement-sinkid

Browser compatibility

BCD tables only load in the browser

See also