[maemo-developers] Starting Media Player by clicking a button

From: Mika Yrjölä exploderi at gmail.com
Date: Sat Dec 15 15:50:12 EET 2007
On Dec 14, 2007 11:25 PM, Verena <Verena31 at gmx.net> wrote:

> - When a button is pressed, a specific playlist (audio)-file should be
> opened in the media player.
>
>
> Sure, the first part is to add a callback for the buttons, but how do I
> open the file (and with it the media player. It should do the same as a
> double click on the file would)?
> Is it even possible to do do it this way?

One solution candidate that comes to my mind is to use libhildonmime.
It has hildon_mime_open_file function, which should open the file in
Media Player, assuming that the MIME type of the file has been
registered by the Media Player as a supported one.

More information about the maemo-developers mailing list