View Single Post
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#163
Originally Posted by qwerty12 View Post
Yeah , I saw that one too. I wonder if there is a remote control program for mplayer that doesn't rely on keypresses (in headset-control, I make it use dbus-send which is much more reliable than xte/keypresses and works when locked)
Can you tell me how pause mplayer using dbus?
May be use mplayer in slave mode and control via pipe.
http://www.mplayerhq.hu/DOCS/tech/slave.txt
I made fifo /tmp/m and start mplayer from console
mplayer -input file=/tmp/m -slave -quiet <mp3 file>
Now
echo pause >/tmp/m
pause mplayer

Last edited by svs57; 2008-07-10 at 09:37.
 

The Following User Says Thank You to svs57 For This Useful Post: