Skip to content

Commit 48e51f7

Browse files
committed
Update readme.md with specifics for bufferconfig on ios
1 parent 0ca7da3 commit 48e51f7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,17 +293,19 @@ playbackAfterRebufferMs | number | The default duration of media that must be bu
293293

294294
This prop should only be set when you are setting the source, changing it after the media is loaded will cause it to be reloaded.
295295

296+
On iOS, only `bufferForPlaybackMs` and `bufferForPlaybackAfterRebufferMs` is supported. If these values are not specified, or no `bufferConfig` is supplied, then the default AVPlayer buffering is used. This behaviour tries to determine whether the video item is likely to play through given the current buffer rate, and if so, the video starts to play.
297+
296298
Example with default values:
297299
```
298300
bufferConfig={{
299-
minBufferMs: 15000,
300-
maxBufferMs: 50000,
301+
minBufferMs: 15000, // not supported on iOS
302+
maxBufferMs: 50000, // not supported on iOS
301303
bufferForPlaybackMs: 2500,
302304
bufferForPlaybackAfterRebufferMs: 5000
303305
}}
304306
```
305307

306-
Platforms: Android ExoPlayer
308+
Platforms: Android ExoPlayer, iOS
307309

308310
#### ignoreSilentSwitch
309311
Controls the iOS silent switch behavior

0 commit comments

Comments
 (0)