Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Android - autorotate to portrait when exiting fullscreen mode


Hi

I'm using JWPlayer on Android and facing the following problem : Exiting the fullscreen mode automatically rotate the view to portrait even if I hold the device in landscape mode.

I'm using a JWPlayerFragment as described below :

mPlayerFragment = JWPlayerFragment.newInstance(playerConfig);
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.add(R.id.container_mctivity_module, mPlayerFragment);
ft.commit();
mPlayerFragment.setFullscreenOnDeviceRotate(false);

Thx for any help,

Regards.

3 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

You’ll probably want to implement this interface and handle exiting fullscreen on your own.
https://developer.jwplayer.com/sdk/android/reference/

Else you could use the JWPlayerView and Handle Orientation and fullscreen behavior yourself:
https://developer.jwplayer.com/sdk/android/docs/developer-guide/usage/jwplayer-view/

s...

User  
0 rated :

Ok thanks for your reply, even if this is a really strange default behavior...

Regards.

George

JW Player Support Agent  
0 rated :

Well the reasoning behind it is that fullscreen is in landscape, non fullscreen is in portrait. That won’t always be the case so we have the JWPlayerView and FullscreenHandler to allow developers to build their own behavior.

This question has received the maximum number of answers.