All Movie Masher data is described in XML format - tags are used to
define media, mashes, interface layout and runtime options. Each XML configuration document contains a
moviemasher tag which acts as a top level container
for all other tags:
<moviemasher>
<panel>
<bar>
<control>
<preview />
</control>
</bar>
</panel>
<mash>...</mash>
<source>...</source>
<option />
</moviemasher>
An interface layout is described using multiple
panel tags. These areas are further segmented
using the
bar tag which then contains a
control tag for each button, slider and other interface
widget including the player, timeline and media browser. Collectively these are referred to as
User Controls and the last two also contain preview tags describing the layout and styling of their child elements.
The source tag can be used to load additional mash and media related configuration, that can be tied to the player or browser controls.
And the option tag can be used to
specify typefaces, preferences and security options to the system.
The mash tag supports the addition of arbitrary attributes and children as long as their names don't conflict with existing ones. Any properties defined in the mash tag will
dirty the mash if changed by User Controls. All properties and child tags are passed through whenever the mash is
posted as data by the CGI control.
By default,
the first instance of this tag that is encountered in the configuration will be
automatically loaded into the Player control for playback. Additionally, the
Timeline control will by default bind itself to 'player.mash' to provide
editing of the currently displayed mash.
If no mash tag is found in the configuration, a mash with no clips is created in its place, with an auto generated
id attribute.
|