D10973: [media controller applet] Support MPRIS services where CanPause==false
Friedrich W. H. Kossebau
noreply at phabricator.kde.org
Fri Mar 2 15:45:06 UTC 2018
kossebau created this revision.
kossebau added a reviewer: broulik.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
kossebau requested review of this revision.
REVISION SUMMARY
Currently the media controller only works with MPRIS services which support
the PlayPause command. By the MPRIS spec this is an optional feature though.
While most players out there support this, the MPRIS support in Gwenview
currently worked on does not (would need some more rewrite of internals).
Which makes the Media controller applet and/or Gwenview look broken :)
To keep the current design with a central Play/Not Play button, this patch
changes its behaviour depending on the CanPause flag:
CanPause=true -> show either Play or Pause
CanPause=false -> show either Pkay or Stop
That should stay close to what people need.
TEST PLAN
Works with Gwenview patched with MPRIS support.
Works with VLC, but might need more testing to add some work-arounds as
mentioned before by broulik.
REPOSITORY
R120 Plasma Workspace
BRANCH
mpriscontrollersupportnocanpause
REVISION DETAIL
https://phabricator.kde.org/D10973
AFFECTED FILES
applets/mediacontroller/contents/ui/ExpandedRepresentation.qml
applets/mediacontroller/contents/ui/main.qml
To: kossebau, broulik
Cc: plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180302/60aaa7f9/attachment-0001.html>
More information about the Plasma-devel
mailing list