-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does PTZ look good to you? #263
Comments
@beaufortfrancois Great to hear you're close! I missed the meeting, but I agree with the resolutions posted in the minutes. I haven't had time to play with it, and this is unfortunately an area where we don't have good web platform tests, so it's a bit hard to judge. I've commented in the PRs where I feel details still need to be sorted out, so I'm not exactly sure which interpretation of the consensus Chrome aligns with. For instance, I'm going to guess it doesn't implement fitness distance, since #257 got closed. |
Chrome implements fitness distance so that |
@eehakkin Thanks for the info. Had you said But My preference here would be to revive #257 and deprecate I approve of the behavior for |
|
For info, we've shared our intent to ship Camera PTZ support in Chrome 87. |
Does anyone know of a list of compatible cameras that will support these capabilities. I have a Logitech brio which seems to support it digitally, but it doesn't seem to work fully with Logitech PTZ PRO2. It seems there is partial support, for zoom, but not pan or tilt. Any idea why it doesn't report the full capabilities? |
@louisparks I'm surprised the Logitech PTZ PRO2 doesn't report pan & tilt capabilities when looking at the spec. |
@beaufortfrancois thank you so much for responding. This is what the camera reports and it's consistent with what I see. Zoom is controllable but not pan or tilt. Is this something Logitech needs to address? Would this require firmware or driver update? |
I'm surprised only "zoom" is advertised. Which operating system do you use? Can you reproduce on others (Windows, macOS, Linux)? |
I believe you use macOS as the Capture API is "AV Foundation". Can you reproduce on Windows, Linux, or Chrome OS by any chance? In other words, do you see "pan" and "tilt" on other desktop platforms? |
I guess this is a Logitech issue then. @ogay Would you be able to help with this? |
I don't have a linux bare metal install, but this is how it reports it in a Parallel's ubuntu VM. seems to see the same Thanks for any help on this. We have contacted Logitech many times, but it's been impossible to get a hold of anyone that can really understand the issue, which of course leads them to just blame it on Chrome. |
It seems like the PTZ Pro 2 (and Rally) cameras use the VISCA protocol which explain why Pan and Tilt are not exposed in Chromium. It only uses UVC to detect Pan, Tilt, and Zoom. |
We did think about VISCA here. It would be great if someone picks up the work. |
Thank you again @beaufortfrancois for the response, Are you saying that Chrome uses UVC for the detection? FWIW, we have an electron container that controls this cameras pan, tilt and zoom on these cameras via UVC, so I know it does implement UVC as well. Our goal is to get rid of the container if we can get Chrome to do it natively. We just can't get this one specific camera to work Thanks.. |
Yes.
Can you share public electron code that uses UVC (ant not VISCA) to control PTZ?
|
we are using this library, https://www.npmjs.com/package/uvc-control2 Thanks again for your help |
Can you share the code you're using to control PTZ when using this library? |
When controlling PTZ, do you use |
I know relative was more what we finally implemented, but let me see if we got absolute working as well. Below is the code for UVCControl lib and that Logitech camera this.uvcCamera = new UVCControl(1133, 2143); ptz(action: string): void {
} |
Chromium only uses pan and tilt absolute controls, not relative ones. |
I've added the paragraph below to https://web.dev/camera-pan-tilt-zoom/
|
All PTZ related PRs have been merged, so this can be closed. |
Been playing around with this - really great work here. As mentioned above -- any suggestions on what to do with the cameras that just respond to relative tilt & pan controls (e.g Logitech Rally and PTZ Pro 2)? These cameras just report out |
Great question.. would love to hear about work arounds |
Do these cameras offer a way to reset pan and tilt (to straight ahead)? If so, user agents might be able to map some virtual coordinate system ontop of this, and keep track of absolute position and tilt. |
@jan-ivar I'm looking, but the capabilities returned by these two cameras only seem to show that |
Sorry, I'm not suggesting there is support or providing a workaround. My comment was that browsers should be able to add support using the technique I mentioned, without requiring that we change the API. This issue tracker is for discussing the specification, not individual browser implementations. |
Yes sounds good. In that spirit, I've opened up #281 to discuss introducing some type/any type of support for the relative pan/tilt cases. |
Hi, this is for anyone who is looking for a good PTZ camera. I can confirm that the Atlona AT-HDVS-CAM PTZ Camera with USB works in chrome. |
dannyvargas23, thanks for your comment. Hey everyone, Please give me more recommendations for the ptz cameras that would work in chrome with WebUSB API. I've to urgently buy a camera that would work with absolute Pan/tilt commands supported by chrome and webUSB API. Your recommendations would be highly appreciated. |
|
I think you're hitting https://bugs.chromium.org/p/chromium/issues/detail?id=1270335 sadly. |
Thanks for the heads up. This is unfortunate. :-/ |
We are ready to ship Camera Pan-Tilt-Zoom support in Chromium with latest spec changes (#261, #260) and we'd love to hear what WebKit (@youennf) and Gecko (@jan-ivar) folks think about this.
In other words, do you folks agree with the overall consensus found at the previous virtual interim event?
And more specifically, is this realistic to think spec authors will have merged remaining PTZ related PRs in the coming days?
For info, you can play with Camera PTZ in Chrome Canary by going to https://ptz.glitch.me and enabling the
experimental-web-platform-features flag
in chrome://flags.The text was updated successfully, but these errors were encountered: