tcking / GiraffePlayer2

out of the box android video player(support lazy load, ListView/RecyclerView and hight performance)
Apache License 2.0
377 stars 110 forks source link

Handle Orientation Change in Fragment #193

Open abbaselectricwala opened 4 years ago

abbaselectricwala commented 4 years ago

i have multiple fragment in my activity. when i click on the expand button in the player in portrait mode it exits from the player moves to the first fragment in landscape mode with the audio running in background. i have added the orientation in manifest and also added the configuration change method in fragment and activity both. @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); PlayerManager.getInstance().onConfigurationChanged(newConfig); }

Would be great if you help me out with this.