Checking for Updates

From A-SMIL.org
Revision as of 18:16, 18 November 2009 by SMIL T.A. (talk | contribs) (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

It is often necessary to check for an update in the playlist while the current playlist is playing. To do that, simply use the "Refresh" meta tag as shown below.

<smil>
  <head>
    <meta http-equiv="Refresh" content="60"/>
  </head>
  <body>
    ...
  </body>
</smil>

The playlist will reload itself every 60 seconds (or any specified interval).

However, each time the playlist is reloaded, playback restarts from the beginning of the SMIL document. To avoid restarting the playlist when the playlist is not changed, have your SMIL generating script support the HTTP "Last-Modified:" header (which is usually omitted in dynamic scripts). If the last modified time has not changed, SMIL player will not reload the file.

Related