Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

The Rear camera is not working on devices with multiple cameras

オープン
#71 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
mobile-dev

調査の方向性

まず、レポートに示されている Camera.getPhoto 呼び出しと CameraDirection.Rear オプションに従い、Galaxy S20+ と Huawei P30 Lite で pwa-elements と Capacitor core を使ってカメラフローを再現します。複数のカメラを搭載したデバイスでのカメラ選択の動作を追跡します。報告されたデバイスで、フロントカメラから切り替えた後にリアカメラで撮影できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com

Current behavior:
The Rear camera is not working on devices with multiple cameras

Expected behavior:
It should work on S20+ and Huawey P30 Lite -> MAR-LX3A

Steps to reproduce:
Use pwa-elements and capacitor core on Galaxy S20+ them try to rotate the camera to the front one.
This will happen:
image

Related code:

import {
  Camera,
  CameraResultType,
  CameraSource,
  CameraDirection,
} from '@capacitor/core';

const image = await Camera.getPhoto({
        resultType: CameraResultType.DataUrl,
        source: CameraSource.Camera,
        direction: CameraDirection.Rear,
        quality: 100,
      });
      const imageDataUrl = image.dataUrl;
主要言語
TypeScript
スター
172
フォーク
50
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/pwa-elements のほかの issue

ionic-team/pwa-elements の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。