Merge pull request #1448 from sridhard/master

Feature Implementation: Recovery from transient internet failures
This commit is contained in:
Hampton Maxwell
2019-02-10 20:07:29 -08:00
committed by GitHub
6 changed files with 37 additions and 5 deletions

View File

@@ -269,6 +269,7 @@ var styles = StyleSheet.create({
* [id](#id)
* [ignoreSilentSwitch](#ignoresilentswitch)
* [maxBitRate](#maxbitrate)
* [minLoadRetryCount](#minLoadRetryCount)
* [muted](#muted)
* [paused](#paused)
* [playInBackground](#playinbackground)
@@ -475,6 +476,18 @@ maxBitRate={2000000} // 2 megabits
Platforms: Android ExoPlayer, iOS
#### minLoadRetryCount
Sets the minimum number of times to retry loading data before failing and reporting an error to the application. Useful to recover from transient internet failures.
Default: 3. Retry 3 times.
Example:
```
minLoadRetryCount={5} // retry 5 times
```
Platforms: Android ExoPlayer
#### muted
Controls whether the audio is muted
* **false (default)** - Don't mute audio