Re: [whatwg] Memory management problem of video elements

2014-08-20 Thread Philip Jägenstedt
On Tue, Aug 19, 2014 at 3:54 PM, duanyao duan...@ustc.edu wrote: 于 2014年08月19日 20:23, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 11:56 AM, duanyao duan...@ustc.edu wrote: If the media element object keeps track of its current playing url and current position (this requires little memory),

Re: [whatwg] Proposal: Wake Lock API

2014-08-20 Thread Jonas Sicking
On Tue, Aug 19, 2014 at 1:29 PM, Marcos Caceres w...@marcosc.com wrote: interface WakeLock : EventTarget { Promisevoid request(); Promisevoid release(); attribute EventHandler onlost; } What are the use cases for onlost? Though I don't really mind exposing this state. My experience

Re: [whatwg] Proposal: Wake Lock API

2014-08-20 Thread Anne van Kesteren
On Wed, Aug 20, 2014 at 10:29 AM, Jonas Sicking jo...@sicking.cc wrote: FWIW, the web platform sorely needs a construct for readonly state variable + event whenever the state changes. I.e. some form of observable which remembers the last produced value. I had hoped the Streams would get us

Re: [whatwg] Proposal: Wake Lock API

2014-08-20 Thread Jonas Sicking
On Wed, Aug 20, 2014 at 1:33 AM, Anne van Kesteren ann...@annevk.nl wrote: On Wed, Aug 20, 2014 at 10:29 AM, Jonas Sicking jo...@sicking.cc wrote: FWIW, the web platform sorely needs a construct for readonly state variable + event whenever the state changes. I.e. some form of observable which

Re: [whatwg] Proposal: Wake Lock API

2014-08-20 Thread Olli Pettay
On 08/20/2014 11:33 AM, Anne van Kesteren wrote: On Wed, Aug 20, 2014 at 10:29 AM, Jonas Sicking jo...@sicking.cc wrote: FWIW, the web platform sorely needs a construct for readonly state variable + event whenever the state changes. I.e. some form of observable which remembers the last produced

Re: [whatwg] Memory management problem of video elements

2014-08-20 Thread duanyao
于 2014年08月20日 15:52, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 3:54 PM, duanyao duan...@ustc.edu wrote: 于 2014年08月19日 20:23, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 11:56 AM, duanyao duan...@ustc.edu wrote: If the media element object keeps track of its current playing url and

Re: [whatwg] Memory management problem of video elements

2014-08-20 Thread Philip Jägenstedt
On Wed, Aug 20, 2014 at 12:04 PM, duanyao duan...@ustc.edu wrote: 于 2014年08月20日 15:52, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 3:54 PM, duanyao duan...@ustc.edu wrote: I'm not familiar with game programing. Are sound effects small audio files that are usually played as a whole? Then

Re: [whatwg] Memory management problem of video elements

2014-08-20 Thread duanyao
于 2014年08月20日 19:26, Philip Jägenstedt 写道: On Wed, Aug 20, 2014 at 12:04 PM, duanyao duan...@ustc.edu wrote: 于 2014年08月20日 15:52, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 3:54 PM, duanyao duan...@ustc.edu wrote: I'm not familiar with game programing. Are sound effects small audio files

Re: [whatwg] Proposal: Wake Lock API

2014-08-20 Thread Marcos Caceres
On Wednesday, August 20, 2014 at 5:15 AM, Olli Pettay wrote: On 08/20/2014 11:33 AM, Anne van Kesteren wrote: On Wed, Aug 20, 2014 at 10:29 AM, Jonas Sicking jo...@sicking.cc (mailto:jo...@sicking.cc) wrote: FWIW, the web platform sorely needs a construct for readonly state

Re: [whatwg] Proposal: Wake Lock API

2014-08-20 Thread Anne van Kesteren
On Wed, Aug 20, 2014 at 5:09 PM, Marcos Caceres w...@marcosc.com wrote: And of course Object.observe would work really nicely, but I've been told a bunch of times by various people that we can't use Object.observe on DOM APIs (this *really* sucks). Not by default, but we can make it work as

Re: [whatwg] HTML differences from HTML4 document updated

2014-08-20 Thread Simon Pieters
On Tue, 07 May 2013 16:37:21 +0200, Gordon P. Hemsley gphems...@gmail.com wrote: Simon, I think it would be good to consider the target audiences, of which there are probably many: You have the audience who is worried that HTML5 is some grand departure from the HTML 4.01 they (think they)

Re: [whatwg] Memory management problem of video elements

2014-08-20 Thread Ian Hickson
On Wed, 20 Aug 2014, Philip Jägenstedt wrote: I don't know, but would guess that not all media frameworks can seek to an exact audio sample but only to the beginning of a video frame or an audio frame, in which case currentTime would be slightly off. One could just lie about currentTime

Re: [whatwg] Proposal: Wake Lock API

2014-08-20 Thread Marcos Caceres
On Wednesday, August 20, 2014 at 11:14 AM, Anne van Kesteren wrote: On Wed, Aug 20, 2014 at 5:09 PM, Marcos Caceres w...@marcosc.com (mailto:w...@marcosc.com) wrote: And of course Object.observe would work really nicely, but I've been told a bunch of times by various people that we

Re: [whatwg] `brand-color` meta extension

2014-08-20 Thread Mark Callow
On 2014/06/26 12:58, Marcos Caceres wrote: I would be in favor of this. It would be good to support the legacy content as its use on the Web is significant. Search I did back in Oct 2013 found these proprietary tags appeared on something like 1% of pages in Alexa's top 78K pages 1%!

Re: [whatwg] `brand-color` meta extension

2014-08-20 Thread Tab Atkins Jr.
On Wed, Aug 20, 2014 at 12:39 PM, Mark Callow callow.m...@artspark.co.jp wrote: On 2014/06/26 12:58, Marcos Caceres wrote: I would be in favor of this. It would be good to support the legacy content as its use on the Web is significant. Search I did back in Oct 2013 found these proprietary