What Does the SMIL dur Attribute Do?

In Synchronized Multimedia Integration Language (SMIL), the dur (duration) attribute specifies the simple duration of an element, defining exactly how long that media or animation element should play or remain active on its own timeline. By controlling the explicit playback length of elements like audio, video, images, or text streams, dur acts as the fundamental timing mechanism for synchronizing multi-track multimedia presentations.

Defining the Simple Duration

The primary role of the dur attribute is to establish the simple duration of an element, distinct from its active duration or total timeline duration. When a media element is triggered (via a begin time), dur tells the SMIL rendering engine how long to present that item before transitioning, ending, or repeating.

In a SMIL timing graph:

Supported Attribute Values

The dur attribute accepts several distinct value types depending on the author's timing needs:

Interaction with Containers and Timing Attributes

The dur attribute interacts directly with parent timing containers—such as <par> (parallel) and <seq> (sequential)—as well as other timing attributes like begin, end, and repeatCount.