androidjwplayerjwplayer6jwplayer7

How to disable auto-rotation in jwplayer library?


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


Solution

  • 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" />