W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2012

Re: Feedback on the recording proposal

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 10 Oct 2012 01:00:43 +1300
Message-ID: <CAOp6jLbktGBsBZLijD=f-rEzhrbZhUVpWDNApko+W09-vSrCkQ@mail.gmail.com>
To: Adam Bergkvist <adam.bergkvist@ericsson.com>
Cc: "public-media-capture@w3.org" <public-media-capture@w3.org>
On Wed, Oct 10, 2012 at 12:11 AM, Adam Bergkvist <
adam.bergkvist@ericsson.com> wrote:

> On 2012-10-09 07:13, Robert O'Callahan wrote:
>
>  Does the last dataavailable event happen before or after the
>> stoprecording event? I guess it should be "before".
>>
>
> What if the data (on some platforms) needs to undergo some processing
> before it can be handed to the application as a Blob. Shouldn't
> "stoprecording" fire when the recording is actually stopped and then
> "dataavailable" when the Blob is available.
>

How then would you know when you've received all the data packets?

Since events fire asynchronously, you can't fire stoprecording "when" the
recording stops, only after it has stopped, so I think it's OK to delay it
until after the last dataavailable.

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]
Received on Tuesday, 9 October 2012 12:01:11 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:02 GMT