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

qt webengine not request audio permission when js use getDisplayMedia api

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.1
    • 5.14.2
    • WebEngine
    • None
    • Windows
    • cc232eb6586b3db5b7ed61287e39319990417476 (qt/qtwebengine/5.15)

    Description

      I use webengineview to load web pages in my app, and I have enabled the desktop captrue feature

      QWebEngineSettings::defaultSettings()->setAttribute(QWebEngineSettings::ScreenCaptureEnabled, true);
      

      when the web page request the permission for sharing screen by using getDisplayMedia interface, the app only request 

       

      QWebEnginePage::DesktopVideoCapture
      

      not 

      QWebEnginePage::DesktopAudioVideoCapture
      

      , I found that the MediaDesktopAudioCapture permission request is triggered only when 

      if (request.audio_type == blink::MEDIA_GUM_DESKTOP_AUDIO_CAPTURE &&
              request.video_type == blink::MEDIA_GUM_DESKTOP_VIDEO_CAPTURE)
              return {WebContentsAdapterClient::MediaDesktopAudioCapture, WebContentsAdapterClient::MediaDesktopVideoCapture};
      

      what I can do if I want to have the QWebEnginePage::DesktopAudioVideoCapture permission request.

       

      Attachments

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            payne.nie wu ming
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: