Re: Synchronous versus asynchronous getSourceInfos

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 Saturday, 8 June 2013 01:15:02 UTC