w3c / tvcontrol-api

TV Control API specification - https://w3c.github.io/tvcontrol-api/
10 stars 11 forks source link

The `TVSourceSupportedConstraints` dictionary is not used #52

Open tidoust opened 7 years ago

tidoust commented 7 years ago

Section 6.5 defines the TVSourceSupportedConstraints dictionary but that dictionary is not used anywhere.

The TVManager interface should have a getSupportedConstraints method that returns such an object.

Now, adding that method would mean we'd have a getSupportedConstraints and a getCapabilities methods on the same interface (that does not happen in Media Capture and Streams as getSupportedConstraints is on MediaDevices while getCapabilities is on InputDeviceInfo). We may need to think about whether we need both of them.

Also, the height and tuningStep properties of the TVSourceCapabilities dictionary should be of type ConstrainLong, I believe.

(This issue was triggered by #50).

stevem-tw commented 7 years ago

I have added the getSupportedConstraints method in the latest editor's draft.

I wasn't sure whether the height and tuningStep properties should be long (identifying the maximum) or constrainLong (identifying the supported range). I'll look into this some more.