You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you call startPreview() and supply a width and height that are the same, the resulting preview is distorted and does not preserve the aspect ratio of the image.
To Reproduce
Steps to reproduce the behavior:
Clone the repository here: https://github.com/replicant1/OpenGLViewRootEncoderProblem
In the file InstructorStreamFragment.kt go to the surfaceChanged() function and set the width and height of the preview to a resolution that is supported by your device's camera. Make sure the width and height are the same.
Run the app on your device
Observe that the preview is distorted
Expected behavior
The preview should not be distorted, but should be adjusted with black gutters to fit on the screen.
Smartphone (please complete the following information):
Library version 2.4.5
Device: Pixel 6
OS: Android 14
Media server [e.g. srs, version 5.0]
Class used RtmpCamera1, OpenGlView
The text was updated successfully, but these errors were encountered:
When you call
startPreview()
and supply a width and height that are the same, the resulting preview is distorted and does not preserve the aspect ratio of the image.To Reproduce
Steps to reproduce the behavior:
https://github.com/replicant1/OpenGLViewRootEncoderProblem
InstructorStreamFragment.kt
go to thesurfaceChanged()
function and set the width and height of the preview to a resolution that is supported by your device's camera. Make sure the width and height are the same.Expected behavior
The preview should not be distorted, but should be adjusted with black gutters to fit on the screen.
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: