Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How select an audio output device for WebEngineView?

    QtWebEngine
    1
    1
    514
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Brad Austin Davis
      Brad Austin Davis last edited by

      I'm working on an application that support multiple VR headsets as well as desktop. When a user activates a VR headsest, I need to be able to change the audio output for the QML layer to the appropriate device.

      I've figured out how to do this for the pure QML layer. I'm able to fetch the corresponding QMediaPlayer, and from there fetch the QMediaService and from that the QAudioOutputSelectorControl.

      I can't seem to find any mechanism for altering the audio output for WebEngineView objects embedded in my UI. I can't find anything in the WebEngineView that exposes any of these types. In fact it looks as though the only code related to audio in the web engine source code has to do specifically with allowing capture of host audio / video, rather than audio output from the rendered pages.

      Is there any way to redirect the audio output from WebEngineView?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post