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
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
I´m bluiding an app for an Android TV Device, that needs to reproduce video in Portrait mode. However the content is not showing propperly as it does when in Landscape. It seems that the video is not rotating according to the screen orientation defined in the MainActivity class (ScreenOrientation.Landscape), and it keeps thinking the device is always in default mode (Landscape) despite the configuration.
The issue appears to be exclusive to Android TV devices (tested in Xiaomi MiBox S), as it works as expected in cellphone Xiaomi Mi 9 SE. To clarify, Screen Orientation is fixed so there´s no device rotation involved in this issue.
Stack Trace
Link to Reproduction Sample
Steps to Reproduce
Create a Xamarin Forms Project with a MediaElement inside MainPage.xaml and a demo video for testing.
Set ScreenOrientation = ScreenOrientation.Portrait at MainActivity.cs on Android project.
Run in an Android TV device (Xiaomi Mi Box S was used in my case)
Expected Behavior
MediaElement displays videos propperly in vertical mode (Xiaomi Mi 9 SE).
Actual Behavior
MediaElement does not rotate videos propperly when in Portrait Screen Orientation mode. Also there seems to be an stretching issue. This in an Android TV Device (Xiaomi Mi Box S)
Basic Information
Version with issue: 2.0.2
Last known good version: None
IDE: Visual Studio Community 2022
Platform Target Frameworks:
Android: 10.0
Android Support Library Version:
Nuget Packages:
Affected Devices: Xiaomi Mi Box S (Android TV Device)
Workaround
Reproduction imagery
The text was updated successfully, but these errors were encountered:
Description
I´m bluiding an app for an Android TV Device, that needs to reproduce video in Portrait mode. However the content is not showing propperly as it does when in Landscape. It seems that the video is not rotating according to the screen orientation defined in the MainActivity class (ScreenOrientation.Landscape), and it keeps thinking the device is always in default mode (Landscape) despite the configuration.
The issue appears to be exclusive to Android TV devices (tested in Xiaomi MiBox S), as it works as expected in cellphone Xiaomi Mi 9 SE. To clarify, Screen Orientation is fixed so there´s no device rotation involved in this issue.
Stack Trace
Link to Reproduction Sample
Steps to Reproduce
Expected Behavior
MediaElement displays videos propperly in vertical mode (Xiaomi Mi 9 SE).
Actual Behavior
MediaElement does not rotate videos propperly when in Portrait Screen Orientation mode. Also there seems to be an stretching issue. This in an Android TV Device (Xiaomi Mi Box S)
Basic Information
Workaround
Reproduction imagery
The text was updated successfully, but these errors were encountered: