-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 improvements : prop showOnEnd & Overlay #41
Comments
Hey! Thank you very much! Really appreciate it. The changes look good, apparently some eslint issues but should be easy fix. I'll test them today as well and we'll definitely merge them. The |
Once again, thank you very much for the effort you put in! Working on a new release just now. |
Glad I was able to improve your project! |
Can we embed youtube, dailymotion [...] videos in your VideoPlayer component? Because I tried but I couldn't. |
Unfortunately, I don't think that's possible. What I suggest is using a <SafeAreaView
style={{
flex: 1,
opacity: 0.99, // Removing this line might crash the app: https://stackoverflow.com/a/74577941/14056591
}}
>
<WebView
javaScriptEnabled={true}
source={{ uri: 'https://www.youtube.com/embed/DGQwd1_dpuc?rel=0&autoplay=0&showinfo=0&controls=0' }}
/>
</SafeAreaView> Sources: |
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-native-media-console@2.0.1
for the project I'm working on.Firstly I added showOnEnd prop to show controls when video is ended.
Secondly I added Overlay component under the controls to show them better when video background is near white color.
I can't make a pull request as I can't push a branch on the repository. Feel free to integrate this patch or tell me how to make pull request if you prefer.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: