[whatwg] Start position of media resources
robert at ocallahan.org
Thu Apr 30 22:21:05 PDT 2009
On Thu, Apr 30, 2009 at 12:00 AM, Ian Hickson <ian at hixie.ch> wrote:
> On Thu, 30 Apr 2009, Robert O'Callahan wrote:
> > > >
> > > > So I think a safer design would be to interpret currentTime as
> > > > relative to the startTime, perhaps renaming startTime to
> > > > 'timeOffset' instead?
> > >
> > > I considered that, but it seems that in the streaming video
> > > ("DVR-like") case, in the steady state where the data in the buffer is
> > > being thrown away at the same rate as the video is being played you'd
> > > end up in a weird position of the currentTime not changing despite the
> > > video playing, which would likely be even more confusing.
> > Why should the "start time" change in this case? I assume you mean the
> > server is streaming video and does not support sending any data except
> > the data for the current time, and the UA is caching a window of data.
> > Then I would expect the element to expose a fixed start time (the time,
> > relative to the start of the resource, at which the UA first opened the
> > stream). As the stream plays, 'duration' would increase and the
> > 'seekable' and 'buffered' TimeRanges would change to reflect the data
> > the UA has in its buffer.
> I mean, e.g., a TiVo-like interface, where the input is a TV tuner, or a
> streaming video service that doesn't let you seek but where the UA is
> buffering 15 minutes of content so that the user can seek within that. The
> way this is supported in the spec now, the start time (the "earliest
> possible position") continually changes, so that the UI doesn't show an
> increasingly long time frame, but instead only shows the last 30 minutes.
To me, "the earliest possible position" seems redundant with the 'seekable'
TimeRanges. I think your use-case can be exposed perfectly adequately with
an indefinite 'duration' and 'seekable' and 'buffered' TimeRanges changing
over time (which will happen in many non-streaming cases too). There is no
need to have 'startTime' changing; that seems an unnecessary complication. I
think that dynamically changing the "time coordinate system" in which
'currentTime' is interpreted is a bad idea.
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg