Add instructions for using ExoPlayer
Update Android instructions for using both ExoPlayer and the old Android player
This commit is contained in:
parent
fb0610043f
commit
d63c690899
11
README.md
11
README.md
@ -79,11 +79,21 @@ Or if you have trouble, make the following additions to the given files manually
|
|||||||
|
|
||||||
**android/settings.gradle**
|
**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
|
```gradle
|
||||||
include ':react-native-video'
|
include ':react-native-video'
|
||||||
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
|
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
**android/app/build.gradle**
|
**android/app/build.gradle**
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
@ -116,6 +126,7 @@ protected List<ReactPackage> getPackages() {
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Windows</summary>
|
<summary>Windows</summary>
|
||||||
|
|
||||||
Make the following additions to the given files manually:
|
Make the following additions to the given files manually:
|
||||||
|
|
||||||
**windows/myapp.sln**
|
**windows/myapp.sln**
|
||||||
|
Loading…
Reference in New Issue
Block a user