Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

solyd

macrumors regular
Original poster
Oct 15, 2007
181
0
I just had an idea after reading the thread on How to hide porn on an iPod touch/iPhone.

It would be great if someone can create an application that integrates itself with iPod's internal music listing and the Apache application to generate web listings of what's on the iPod. This way, we can connect to a wifi, give someone (far away) the iPod's IP address, and they can remotely browse through the library on our iPod and even stream/download the selections.



P.S. Does anyone know how applications are created on the iPod? Perhaps there are some documentations laying around on the web?
 
I just had an idea after reading the thread on How to hide porn on an iPod touch/iPhone.

It would be great if someone can create an application that integrates itself with iPod's internal music listing and the Apache application to generate web listings of what's on the iPod. This way, we can connect to a wifi, give someone (far away) the iPod's IP address, and they can remotely browse through the library on our iPod and even stream/download the selections.

it's cake if someone can decode the ipod's music database. Short of this you'd need to read the ID3 tags out of each mp3 since the mp3 file names are things like FKEQ.mp3.

Get me code to decode the database and I'll even write the rest :)
 
it's cake if someone can decode the ipod's music database. Short of this you'd need to read the ID3 tags out of each mp3 since the mp3 file names are things like FKEQ.mp3.

Get me code to decode the database and I'll even write the rest :)

I thought the database was just a huge xml file. Either way, it's obviously been done before if there are other programs out there that can access the iPod.
 
Perhaps if someone can get in touch with Tuaw.com's Erica Sadun, she might know how to read iPod's song listing; considering she's the author of the SendSong Application.
 
hmm...didn't realize it had been done for the touch. Okay, gimme a day :)

If you can actually do this, I <3 you! Lol.

Let me know if you need any help with anything, PHP and whatnot.
 
If you can actually do this, I <3 you! Lol.

Let me know if you need any help with anything, PHP and whatnot.

How about helping me find a decoding script in PHP for iTunesDB? :)

/var/root/Media/iTunes_Control/iTunes/iTunesDB is very much encoded and I believe that this has the names/etc of all the songs.


[edit] found a really good page describing the iTunesDB format. Might just write a decoder myself.
 
LOL, most people want to go the other way- access remote music files from your iPod Touch, not vice versa. ;)

But this is pretty cool. And the other way has already been solved-
 
How about helping me find a decoding script in PHP for iTunesDB? :)

/var/root/Media/iTunes_Control/iTunes/iTunesDB is very much encoded and I believe that this has the names/etc of all the songs.


[edit] found a really good page describing the iTunesDB format. Might just write a decoder myself.

Can you paste the link here? I took a look at the iTunesDB file last night, wasn't exactly plaintext lol.
 
http://ipodlinux.org/ITunesDB#Data_Object

I have the PHP code done that extracts all the info I need. Now working on the code to dump that to an SQL database then will write the actual app.

Very nice. Should probably include an internal refresh method where only the iPod user can refresh the database, just so a random person doesn't constantly try to update the listing and crash your iPod.
 
Very nice. Should probably include an internal refresh method where only the iPod user can refresh the database, just so a random person doesn't constantly try to update the listing and crash your iPod.

already done, although slightly differently. The code checks the last modified date on the iTunesDB file and only runs if it's been modified.

It takes half a second or so to run.
 
already done, although slightly differently. The code checks the last modified date on the iTunesDB file and only runs if it's been modified.

It takes half a second or so to run.

That works too :) When will I be able to get my hands on an alpha release? :p

I just noticed, there is no SQL database support for the iPod. Probably better to just have it dump to an xml file and read from there.
 
That works too :) When will I be able to get my hands on an alpha release? :p

I just noticed, there is no SQL database support for the iPod. Probably better to just have it dump to an xml file and read from there.

Yes there is. sqlite is pre-installed on the iphone and touch. Most of apple's apps use it.

As for a release, I'm doing the interface right now. The iTunes database is being parsed successfully (takes about 15 seconds on mine with 600 songs), the code to get the listings from the iTunes database is done.

I'm working on the code to browse the file system now then have to do the interface.

Not sure, tonight or monday.
 
Awesome, looking forward to seeing it. 15 seconds is not too bad, since the app will automatically check for when changes have been made to refresh.

What would be funny is to tie everyone's iPod Touch's together into a massive P2P streaming network...so when you buy 1 iPod, you are in effect buying everyone else's too (at least their content.) ;)
 
Yes there is. sqlite is pre-installed on the iphone and touch. Most of apple's apps use it.

As for a release, I'm doing the interface right now. The iTunes database is being parsed successfully (takes about 15 seconds on mine with 600 songs), the code to get the listings from the iTunes database is done.

I'm working on the code to browse the file system now then have to do the interface.

Not sure, tonight or monday.

Sounds great. Now that you've got the listing complete, it should be fairly fast. I can help you if you want, we just need to figure out a way to update the codes for 2 people to work on it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.