<?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>Per Malmberg &#187; MSure</title>
	<atom:link href="http://www.pmalmberg.com/category/msure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pmalmberg.com</link>
	<description>Everything is possible, including the impossible. It just takes a little longer...</description>
	<lastBuildDate>Sun, 30 May 2010 19:57:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MSure + Spotify = true ?</title>
		<link>http://www.pmalmberg.com/2009/11/23/msure-spotify-true/</link>
		<comments>http://www.pmalmberg.com/2009/11/23/msure-spotify-true/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 23:27:16 +0000</pubDate>
		<dc:creator>Per</dc:creator>
				<category><![CDATA[MSure]]></category>
		<category><![CDATA[Spotify]]></category>

		<guid isPermaLink="false">http://www.pmalmberg.com/?p=212</guid>
		<description><![CDATA[Call me crazy if you want, but late evenings/nights are usually a very productive time for me; both kids in bed and the wife too &#8211; blissfully quiet  
Earlier this evening I started to reinstall my wife&#8217;s old laptop to use it as a multimedia box with Spoitfy as the player. At first I was [...]]]></description>
			<content:encoded><![CDATA[<p>Call me crazy if you want, but late evenings/nights are usually a very productive time for me; both kids in bed and the wife too &#8211; blissfully quiet <img src='http://www.pmalmberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Earlier this evening I started to reinstall my wife&#8217;s old laptop to use it as a multimedia box with Spoitfy as the player. At first I was planning to control it though remote desktop, but then I thought &#8220;can <a href="http://spotify.com">Spotify</a> be controlled remotely?&#8221; Unfortunately there is no API available (at least not a public one that I can find) &#8211; but it can be controlled using the keyboard locally, which means that it can be controlled from another application.</p>
<p>So I set out writing some test code, and 10 minutes later I am able to control <a href="http://spotify.com">Spotify</a> from my test application. Nothing fancy, really. The fancy stuff will be the ability to control it from the 10&#8243; touch display I&#8217;ve got in the hallway &#8211; one button to turn on the stereo and &#8216;press&#8217; the Play-button in <a href="http://spotify.com">Spotify</a>. Another key for stop, back, next etc.</p>
<p>Controlling other applications are not yet supported in <a href="http://msure.se">MSure</a>, but I do not see any reason it should not be possible to add. The only issue I see is that a Windows service (like MSure) normally cannot interact with a desktop &#8211; but I see three solutions to that problem:</p>
<ol>
<li>Write a small client application that sits in the user&#8217;s notification area.</li>
<li>Allow the <a href="http://msure.se">MSure</a> service to interact with the desktop</li>
<li>Let <a href="http://msure.se">MSure</a> start Spotify as a child process.</li>
</ol>
<p>Solutions two and three are my favourites, but if either one will work remains to be determined.</p>
<p>Now it&#8217;s just a matter of finding the time to do this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pmalmberg.com/2009/11/23/msure-spotify-true/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
