Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. How select an audio output device for WebEngineView?
Forum Updated to NodeBB v4.3 + New Features

How select an audio output device for WebEngineView?

Scheduled Pinned Locked Moved QtWebEngine
1 Posts 1 Posters 745 Views
  • 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 DavisB Offline
    Brad Austin DavisB Offline
    Brad Austin Davis
    wrote on last edited by
    #1

    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
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved