Contribute
Register

Mac Audio - my Hackintosh based Music Player

Status
Not open for further replies.
I have a solution for the landscape cover...

There is an Apple framework called Scripting Bridge which is compatible with iTunes. I wrote a small app (for fun :p) called iTweetMiTunes which tweets the music that iTunes is playing along with an upload of the album art using this framework about six months ago.

The best thing about it is that you do not need to poll to pick up a song change. This means you could set up nginx compiled with NGiNX_HTTP_Push_Module to push the song that is playing to a webpage being shown on Safari on the iPod touch via JavaScript. This way you can push a JSON object containing the song's name, artist, etc. as well as the album art base64 encoded (shouldn't be too difficult to do as you get access to the raw image via Scripting Bridge) which is then decoded by JavaScript on the webpage when a song is pushed to it via nginx.

Set the number of items in the nginx queue to 1 (you don't need a back history) then when you refresh the page it'll get the last event.

Let me know if you want me to work on this and I'll see what I can do :)

EDIT: I got bored and started building it anyway :p
 
I have a solution for the landscape cover...

There is an Apple framework called Scripting Bridge which is compatible with iTunes. I wrote a small app (for fun :p) called iTweetMiTunes which tweets the music that iTunes is playing along with an upload of the album art using this framework about six months ago.

The best thing about it is that you do not need to poll to pick up a song change. This means you could set up nginx compiled with NGiNX_HTTP_Push_Module to push the song that is playing to a webpage being shown on Safari on the iPod touch via JavaScript. This way you can push a JSON object containing the song's name, artist, etc. as well as the album art base64 encoded (shouldn't be too difficult to do as you get access to the raw image via Scripting Bridge) which is then decoded by JavaScript on the webpage when a song is pushed to it via nginx.

Set the number of items in the nginx queue to 1 (you don't need a back history) then when you refresh the page it'll get the last event.

Let me know if you want me to work on this and I'll see what I can do :)

EDIT: I got bored and started building it anyway :p

blackthund3r,

Thank you for your effort! Please let me know, if your solution is ready for testing.

Many thanks, I'm looking forward for the result.

MacTester
 
blackthund3r,

Thank you for your effort! Please let me know, if your solution is ready for testing.

Many thanks, I'm looking forward for the result.

MacTester
So I did a bit if googling of blackthund3r post, and after working out that scripting bridge is similar to apple script, I then found the below.

It sets artwork as desktop background image, you could then use your remote control app to view the desktop. Advantage is you don't need a web server, and can control the computer at same same time. Disadvantage is menu bar and dock (can be hidden) are overlayed on the image

http://dougscripts.com/itunes/scripts/ss.php?sp=arttodesktop
 
It works :) I'm just cleaning the code up then I'll get some binaries and instructions up :)

I haven't done any autostart scripts or frontend styling yet but the actual code appears to work :)

EDIT: Try this: http://cl.ly/2U1C252R3n02

It's SERIOUSLY hacky and needs a bit of manual set up for now but there's a sweet readme in there :) Have fun, and I hope it works!

- - - Updated - - -

So I did a bit if googling of blackthund3r post, and after working out that scripting bridge is similar to apple script, I then found the below.

It sets artwork as desktop background image, you could then use your remote control app to view the desktop. Advantage is you don't need a web server, and can control the computer at same same time. Disadvantage is menu bar and dock (can be hidden) are overlayed on the image

http://dougscripts.com/itunes/scripts/ss.php?sp=arttodesktop

That's a sweet idea :) There is, however, the problem of how large the artwork will be when viewed over VNC on the iPod. Still, it seems much *cleaner* than my solution!! :p
 
Wow, this is beautiful, really good stuff!

I'm going to second this. It's one of the reasons I wanted to contribute the artwork code; the hardware is absolutely beautifully finished! If that was >£80 on Amazon I wouldn't be surprised. It's a quality piece of engineering. Nice work MacTester!
 
Status
Not open for further replies.
Back
Top