[IMX8MQ] Android video play issue on portrait mode

cancel
Showing results for 
Search instead for 
Did you mean: 

[IMX8MQ] Android video play issue on portrait mode

427 Views
mayqueen
Contributor IV

Hello

OS: Android 9, Android 8.1

Kernel: 4.14.78, 4.9.88

I got an issue on video play including custas player and aosp default player, because my mipi-dsi panel is a portrait panel, and I already rotate 90 degrees on the system when boot, but video play still landscape mode as below picture..

rotate_0.jpg

And I also try to modify OMXPlayer HAL layer or framework libstagefright to force rotate 90 degrees to video player but the results still strange...↓↓↓↓

rotate_90.jpg

So I think the 1st picture seems like the video to be scaling, and 2nd picture is the standard portrait mode video (but I'm in landscape mode), so anybody knows how to force rotate 90 degrees no matter modify HAL or framework? I need help, thanks!

Tags (2)
0 Kudos
3 Replies

187 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Have you tried to change into portrait mode through adb?

adb shell settings put system accelerometer_rotation 0  #disable auto-rotate
adb shell settings put system user_rotation 3  #270° clockwise

Hope this could help you.

Best regards,

Diego.

0 Kudos

187 Views
mayqueen
Contributor IV

Already fix it on HAL layer, but it's very dirty hack so I don't want to show it public :smileysad:
Thanks!

170 Views
owen_wen
Contributor III

can you please share, we can find a better solution maybe

0 Kudos