Undocumented? iTunes integration

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Mariachi
Poor
Poor
Posts: 6
Joined: Sun Sep 13, 2015 11:42 am

Undocumented? iTunes integration

Post 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)
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Undocumented? iTunes integration

Post 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..
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Mariachi
Poor
Poor
Posts: 6
Joined: Sun Sep 13, 2015 11:42 am

Re: Undocumented? iTunes integration

Post by Mariachi »

Also their lounge station is great for docked music, especially with the low hubbub of BGS.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: Undocumented? iTunes integration

Post 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.
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
Post Reply