Re: Synchronous versus asynchronous getSourceInfos

Yeah, you are absolutely right. No need to have a response object and the
callback should be void.


On Sat, Jun 8, 2013 at 3:14 AM, Dominique Hazael-Massieux <dom@w3.org>wrote:

> Le vendredi 07 juin 2013 à 16:04 +0200, Tommy Widenflycht (ᛏᚮᛘᛘᚤ) a
> écrit :
>
> > interface MediaStreamTrack {
> >     ...
> >     static void getSources(MediaStreamTrackSourcesCallback callback);
> >     ...
> > };
>
> Sounds good
>
> > callback interface MediaStreamTrackSourcesCallback {
> >     boolean handleEvent(MediaStreamTrackSourcesResponse response);
> > };
>
> > [
> >     NoInterfaceObject
> > ] interface MediaStreamTrackSourcesResponse {
> >     sequence<SourceInfo> sources();
> > };
>
> That can be simplified in
>         callback MediaStreamTrackSourcesCallback = boolean
> (sequence<SourceInfo> sources);
> although I'm not sure what you want the boolean for — shouldn't that be
> void instead?
>
> Dom
>
>
>

Received on Monday, 10 June 2013 10:53:55 UTC