Contribute
Register

Mac Audio - my Hackintosh based Music Player

Status
Not open for further replies.
Joined
Jun 1, 2011
Messages
27
Motherboard
Gigabyte GA-Z77-DS3H Rev 1.0
CPU
Intel Core i5 3570k @ 4.4GHz
Graphics
MSI GeForce GTX 560 Ti Hawk
Mac
Classic Mac
  1. iBook
Mobile Phone
  1. Android
  2. iOS
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
 
Joined
Dec 15, 2011
Messages
907
Motherboard
Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
CPU
i5-2500K, i3-3225, i7-3770S
Graphics
HD 3000, HD 4000, HD 5000
Mac
  1. Mac mini
Classic Mac
  1. iMac
  2. Power Mac
Mobile Phone
  1. iOS
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
 
Joined
May 27, 2012
Messages
767
Motherboard
DQ77KB
CPU
i7-3770S
Graphics
HD4000
Mac
  1. MacBook Air
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. iOS
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
 
Joined
Jun 1, 2011
Messages
27
Motherboard
Gigabyte GA-Z77-DS3H Rev 1.0
CPU
Intel Core i5 3570k @ 4.4GHz
Graphics
MSI GeForce GTX 560 Ti Hawk
Mac
Classic Mac
  1. iBook
Mobile Phone
  1. Android
  2. iOS
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
 
Joined
Jun 1, 2011
Messages
27
Motherboard
Gigabyte GA-Z77-DS3H Rev 1.0
CPU
Intel Core i5 3570k @ 4.4GHz
Graphics
MSI GeForce GTX 560 Ti Hawk
Mac
Classic Mac
  1. iBook
Mobile Phone
  1. Android
  2. iOS
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!
 
Joined
May 27, 2012
Messages
767
Motherboard
DQ77KB
CPU
i7-3770S
Graphics
HD4000
Mac
  1. MacBook Air
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. iOS
Status
Not open for further replies.
Top