W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2020

Re: [mediacapture-image] The (bool or ConstrainDouble) case for pan/tilt/zoom is unclear (#225)

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 Apr 2020 09:49:39 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-620500816-1588067378-sysbot+gh@w3.org>
> For example, by saying that if any of the PTZ constraints is not unconstrained or has an ideal value, the permission must be requested.

I would love if we were not forcing web developers to provide "default" values for pan/tilt/zoom as there's no guarantee they would mean the same for all cameras.

// Prompt user to access camera, including camera movement.
await navigator.mediaDevices.getUserMedia({
  video: {
    pan: 0, // Let's cross fingers that 0 means "middle" here ;(
    tilt: 0, // Let's cross fingers that 0 means "middle" here ;(
    zoom: 1, // Let's cross fingers that 1 means "no zoom" here ;(

GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/225#issuecomment-620500816 using your GitHub account
Received on Tuesday, 28 April 2020 09:49:41 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:50 UTC