Go back to the portrait from landscape automatically when the device is rotated.
[Phone state]
Portrait > Device rotate by user. > Landscape > Portrait(Automatically)
-> Deleting 'PlayerConfig', does not automatically change the state.
[manifest.xml]
[Style.xml]
true
[activity.java]
.....
mPlayerView.setSkin("jwplayer_style.css");
new KeepScreenOnHandler(mPlayerView, getWindow());
PlayerConfig config = new PlayerConfig.Builder()
.image(image)
.file(vod)
.advertising(advertising)
.autostart(false)
.build();
mPlayerView.setup(config);
....
Any way to solve this?
↧