-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.1
-
None
-
-
f18be9c59 (dev), 749d66608 (6.5), 4f3ed53de (6.4), 2a2bc0836 (tqtc/lts-6.2)
Declarative Camera is automatically activated/started when Camera is attached to CaptureSession. This is because from all the implementations of:
QPlatformMediaCaptureSession::setCamera(QPlatformCamera *camera)
..only Android platform version activates the camera automatically:
void QAndroidMediaCaptureSession::setCamera(QPlatformCamera *camera) { if (camera) { m_captureSession->setCameraSession(m_cameraSession); } else { m_captureSession->setCameraSession(nullptr); } QAndroidCamera *control = static_cast<QAndroidCamera *>(camera); if (m_cameraControl == control) return; if (m_cameraControl) m_cameraControl->setCaptureSession(nullptr); m_cameraControl = control; if (m_cameraControl) { m_cameraControl->setCaptureSession(this); m_cameraControl->setActive(true); // <- ?????!!!!!! } emit cameraChanged(); }
This is now especially bad because it seems to be too early for latest Qt versions. It will start producing black VideoOutput and invalid frames for video sink listener.
- relates to
-
QTBUG-98559 QtMultimedia Camera Not View on Android 10
-
- Closed
-
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-109415 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
452632,2 | Android: Prevent Camera set automatically active | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
453257,2 | Android: Prevent Camera set automatically active | 6.5 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
453318,2 | Android: Prevent Camera set automatically active | 6.4 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
453324,3 | Android: Prevent Camera set automatically active | tqtc/lts-6.2 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |