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 currentTim

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 wrote: 于 2014年08月20日 15:52, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 3:54 PM, duanyao wrote: I'm not familiar with game programing. Are sound effects small audio files that are usually played as a whol

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 wrote: > 于 2014年08月20日 15:52, Philip Jägenstedt 写道: > >> On Tue, Aug 19, 2014 at 3:54 PM, duanyao wrote: >>> >>> I'm not familiar with game programing. Are sound effects small audio >>> files >>> that are usually >>> played as a whole? Then it should be s

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 wrote: 于 2014年08月19日 20:23, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 11:56 AM, duanyao wrote: If the media element object keeps track of its current playing url and current position (this requires littl

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 wrote: > 于 2014年08月19日 20:23, Philip Jägenstedt 写道: > >> On Tue, Aug 19, 2014 at 11:56 AM, duanyao wrote: >>> >>> If the media element object keeps track of its current playing url and >>> current position (this requires little memory), and the media file

Re: [whatwg] Memory management problem of video elements

2014-08-19 Thread duanyao
于 2014年08月19日 20:23, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 11:56 AM, duanyao wrote: 于 2014年08月19日 16:00, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 9:12 AM, duanyao wrote: Hi, Recently I have investigated memory usage of HTML video element in several desktop browsers (firefox an

Re: [whatwg] Memory management problem of video elements

2014-08-19 Thread Philip Jägenstedt
On Tue, Aug 19, 2014 at 11:56 AM, duanyao wrote: > 于 2014年08月19日 16:00, Philip Jägenstedt 写道: > >> On Tue, Aug 19, 2014 at 9:12 AM, duanyao wrote: >>> >>> Hi, >>> >>> Recently I have investigated memory usage of HTML video element in >>> several desktop browsers (firefox and chrome on windows and

Re: [whatwg] Memory management problem of video elements

2014-08-19 Thread duanyao
于 2014年08月19日 16:00, Philip Jägenstedt 写道: On Tue, Aug 19, 2014 at 9:12 AM, duanyao wrote: Hi, Recently I have investigated memory usage of HTML video element in several desktop browsers (firefox and chrome on windows and linux, and IE 11), and have found some disappointing results: 1. A vide

Re: [whatwg] Memory management problem of video elements

2014-08-19 Thread Philip Jägenstedt
On Tue, Aug 19, 2014 at 9:12 AM, duanyao wrote: > Hi, > > Recently I have investigated memory usage of HTML video element in > several desktop browsers (firefox and chrome on windows and linux, and > IE 11), and have found some disappointing results: > > 1. A video element in a playable state cons

[whatwg] Memory management problem of video elements

2014-08-19 Thread duanyao
Hi, Recently I have investigated memory usage of HTML video element in several desktop browsers (firefox and chrome on windows and linux, and IE 11), and have found some disappointing results: 1. A video element in a playable state consumes significant amount of memory. For each playing or paused