语言

Menu
Sites
Language
Video player in landscape mode.

Hello,

I am working on video player functionality and I need to play full screen video in the both portrait and landscape modes. I tried to call player_set_display_rotation(mPlayer, PLAYER_DISPLAY_ROTATION_90); in order to rotate video, but it returns PLAYER_ERROR_INVALID_OPERATION. This means that such operation isn’t supported yet. Does anybody know when this operation will be implemented or there may be some workaround for that?

Thanks!

响应

4 回复
Alex Dem

Hi,
I tried to use this api on device and it have returned success(0). But nothing changed. Looks like display rotation was not applyed.
Alexey.

John Ixion

This article gives some tips on how your application can support different orientation modes in Tizen Native API.

https://developer.tizen.org/documentation/articles/responsive-ui-tizen-native

Alex Dem

Hi,
In accordance with documentation player_set_display_rotation is applicable for PLAYER_DISPLAY_TYPE_OVERLAY display type.
In case of PLAYER_DISPLAY_TYPE_EVAS display type you should rotate video with window manager as it was proposed in previous post.
see in dev-guide(find note)  https://developer.tizen.org/dev-guide/2.3.0/org.tizen.tutorials/html/native/multimedia/player_tutorial_n.htm#play_video
Alexey.

sangjin han
Hi, it will be returned invalid operation when u set X11 display pixmap cb. Try it again after calling player_unprepare...