<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thinkAmi</author_name>
  <author_url>https://blog.hatena.ne.jp/thinkAmi/</author_url>
  <blog_title>メモ的な思考的な</blog_title>
  <blog_url>https://thinkami.hatenablog.com/</blog_url>
  <categories>
    <anon>Android</anon>
  </categories>
  <description>5年くらい前、Djangoでバーコードを出力する機能も備えたアプリを作りました。 ダンボールに入れた本を管理するDjangoアプリ「danborary」を作った - メモ的な思考的な 当時、バーコードを読むためには物理バーコードリーダーを用意していました。ただ、物理バーコードリーダーはPCと接続する必要があることから、運用の手間を感じるようになりました。 時は流れ、ふと「スマホでバーコードリーダーを作ればよいのでは」と思い立ちました。 まずはWeb標準でカメラを扱えないかを調べたところ、 MediaDevices APIがありました。 MediaDevices - Web API | MDN …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinkami.hatenablog.com%2Fentry%2F2025%2F12%2F26%2F203222&quot; title=&quot;Web標準のMediaDevices APIやBarcodeDetector APIを使って、Androidで動くPWA版バーコードリーダーを作ってみた - メモ的な思考的な&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-26 20:32:22</published>
  <title>Web標準のMediaDevices APIやBarcodeDetector APIを使って、Androidで動くPWA版バーコードリーダーを作ってみた</title>
  <type>rich</type>
  <url>https://thinkami.hatenablog.com/entry/2025/12/26/203222</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
