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. Handle Media Session API

Handle Media Session API

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 400 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.
  • K Offline
    K Offline
    Kobid
    wrote on last edited by
    #1

    Hi.
    Web pages can expose Media Session API, it is using for lock screens notifications and also for changing playing status directly on the page.
    https://developer.mozilla.org/en-US/docs/Web/API/Media_Session_API
    You can see what I mean by playing youtube video on Fire Fox or Chromium based browser and in console run:

    navigator.mediaSession.metadata
    

    Is it possible to retrieve such data in page loaded in QWebEngineView? I want it back to the C++. Also, I want even more, I want to hook on this data and get notified when metadata changed or when navigator.mediaSession.playbackState changed.
    Qt 5.15.2, QWebEngine based on chromium 83.0.4103.122.

    Regards

    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