Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102611

QWebEngineView microphone permission request failed on Mac after macdeployqt.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 6.2.3, 6.3.0
    • None
    • macOS 12.3.1
      Apple M1 Pro
      QtCreator 6.0.2
      Qt:6.2.3,6.3.0
    • macOS

    Description

      I added

      Privacy - Camra Usage Description
      Privacy - Microphone Usage Description

      into the info.plist.

       

      I set every featurePermissionRequested to PermissionGrantedByUser

       

      WebEnginePage::WebEnginePage(QObject *parent) : QWebEnginePage{parent}
      { 
            connect(this, &WebEnginePage::featurePermissionRequested, this,    &WebEnginePage::slotFeaturePermissionRequested);
      }
      
      void WebEnginePage::slotFeaturePermissionRequested(const QUrl &securityOrigin, QWebEnginePage::Feature feature) { 
           qDebug() << "securityOrigin" << securityOrigin << feature;
           this-  >setFeaturePermission(securityOrigin, feature,   QWebEnginePage::PermissionGrantedByUser);
      }
      

       

      it works when I launch the App in QtCreator, but it says "Qt Creator would like to access the microphone" , which is also wired. I think it should be "My Application would like to access the microphone".
      What's worse, it never show the permission dialog  after the application is deployed by macdeployqt tool and we can't use the microphone either.

       

      issue

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mibrunin Michael Bruning
            gaojinhsu Gaojin Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes