[IMX8MQ] Android video play issue on portrait mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

[IMX8MQ] Android video play issue on portrait mode

1,721 次查看
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!

标记 (2)
0 项奖励
回复
3 回复数

1,481 次查看
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 项奖励
回复

1,481 次查看
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!

1,464 次查看
owen_wen
Contributor III

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

0 项奖励
回复