Pass loadControl parameters as video props

This commit is contained in:
Bryan van Wijk
2018-08-01 15:58:02 +02:00
parent 092ba33e95
commit dde27a320e
6 changed files with 71 additions and 81 deletions

View File

@@ -229,6 +229,7 @@ var styles = StyleSheet.create({
* [textTracks](#texttracks)
* [useTextureView](#usetextureview)
* [volume](#volume)
* [loadControl](#loadcontrol)
### Event props
* [onAudioBecomingNoisy](#onaudiobecomingnoisy)
@@ -479,6 +480,30 @@ Adjust the volume.
Platforms: all
#### loadControl
Adjust the load control parameters: minBufferMs, maxBufferMs, bufferForPlaybackMs and playbackAfterRebufferMs.
```
loadControl={{
minBufferMs: number,
maxBufferMs: number,
bufferForPlaybackMs: number,
bufferForPlaybackAfterRebufferMs: number,
}}
```
Example with default values:
```
loadControl={{
minBufferMs: 15000,
maxBufferMs: 50000,
bufferForPlaybackMs: 2500,
bufferForPlaybackAfterRebufferMs: 5000,
}}
```
Platforms: AndroidExoplayer
### Event props
#### onAudioBecomingNoisy