libcmml
0.9.1
|
The following simple example CMML file demonstrates the main features of CMML:
After the usual preamble including the xml processing instruction and the doctype declaration, the root cmml tag houses the markup.
The first markup will usually be a stream tag which names the source media file(s) that the markup of the CMML file relates to. The stream tag is optional as you may want to prepare a CMML file for a not yet existing media file, for a live media stream, or just as a template.
The head tag is mandatory as with html. It will at least contain either a title or a base tag. The title tag contains a short description of the complete annotated work. More structured information for the work go into the meta tags. It is recommended to use existing meta schemes such as the Dublin Core for the structured annotations.
The following clip tags structure the work into temporal sections by specification of start and end times for each section. The end time is optional as a clip will be implicitly ended with the start of the next clip or the end of the file. You may attach an a tag to a clip to specify a related Web resource through its href attribute. You may attach an img tag to a clip to specify a URL to an image that represents the content of the clip visually. You may attach a desc tag to a clip to provide a textual description. More structured information for the clip go into the meta tags.
The closing of the cmml tag ends the CMML file.