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

Play full screen error #199

Open tanvan81 opened 4 years ago

tanvan81 commented 4 years ago

Hi.

I've setup play video success. But when I click full screen, breakout and return main page

tridipk commented 4 years ago

This might be an issue with configuration change specifically orientation change. Try this and see if it helps:

Add this in your activity/fragment class:

@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); PlayerManager.getInstance().onConfigurationChanged(newConfig); }

Also add this line to your activity in android manifest file:

android:configChanges="orientation"

tanvan81 commented 4 years ago

still error

When I run full screen, onConfigurationChanged event not raise

KunalDhyani commented 4 years ago

Try my fork maybe it works for you