From d63c690899e7d92bb7850a7a730648c1c515c362 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Mon, 28 May 2018 22:12:02 -0700 Subject: [PATCH] Add instructions for using ExoPlayer Update Android instructions for using both ExoPlayer and the old Android player --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 4d805b42..764644a4 100644 --- a/README.md +++ b/README.md @@ -79,11 +79,21 @@ Or if you have trouble, make the following additions to the given files manually **android/settings.gradle** +The newer ExoPlayer library will work for most people. + +```gradle +include ':react-native-video' +project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer') +``` + +If you need to use the old Android media player based player, use the following instead: + ```gradle include ':react-native-video' project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android') ``` + **android/app/build.gradle** ```gradle @@ -116,6 +126,7 @@ protected List getPackages() {
Windows + Make the following additions to the given files manually: **windows/myapp.sln**