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 phil...@opera.com 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

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 gl...@zewt.org wrote: On Wed, Jan 12, 2011 at 2:49 AM, Philip Jägenstedt phil...@opera.com 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

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 to

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

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 mikko.rantalai...@peda.net To: whatwg@lists.whatwg.org Subject: Re: [whatwg] HTML5 video: frame accuracy / SMPTE Message-ID: 4d2d7a67.7090...@peda.net

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

2011-01-12 Thread Rob Coenen
On Wed, Jan 12, 2011 at 10:15 AM, Jeroen Wijering jer...@longtailvideo.comwrote: 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)

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

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 gl...@zewt.org wrote: On Wed, Jan 12, 2011 at 2:49 AM, Philip Jägenstedt phil...@opera.com wrote: (Also, it might be useful to be able to chose whether seeking should be fast or exact,

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

[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

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 mari...@gmail.comwrote: Hi,

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

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 phil...@opera.com 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

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 phil...@opera.comwrote: 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

Re: [whatwg] Control over selection direction

2011-01-12 Thread Aryeh Gregor
On Wed, Jan 12, 2011 at 2:35 PM, Marijn Haverbeke mari...@gmail.com 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

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 phil...@opera.comwrote: 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

[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 (in

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 eric.carl...@apple.com 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 phil...@opera.comwrote: For the record, this is the solution I've been imagining: * add

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 simetrical+...@gmail.com wrote: On Wed, Jan 12, 2011 at 3:42 AM, Philip Jägenstedt phil...@opera.com wrote: * add HTMLMediaElement.seek(t, [exact]), where exact defaults to false if missing Boolean parameters are evil, since it's