Re: [whatwg] possible new parameters to video.play() ?

2016-11-01 Thread Michael A. Peters
On 09/19/2016 07:41 AM, Simon Pieters wrote: There is always room for adding convenience APIs, it's a matter of demonstrating that it's a common enough need to make it worth the cost of adding it. https://wiki.whatwg.org/wiki/FAQ#Where.27s_the_harm_in_adding.E2.80.94 HTH, * OFF TOPIC *

Re: [whatwg] possible new parameters to video.play() ?

2016-09-19 Thread Simon Pieters
On Sun, 18 Sep 2016 18:45:51 +0200, Melvin Carvalho wrote: The pauseOnExit attribute on VTTCue can be used for this purpose. See https://html.spec.whatwg.org/multipage/embedded-content.html #text-track-api:the-audio-element for an example. Thank you for both

Re: [whatwg] possible new parameters to video.play() ?

2016-09-18 Thread Nigel Megitt
IMO this should be a feature of TextTrackCue and has no relevance to VTTCue specifically. There's implementation overloading here that is mixing concerns unhelpfully. Discuss! Nigel On 18 Sep 2016, at 17:46, Melvin Carvalho > wrote:

Re: [whatwg] possible new parameters to video.play() ?

2016-09-18 Thread Melvin Carvalho
On 18 September 2016 at 14:44, Simon Pieters wrote: > On Sun, 18 Sep 2016 01:21:27 +0200, Melvin Carvalho < > melvincarva...@gmail.com> wrote: > > Apologies if this has come up before, but I was wondering if it would be >> possible to add simple parameters to the play()

Re: [whatwg] possible new parameters to video.play() ?

2016-09-18 Thread Simon Pieters
On Sun, 18 Sep 2016 01:21:27 +0200, Melvin Carvalho wrote: Apologies if this has come up before, but I was wondering if it would be possible to add simple parameters to the play() function. They would be play(start, end) Where start and end are the times in

Re: [whatwg] possible new parameters to video.play() ?

2016-09-17 Thread Yay295
You can add an event listener to the video element on the `timeupdate` event and pause the video when the videos' time is at/past the time you want to stop, but your idea does sound more convenient. On Sat, Sep 17, 2016 at 5:21 PM, Melvin Carvalho wrote: > Apologies if