W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] video tag : loop for ever

From: Eric Carlson <eric.carlson@apple.com>
Date: Thu, 16 Oct 2008 08:04:41 -0700
Message-ID: <4866864B-26C8-4F97-8FC8-54D802B3854B@apple.com>

On Oct 15, 2008, at 8:31 PM, Chris Double wrote:

> On Thu, Oct 16, 2008 at 4:07 PM, Eric Carlson  
> <eric.carlson at apple.com> wrote:
>> However I also think
>> that playing just a segment of a media file will be a common use- 
>> case, so I
>> don't think we need "start" and "end" either.
>
> How would you emulate end via JavaScript in a reasonably accurate
> manner?
>

   With a cue point.

> If I have a WAV audio file and I want to start and stop
> between specific points? For example a transcript of the audio may
> provide the ability to play a particular section of the transcript.
>
   If you use a script-based controller instead of the one provided by  
the UA, you can easily limit playback to whatever portion of the file  
you want:

     SetTime: function(time) { this.elem.currentTime =  
(time<this._minTime) ? this._minTime : (time>this._maxTIme? 
this._maxTIme:time); }

   I agree that it is more work to implement a custom controller, but  
it seems a reasonable requirement given that this is likely to be a  
relatively infrequent usage pattern.

   Or do you think that people will frequently want to limit playback  
to a section of a media file?

eric
Received on Thursday, 16 October 2008 08:04:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC