maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Command line MediaPlayer launch without opening any file. (https://talk.maemo.org/showthread.php?t=82749)

bozoid 2012-03-03 16:41

Command line MediaPlayer launch without opening any file.
 
Hi,

Anyone knows how I can launch MP (media player) using command line?
I saw a dbus command that requires a file to open (not what I want).
Tried simply doing /usr/bin/mediaplayer as root & user but both won't work.

I have another MP widget holding on to MP's current playlist. Love it lots coz it still holds the playlist across reboots. Am scripting some stuff to auto bring up MP on certain events.

So, if possible, I'd love to just do /usr/bin/mediaplayer.
Searched around but could not find the answer...

Any ideas please?

Best regards,

bozoid

droll 2012-03-05 14:03

Re: Command line MediaPlayer launch without opening any file.
 
button wear and tear and battery consumption is a fact of life with the n900. krrk krrrk krrk arrrhhh! :P

droll 2012-03-05 18:04

Re: Command line MediaPlayer launch without opening any file.
 
dbus-send --print-reply --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:"mediaplayer"

for the benefit of those looking for an answer, here is a generic solution that'll work for any application that hildon recognizes. you don't even need to know the path of the binary :)

bozoid 2012-03-08 17:21

Re: Command line MediaPlayer launch without opening any file.
 
hoarh! :D

dbus-send --session --type=method_call --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.open_mp_now_playing

that's another one i found from open media player thread.

Addison 2013-07-21 18:56

Re: Command line MediaPlayer launch without opening any file.
 
Quote:

Originally Posted by bozoid (Post 1176627)
hoarh! :D

dbus-send --session --type=method_call --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.open_mp_now_playing

that's another one i found from open media player thread.

Thanks. This works on Maemo 4 as well.

Is there a way to open a video and are there any special options that can be done with Mediaplayer using the command line?

Addison 2013-07-21 19:07

Re: Command line MediaPlayer launch without opening any file.
 
I'm asking because I would like to try and open a video file and reduce the fps and lower the audio quality while it's streaming if possible.

Cheers.


All times are GMT. The time now is 04:07.

vBulletin® Version 3.8.8