HTMLMediaElement: sinkId プロパティ
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
sinkId
は HTMLMediaElement
インターフェイスの読み取り専用プロパティで、出力を配信する音声機器の固有の ID である文字列を返します。
この ID は MediaDevices.enumerateDevices()
から返される MediaDeviceInfo.deviceId
の値、id-multimedia
、id-communications
のいずれかである必要があります。
ユーザーエージェントの既定の機器が使用されている場合は、空文字列を返します。
値
出力を配信する音声機器の固有の ID である文字列を返します。ユーザーエージェントの既定の機器が使用されている場合は、空文字列を返します。
セキュリティの要件
このプロパティにアクセスするには、以下の制約があります。
- このプロパティは、安全なコンテキストで呼び出す必要があります。
仕様書
Specification |
---|
Audio Output Devices API # dom-htmlmediaelement-sinkid |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
sinkId |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.