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

From: praveen koduru prawin1111 at gmail.com
Date: Fri Apr 9 15:05:15 EEST 2010
Hi Timo,

Thanks for the help.

I am able to launch the application now.

I am trying to launch it from putty(WiFi) instead of tools-->shell prompt.

-Praveen

On Fri, Apr 9, 2010 at 4:15 PM, Timo Härkönen <timop.harkonen at gmail.com>wrote:

> Hi
>
>  2010/4/9 praveen koduru <prawin1111 at gmail.com>
>
>> This also not working. whereas I am able ot open browser and other
>> applications except mediaplayer.
>>  Any suggestions or way to debug.
>>
>
> You could try using dbus-monitor to see what's going on. Put it in the
> background and forward it's output to some file.
>
> dbus-monitor > debugfile.txt &
>
> When you're done bring it back up and terminate it
>
> fg
> [ctrl+c]
>
> Notice that the dbus-monitor produces quite alot of output.
>
> Otherwise if you're executing the command as user it should work. At least
> I'm out of ideas.
>
> -Timo
>
>
>>
>> -Praveen Koduru
>>
>>   On Fri, Apr 9, 2010 at 12:10 PM, Timo Härkönen <
>> timop.harkonen at gmail.com> wrote:
>>
>>> 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/4bbf9b42/attachment.htm>
More information about the maemo-developers mailing list