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

set Camera lanscape

オープン
#2,034 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, kotlin

調査の方向性

The report is about GenericStream with CameraXSource, using getGlInterface() to set autoHandleOrientation, setIsPortrait and setCameraOrientation, then prepareVideo at 720x480 with rotation 0. Start by reproducing the stretched preview on a portrait device and checking how the GL interface handles orientation and aspect ratio. Done means a 720x480 preview with no stretching or black bars in portrait, confirmed on a device. The thread has no answer, so confirm with a maintainer that this is a bug and not a configuration issue first.

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

説明

Is it possible to set the camera to landscape mode when the screen is in portrait orientation?

https://github.com/pedroSG94/RootEncoder/issues/407

Currently, to shoot wide videos, I have to rotate the phone. I need 720x480 in portrait mode (so there are no black bars on the sides). I've tried everything, but the preview keeps stretching.

val stream = GenericStream(baseContext, this, CameraXSource(), NoAudioSource()).apply {
    getGlInterface().autoHandleOrientation = false
    getGlInterface().setIsPortrait(false)
    getGlInterface().setCameraOrientation(0)
}

stream.prepareVideo(
        width = 720,
        height = 480,
        rotation = 0,
)

stream.startPreview()

``

What else needs to be done to get the camera in 720x480 resolution in portrait mode?
主要言語
Kotlin
スター
3k
フォーク
946
平均マージ
5日 1時間
マージ済み PR(30日)
6

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

pedroSG94/RootEncoder のほかの issue

pedroSG94/RootEncoder の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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