<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#dom-media-duration">http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#dom-media-duration</a> says:<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
The <dfn id="dom-media-duration" title="dom-media-duration"><code>duration</code></dfn>
attribute must return the time of the end of the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#media-resource">media
resource</a>, in seconds, on the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#media-timeline">media timeline</a>. If
no <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#media-data">media data</a> is available, then the attributes must
return the Not-a-Number (NaN) value. If the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#media-resource">media
resource</a> is known to be unbounded (e.g. a streaming radio),
then the attribute must return the positive Infinity value.<br clear="all"></blockquote><br>What if the duration is not currently known?<br><br>I think in general it will be very difficult for a user-agent to know that a stream is unbounded. In Ogg or WebM a stream might not contain an explicit duration but still eventually end. Maybe it would make more sense for the last sentence to read "If the media resource is not known to be bounded, ..."<br>
<br>Rob<br>-- <br>"Now the Bereans were of more noble character than the
Thessalonians, for they received the message with great eagerness and
examined the Scriptures every day to see if what Paul said was true." [Acts 17:11]<br>