-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
testing in Windows, when i debug list of cameras then properly:
// `[${i}] desc="${dev.description}", id="${dev.id}", default=${dev.isDefault}, position=${dev.position}`
qml: [0] desc="Integrated Camera", id="\\?\usb#vid_5986&pid_212b&mi_00#6&4c4a6fc&0&0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\global", default=false, position=0
qml: [1] desc="Microsoft® LifeCam HD-3000", id="\\?\usb#vid_045e&pid_0779&mi_00#a&33614a15&0&0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\global", default=false, position=0
where defailt is the Integrated Camera.
however when i set the other one:
MediaDevices { id: mediaDevices }
Camera {
id: myCamera
cameraDevice: mediaDevices.videoInputs[1]
}
SBarcodeScanner {
id: barcodeScanner
camera: myCamera
captureRect: Qt.rect(1/4, 1/4, 1/2, 1/2)
...
}
then I am being spammed with:
zxing-cpp deprecation warning: ImageView(nullptr, ...) will throw in the future, use ImageView()
SCodes Error: "ZXing exception: ImageView is null/empty"
however this happes no matter which cameraDevice i set (so same issue when i set mediaDevices.videoInputs[0] or even mediaDevices.defaultVideoInput)
so what is the proper way to set specific camera?
Metadata
Metadata
Assignees
Labels
No labels