MediaStreamTrack: getSettings() メソッド
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017.
getSettings()
はMediaStreamTrack
インターフェイスのメソッドで、現在の MediaStreamTrack
の制約可能なプロパティの現在の値を含む MediaTrackSettings
オブジェクトを返します。
制約されるプロパティの働きの詳細については、能力と制約と設定を参照してください。
構文
js
getSettings()
引数
なし。
返値
トラックの制約可能なプロパティの現在の構成を記述する MediaTrackSettings
オブジェクトです。
メモ:
返されたオブジェクトは、サイトコードで明示的に設定されたものではなく、プラットフォームの既定値として保有するものも含め、制約されるすべてのプロパティの現在の値を特定します。 代わりに、サイトのコードで指定されたトラックのプロパティに対して、最近設定された制約を取得するには、getConstraints()
を使用してください。
仕様書
Specification |
---|
Media Capture and Streams # dom-mediastreamtrack-getsettings |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
getSettings |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
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.