<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Web-Api on Carlos Urreta&#39;s Weblog</title>
    <link>https://urreta.com/tags/web-api/</link>
    <description>Recent content in Web-Api on Carlos Urreta&#39;s Weblog</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Tue, 06 Jan 2026 09:49:47 -0600</lastBuildDate>
    <atom:link href="https://urreta.com/tags/web-api/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Debugging the Browser Camera API</title>
      <link>https://urreta.com/2026/01/06/debugging-the-browser-camera-api/</link>
      <pubDate>Tue, 06 Jan 2026 09:49:47 -0600</pubDate>
      <guid>https://urreta.com/2026/01/06/debugging-the-browser-camera-api/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been adding a feature to &lt;a href=&#34;https://garbs.net&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Garbs.net&lt;/a&gt; that lets you take photos directly from the browser using the &lt;a href=&#34;https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;ImageCapture API&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It was working great on my Pixel 9a, but when my sister tested on her Galaxy S21, all our closeup test shots were coming out blurry. The issue? Her phone has an extra ultrawide lens with a fixed focus, and my code wasn&amp;rsquo;t picking the correct camera.&lt;/p&gt;&#xA;&lt;p&gt;After some digging, I discovered that Camera 0 (the &amp;ldquo;Main&amp;rdquo; camera) was being returned as index 3 or 4 on her device. The camera enumeration order isn&amp;rsquo;t consistent across phones.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
