Re: [mediacapture-main] Allow device capabilities to be discoverable via enumerateDevices

@joeberkovitz I believe Adam is suggesting this:

    interface MediaDeviceInfo {
        readonly    attribute DOMString       deviceId;
        readonly    attribute MediaDeviceKind kind;
        readonly    attribute DOMString       label;
        readonly    attribute DOMString       groupId;
        serializer = {attribute};
    };

    interface InputDeviceInfo : MediaDeviceInfo {
        MediaTrackCapabilities          getCapabilities ();
    };

Note that [the webidl spec 
says](https://heycam.github.io/webidl/#idl-dictionaries): 
"Dictionaries MUST NOT be used as the type of an attribute or 
constant." - because they have copy-semantics.

It's a little odd perhaps that the capabilities are not serializable, 
but I can live with that.

-- 
GitHub Notif of comment by jan-ivar
See 
https://github.com/w3c/mediacapture-main/pull/211#issuecomment-142155718

Received on Tuesday, 22 September 2015 01:30:35 UTC