Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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-81006

    You can downgrade to 5.13 or wait until March for 5.14.2.


Log in to reply