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

qt webengine not request audio permission when js use getDisplayMedia api

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.14.2
    • Fix Version/s: 5.15.1
    • Component/s: WebEngine
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      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

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes