https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraintsに「画像トラックのプロパティ」というセクションがあります。これらの設定はどうすれば調整できますか?イメージトラックの設定方法を教えてください
私はnavigator.mediaDevices.getSupportedConstraints()
を実行すると、私は次を得る:私はvideo
navigator.mediaDevices.getUserMedia({
video: {
aspectRatio: 1.5,
width: 1280,
},
})
下の「ビデオトラックのプロパティ」を調整することができます
{
"aspectRatio": true,
"brightness": true,
"channelCount": true,
"colorTemperature": true,
"contrast": true,
"depthFar": true,
"depthNear": true,
"deviceId": true,
"echoCancellation": true,
"exposureCompensation": true,
"exposureMode": true,
"facingMode": true,
"focalLengthX": true,
"focalLengthY": true,
"focusMode": true,
"frameRate": true,
"groupId": true,
"height": true,
"iso": true,
"latency": true,
"pointsOfInterest": true,
"sampleRate": true,
"sampleSize": true,
"saturation": true,
"sharpness": true,
"torch": true,
"videoKind": true,
"volume": true,
"whiteBalanceMode": true,
"width": true,
"zoom": true
}
しかし、私はfocalLengthX
などのプロパティを調整するかどうかはわかりませんまたはexposureCompensation
。どこで調整するのですか?
あなたは '.getUserMedia()'に渡されるオブジェクトのプロパティと値を設定しようとしたことがありますか? – guest271314