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

QtMultimedia Camera Not View on Android 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.2.3, 6.3.0 Alpha
    • 6.2.1
    • Multimedia
    • None
    • Development: Windows 10, QT 6.2.1, Qt Creator 5.0.3
      Target: Android 10
    • Android
    • 5cc076819278a1a039dc3fe8358535d01591539a (qt/qtmultimedia/dev) f00039fc1d5b32e1a659a6460ccf7c422b9292ea (qt/qtmultimedia/6.2)
    • 2021wk48POAndroid&Mobile

    Description

      Hello, I want to use the camera with QML on Android 10, but I cannot see the camera output in any way. The screen just looks white

       

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Layouts
      import QtMultimedia
      
      Page {
          MediaDevices {
              id: deviceList
          }
      
          Camera {
              id: mainCamera
              active: true
              cameraDevice: deviceList.defaultVideoInput
              focusMode: Camera.FocusModeAutoNear
          }
      
          CaptureSession {
              camera: mainCamera
              videoOutput: videoOutput
          }
      
          VideoOutput {
              id: videoOutput
              anchors.fill: parent
              fillMode: VideoOutput.PreserveAspectFit
          }
      }
      

      In Android 10, I get outputs like this, I think the camera is turned on and off automatically.

       

      I Camera  : open camera: 0, package name: com.package.camera
      D HwFrameworkSecurityPartsFactory: HwFrameworkSecurityPartsFactory in.
      I HwFrameworkSecurityPartsFactory: add HwFrameworkSecurityPartsFactory to memory.
      I HwCameraUtil: notifySurfaceFlingerCameraStatus : isFront = false , isOpend = true
      I Camera  : close camera: 0, package name:com.package.camera
      I HwCameraUtil: notifySurfaceFlingerCameraStatus : isFront = false , isOpend = false
      I Camera  : open camera: 1, package name: com.package.camera
      I HwCameraUtil: notifySurfaceFlingerCameraStatus : isFront = true , isOpend = true
      I HwCameraUtil: notifySurfaceFlingerFrontCameraStatus 8011 transact success!
      I Camera  : close camera: 1, package name: com.package.camera
      I HwCameraUtil: notifySurfaceFlingerCameraStatus : isFront = true , isOpend = false
      I HwCameraUtil: notifySurfaceFlingerFrontCameraStatus 8012 transact success!
      W IInputConnectionWrapper: getExtractedText on inactive InputConnection
      W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
      W libEGL  : EGLNativeWindowType 0x74bfbe4010 disconnect failed
      

       

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              samuelmira Samuel Mira
              jirauser62680 user-53df0 (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes