![]() |
Is it that simple??? media player control, with d-bus scripts on QBW
when I reviewed some d-bus script, I found this one: http://wiki.maemo.org/Phone_control#...rently_playing
dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.pause and then I thought that would be helpful if you could with similar scripts to control the music through QBW ... then only i replaced "pause", with appropriate command ... AND ITWORKS! : D here's the script: PLAY: dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.play PAUSE: dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.pause STOP: dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.stop PREVIOUS: dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.previous NEXT: dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.next and you could rearrange it on your desktop in a manner so it would you be comfortable if you using it with your one hand! :D great, isn't it?? :) but now..... it would be cool if i knew a script for Fast Forward.... Rewind.... or best thing it would be if it could skip or go back 5-10 sec.... (if you press a widget for a longer time, it will be shown a "desktop menu"...) and another thing....: Pause cmd only pauses the song... it won't continue... (play cmd starts from beginning of the song....) SO PEOPLE... if you could help me with finding a proper scripts (for missing ones), i would be grateful! :) P.S. and i found a way to make a PHONE APP icon (widget in this case) bigger! ;) THX No!No!No!Yes! for QBW ;) |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
mmmmm??? any ideas?? :)
|
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Quote:
Code:
dbus-send --print-reply --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.set_position int32:1 int32:5 Code:
dbus-send --print-reply --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.set_position int32:1 int32:-5 http://maemo.org/api_refs/5.0/5.0-fi...r-set-position explains the meaning of the first int32 argument. Code:
dbus-send --print-reply --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.get_position |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx thx :) :) :) :) :)
|
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Quote:
Code:
dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.resume Code:
#!/bin/sh |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
oh.... i found a "resume....
but then i have 2 buttons (widgets) for pause, and resume... could i implement all in one? and tell me... for what do i need a current state that you provide me above??? THX ;) |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
This looks good. Would it be possible to rotate the queenbeecon widgets by 90 degrees so that we could have a portrait desktop containing info on various system states, and music controls?
|
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Quote:
and hey... there's a some brainstorming for QBW developers: can they make a rotate output function???? O_o :) |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Quote:
I'll give it a thought!!! |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Thanks man! ;)
|
Re: Is it that simple??? media player control, with d-bus scripts on QBW
@neboja: you mentioned in your first post that you found a way to make a PHONE APP icon (widget in this case) bigger. Could you please advise how? This relates to a brainstorm session I opened
http://talk.maemo.org/showthread.php?t=54919 Thanks in advance. |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Quote:
and that you just put a cmd that lunches a phone. AND you just put a image into it, and there it is... but check the QBW thread for instructions of how to do that ;) and the cmd for bringing a phone app you can find on wiki ;) |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Quote:
Code:
dbus-send --type=method_call --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:"<application name here>" Example for launching the image viewer: Code:
/usr/bin/dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:image-viewer |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Thanks for all the replies!
|
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Been tweaking around with this a lot and trying to get an all-in-one type thing set up for FM transmitter. Just wondering if anyone knows dbus command to get current song name (if that's at all possible.. and if not.. an alternative way to do it?)
|
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Quote:
|
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Quote:
Code:
signal sender=:1.44 -> dest=(null destination) serial=562 path=/com/nokia/mafw/renderer/gstrenderer; interface=com.nokia.mafw.renderer; member=media_changed Not tried myself, though! Let me know how/if you managed. |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Hi, is there a mafw dbus call to just add a new song in the media player? I went though http://wiki.maemo.org/Phone_control but the dbus call mentioned there for "Open file in media player" opens the media player app and plays it as well.
Is there a way to only add a certain song and not invoke the media player and play it? |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Ok, I monitored the dbus commands sent by MediaBox.
Apparently there's a play_uri member in the com.nokia.mafw.renderer interface that takes the file path as the argument. Using this, even if the song still plays, the media player doesn't get invoked. |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Sticking to the subject, is there a way to catch (via Dbus) when a phone call ends and a song will resume?
That way we can substitute Headphone Daemon feature. Not that the application is bad or anything but it would be nice to have it in QWB as well (on this occasion thanks to Thomas Perl & No!No!No!Yes! for their apps). Thanks! |
Re: Is it that simple??? media player control, with d-bus scripts on QBW
Quote:
|
All times are GMT. The time now is 21:55. |
vBulletin® Version 3.8.8