D23091: Call media session callback with details

Kai Uwe Broulik noreply at phabricator.kde.org
Sun Aug 11 13:43:25 BST 2019


broulik created this revision.
broulik added reviewers: Plasma, fvogt.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
broulik requested review of this revision.

REVISION SUMMARY
  The spec says it must be called with a details callback [1]
  
  [1] https://w3c.github.io/mediasession/#callbackdef-mediasessionactionhandler

TEST PLAN
  Given we don't support seeking, only the bare "details" with the action is implemented.
  
    navigator.setActionHandler("nexttrack", (details) => {
        console.log("next track", details);
    });
  
  prints "next track nexttrack" now instead of "next track undefined"

REPOSITORY
  R856 Plasma Browser Integration

REVISION DETAIL
  https://phabricator.kde.org/D23091

AFFECTED FILES
  extension/content-script.js

To: broulik, #plasma, fvogt
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190811/2d3217b3/attachment.html>


More information about the Plasma-devel mailing list