Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

set Camera lanscape

Abierto
#2,034 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
android, kotlin

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?
Lenguaje dominante
Kotlin
Estrellas
3k
Forks
946
Merge medio
5 d 1 h
PR fusionados (30 d)
6

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pedroSG94/RootEncoder

Todos los issues de pedroSG94/RootEncoder

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.