Thread
:
Stopping music/media player when headset unplugged
View Single Post
josetaza
2009-12-30 , 09:42
Posts: 3 | Thanked: 4 times | Joined on Dec 2009 @ Netherlands (Eindhoven)
#
38
hi there,
I did some dbus-monitoring on the N900 and found that the following command pauses the media player:
dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.pause
I made (a quick) change in headphoned and it works.
I also tried with libplayback, but didn't succeed. I think that library should be used when you are creating your own player and is not really for controlling other players. Anyway, that is just my guess, because I can't get much from the documentation...
Quote & Reply
|
The Following 3 Users Say Thank You to josetaza For This Useful Post:
adrianp
,
OVK
,
thp
josetaza
View Public Profile
Find all posts by josetaza