OurTunes

Download lastest version here: (follow java rules when compiling older versions)
Posted Revisions: Version 3 Host.java
Fix: GUI element to ask for library name. This will pave the way for a fully GUI controlled application.
Fix: code no longer requests IP address. this information is found automatically.
Fix: the java code will no longer loop requests to itself. They are always routed to iTunes (either on client computer or on another computer)
Todo: limit the service advertisement to client computer only (instead of entire .local domain)
Todo: byte data needs to be processed through a BlockingQueue. This gives more options for processing data.
Todo: Seems like there's a thread lock problem, but this has low priority.
Todo: contributions made from saveourtunes forum .

Previous Versions:

V2 Host.java
V1 Host.java


Assorted project files and links:

login request sample
iTunes 7 content-codes
iTunes 4-6 content-codes and protocol description

Tips to running the Pass-through code:

  1. Download the JmDNS files from here. The strangeberry Rendezvous is good for listening to requests but doesn't advertise the services correctly.
  2. After downloading the JmDNS jar, be sure to set the classpath (or unpackage the jar file using any zip tool) for future use.
  3. I'd discourage you from trying to stream an mp3 right now in the Pass-Through. It's crashing the program; a log file check shows that mp3s are being streamed across udp and not across tcp. Hurrah! However, need to speed up data transfer.
  4. Sorry about the messy coding! It's quick, it's dirty, and the file contains all the classes needed to run the Pass-Through host!

Usage Instructions:

  1. Designated a "client" computer and a "server" computer (in same subnet)
  2. compile/run java on "client"
  3. with "client'' iTunes, access a "server" iTunes.  All requests are logged to a text file (in same directory as java code), but the file is overwritten with each new request.

 

Any notes? This idea looks fairly feasible for replacing ourTunes... Submit comments to the saveourTunes forum.