vendredi 3 janvier 2020

getUserMedia preview is too dark

I'm creating media stream object for js web application by navigator.mediaDevices.getUserMedia with parameters:

{
    audio: false,
    video: {
        height: {
            ideal: 1800
        },
        width: {
            ideal: 3200
        },
        frameRate: 10,
        facingMode: {
            exact: "environment"
        }
    }
}

and on HUAWEI P9 lite 2017 the video preview is too dark (all browsers, e.g Samsung Galaxy S8 and iPhone 6s are ok). When I'm setting resolution to 1080x1920 preview is ok. How can I solve the problem?




Aucun commentaire:

Enregistrer un commentaire