Overview

Appendix C. MPlayer skin format

Overview

It does not really have anything to do with the skin format, but you should know that MPlayer has no builtin skin, so at least one skin must be installed in order to be able to use the GUI.

C.1.1. Directories

The directories searched for skins are (in order):

  1. $(DATADIR)/skins/

  2. $(PREFIX)/share/mplayer/skins/

  3. ~/.mplayer/skins/

Note that the first path may vary according to the way MPlayer was configured (see the --prefix and --datadir arguments of the configure script).

Every skin is installed into its own directory under one of the directories listed above, for example:

$(PREFIX)/share/mplayer/skins/default/

C.1.2. Image formats

Images must be truecolor (24 or 32 bpp) PNGs.

In the main window and in the playbar (see below) you can use images with `transparency': Regions filled with the color #FF00FF (magenta) are fully transparent when viewed by MPlayer. This means that you can even have shaped windows if your X server has the XShape extension.

C.1.3. Skin components

Skins are quite free-format (unlike the fixed-format skins of Winamp/XMMS, for example), so it is up to you to create something great.

Currently there are four windows to be decorated: the , the , the , and the (which can be activated by a right click).

There is an important thing not mentioned yet: For buttons, potmeters and menu entries to work, MPlayer must know what to do if they are clicked. This is done by (events). For these items you must define the messages to be generated when they are clicked.

C.1.4. Files

You need the following files to build a skin:

With the exception of the skin configuration file, you can name the other files whatever you want (but note that font description files must have a .fnt extension).


Appendix C. MPlayer skin format The skin file