Unverified Commit d63c6908 authored by Hampton Maxwell's avatar Hampton Maxwell Committed by GitHub
Browse files

Add instructions for using ExoPlayer

Update Android instructions for using both ExoPlayer and the old Android player
parent fb061004
Loading
Loading
Loading
Loading
+11 −0
Changes for README.md: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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<ReactPackage> getPackages() {

<details>
  <summary>Windows</summary>

Make the following additions to the given files manually:

**windows/myapp.sln**