Re: [w3ctag/design-reviews] TAG review request: MediaStream Image Capture API (Pan/Tilt feature) (#358)

Image Capture provides a way to query the supported the [MediaTrackCapabilities](https://w3c.github.io/mediacapture-image/#mediatrackcapabilities-section), by querying that on a video track you'll get for both `pan` and `tilt` their allowed ranges and steps, e.g for `pan` (same for `tilt`):

```
const trackCapabilities = imageCapturer.track.getCapabilities();
if (trackCapabilities.pan === undefined) {
  console.error('pan not supported, boo!');
} else {
  const maxPan = trackCapabilities.pan.max;
  const minPan = trackCapabilities.pan.min;
  const stepPan = trackCapabilities.pan.step;
}
```

All those numerical values will be in arc-seconds.




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/358#issuecomment-476769838

Received on Tuesday, 26 March 2019 17:49:02 UTC