The EPUB 3.0 Media Overlays specification defines a profile of the SMIL grammar for synchronizing text rendering with audio playback.
Media Overlays documents are built using the following elements:
Element | Use |
---|---|
smil | The smil element is the root element of each Media Overlay, and
contains an optional head and required body element |
head | The head element may contain metadata in an optional
metadata element, but none is required by the EPUB 3 specification |
metadata | The metadata element is an extension element that allows metadata
from foreign namespaces to be included in the overlay |
body | The body element defines playback through the order of
seq and par elements it contains |
seq | The seq element is used to structure an overlay. It is used to
represent complex structures such as sections, tables and lists that a reader may want to
skip or escape from |
par | The par element defines a synchronization point in its child
text and/or audio elements |
text | The text element identifies the content document and element to
synchronize visual rendering to |
audio | The audio element identifies the audio file and optional start and
end points for playback |
In order to synchronize a publication, each content document in a publication must have its own overlay
associated with it. Overlays are tied to content documents in the package document manifest using a
media-overlay
attribute with the ID of the item
that defines the
overlay.
The EPUB Samples Project contains the following publications that implement Media Overlays: