Created
June 7, 2020 12:05
-
-
Save sonnysantino/1b9e210c5e307e736631138d148d84f7 to your computer and use it in GitHub Desktop.
react-native-video+5.0.2.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/react-native-video/android-exoplayer/build.gradle b/node_modules/react-native-video/android-exoplayer/build.gradle | |
index 5baf953..ae7a84e 100644 | |
--- a/node_modules/react-native-video/android-exoplayer/build.gradle | |
+++ b/node_modules/react-native-video/android-exoplayer/build.gradle | |
@@ -23,7 +23,10 @@ android { | |
dependencies { | |
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" | |
- implementation('com.google.android.exoplayer:exoplayer:2.9.3') { | |
+ | |
+ def exoPlayerVersion = safeExtGet("exoPlayerVersion", '2.10.1') | |
+ | |
+ implementation("com.google.android.exoplayer:exoplayer:${exoPlayerVersion}") { | |
exclude group: 'com.android.support' | |
} | |
diff --git a/node_modules/react-native-video/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/node_modules/react-native-video/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | |
index 1edb8c7..654096b 100644 | |
--- a/node_modules/react-native-video/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | |
+++ b/node_modules/react-native-video/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | |
@@ -413,8 +413,8 @@ class ReactExoplayerView extends FrameLayout implements | |
minLoadRetryCount, DashMediaSource.DEFAULT_LIVE_PRESENTATION_DELAY_MS, | |
mainHandler, null); | |
case C.TYPE_HLS: | |
- return new HlsMediaSource(uri, mediaDataSourceFactory, | |
- minLoadRetryCount, mainHandler, null); | |
+// return new HlsMediaSource(uri, mediaDataSourceFactory, | |
+// minLoadRetryCount, mainHandler, null);null | |
case C.TYPE_OTHER: | |
return new ExtractorMediaSource(uri, mediaDataSourceFactory, new DefaultExtractorsFactory(), | |
mainHandler, null); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The patch doesn't seem to work with version 5.0.2.
I get
error: corrupt patch at line 31
.Btw.: How did you create a patch file for files changes inside
node_modules
since they are not tracked with git?