FullscreenVideoView icon indicating copy to clipboard operation
FullscreenVideoView copied to clipboard

In fargment if video switch to full screen video restarted instead of resume.

Open VijaySnawane opened this issue 7 years ago • 4 comments

If we switch video from small screen to full screen and vice versa video restarted instead of resume.

VijaySnawane avatar May 16 '17 03:05 VijaySnawane

On Manifresh add android:configChanges="keyboard|keyboardHidden|orientation|screenSize" in tag

comando95 avatar May 26 '17 10:05 comando95

No its not working.

VijaySnawane avatar May 27 '17 05:05 VijaySnawane

any solution to this issue yet? I am still experiencing it.

kcochibili avatar Aug 29 '17 08:08 kcochibili

Hi @VijaySnawane @kcochibili So, probably, it is caused by the Fragment being recreated instead of video view being restarted :) There are many ways to avoid it but I suggest this link: https://stackoverflow.com/questions/31572340/prevent-android-fragment-from-being-recreated-on-device-rotate Unfortunatelly, it is an old question/issue even with the basic Activity (when onCreate is called after rotation). Please, see if when you avoid recreating Fragment/Activity works. I am trying to build an example with fragments, but I quite busy right now. Or, if you wanna make a simple sample creating a basic FragmentActivity to test (and share), I would be very gratefull :)

rtoshiro avatar Sep 03 '17 19:09 rtoshiro