Topic: Using menu xml or adeskbar to control cdrom tray and playback

Ive been experimenting with trying to incorporate more one click commands on my desktop for actions that I do repeatedly.
This is by no means a radical innovation, but i like simple options.
Ive been using mplayer alot. There are some great front ends for mplayer that offer alot of control (smplayer),
but i like the simplicity of mplayer with the minimal blue skin.
Mplayer has alot of command line options that include the ability to play files repeatedly in random order from different directories, and even specific radio frequency playback with the right hardware. (see man mplayer)
Here is a simple  one click option using adcomps adeskbar for dvd playback with mplayer....

I created 3 launchers (on the right) for simple dvd playback.
one for playback (command= mplayer dvd://cdrom) , one for cd tray open (command= eject), one for cd tray close (command eject -t).

The same commands can be used in the menu xml...

               
               

<item label="Open Tray">
            <action name="Execute">
                <execute>
                    eject
                </execute>
            </action>
        </item>
               <item label="Close Tray">
            <action name="Execute">
                <execute>
                    eject -t
                </execute>
            </action>
        </item>
               <item label="Play DVD">
            <action name="Execute">
                <execute>
                    mplayer dvd://cdrom
                </execute>
            </action>
        </item>

Like i said its not a radical innovation by any means.  Most people don't mind navigating through a couple windows or files for playback,
but yeah...i like simple options.

Last edited by illumin8 (2010-03-13 08:11:43)

Diaspora    identi.ca     Jamendo
God never ends anything on a negative; God always ends on a positive. -- Edwin Louis Cole --

Re: Using menu xml or adeskbar to control cdrom tray and playback

oops I've written on the wrong thread... but a useful one thanks

Last edited by mangere (2010-01-10 11:13:33)