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

QWebEngineView microphone permission request failed on Mac after macdeployqt.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.2.3, 6.3.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      macOS 12.3.1
      Apple M1 Pro
      QtCreator 6.0.2
      Qt:6.2.3,6.3.0
    • Platform/s:
      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

            Assignee:
            qt_webengine_team Qt WebEngine Team
            Reporter:
            gaojinhsu Gaojin Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes