The Player control displays and manages the playback of a Mash XML Syntax,
including overrides for its volume and fps attributes. Typically several other controls bind to
Player properties like
to create a complete interface, but it's okay to simply display the Player alone too
The displayed mash will be scaled up or down to fit the space defined for the Player. If their
aspect ratios do not match, the mash will be centered against the player background. The same
applies when the Player goes into fullscreen mode, thereby resize to fit the display.
By default, the mash that's displayed in the Player is the first one encountered in the
initial configuration. This is because the default
source attribute points
to an auto generated source that holds these tags. It's also possible to explicitly define
this source or specify another.
Learn more in Mash Loading.
align: the string 'top', 'left' or 'center'
angle: floating point number (degrees)
autostart: boolean - zero (false) or one (true)
autostop: boolean - zero (false) or one (true)
border: positive integer (pixels)
bordercolor: six character hex color value
buffertime: positive floating point number (seconds)
color: six character hex color value
completed: positive floating point number (percentage)
fps: positive integer
grad: floating point number less than 128
height: integer (pixels) or '*', '**'... (proportional)
id: a word that's unique among control IDs
location: positive floating point number (seconds)
minbuffertime: positive floating point number (seconds)
symbol: a valid SWF URL, followed by an ampersand and class name
unbuffertime: positive floating point number (seconds)
volume: positive floating point number (percentage)
width: integer (pixels) or '*', '**'... (proportional)