-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Controls doesn't appear on Android #1278
Comments
Ive hit the same issue, what version of React Native are you using? Im currently on 0.56. |
I'm using 0.57.0 for now to 'fix' this issue I'm using react-native-media-controls on the code I do that
But I'd like to use just react-native-video, it's a great library, and if you use react-native-media-controls, you need to use react-native-orientation to check if the dispositive is on LANDSCAPE mode and if yes, hide manualy other components, like this:
It's crazy! |
One thing to keep in mind is that it looks like the https://github.com/react-native-community/react-native-video#controls
|
On iOS, the system provides a default set of controls that are intended for developers who don't want to build their own controls. Android doesn't have a similar feature, so we'd have to build it or include the sample controls provided by ExoPlayer. Imo, those look like crap so I have not wanted to include them, it makes more sense to use a package like react-native-media-controls or build your own. I have a set of controls that are fairly nice that I could release as a separate module but haven't gotten approval from my employer to open source them. DOM refers to react-native-dom implementation of React Native for the web. The html5 video element spec requires it to provide a set of controls. |
Opened a PR (#1414) for showing the controls in Android Exoplayer. |
Current behavior
My component video doesn't work on Android, the controls simply doesn't appear, on iPhone works 100%.
Reproduction steps
Run on Android simulator.
Expected behavior
The controls (play, pause, stop...) should appear
Platform
Which player are you experiencing the problem on:
Video sample
https://youtu.be/Aa8UKZVNckw
settings.gradle
build.gradle
MainApplication.java
Component
The text was updated successfully, but these errors were encountered: