<table><tr><td style="">kossebau created this revision.<br />kossebau added a reviewer: broulik.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.<br />kossebau requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10973" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently the media controller only works with MPRIS services which support<br />
the PlayPause command. By the MPRIS spec this is an optional feature though.<br />
While most players out there support this, the MPRIS support in Gwenview<br />
currently worked on does not (would need some more rewrite of internals).<br />
Which makes the Media controller applet and/or Gwenview look broken :)</p>

<p>To keep the current design with a central Play/Not Play button, this patch<br />
changes its behaviour depending on the CanPause flag:<br />
CanPause=true ->  show either Play or Pause<br />
CanPause=false -> show either Pkay or Stop<br />
That should stay close to what people need.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Works with Gwenview patched with MPRIS support.<br />
Works with VLC, but might need more testing to add some work-arounds as<br />
mentioned before by broulik.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>mpriscontrollersupportnocanpause</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10973" rel="noreferrer">https://phabricator.kde.org/D10973</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/mediacontroller/contents/ui/ExpandedRepresentation.qml<br />
applets/mediacontroller/contents/ui/main.qml</div></div></div><br /><div><strong>To: </strong>kossebau, broulik<br /><strong>Cc: </strong>plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>