PDA

View Full Version : Syncing with iTunes/Airtunes/Airport



pankaj
2006-01-24, 23:54
Hello

I'm a (very happy) SB3 wireless new user (all of a week!), and I'm looking for an unusual solution: sometimes I'd like to use the SB as only a remote display to stream music (from the living room) from iTunes to my Airport Express (in the den, connected to the stereo). As we know, Airport Express can see music coming out of only iTunes/Airtunes (thanks, Apple!).

Basically, thanks to the iTunes/Airport limitation, the music HAS to play out of iTunes (streaming SlimServer so that the SB gets active), but all I need to do is have the SB only DISPLAY what's playing, accurately, and ideally, control iTunes as well!

Obviously I need to 'stream' SlimServer within iTunes, which I can do easily, but I need to sync the SlimServer and iTunes to each other, and I'm aware it doesn't do that (yet?).

Is there a plug-in in the works, or could someone suggest a workaround? I know that Roku's SoundBridge plays direct from iTunes (?), but I'm not thilled about buying yet another streamer; I'm quite thrilled with everything else the SB3 does!

I'm using Win XP Pro SP2, Airport Extreme/Express, and the SB3.

Any help would be much appreciated!

Thanks

Pankaj

Craig, James (IT)
2006-01-25, 02:34
It's not entirely clear quite what you need here but...

Have you looked at the 'shadowplay' plugin? This allows you to control
remote SlimServer clients.
I'm not sure if it would work on a stream-only client though.

I also think it would be possible to write a plugin for controlling
iTunes from SlimServer (using applescript (OSX) or OLE (windows)), and
relaying the playback info. But it doesn't exist at present...

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

pankaj
2006-01-25, 04:22
Thanks for your response, James. I'll certainly try it.

Basically, I want to listen to my remote speakers in the living room; these are wired to the stereo in the den, which also has an Airport Express (AE) plugged into it. The plan is to stream music to the AE, which I will hear in the living room via the remote speakers. The SB will sit in the living room, and let me display/control whatever is being streamed to the AE.

Ofcourse, the AE will ONLY work through iTunes, thus my player can only be iTunes.

Pankaj

pankaj
2006-01-25, 06:26
Further to my question:

A good example might be the plug-in called 'Video Box' by Peter van der Landen. That one seems to be able to display and control Windows Media Player on the SB. So what I'm looking for is the same capability, but with iTunes... iTunes is the primary player, the SB3 only mirrors/controls what iTunes is playing.

I wonder if that makes it clearer...?

Craig, James (IT)
2006-01-25, 09:08
The only real solution is to buy another squeezebox!

If this isn't an option it seems like you can still theoretically do it
2 ways...
1) stream Slimserver -> iTunes -> Airport Express. Control/view
SlimServer stream via (Shadowplay?) SlimServer plugin.
2) stream iTunes -> Airport Express. Control/View iTunes via SlimServer
(yet to be created) plugin

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

pankaj
2006-01-26, 01:43
Hi James

I tried ShadowPlay on the SB3; it doesn't work at all. It reports ' Sorry, No other Player to control'. Ofcourse I had iTunes running at the time, streaming SlimServer.

I checked your web pages, and I found you've already tried something called 'Follow iTunes', which seems like something I could use? I'd love to try this, but you have a script only, and I'm not a programmer at all! Can I request a complied(?) .pm file, ready to use, like the other plugins available? If there's something I need to do apart from just copying it into my plugins directory, please let me know.

Thanks

Pankaj

Craig, James (IT)
2006-01-26, 02:47
Hi Pankaj,
Unfortunately the followiTunes script is only written for Windows!
I think it also does the reverse of what you want - ie it makes
SlimServer play whatever iTunes is playing.

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

pankaj
2006-01-26, 06:45
Hi James

Thanks for the reply. My comments:

1) I use Windows XP Pro Sp2
2) The plug-in might work: I stream to the AE from iTunes; SlimServer mirrors my selection, and displays that on the SB3. Isn't that what I need?

Pankaj

Craig, James (IT)
2006-01-26, 08:03
Ah sorry, I had somehow got the impression you were a mac user from the
reference to airport!

I suppose it is what you want then, although the SB will actually be
playing music!

Therefore if you want to run the script you would need to install
ActiveState Perl (which is free),
Then you'd just run it - double click should work after the Perl
installation.

I must warn you I never spent a lot of time testing it!

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

jasenj1
2006-01-26, 09:12
Couldn't you do this the other way around? That is, use iTunes to play the stream that SlimServer is generating?

Connect iTunes to the SlimServer stream http://ip.address:9000/stream.mp3

Then use the Squeezebox or the Web interface to control what is being played.

I think this should work for everything except music purchased from the iTunes Music Store - to play those through SlimServer you'll need to burn to CD and then import from the CD. A pain, but at least it's doable.

(I don't have my Squeezebox yet - it's on the truck to be delivered today! But I listen to my home library from work through iTunes and I think it works similarly to what you're trying to do.)

- Jasen.

pankaj
2006-01-26, 23:04
Jasenj1

Thanks for your suggestion.

I had tried what you suggested, however the moment you open the SlimServer stream in iTunes, you also have to change the Music Player in SlimServer (on the right pane) to iTunes as well, thus losing control of the SB3. So, in effect, you have two players now playing, each independent of each other. And only the SB3 'player' can be displayed/controlled on the physical SB3 device.

If you read 'Remote Streaming' in Help, in the SlimServer software, you'll see what I mean.

Pankaj

crapulent
2006-01-26, 23:24
This won't help, but I've used the Mac program Airfoil to redirect any audio
from my Mac to an Airport Express. Works real nice with Pandora.com.

On 1/26/06, pankaj <pankaj.22a52z (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
>
> Jasenj1
>
> Thanks for your suggestion.
>
> I had tried what you suggested, however the moment you open the
> SlimServer stream in iTunes, you also have to change the Music Player
> in SlimServer (on the right pane) to iTunes as well, thus losing
> control of the SB3. So, in effect, you have two players now playing,
> each independent of each other. And only the SB3 'player' can be
> displayed/controlled on the physical SB3 device.
>
> If you read 'Remote Streaming' in Help, in the SlimServer software,
> you'll see what I mean.
>
> Pankaj
>
>
> --
> pankaj
> ------------------------------------------------------------------------
> pankaj's Profile: http://forums.slimdevices.com/member.php?userid=3553
> View this thread: http://forums.slimdevices.com/showthread.php?t=20390
>
>

Craig, James (IT)
2006-01-27, 02:37
> This won't help, but I've used the Mac program Airfoil to redirect
any audio from my Mac to an Airport Express. Works real nice with
Pandora.com.

Well, it would help if Pankaj had a Mac - we're getting close!

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

Craig, James (IT)
2006-01-27, 02:52
Ah ha!

http://www.nanocrew.net/2005/07/23/justeport-02/
windows tool to redirect to Airport Express - written by the infamous
DVD Jon...

http://www.nat32.com/nat32e/htm/radio.htm
windows tool for capturing soundcard output

add the two together....

Run Softsqueeze on the Airport Express host.
capture the output & redirect to Airport Express
Control Softsqueeze from any Squeezebox using Shadowplay plugin!

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

pankaj
2006-01-27, 03:28
Thanks very, very much for the suggestions, folks...

I'd try the justporte and nat32 ideas, James, but I don't believe I have the skills, capability or knowledge to pull it off. I'd rather just find a plug-&-play solution, or, I'll wait till you can get round to releasing your FollowiTunes program as a ready-to-go plugin! (I can offer to 'test' it for you, as an actual user!)

I'm currently d/l the Active State Perl as you suggested, but to be honest, I don't have a clue as to what I'm doing!!!

Pankaj

Craig, James (IT)
2006-01-27, 03:35
Yes, that did sound quite tricky. Also it doesn't seem to be possible to
capture the sound indefinitely, a time period is required.

Anyway, followiTunes is done as-is:
it's not supposed to be a plugin, because your SlimServer might not be
on the same machine as iTunes.

Really, installing Perl and double clicking on the script should be all
you need to do.

Give it a go and I suspect you'll realise it's not quite what you want!

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

pankaj
2006-01-27, 04:03
Hi James

Could you possibly let me know which file I need to d/l from the Active State site? For Win XP? I did d/l and install something.msi which opens in a DOS window, and then I don't know what to do next :(

Step-by-step instructions would help a great deal, whenever you have a moment!

Thanks

Pankaj

Craig, James (IT)
2006-01-27, 04:31
The MSI should open in Windows installer and do everything
automatically.
http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7
..815-MSWin32-x86-211909.msi
If you're on XP I think you should already have the right version of
Windows Installer.

I wouldn't recommend the .as package as I used this last and it wasn't
as complete as the MSI.

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

pankaj
2006-01-27, 07:43
Sorry, I should have clarified... I have the Perl installed. Now what?

Craig, James (IT)
2006-01-27, 08:04
Ah! OK In theory...

Open up the script in notepad.
Firstly is the SlimServer host the same as your SlimServer host?
If not, you need to replace the $server_address variable with the
correct IP address.
Secondly, you need to enter the MAC Address of the squeezebox to control
in the $player variable.

Save the changes and double click the script.
You'll get the DOS box come up and it should say something about
connecting to iTunes (you should be running this on the iTunes host),
iTunes will open if it wasn't already running.

Then try playing a track in iTunes that SlimServer also knows about...

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

Craig, James (IT)
2006-01-27, 08:06
Correction !

> Firstly is the SlimServer host the same as your iTunes host?
> If not, you need to replace the $server_address variable with the
> correct IP address.

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

jasenj1
2006-01-27, 11:41
Hmmm... I was hoping you could just use the "synchronize" feature to synch the MP3 stream (iTunes/Airport Express) and the Squeezebox. I can't find that option on my SlimServer now.

(My SB3 is now set up at home, listening to the MP3 stream at work now.)

Odd that you can't sync the two.

- Jasen.

pankaj
2006-02-01, 12:44
Hi James

You're quite a genius... FollowiTunes works EXACTLY as you said it would!!! Thank you.

My observations, after an hour of testing, if it helps:

1) I followed your instructions, and the script worked first time!
2) iTunes plays/runs about 3 seconds earlier than the SB3. Thus the display on the SB3 is fractionally delayed compared to iTunes (no big deal, BTW)
3) Is there a way of adjusting for this delay within the script? Any line of code that can be tweaked by a different value?
4) Ideal would be to actually control iTunes via the SB3! Right now, all the SB3 does is display the track. No control. Asking for too much, I hear you say ;)
5) The audio quality of the SB3 is superior to the Airport Express (my 2 pennies worth!).

So, either you write control into the script, or I buy another SB3 next I travel!!!

Thanks very much for your help.

Pankaj

Craig, James (IT)
2006-02-02, 05:23
Wow. I'm impressed it works!

Unfortunately I don't think there's anything to be done about the delay
- the script checks what iTunes is doing once a second already, so I
guess most of the delay comes in from SlimServer cueing up the file and
any buffering done in the Squeezebox.

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

dancarne
2006-04-28, 21:16
Where do I save the followiTunes script to. Do I put it under the Plugins folder?

Thanks,

Dan

Craig, James (IT)
2006-05-02, 05:34
> Where do I save the followiTunes script to. Do I put it under the
Plugins folder?


If I recall correctly the script can be saved anywhere.
It's not a conventional plugin and uses the http interface of SlimServer
to control playback.

James
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.