SMIL Scheduling

From A-SMIL.org
Revision as of 18:43, 2 September 2009 by SMIL T.A. (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SMIL playlists may be scheduled to play at specific times and repeat intervals. This is the single greatest difference between SMIL and other XML-based multimedia markup languages.

For details please see technical specification on Wallclock.

Contents

Play at specific time each day

The following code starts a playlist between 9 AM and 12 noon each day.

<par dur="indefinite">
  <seq begin="R/2000-01-01T09:00/P1D" end="R/2000-01-01T12:00/P1D">
    ...
  </seq>
</par>

A scheduled playlist MUST BE enclosed within a <par> section. If the schedule is valid forever, set the duration of the <par> to "indefinite."

The date 2000-01-01 gives a reference to a starting point in time, and can be any date in the past. "P1D" is the ISO-8601 designation for a repeat period of 1 day.

Play at a given day of week

Play between 9 AM and 12 noon on each Wednesday morning:

<par dur="indefinite">
  <seq begin="R/2000-01-01T09:00+w3/P1W" end="R/2000-01-01T12:00+w3/P1W">
    ...
  </seq>
</par>

+w3 designates the 3rd weekday, or Wednesday. "P1W" repeats the schedule each week.

Play at a specific time

Play once on January 1, 2010, between 9 AM and 12 noon.

<par dur="indefinite">
  <seq begin="R/2010-01-01T09:00" end="R/2010-01-01T12:00">
    ...
  </seq>
</par>

Related