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 Zelda…
My first experiment is to stream music from the pc to the Wii.
So here a quick how to:
Note: I’ve encountered some problems because of a weird bug in the flash Sound object, witch I’ll explain in the next post. Update: here the post.
There are still some imperceptible “glitches” every two minutes, but the overall quality is good.
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.
- a Wii
- Winamp Shoutcast plugin
- Shoutcast server
- A web server that run on the same computer
- A flash movie that play music without memory leaks
It is possible to swap every item in the list with a Mac/Linux alternative, I’ll leave it to google.
Download and install the SHOUTcast server.
In sc_serv.ini change the password and make it private:
Now start the server.
This has to run on the same machine of the webserver due to the security restrictions of the flash player.
We need two servers because flash refuse to open another connection to the same server. (And we need to do that to avoid memory leaks)
Download and install the Shoutcast winamp plugin.
Select Options->Preferences->DSP/Effect->Nullsoft SHOUTcast Source DSP
and put the new password and the server port (8000 by default)
Now the music you listen will be streamed to the shoutcast servers.
Now, get the swf player:
Shoutcast stream flash player
It hasn’t any interface yet, I’ll do that in the next days.
Put the swf in your web server and pass your ip as a flashVar in wiinamp.html:
<object> <param name="movie" value="stream.swf" /> <param NAME=FlashVars VALUE="stream1=http://192.168.1.33:8000/" /> <embed src="stream.swf" FlashVars="stream1=http://192.168.1.33:8000/" /> </object>
8002 are the ports of
8000 is the port of the stream servers.
In the Wii Internet Channel open http://*yourip*/wiinamp.html and relax 🙂
- An interface for the player
- try Icecast to get rid of the second server and the webserver (for now it made flash unstable)