Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.1
-
None
-
-
f18be9c59 (dev), 749d66608 (6.5), 4f3ed53de (6.4), 2a2bc0836 (tqtc/lts-6.2)
Description
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.
Attachments
Issue Links
- relates to
-
QTBUG-98559 QtMultimedia Camera Not View on Android 10
-
- Closed
-
- mentioned in
-
Page Loading...