1

How to disable auto-rotation in jwplayer library?

fragment.setFullscreenOnDeviceRotate(false);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
android:screenOrientation="landscape" android:configChanges="keyboard|keyboardHidden|orientation|screenSize"/>

not wokring.

I want to start with the Activity, orientation was landscape, including jwplayer

Video

3 Answers3

1
Add Screen orientation in AndroidManifest.xml

<activity
        android:name=".GalleryAlbumsActivity"
        android:label="@string/title_activity_image_gallery_albums"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
Sathish Gadde
  • 1,453
  • 16
  • 28
1

I had the same issue. I did all steps described here and nothing works for me, but I found a solution:

fragment.setFullscreenOnDeviceRotate(true)
playerView = fragment.player
playerView.setFullscreen(playerView.fullscreen, false)
0

Try to add android:screenOrientation="portrait" to the <activity> element in the manifest.

Can you show us maybe some parts of your code to help us solving your problem?

jdstaerk
  • 882
  • 1
  • 13
  • 30