Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Change html in all frames in QWebEngineView
Forum Updated to NodeBB v4.3 + New Features

Change html in all frames in QWebEngineView

Scheduled Pinned Locked Moved General and Desktop
qwebengineviewqwebengineqwebengine netw
1 Posts 1 Posters 974 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    andbiller
    wrote on last edited by
    #1

    Hi! I have a simple browser based on Qt5 QWebEngineView on which user can load different urls. I need to implement "disable sound on videos" feature. One way is to execute JS and set .muted=true for all video elements, but according to [1] runJavaScript can run only in mainFrame, so if page will contain iframe with video tag sound will still play. Another way is to replace html code that comes into QWebEngineView, e.g.

    "<video>"->"<video muted>"
    But is it possible to implement this way? Is there any other ways?

    [1] https://wiki.qt.io/QtWebEnginePortingFromQtWebKit

    1 Reply Last reply
    0

    • Login

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