Tại https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints có một phần được gọi là “Thuộc tính của bản nhạc.” Tôi sẽ điều chỉnh các cài đặt này như thế nào?Làm cách nào để triển khai cài đặt theo dõi hình ảnh
Khi tôi chạy navigator.mediaDevices.getSupportedConstraints()
tôi nhận được như sau:
{
"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
}
Tôi có thể điều chỉnh “Properties của track video” dưới video
navigator.mediaDevices.getUserMedia({
video: {
aspectRatio: 1.5,
width: 1280,
},
})
Nhưng tôi không chắc chắn làm thế nào để điều chỉnh các thuộc tính như focalLengthX
hoặc exposureCompensation
. Tôi sẽ điều chỉnh chúng ở đâu?
Bạn đã cố gắng thiết lập thuộc tính và giá trị so với các đối tượng thông qua cho '.getUserMedia()'? – guest271314