<?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>Madarco DevBlog &#187; Wii</title>
	<atom:link href="http://blog.madarco.net/category/wii/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.madarco.net</link>
	<description>on Flash, Java, Webdesign</description>
	<lastBuildDate>Mon, 03 Aug 2009 08:23:15 +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>Listening to music on the Wii</title>
		<link>http://blog.madarco.net/43/music_on_the_wii/</link>
		<comments>http://blog.madarco.net/43/music_on_the_wii/#comments</comments>
		<pubDate>Sat, 03 Feb 2007 10:57:30 +0000</pubDate>
		<dc:creator>Madarco</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Wii]]></category>

		<guid isPermaLink="false">http://blog.madarco.net/43/music_on_the_wii/</guid>
		<description><![CDATA[Update: Zach Callear has published a complete shoutcast player in flash without memory leaks. I haven't tested it yet but it should works in the wii browser.
Update: Now it's needed only a shoutcast server, I'm working on removing the web server too
 I own a Wii!
And I'm playing more with the opera browser+flash than with [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> Zach Callear has published <a href="http://callear.org/radio-script/">a complete shoutcast player in flash without memory leaks</a>. I haven't tested it yet but it should works in the wii browser.</p>
<p><strong>Update:</strong> Now it's needed only a shoutcast server, I'm working on removing the web server too</p>
<p><img src="/wp-content/downloads/wiinamp/wii.jpg" alt="Wii" /> I own a Wii!<br />
And I'm playing more with the opera browser+flash than with Zelda...<br />
My first experiment is to stream music from the pc to the Wii.</p>
<p>So here a quick how to:</p>
<p><strong>Note: </strong>I've encountered some problems because of a weird bug in the flash Sound object, witch I'll explain in the next post. <strong>Update: </strong><a href="/44/memory-leaks-playing-shoutcasticecast-streams-in-flash/">here the post</a>.<br />
There are still some imperceptible "glitches" every two minutes, but the overall quality is good.</p>
<p>Notice that the player hasn't any interface yet and its required to run three(!) servers. In the next days I'll try to improve those things.</p>
<h2>Requirements</h2>
<p>You need:</p>
<ul>
<li>a <a href="http://wii.nintendo.com">Wii</a></li>
<li><a href="http://www.winamp.com">Winamp</a></li>
<li><a href="http://www.shoutcast.com/downloads/shoutcast-dsp-1-9-0-windows.exe">Winamp Shoutcast plugin</a></li>
<li><a href="http://www.shoutcast.com/download/license.phtml">Shoutcast server</a></li>
<li>A <a href="http://www.apachefriends.org/en/xampp.html">web server</a> that run on the same computer</li>
<li><a href="/wp-content/downloads/wiinamp/wiinamp.zip">A flash movie that play music without memory leaks</a></li>
</ul>
<p>It is possible to swap every item in the list with a Mac/Linux alternative, I'll leave it to google.</p>
<h2>The server<del datetime="2007-02-04T17:51:28+00:00">(s)</del> </h2>
<p>Download and install the SHOUTcast server.</p>
<p>In sc_serv.ini change the password and make it private:</p>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div class="igBar"><span id="lcode-3"><a href="#" onclick="javascript:showPlainTxt('code-3'); return false;">PLAIN TEXT</a></span></div>
<div id="code-3">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Password=changeme</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">PublicServer=never </div>
</li>
</ol>
</div>
</div>
</div>
<p>Now start the server.</p>
<p>This has to run on the same machine of the webserver due to the security restrictions of the flash player.<br />
<del datetime="2007-02-04T17:48:23+00:00">We need two servers because flash refuse to open another connection to the same server.</del> (And we need to do that to <a href="/44/memory-leaks-playing-shoutcasticecast-streams-in-flash/">avoid memory leaks</a>)</p>
<h2>Stream</h2>
<p>Download and install the Shoutcast winamp plugin.</p>
<p>Start winamp.</p>
<p>Select Options->Preferences->DSP/Effect->Nullsoft SHOUTcast Source DSP<br />
and put the new password and the server port (8000 by default)</p>
<p><img src="/wp-content/downloads/wiinamp/shoutcastplugin.jpg" alt="Shoutcat plugin settings" /><br />
Now the music you listen will be streamed to the shoutcast servers.</p>
<h2>The player</h2>
<p>Now, get the swf player:<br />
<a href="/wp-content/downloads/wiinamp/wiinamp.zip">Shoutcast stream flash player</a></p>
<p>It hasn't any interface yet, I'll do that in the next days.</p>
<p>Put the swf in your web server and pass your ip as a flashVar in wiinamp.html:</p>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div class="igBar"><span id="lhtml-4"><a href="#" onclick="javascript:showPlainTxt('html-4'); return false;">PLAIN TEXT</a></span></div>
<div id="html-4">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/object.html"><span style="color: #000000; font-weight: bold;">&lt;object&gt;</span></a></span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/param.html"><span style="color: #000000; font-weight: bold;">&lt;param</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"movie"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"stream.swf"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/param.html"><span style="color: #000000; font-weight: bold;">&lt;param</span></a> <span style="color: #000066;">NAME</span>=FlashVars <span style="color: #000066;">VALUE</span>=<span style="color: #ff0000;">"stream1=http://192.168.1.33:8000/"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;">&lt;embed <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"stream.swf"</span> FlashVars=<span style="color: #ff0000;">"stream1=http://192.168.1.33:8000/"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p><del datetime="2007-02-04T17:51:28+00:00"><code>8000</code> and <code>8002</code> are the ports of</del> <code>8000</code> is the port of the stream servers.</p>
<h2>Listen</h2>
<p>In the Wii Internet Channel open http://*yourip*/wiinamp.html and relax <img src='http://blog.madarco.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>To Do</h2>
<ul>
<li>An interface for the player</li>
<li>try Icecast to get rid of the second server and the webserver (for now it made flash unstable)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.madarco.net/43/music_on_the_wii/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
