[MPlayer-dev-eng] A few notes about the osd menus

Alban Bedel albeu at free.fr
Sat Nov 16 16:42:23 CET 2002


Hi,

I commited the osd menu since a few days. It envolved a bit since the early patch a
few month ago. It is now fully configurable and a new menu is avaible (a little quake
like console).

To use this you need to setup a few things. The most important thing is the config
file (default is $HOME/.mplayer/menu.conf). An example in in etc/, the syntax is
xml-like, each element declare a menu wich can be later displayed with the
set_menu command.
The element name must be one menu type name (currently cmdlist, filesel, pt, txt,
pref or console). A name attribut is requiered, all other attributs are optional and
depend on the menu type.
The osd menus are controled with 2 commands :
	set_menu name : display the menu named name
	menu [up|down|ok|cancel|hide] : send a command to the current menu. If the
		current menu isn't visible any of these command will display the menu.
		This is mostly for command based input like lirc or the slave mode.

When the menu are visible they grab the keyboard, so the key have new bindings
(arrow keys, enter, etc). You still need to add one binding in your input.conf to showup
the menu ("m menu up" for eg).
Now run mplayer -menu movie and enjoy ;)

	Albeu




More information about the MPlayer-dev-eng mailing list