Re: [whatwg] Html 5 video element's poster attribute

2010-09-22 Thread Shiv Kumar
We should also tighten up the language so that the poster must be shown up until playback begins Yes, please or a seek completes, rather than can be shown though. No, this won't work. I don't want the poster to be shown during a seek so the question of showing it until seek completes

Re: [whatwg] Html 5 video element's poster attribute

2010-09-22 Thread Chris Double
On Wed, Sep 22, 2010 at 6:00 PM, Shiv Kumar sku...@exposureroom.com wrote: No, this won’t work. I don’t want the poster to be shown during a seek so the question of showing it until seek completes is moot. I think Chris meant that the poster should remain shown if the user chose to seek

Re: [whatwg] Form element invalid message

2010-09-22 Thread Benjamin Hawkes-Lewis
On 20 Sep 2010, at 23:38, Shiv Kumar wrote: For the first scenario I’d like to propose that we have a validationMessage attribute Attributes should be avoided for text to be presented to human beings, because such text may need to be marked up, e.g. for changes in language (span lang), for

Re: [whatwg] Consensus on video element (scriptable) Full-Screen

2010-09-22 Thread timeless
no. it is not ok to allow content authors to refuse to deliver content unless they are full screen. having events which enable providers to hold users hostage is a bad thing. if i have two screens today and try to watch a youtube video full screen (with flash), it tries to unfullscreen when my

Re: [whatwg] Live video streaming with html5.

2010-09-22 Thread Henri Sivonen
In HTML5, a URL (or a set of URLs) point at what you want the user-agent to display. From the spec's point of view, you can insert any protocol (that can be described by a URL) in there. You'll need it to be supported by your user-agent, of course. In practice, live streaming works with HTTP

Re: [whatwg] Live video streaming with html5.

2010-09-22 Thread Odin Omdal Hørthe
On Wed, Sep 22, 2010 at 12:36 PM, Henri Sivonen hsivo...@iki.fi wrote: In practice, live streaming works with HTTP and either Ogg or WebM in at least Firefox and Opera (maybe Chromium, too), since Ogg and WebM don't require the length of the video to be known in advance. I run a HTML5

Re: [whatwg] Live video streaming with html5.

2010-09-22 Thread Rich Tibbett
Henri Sivonen wrote: In HTML5, a URL (or a set of URLs) point at what you want the user-agent to display. From the spec's point of view, you can insert any protocol (that can be described by a URL) in there. You'll need it to be supported by your user-agent, of course. In practice, live

Re: [whatwg] Live video streaming with html5.

2010-09-22 Thread Monty Montgomery
I run a HTML5 streaming business. I use icecast to send Ogg with Theora+Vorbis. It works splendidly in Opera and Firefox. Chromium has some problems because they use ffmpeg which is not always that good when decoding Theora, but if I use the old, bad versions of Theora, it also works in

Re: [whatwg] Html 5 video element's poster attribute

2010-09-22 Thread Zachary Ozer
On Wed, Sep 22, 2010 at 12:14 AM, Shiv Kumar sku...@exposureroom.com wrote: Now as far as how to fix this is concerned, I've repeatedly provided use cases for why the load() may not work (won't satisfy one of the use cases I've cited) as well as why the load() method shouldn't be used

Re: [whatwg] Html 5 video element's poster attribute

2010-09-22 Thread Silvia Pfeiffer
On Wed, Sep 22, 2010 at 4:47 PM, Chris Double chris.dou...@double.co.nzwrote: On Wed, Sep 22, 2010 at 6:00 PM, Shiv Kumar sku...@exposureroom.com wrote: No, this won’t work. I don’t want the poster to be shown during a seek so the question of showing it until seek completes is moot. I

Re: [whatwg] Simple camera proposal

2010-09-22 Thread Nils Dagsson Moskopp
22.09.10 Rich Tibbett ri...@opera.com: Would it be possible to provide JS-based method to capture an individual frame from a video element? With many demos that copy stuff from video to canvas, isn't that already possible today? -- Nils Dagsson Moskopp // erlehmann

Re: [whatwg] Html 5 video element's poster attribute

2010-09-22 Thread Silvia Pfeiffer
On Wed, Sep 22, 2010 at 9:54 PM, Chris Double chris.dou...@double.co.nzwrote: On Wed, Sep 22, 2010 at 11:50 PM, Silvia Pfeiffer silviapfeiff...@gmail.com wrote: Removing the poster attribute is an option to turn the poster off but there is no way to turn it back on again. You just need

Re: [whatwg] Html 5 video element's poster attribute

2010-09-22 Thread Philip Jägenstedt
On Wed, 22 Sep 2010 14:14:34 +0200, Silvia Pfeiffer silviapfeiff...@gmail.com wrote: On Wed, Sep 22, 2010 at 9:54 PM, Chris Double chris.dou...@double.co.nzwrote: On Wed, Sep 22, 2010 at 11:50 PM, Silvia Pfeiffer silviapfeiff...@gmail.com wrote: Removing the poster attribute is an option

[whatwg] Question about gradient stops in canvas and parsing as CSS colors

2010-09-22 Thread Boris Zbarsky
Consider this code: gradient.addColorStop(1.0,rgba( 0, 0, 0, 0); where |gradient| is a canvas radial gradient. Note the lack of ')' at the end of the rgba string there. What's the correct behavior? The spec says: If the color cannot be parsed as a CSS color, then a SYNTAX_ERR

Re: [whatwg] Question about gradient stops in canvas and parsing as CSS colors

2010-09-22 Thread Anne van Kesteren
On Wed, 22 Sep 2010 16:47:02 +0200, Boris Zbarsky bzbar...@mit.edu wrote: Clearly I happen to think Gecko's behavior is the sane one here, but there's a clear interoperability problem either way. Certainly Opera and Gecko interpreted the spec differently. Might be the way we invoke the CSS

Re: [whatwg] Form element invalid message

2010-09-22 Thread Shiv Kumar
Benjamin, In principle sure, But you already have attributes being used to present text to users. 1. All the value attributes of say input elements, text area etc. This suggestion has been made so as to make this feature a quite a bit more useable then it is. It's not the end all be all solution

Re: [whatwg] Consensus on video element (scriptable) Full-Screen

2010-09-22 Thread Shiv Kumar
no. it is not ok to allow content authors to refuse to deliver content unless they are full screen. What? Is this anything to do with the original post? Shiv http://exposureroom.com

Re: [whatwg] Consensus on video element (scriptable) Full-Screen

2010-09-22 Thread Nils Dagsson Moskopp
22.09.10 Shiv Kumar sku...@exposureroom.com: no. it is not ok to allow content authors to refuse to deliver content unless they are full screen. What? Is this anything to do with the original post? It has indeed. With a platform like The Web, one should expect every feature provided to be

Re: [whatwg] Html 5 video element's poster attribute

2010-09-22 Thread Shiv Kumar
You just need to remember the value of the poster element before you remove it - then you can set it back later. Silvia, have you tried this? Remember that at this time the poster never comes back on after the video has ended even if the poster attribute is set. Shiv

[whatwg] Scriptable interface for video element FullScreen mode

2010-09-22 Thread Shiv Kumar
I've changed the subject of this post in the hopes that it receives the correct attention. As per the current spec: quote WARNING! User agents should not provide a public API to cause videos to be shown full-screen. A script, combined with a carefully crafted video file, could trick the

Re: [whatwg] Simple camera proposal

2010-09-22 Thread Narendra Sisodiya
On Wed, Sep 22, 2010 at 8:45 PM, Rich Tibbett ri...@opera.com wrote: Nils Dagsson Moskopp wrote: 22.09.10 Rich Tibbettri...@opera.com: Would it be possible to provide JS-based method to capture an individual frame from avideo element? With many demos that copy stuff fromvideo

Re: [whatwg] Consensus on video element (scriptable) Full-Screen

2010-09-22 Thread John Harding
That's Flash's behavior, not YouTube's choice - we'd love to allow fullscreen usage on one screen while focus is in another. This is the right way to do it, though - content can* *request changes to the fullscreen state, but the User Agent is ultimately responsible for granting or denying that

Re: [whatwg] Consensus on video element (scriptable) Full-Screen

2010-09-22 Thread Alex Bishop
On 21/09/2010 20:22, Shiv Kumar wrote: Now in order for anyone to be able to provide their own skin/player, we’ll need to provide a scriptable way to switch the video element to full screen and out including events to support the same. There have been previous discussions about allowing

[whatwg] [IndexedDB] Simultaneous setVersion from multiple pages

2010-09-22 Thread ben turner
Hi folks, While implementing the latest setVersion changes I came across this problem: Let's say that a site is open in two different windows and each decides to do a setVersion request at the same time. Only one of them can win, obviously, and the other must end up calling close() on itself or

Re: [whatwg] [IndexedDB] Simultaneous setVersion from multiple pages

2010-09-22 Thread ben turner
Sorry folks, this went to the wrong list! Please ignore. -Ben On Wed, Sep 22, 2010 at 12:55 PM, ben turner bent.mozi...@gmail.com wrote: Hi folks, While implementing the latest setVersion changes I came across this problem: Let's say that a site is open in two different windows and each

Re: [whatwg] File Upload Progress Event (Upload Progress)

2010-09-22 Thread Aryeh Gregor
On Tue, Sep 21, 2010 at 4:09 PM, Shiv Kumar sku...@exposureroom.com wrote: Yes, I guess in way. Including it in a spec gives them guidelines so the chances of all implementers providing the same info goes up. I think that is the point of the spec (providing guidelines). No, the main point of

Re: [whatwg] Proposal: add attributes etags last-modified to link element.

2010-09-22 Thread Philipp Serafin
On 21.09.2010 21:01, Aryeh Gregor wrote: On Mon, Sep 20, 2010 at 2:25 AM, Julian Reschke julian.resc...@gmx.de wrote: Resources that should be cached (stylesheets, images) but change at unexpected times are indeed a problem. A well understood approach is to push some kind of version

Re: [whatwg] Proposal: add attributes etags last-modified to link element.

2010-09-22 Thread Adrian Sutton
On 22 Sep 2010, at 22:10, Philipp Serafin wrote: One disadvantage I think the version-in-URI approach has is that it's completely transparent to the HTTP caching system. In particular, it doesn't give caches any information about when a resource is expired. This isn't really an issue if you

Re: [whatwg] Form element invalid message

2010-09-22 Thread Mounir Lamouri
(Re-sending this email which was only addressed to Aryeh by mistake.) On 09/21/2010 09:43 PM, Aryeh Gregor wrote: I think only Opera has UI at all), so it's best to just not use it for now. Firefox nightlies too. Will be in Firefox 4 beta 7. On 09/21/2010 10:35 PM, Shiv Kumar wrote: That

[whatwg] Propsal: Mechanism for converting rgb, hex, and named color strings between one another

2010-09-22 Thread Daniel Buchner
Hello whatwg! Many developers, js libraries, and frameworks interact with colors in a variety ways in their pages and apps. One common action they perform in many of these interactions is to convert colors between RGB and HEX. A fair amount of js is needed to do this type of thing, see the

Re: [whatwg] Form element invalid message

2010-09-22 Thread Aryeh Gregor
On Tue, Sep 21, 2010 at 4:35 PM, Shiv Kumar sku...@exposureroom.com wrote: Come now Aryeh :). Imagine this scenario. On a web page/form, I'm asking the user to enter her social security number and she sees a message You have to specify a value, you're saying that sounds ok to you? Oh, and the

Re: [whatwg] Propsal: Mechanism for converting rgb, hex, and named color strings between one another

2010-09-22 Thread Shiv Kumar
I propose that we provide a way for developers to get all color equivalents of a valid color string - red, #ff0, rgb(255, 0, 0). I've gone through similar and painful motions. So yes, I'd like to see easy ways to get this conversion/information. xxxAsRgb() xxxToRgb() xxxAsHex()

Re: [whatwg] Form element invalid message

2010-09-22 Thread Boris Zbarsky
On 9/22/10 5:51 PM, Aryeh Gregor wrote: On Tue, Sep 21, 2010 at 4:35 PM, Shiv Kumarsku...@exposureroom.com wrote: Come now Aryeh :). Imagine this scenario. On a web page/form, I'm asking the user to enter her social security number and she sees a message You have to specify a value, you're

Re: [whatwg] Form element invalid message

2010-09-22 Thread Aryeh Gregor
On Wed, Sep 22, 2010 at 5:51 PM, Aryeh Gregor simetrical+...@gmail.com wrote: Note that Firefox is buggy here and treats setCustomValidity('') as setting the error message to '' instead of removing it, as the spec says, but when that's fixed it will work. I take it back. Firefox and Opera do

Re: [whatwg] Form element invalid message

2010-09-22 Thread Shiv Kumar
And yes, you could always conceive of simple declarative APIs that would do this stuff, Hmm... so you admit, it's simple. That's a start! but you just can't add those for every single feature someone wants. I guess not :) Even if it makes it simpler, more approachable and more useful. Shiv

Re: [whatwg] Form element invalid message

2010-09-22 Thread Benjamin Hawkes-Lewis
On 22 Sep 2010, at 16:14, Shiv Kumar wrote: In principle sure, Glad you agree on the principle. But you already have attributes being used to present text to users. HTML usually adopts the good pattern of putting human-readable text that might benefit from markup in elements (e.g. label,

Re: [whatwg] Form element invalid message

2010-09-22 Thread Shiv Kumar
New features should perpetuate the good paradigm represented by the label element, not the bad paradigm represented by the title attribute. Ok, I get it. That makes sense So can we have a errorLabel tag where the for attribute can point to the control in question? Or is that going against the

[whatwg] HTML5 7.6.1 Selection problems

2010-09-22 Thread Tim Down
I am concerned about some aspects of section 7.6.1 in the HTML5 specification, relating to Selection objects. My main concern is that some parts do not match current browser behaviour, in particular relating to backwards selections (i.e. where the focus point comes before the anchor point within

Re: [whatwg] Scriptable interface for video element FullScreen mode

2010-09-22 Thread Gregg Tavares (wrk)
On Wed, Sep 22, 2010 at 9:09 AM, Shiv Kumar sku...@exposureroom.com wrote: I’ve changed the subject of this post in the hopes that it receives the correct attention… As per the current spec: quote WARNING! User agents should not provide a public API to cause videos to be shown

Re: [whatwg] Form element invalid message

2010-09-22 Thread Mounir Lamouri
On 09/22/2010 02:51 PM, Aryeh Gregor wrote: data:text/html,!doctype htmlforminput name=x required oninvalid=this.setCustomValidity(''); if (!this.validity.valid) this.setCustomValidity('abcd') input type=submit/form In a Firefox 4 nightly, when I click the submit button, the error is just

Re: [whatwg] Form element invalid message

2010-09-22 Thread Jonas Sicking
On Wed, Sep 22, 2010 at 5:50 PM, Mounir Lamouri mounir.lamo...@gmail.com wrote: On 09/22/2010 02:51 PM, Aryeh Gregor wrote: data:text/html,!doctype htmlforminput name=x required oninvalid=this.setCustomValidity(''); if (!this.validity.valid) this.setCustomValidity('abcd') input

[whatwg] a typo in 8.6.1 APIs for the browsing context selection

2010-09-22 Thread Futomi Hatano
I've found a typo in 8.6.1 APIs for the browsing context selection. http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#documentSelection In the green box, we can find a definition as below. collapsed = selection . isCollapsed() As far as I've read the section 8.6.1, I

Re: [whatwg] Form element invalid message

2010-09-22 Thread Shiv Kumar
I actually think that the customerrormessage attribute that has been suggested is a decent solution too. So it looks like Jonas and Mounir concur. That's great! All you'd need to do is install an event handler for the invalid event, and in that handler do something like

Re: [whatwg] [IndexedDB] Simultaneous setVersion from multiple pages

2010-09-22 Thread Roger Hågensen
On 2010-09-22 21:56, ben turner wrote: Sorry folks, this went to the wrong list! Please ignore. -Ben On Wed, Sep 22, 2010 at 12:55 PM, ben turnerbent.mozi...@gmail.com wrote: Hi folks, While implementing the latest setVersion changes I came across this problem: Let's say that a site is

Re: [whatwg] [IndexedDB] Simultaneous setVersion from multiple pages

2010-09-22 Thread Shiv Kumar
What does other DB's like MySQL do? My guess is a busy/try again error right? They'll continue and finish the transaction if the locks are removed before the timeout. If the timeout expires they'll throw a deadlock exception and the transaction will be rolled back. Shiv http://exposureroom.com