Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121422

Support multi-lens (dual, triple) logical cameras on Apple devices

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.2, 6.5, 6.6, 6.7
    • None
    • Multimedia
    • None
    • iOS/tvOS/watchOS, macOS
    • 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

        Activity

          People

            kiibimees Lauri Laanmets
            kiibimees Lauri Laanmets
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: