react-native-video-player icon indicating copy to clipboard operation
react-native-video-player copied to clipboard

Android fullscreen via bridging

Open ShariqMush opened this issue 6 years ago • 35 comments

Native bridge to android launching android video view in fullscreen, hours of work of sweat and tears!!! To all the other developers, please use this github library for working fullscreen until the developer of this library merges the pull request :) I will be updating that fork as well.

ShariqMush avatar Jul 18 '17 13:07 ShariqMush

Thanks for this commit. Do you by any change have the rest of the Android project?

cornedor avatar Jul 25 '17 09:07 cornedor

@cornedor Nope, readme says it all.

ShariqMush avatar Jul 25 '17 10:07 ShariqMush

Ah I didn't see that, thanks. I'll try to make this work with react-native link.

cornedor avatar Jul 25 '17 11:07 cornedor

@cornedor Can you check my pull request? It is native and performs better than react because in react you would have to resize the video component which is unstable where native video player fixes it all in native so please check my request and merge it. Thank you.

ShariqMush avatar Aug 11 '17 12:08 ShariqMush

@ShariqMush yes I agree, I have more time after next week, so I will try to make it work with react-native link. If you update the app now you will need to manually copy the files from the repo to your own project.

I do appreciate all the work you did to get it this far.

cornedor avatar Aug 11 '17 13:08 cornedor

I spent the last few days looking for the best full-screen android option for RN and I think this pull request is the best available. A few issues though.

1 - No option to leave fullscreen (other than the back button) once in fullscreen. 2 - Position of video is not retain when switching between inline and fullscreen.

I have written fixes to both of these issues (doubleclick on fullscreen to close and passing of position between activities), though I have not tested it much, would appreciate someone else running their eyes over it to make sure I've not missed anything?

https://github.com/abrown1982/react-native-video-player/commit/43bffe53e747a13a1db712c40ab917a296c791ee

abrown1982 avatar Sep 22 '17 19:09 abrown1982

This works great, but fullscreen has native controls, not the react-native-video-player controls. Can something be done about this, or is it too compilcated?

Misiur avatar Sep 29 '17 11:09 Misiur

@Misiur Yes it is very complicated, why would you need the react controls when you are already getting the native controls?

ShariqMush avatar Sep 29 '17 14:09 ShariqMush

Missing back-from-fullscreen button, missing volume controls, just all around missing functionality - that's why I'm using react-native-video-player in the first place! (well, and your awesome native fullscreen functionality)

Misiur avatar Sep 29 '17 21:09 Misiur

@Misiur For the back button, why not use the ordinary back button on any android device lol but I can look at the volume controls for you but then its pretty much like the player rebuilt into the native but yeah I will look forward to it but please post an issue on my fork. I will be posting further updates there until this pull request gets accepted.

ShariqMush avatar Sep 30 '17 10:09 ShariqMush

Any update on that one? would be great if you could merge it, I was not able to make it work following the described steps. Thanks!

rnowm avatar Oct 23 '17 14:10 rnowm

@Misiur I agree with you, native control don't have back fullscreen, and the control are hard to make a custom control bar like without fullscreen

callmejm avatar Oct 27 '17 18:10 callmejm

+1

solonik1 avatar Nov 20 '17 14:11 solonik1

@ShariqMush , @abrown1982: Ot, I have a problem, I created a native module, but when you start the native module all right, it works. But if the user presses the physical back button, the app crashes, how can I fix this? I would like when the user presses the physical back button, he returns to the native react app at the point I had left before the native module started.

Angelk90 avatar Dec 17 '17 00:12 Angelk90

@ShariqMush Native player is working fine, but no callbacks are working in full screen mode, like onEnd, onFullscreenPlayerDidDismiss etc. how can we register these events in fulscreen mode as that of ios.

kashifaliquazi avatar Jan 22 '18 12:01 kashifaliquazi

@abrown1982 can you pleae help me in adding callbacks(onEnd,onFullscreenPlayerDidDismiss etc ) on full screen mode. thanks in Advance

kashifaliquazi avatar Jan 22 '18 14:01 kashifaliquazi

@kashifaliquazi I'm working to a deadline at the moment so don't have any time available in the next week or so.

abrown1982 avatar Jan 23 '18 10:01 abrown1982

I have been away from my computer but I'll be updating the fork asap with the callbacks.

ShariqMush avatar Feb 10 '18 12:02 ShariqMush

@ShariqMush I installed your library but the fullscreen button is not present anyway. @cornedor Would not it be better to keep a single library?

Ilario17 avatar Feb 10 '18 13:02 Ilario17

It's been a month since the last update here... Any news?

hoscarcito avatar Mar 16 '18 06:03 hoscarcito

I too tried with PR#38 no errors but the fullscreen button on Android does not show. I am using react native video player version #0.9.1. Any update please?

SujaYuga avatar Apr 21 '18 03:04 SujaYuga

Would love to see the FullScreen work.

xstable avatar May 09 '18 18:05 xstable

@hoscarcito @SujaYuga @xstable @Ilario17 I have been inactive for a while but will look at what the problem is very soon. Check forks of my own fork and there you should find some working ones.

ShariqMush avatar May 10 '18 19:05 ShariqMush

@ShariqMush Any progress here?

xstable avatar Jan 25 '19 08:01 xstable

@xstable Hi, I am not working with react native at the moment but I believe that the issue is related to react native library not any problem in the native code. If fullscreen button does not appear then you should tamper with the library files. Try pulling my fork of the video player to see if it works because some people made some PR's that I merged recently.

ShariqMush avatar Jan 27 '19 00:01 ShariqMush

I spent the last few days looking for the best full-screen android option for RN and I think this pull request is the best available. A few issues though.

1 - No option to leave fullscreen (other than the back button) once in fullscreen. 2 - Position of video is not retain when switching between inline and fullscreen.

I have written fixes to both of these issues (doubleclick on fullscreen to close and passing of position between activities), though I have not tested it much, would appreciate someone else running their eyes over it to make sure I've not missed anything?

abrown1982@43bffe5

@abrown1982 is there a chance to have a classic "x" as close-button in the Fullscreen-View? That would be awesome.

xstable avatar Feb 26 '19 11:02 xstable

is there any update for full screen mode on android??????

ghost avatar Mar 17 '19 21:03 ghost

Hey guys! Any news? We're getting tired of stretching video components manually.

onedevlad avatar Apr 05 '19 12:04 onedevlad

Hey guys! Any news? We're getting tired of stretching video components manually.

We need fullscreen feature on Android.

iamshadmirza avatar Oct 22 '19 07:10 iamshadmirza

@iamshadmirza Isn't the issue with the fullscreen fixed yet? I am not working with react native anymore :)

ShariqMush avatar Oct 22 '19 16:10 ShariqMush