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

Camera active state does not work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.1, 6.6.0
    • 6.5
    • Multimedia
    • None
    • Android
    • 9c0604e0d (dev), dc714637d (dev), 72c06dec1 (6.5)
    • 2023wk02FOQtforAndroid, 2023wk04FOQtforAndroid

    Description

      The camera active property changes all the time (during camera work). Problem can be reproduced with code below:

      import QtQuick
      import QtQuick.Controls
      import QtMultimedia
      
      Window {
          width: 640
          height: 480
          visible: true
          CaptureSession{
              camera: Camera{
                  id: camera
                  onActiveChanged: { console.log("camera.active CHANGED!!!"); }
              }
              videoOutput: video
          }
          VideoOutput{
              id: video
              width: parent.width
              anchors.top: parent.top
              anchors.bottom: txt.top
          }
          Row {
              id: txt
              anchors.bottom: parent.bottom
              Text { text: "       CAMERA STATUS:                " }
              Text { text: camera.active ? "ACTIVE" : "NOT ACTIVE" }
          }
      }
      

      BUG-110317.mp4 attached with reproduction.

      The active property should be set to True during the work of camera and do change all the time

      Attachments

        Issue Links

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

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              bartlomiejmoskal Bartlomiej Moskal
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes