Unsolved QCamera is not working on the Android
-
Hi. This simple code not working in Android device.
import QtQuick 2.5 import QtQuick.Controls 2.5 import QtQuick.Layouts 1.3 import QtMultimedia 5.14 Page { id: root anchors.fill: parent VideoOutput { source: camera anchors.fill: parent Camera { id: camera deviceId: QtMultimedia.availableCameras[1].deviceId } } }
Emulator error:
W GLConsumer: [SurfaceTexture-0-8868-0] bindTextureImage: clearing GL error: 0x502
JDK 1.8.0_231
SDK: 26.1.1
NDK: 20.1.5948944
QT 5.14.0 -
It's a bug in 5.14.
https://bugreports.qt.io/browse/QTBUG-81006You can downgrade to 5.13 or wait until March for 5.14.2.