Details
-
Task
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
None
-
-
681b93eb8 (dev), 5da455d8f (6.7), 6e39b49dc (6.6), 944eefab5 (tqtc/lts-6.5)
Description
Currect code finds cameras like this:
AVCaptureDevice *defaultDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; NSArray *videoDevices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
But that will find and return only "single-lens" camera types. One on each side. General-purpose AVCaptureDeviceTypeBuiltInWideAngleCamera for the front side, for example.
This type unfortunately doesn't switch between different lenses. AVCaptureDeviceTypeBuiltInTripleCamera (or dual) must be used to achive this. These types can be discovered differently, as stated in the note:
Note
You can only discover this device type using an AVCaptureDeviceDiscoverySession or the AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position: method.
Proposal of this issue is to switch to the new discovery method and set default camera to one the multi-lens logical cameras that can automatically switch between lenses.
Attachments
For Gerrit Dashboard: QTBUG-121422 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
546046,1 | Support multi-lens (dual, triple) logical cameras on Apple devices | tqtc/lts-6.2 | qt/tqtc-qtmultimedia | Status: NEW | 0 | 0 |
533401,14 | Support multi-lens (dual, triple) logical cameras on Apple devices | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
545875,2 | Support multi-lens (dual, triple) logical cameras on Apple devices | 6.7 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
545923,2 | Support multi-lens (dual, triple) logical cameras on Apple devices | 6.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
545983,2 | Support multi-lens (dual, triple) logical cameras on Apple devices | tqtc/lts-6.5 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |