Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Philip Jägenstedt
On Thu, 13 Jan 2011 01:03:03 +0100, Aryeh Gregor wrote: On Wed, Jan 12, 2011 at 3:42 AM, Philip Jägenstedt wrote: * add HTMLMediaElement.seek(t, [exact]), where exact defaults to false if missing Boolean parameters are evil, since it's impossible to guess what they do from reading the

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Philip Jägenstedt
On Thu, 13 Jan 2011 01:23:57 +0100, Eric Carlson wrote: On Jan 12, 2011, at 4:04 PM, Robert O'Callahan wrote: On Wed, Jan 12, 2011 at 9:42 PM, Philip Jägenstedt wrote: For the record, this is the solution I've been imagining: * add HTMLMediaElement.seek(t, [exact]), where exact defaul

[whatwg] Structured clones of Files

2011-01-12 Thread Glenn Maynard
Does the "same underlying data" of a structured clone of a File refer to a reference to the file (eg. the path and filename, which is the real underlying data of a File object), or the contents of the file? As it's used by web worker messaging, it's obviously the pathname. However, HTML Storage (i

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Eric Carlson
On Jan 12, 2011, at 4:04 PM, Robert O'Callahan wrote: > On Wed, Jan 12, 2011 at 9:42 PM, Philip Jägenstedt wrote: > >> For the record, this is the solution I've been imagining: >> >> * add HTMLMediaElement.seek(t, [exact]), where exact defaults to false if >> missing >> >> * make setting HTMLM

Re: [whatwg] Control over selection direction

2011-01-12 Thread Aryeh Gregor
On Wed, Jan 12, 2011 at 2:35 PM, Marijn Haverbeke wrote: > So I propose a selectionAnchor property, which holds either "top" or > "bottom", and can be set to one of these strings to modify the > direction. "top" would mean the anchor lies after the base of the > selection, so further shift-movemen

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Robert O'Callahan
On Wed, Jan 12, 2011 at 9:42 PM, Philip Jägenstedt wrote: > For the record, this is the solution I've been imagining: > > * add HTMLMediaElement.seek(t, [exact]), where exact defaults to false if > missing > > * make setting HTMLMediaElement.currentTime be a non-exact seek, as that > seems to be t

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Aryeh Gregor
On Wed, Jan 12, 2011 at 3:42 AM, Philip Jägenstedt wrote: > * add HTMLMediaElement.seek(t, [exact]), where exact defaults to false if > missing Boolean parameters are evil, since it's impossible to guess what they do from reading the code. Make it a two-value enum instead. The second argument c

Re: [whatwg] Control over selection direction

2011-01-12 Thread Tim Down
I completely agree, and have been lobbying for similar functionality for the main document selection object, resulting in the current ongoing discussion in this bug: http://www.w3.org/Bugs/Public/show_bug.cgi?id=10624. Rather than a single string property, how about integer selectionAnchor and sel

Re: [whatwg] Control over selection direction

2011-01-12 Thread Ojan Vafai
I agree that something like this is a valuable addition. I'm not sure selectionAnchor is ideal. I was thinking selectionDirection="forward"/"backward". It's equivalent really, but that just seems more intuitive to me. On Wed, Jan 12, 2011 at 11:35 AM, Marijn Haverbeke wrote: > Hi, > > I'd like to

[whatwg] Control over selection direction

2011-01-12 Thread Marijn Haverbeke
Hi, I'd like to propose a minor addition to 4.10.20 APIs for the text field selections. When programmatically setting the selection of a text input, it is currently impossible to create a range with the 'anchor' at the bottom and the 'base' at the top. Concretely, this means that, after a selectio

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Andrew Scherkus
I implemented frame-accurate seeking in Chrome (mostly as an experiment) and it does have the drawback of potentially being very slow. Depending on the type of video there can be a noticeable difference in seek time if you seek to just-before-a-keyframe versus just-after-a-keyframe. I do like the

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Eric Carlson
On Jan 12, 2011, at 12:42 AM, Philip Jägenstedt wrote: > On Wed, 12 Jan 2011 09:16:59 +0100, Glenn Maynard wrote: > >> On Wed, Jan 12, 2011 at 2:49 AM, Philip Jägenstedt wrote: >>> (Also, it might be useful to be able to chose whether seeking should be fast >>> or exact, as frame-accurate seek

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Jeroen Wijering
On Jan 12, 2011, at 2:05 PM, Rob Coenen wrote: > The need for SMPTE still remains as I want to be able to do things such as > video.seekTo(smpte_timecode_converted_to_seconds, seek_exact=true); so that > my video goes to exactly the exact frame as indicated by > smpte_timecode_converted_to_sec

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Rob Coenen
On Wed, Jan 12, 2011 at 10:15 AM, Jeroen Wijering wrote: > > Alternatively, one could look at a step() function instead of a > seek(pos,exact) function. The step function can be used for frame-accurate > controls. e.g. step(2) or step(-1). The advantage over a seek(pos,exact) > function (and the p

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Jeroen Wijering
On Jan 12, 2011, at 11:04 AM, whatwg-requ...@lists.whatwg.org wrote: > Date: Wed, 12 Jan 2011 11:54:47 +0200 > From: Mikko Rantalainen > To: whatwg@lists.whatwg.org > Subject: Re: [whatwg] HTML5 video: frame accuracy / SMPTE > Message-ID: <4d2d7a67.7090...@peda.net> > Content-Type: text/plain; c

Re: [whatwg] Make radio button group suffering from being missing

2011-01-12 Thread Mikko Rantalainen
2011-01-08 00:06 EEST: Ian Hickson: > The basic idea behind this design is that type=radio seems to have been > designed to keep each control as independent as possible -- before we > started fiddling with it in WF2, the only way type=radio controls had any > relationship to other type=radio con

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Mikko Rantalainen
2011-01-12 00:40 EEST: Rob Coenen: > Hi David- that is b/c in an ideal world I'd want to seek to a time expressed > as a SMPTE timecode (think web apps that let users step x frames back, seek > y frames forward etc.). In order to convert SMPTE to the floating point > value for video.seekTime I need

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Philip Jägenstedt
On Wed, 12 Jan 2011 09:16:59 +0100, Glenn Maynard wrote: On Wed, Jan 12, 2011 at 2:49 AM, Philip Jägenstedt wrote: (Also, it might be useful to be able to chose whether seeking should be fast or exact, as frame-accurate seeking is hardly necessary in most normal playback situations.) In

Re: [whatwg] HTML5 video: frame accuracy / SMPTE

2011-01-12 Thread Glenn Maynard
On Wed, Jan 12, 2011 at 2:49 AM, Philip Jägenstedt wrote: > (Also, it might be useful to be able to chose whether seeking should be fast > or exact, as frame-accurate seeking is hardly necessary in most normal > playback situations.) In an audio engine I worked on I had a seek hint like that, to