Player APIs

Posted by: rearviewmirror

Player APIs - 20/02/2002 17:05

Are there any public APIs for the player? For e.g., can I start the player with a particular mp3 or m3u file?
Thanks,
~Yogi
Posted by: tfabris

Re: Player APIs - 20/02/2002 17:21

For what you're asking to do, yes, more or less. You can send commands to the player, in a variety of different ways, to get it to do things. This is documented on the developer info section of www.riocar.org .

However there is not a direct "API" to really hook your own software directly into the player software under the linux operating system. All we can do is send certain commands to the player software and overlay the screen. But you'd be surprised what you can accomplish with just this.

I think maybe you didn't really mean to say "API" in your post.
Posted by: rearviewmirror

Re: Player APIs - 20/02/2002 17:35

I was looking for something like the serial port command '#' where the player plays the given FID; so that I can play FID 'n' by calling, say ./player #n (or something to that effect), programmatically.

~Yogi
Posted by: tfabris

Re: Player APIs - 20/02/2002 17:38

There's probably a way to stuff that serial command into the serial port strean without having to exit the player software. That's already part of the Hijack kernel, so you might want to look into how he's doing it.
Posted by: rearviewmirror

Re: Player APIs - 20/02/2002 17:41

Will do.

Thanks,
~Yogi
Posted by: mlord

Re: Player APIs - 21/02/2002 11:08

I'll be adding something like this to the ir_translate stuff someday soon, along with the sony-stalk interface support. This means you'll be able to do button translations that send to the IR input, stalk input, and/or serial input streams.

-ml