<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SysAdmin Adventures &#187; pause</title>
	<atom:link href="http://blog.tpa.me.uk/tag/pause/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tpa.me.uk</link>
	<description>Tech notes from a Systems Administrator</description>
	<lastBuildDate>Mon, 31 Oct 2011 11:09:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>XBMC 9.11 Annoyances</title>
		<link>http://blog.tpa.me.uk/2010/02/21/xbmc-9-11-annoyances/</link>
		<comments>http://blog.tpa.me.uk/2010/02/21/xbmc-9-11-annoyances/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 18:04:52 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[xbmc]]></category>
		<category><![CDATA[enqueue]]></category>
		<category><![CDATA[pause]]></category>
		<category><![CDATA[play]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=303</guid>
		<description><![CDATA[When I upgraded from XBMC 9.04.1 to 9.11 I discovered two major annoyances. The only method I have to access the playlist with my remote in &#8220;keyboard mode&#8221; was to select the playlist option from the on-screen menu in the Project Mayhem III skin, yet the new Confluence skin in 9.11 is missing the playlist [...]]]></description>
			<content:encoded><![CDATA[<p>When I upgraded from XBMC 9.04.1 to 9.11 I discovered two major annoyances.</p>
<ol>
<li>The only method I have to access the playlist with my remote in &#8220;keyboard mode&#8221; was to select the playlist option from the on-screen menu in the Project Mayhem III skin, yet the new Confluence skin in 9.11 is missing the playlist option.</li>
<li>The &#8220;Play&#8221; button on my remote control and media keyboard no longer enqueued content, they only worked to pause/resume playback.</li>
</ol>
<p>Problem 1 was fixed easily.. I downloaded and installed the Project Mayhem III skin that was removed from XBMC in 9.11. I don&#8217;t understand why they did this. I can understand why they changed the default skin for something that looked better on HD outputs, but they shouldn&#8217;t have removed Project Mayhem III completely, it is such a better skin (in my opinion) and is <em>definitely</em> better for lower resolution displays.</p>
<p>Problem 2 was not so easy. In fact I would go so far as to say it was a right royal pain in the arse, completely killed the ease-of-use so much so that we stopped using it until I fixed it and still has no clear explanation for the cause.</p>
<p>In 9.04.1, pressing the Play/Pause button on the remote generates Action 79 (guilib/Key.h):</p>
<div class="codecolorer-container c geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">#define ACTION_PLAYER_PLAY 79 // Play current song. Unpauses song and sets playspeed to 1x. global action, can be used anywhere</span></div></div>
<p>In 9.11, the same keypress in the same configuration generates Action 12:</p>
<div class="codecolorer-container c geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">#define ACTION_PAUSE 12</span></div></div>
<p>In 9.04.1 (on Slackware), the keymap is specified in /usr/share/xbmc/system/Keymap.xml:</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;keymap<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;global<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;keyboard<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; ...<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;play_pause<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Pause<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/play_pause<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; ...<br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/keyboard<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/global<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/keymap<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>In 9.11 (on Slackware), the keymap is specified in /usr/share/xbmc/system/keymaps/keyboard.xml:</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;keymap<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;global<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;keyboard<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; ...<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;play_pause<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Pause<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/play_pause<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; ...<br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/keyboard<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/global<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/keymap<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>In both cases the keymap is mapping the Play/Pause button to the Pause action and there is no other definition in either set of keymaps to override the <em><global></em> definition for specific menus.</p>
<p>Given the above, for both 9.04.1 and 9.11 the expected behaviour should be for the play_pause button to generate Action 12 (ACTION_PAUSE) and function only as a pause button and not play or enqueue content from a menu, just as it has been doing so far in 9.11. However, in 9.04.1 it hasn&#8217;t been doing this, it has been generating Action 79 (ACTION_PLAYER_PLAY) and therefore acting as a pause during playback, but as a play/enqueue button in menus.</p>
<p>For the life of me I can&#8217;t figure out why. Is it just a bug? Was it just not doing what it was supposed to in 9.04.1 and it was fixed for 9.11? If this is the case why would the chosen behaviour for play_pause be only pause? What is the purpose of Action 12? Surely you would never want a pause button if all it does is implement only one function that is already covered by Action 79?</p>
<p>Thankfully, there is a simple solution that makes it just work for the time being. What you need to do is remap the Play/Pause button from Pause to Play, i.e. from Action 12 to Action 79. You can do this by creating a keymap xml file in your home directory, but I choose to change it in the installation directory so that the change is made for all user accounts.</p>
<p>Edit /usr/share/xbmc/system/keymaps/keyboard.xml and change:</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;play_pause<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Pause<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/play_pause<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>to</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;play_pause<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Play<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/play_pause<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Having done this, 9.11 is works perfectly and as expected, pausing/resuming playback and also acting to enqueue highlighted menu items.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/02/21/xbmc-9-11-annoyances/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

