Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
  2.  
  3. @Override
  4. public void onConfigurationChanged(Configuration newConfig) {
  5. mJWPlayerView.setFullscreen(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE, true);
  6. super.onConfigurationChanged(newConfig);
  7.  
  8. }
  9.  
  10. PlaylistItem pi = new PlaylistItem.Builder()
  11. .file("https:" + videoModel.getVideoUrl().getHlsUrl())
  12. .build();
  13.  
  14. mJWPlayerView.load(pi);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement