<table><tr><td style="">mtijink created this revision.<br />mtijink added reviewers: Plasma, broulik.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.<br />mtijink 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/D10800" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>At <a href="https://phabricator.kde.org/tag/kde_connect/" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">#kde_connect</a> we had some visual glitches whenever the plasma browser integration reported <tt style="background: #ebebeb; font-size: 13px;">playing</tt> or <tt style="background: #ebebeb; font-size: 13px;">paused</tt>. The cause was that the player was already signalled as paused, but <tt style="background: #ebebeb; font-size: 13px;">canPlay</tt> was not signalled as <tt style="background: #ebebeb; font-size: 13px;">true</tt> yet.</p>
<p>This diff fixes the issue by just always reporting <tt style="background: #ebebeb; font-size: 13px;">true</tt>. This is also what the specifications require (see <a href="https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Property:CanPlay" class="remarkup-link" target="_blank" rel="noreferrer">https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Property:CanPlay</a>)</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>The glitch never appeared for me, but the code compiles and works fine with this change.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R856 Plasma Browser Integration</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-mpris-canplaypause</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10800" rel="noreferrer">https://phabricator.kde.org/D10800</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>host/mprisplugin.cpp</div></div></div><br /><div><strong>To: </strong>mtijink, Plasma, broulik<br /><strong>Cc: </strong>plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>