Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Warn developers about absolute/relative UVC controls #4941

Merged
merged 2 commits into from
Mar 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions src/site/content/en/blog/camera-pan-tilt-zoom/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ subhead:
authors:
- beaufortfrancois
date: 2020-10-05
updated: 2020-11-18
updated: 2021-03-22
hero: image/admin/wbcUb7ooaR1nCeYnSiCV.jpg
thumbnail: image/admin/eBugU3Spjq9df1qb5l0b.jpg
alt: Five persons in a conference room photo.
Expand Down Expand Up @@ -106,10 +106,18 @@ try {

To know whether a Chromium-based browser supports PTZ for a camera, go to the
internal `about://media-internals` page and check out the "Pan-Tilt-Zoom" column
in the "Video Capture" tab.
in the "Video Capture" tab; "pan tilt" and "zoom" respectively mean the camera supports
the "PanTilt (Absolute)" and "Zoom (Absolute)" [UVC controls]. The "PanTilt (Relative)"
and "Zoom (Relative)" UVC controls are not supported in Chromium-based browsers.

<figure class="w-figure">
{% Img src="image/admin/TbU7mM3pfq0bNTkgiOnZ.jpg", alt="Screenshot of the internal page in Chrome OS to debug PTZ camera support.", width="800", height="500", class="w-screenshot" %}
{% Img
src="image/vvhSqZboQoZZN9wBvoXq72wzGAf1/4EDS8fYYifXAUY6SBaiV.png",
alt="Screenshot of the internal page in Chrome OS to debug PTZ camera support.",
width="800",
height="481",
class="w-screenshot"
%}
<figcaption class="w-figcaption">Internal page to debug PTZ camera support.</figcaption>
</figure>

Expand Down Expand Up @@ -220,8 +228,9 @@ Hero image by [Christina @ wocintechchat.com] on [Unsplash].
[mandatory constraints]: https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API/Constraints#Specifying_a_range_of_values:~:text=mandatory
[`MediaStream`]: https://developer.mozilla.org/en-US/docs/Web/API/MediaStream
[Permissions API]: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API
[UVC controls]: https://www.usb.org/document-library/video-class-v15-document-set
[PTZ advanced constraints]: https://bugs.chromium.org/p/chromium/issues/detail?id=1126045
[Page Visibilty API]: https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
[Page Visibility API]: https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
[demo]: https://ptz.glitch.me/
[check out the source code]: https://glitch.com/edit/#!/ptz?path=public%2Fscript.js
[run Chrome with the switch]: https://www.chromium.org/developers/how-tos/run-chromium-with-flags
Expand Down