chore: move minLoadRetryCount into source property (#4233)

This commit is contained in:
Olivier Bouillet
2024-10-16 23:41:22 +02:00
committed by GitHub
parent a8d5841c7c
commit f04b233a40
7 changed files with 35 additions and 17 deletions

View File

@@ -379,6 +379,8 @@ maxBitRate={2000000} // 2 megabits
```
### `minLoadRetryCount`
> [!WARNING]
> deprecated, use `source.minLoadRetryCount` key instead
<PlatformsList types={['Android']} />
@@ -903,6 +905,23 @@ source={{
}}
```
#### `minLoadRetryCount`
<PlatformsList types={['Android']} />
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:
```javascript
source={{
uri: 'https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8',
minLoadRetryCount={5} // retry 5 times
}}
```
#### `textTracks`
<PlatformsList types={['Android', 'iOS', 'visionOS']} />