[MPlayer-users] Mapping DVD drive eject and forward buttons

matthieu castet castet.matthieu at free.fr
Fri Aug 5 16:55:38 CEST 2005


RC wrote:
> On Thu, 04 Aug 2005 00:18:04 +0200
> "Gert van Biljon" <gertvb at webmail.co.za> wrote:
> 
> 
>>With Mplayer I seemingly cannot use these two buttons, my
>>biggest need is the eject button to stop the playback of a
>>DVD.
> 
> 
> Hmm... I've never tried it, but if you script a program (like
> http://cdctl.sourceforge.net/) to unlock the drive tray, the eject
> button might function even while the DVD is in-use (mplayer would
> probably hang, but who knows).
> 
> 
>>Is it possible to have mplayer react to input from any of
>>these two buttons? 
> 
> 
You can cath eject event of some player without unlocking the drive.
Try http://castet.matthieu.free.fr/download/statf.c, compil if with 
-DDEBUG, pass your drive device, and may be you could catch the eject 
event...


Matthieu




More information about the MPlayer-users mailing list