[maemo-developers] Launching mediaplayer from command line in N900

From: Timo Härkönen timop.harkonen at gmail.com
Date: Fri Apr 9 09:40:07 EEST 2010
Hi

2010/4/9 praveen koduru <prawin1111 at gmail.com>

> Hi Timo,
>
> thanks for the quick reply.
>
> But I am not able to open the mediaplayer on N900.
> dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
> com.nokia.mediaplayer.mime_open string:file:///$1
>
> dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
> com.nokia.mediaplayer.mime_open string:"
> file:///home/user/MyDocs/.sounds/Total Fantasy.mp3"
>

Try

dbus-send --session --print-reply ----type=method_call
--dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayler.mime.open string:"file:///path/to/your/file.mp3"

BR

-Timo


>
> doesnt gave errror,, but media player is not launched.
>
> -Praveen
>
>
>
> On Fri, Apr 9, 2010 at 11:08 AM, Timo Härkönen <timop.harkonen at gmail.com>wrote:
>
>> Hi
>>
>> 2010/4/9 praveen koduru <prawin1111 at gmail.com>
>>
>>  Hi
>>>
>>> Can anybody suggest me how to launch media player from command line?
>>> I want to play an mp3/mp4 file through N900 media player. How can I do
>>> that thorugh command line?
>>> Do I need to send any dbus command to the /usr/bin/mediaplayer??
>>>
>>
>> Have a look at
>> http://wiki.maemo.org/Phone_control#Open_file_in_media_player
>>
>> BR
>>
>> -Timo
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100409/6c2f128d/attachment.htm>
More information about the maemo-developers mailing list