Page 1 of 1

Undocumented? iTunes integration

Posted: Mon Sep 14, 2015 11:59 pm
by Mariachi
I’ve got the iTunes integration working, had to add playlists named “Oolite-Docked” and “Oolite-Inflight”

I couldn’t find this documented anywhere, those names came up as errors in the log.

Is there volume/pause/next/prev control available in-game? If not, I’ll look into it — should be simple enough to map a key to trigger a shell command to talk to iTunes, hopefully that’s within OXP capabilites. (If so, integration with xmms/rhythmbox/amarok/etc should also be pretty simple.)

(P.S. If I may recommend an in-flight channel: http://somafm.com/missioncontrol/ - overlays ambient music with real NASA radio chatter)

Re: Undocumented? iTunes integration

Posted: Tue Sep 15, 2015 12:50 am
by Diziet Sma
Mariachi wrote:
Is there volume/pause/next/prev control available in-game?
No idea, (I use Linux or Windoze) but it seems unlikely.
Mariachi wrote:
If not, I’ll look into it — should be simple enough to map a key to trigger a shell command to talk to iTunes, hopefully that’s within OXP capabilites.
OXPs can't directly map keys.. you'd need to edit the core code and recompile, and keybinding is something that really ought be be discussed with the devs before proceeding (they're fiercely protective of the few remaining unallocated keys!). You may be able to do something via the 'b' and 'n' equipment keys, though.
Mariachi wrote:
(If so, integration with xmms/rhythmbox/amarok/etc should also be pretty simple.)
Still unlikely, I suspect.. so far as I understand it, iTunes only works because Mac Oolite can access iTunes hooks built into OSX. Those hooks don't exist for other players and operating systems. It would be very cool to have such integration for other systems, though (I vote for VLC player).

Mariachi wrote:
(P.S. If I may recommend an in-flight channel: http://somafm.com/missioncontrol/ - overlays ambient music with real NASA radio chatter)
Ah yes, I quite like that channel..

Re: Undocumented? iTunes integration

Posted: Tue Sep 15, 2015 7:51 am
by Mariachi
Also their lounge station is great for docked music, especially with the low hubbub of BGS.

Re: Undocumented? iTunes integration

Posted: Tue Sep 15, 2015 2:20 pm
by Lone_Wolf
Diziet Sma wrote:
Mariachi wrote:
Is there volume/pause/next/prev control available in-game?
No idea, (I use Linux or Windoze) but it seems unlikely.
Mariachi wrote:
If not, I’ll look into it — should be simple enough to map a key to trigger a shell command to talk to iTunes, hopefully that’s within OXP capabilites.
OXPs can't directly map keys.. you'd need to edit the core code and recompile, and keybinding is something that really ought be be discussed with the devs before proceeding (they're fiercely protective of the few remaining unallocated keys!). You may be able to do something via the 'b' and 'n' equipment keys, though.
Mariachi wrote:
(If so, integration with xmms/rhythmbox/amarok/etc should also be pretty simple.)
Still unlikely, I suspect.. so far as I understand it, iTunes only works because Mac Oolite can access iTunes hooks built into OSX. Those hooks don't exist for other players and operating systems. It would be very cool to have such integration for other systems, though (I vote for VLC player).
I doubt it will happen.

JS does have mechanisms for doing such like reading / writing files, executing commands etc, but oolite doesn't implement them.

Currently all an oxp can do is changing things in the running instance of Oolite.
If it were possible to execute commands, what stops an oxp from deleting all user files, instaling viruses, keyloggers, trojan etc. ?

Keeping oxps restricted to changing oolite running instance only saves us a lot of headaches.