-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Android support #103
Android support #103
Conversation
- Newer syntax. - Removed lodash dependency. - Removed hard-coded ref. - Seek using state.
1d378ae
to
0de0ed0
Compare
0de0ed0
to
1746779
Compare
Remove seek from state.
rate won't be supported on Android for a while as the native MediaPlayer class doesn't support it either.
@isair could you provide a gist or readme on installation instructions? I recognize the risk on my end, but i would be eternally grateful as time is of the essence and i really need this :) |
@jforaker You need to make additions to 3 files in your react-native project. android/settings.gradle
android/app/build.gradle
MainActivity.javaOn top, where imports are: import com.brentvatne.react.ReactVideoPackage; Under .addPackage(new ReactVideoPackage()) |
Thanks! Howerver, I think you forgot
I did npm install keymirror and that did not help. Ideas? |
@isair After testing a few times, few different configs, the video does not play, and i keep getting this error in Android Studio (no errors in chrome):
I have the "broadchurch.mp4" in the same directory as my video component, calling it like this:
Does it work for you? Am I setting the source incorrectly? (tried new |
@jforaker Try putting your video file in your Android raw sources folder. |
Ok I tried all of these: and get the same error
Also tried a youtube source and get this:
|
|
BOOM goes the dynamite! There it is!! 👍 thank you |
Be sure to make a note in the install docs:
aka filename must only contain lowercase a-z, 0-9, or underscore |
@jforaker Will keep in mind, cheers! |
Reviewed 8 of 11 files at r1, 4 of 4 files at r2. Comments from the review on Reviewable.io |
😍 |
@isair it seems to be broken in 0.16.0 (was working flawlessly in 0.15 and under). Possibly related to facebook/react-native#4605 < check it out |
@isair - this is working great so far! @jforaker - submitted a PR upstream to fix this. Also added the example project so I checked that off above. If you want to add the documentation above to the README (follow the steps verbatim and it worked without a hitch) I'm comfortable landing this now if you are! |
@brentvatne Thanks for fixing that issue. I'll update the README and finalize this PR tonight. |
Reviewed 26 of 32 files at r3, 1 of 1 files at r4, 2 of 8 files at r5. Comments from the review on Reviewable.io |
@brentvatne Haha, my pleasure. |
Whoa, this looks awesome. Is this about to get merged today? |
Yes, merge merge merge :-) |
Closes #91, fixes #94.