Merge pull request #2302 from laurenceunmind/laurenceunmind/add-onbuffer-to-readme
Update Readme to include onBuffer event (#2141)
This commit is contained in:
commit
d681e5505f
19
README.md
19
README.md
@ -340,6 +340,7 @@ var styles = StyleSheet.create({
|
|||||||
|--|--|
|
|--|--|
|
||||||
|[onAudioBecomingNoisy](#onaudiobecomingnoisy)|Android ExoPlayer, iOS|
|
|[onAudioBecomingNoisy](#onaudiobecomingnoisy)|Android ExoPlayer, iOS|
|
||||||
|[onBandwidthUpdate](#onbandwidthupdate)|Android ExoPlayer|
|
|[onBandwidthUpdate](#onbandwidthupdate)|Android ExoPlayer|
|
||||||
|
|[onBuffer](#onbuffer)|Android ExoPlayer, iOS|
|
||||||
|[onEnd](#onend)|All|
|
|[onEnd](#onend)|All|
|
||||||
|[onExternalPlaybackChange](#onexternalplaybackchange)|iOS|
|
|[onExternalPlaybackChange](#onexternalplaybackchange)|iOS|
|
||||||
|[onFullscreenPlayerWillPresent](#onfullscreenplayerwillpresent)|Android ExoPlayer, Android MediaPlayer, iOS|
|
|[onFullscreenPlayerWillPresent](#onfullscreenplayerwillpresent)|Android ExoPlayer, Android MediaPlayer, iOS|
|
||||||
@ -955,6 +956,24 @@ Note: On Android ExoPlayer, you must set the [reportBandwidth](#reportbandwidth)
|
|||||||
|
|
||||||
Platforms: Android ExoPlayer
|
Platforms: Android ExoPlayer
|
||||||
|
|
||||||
|
#### onBuffer
|
||||||
|
Callback function that is called when the player buffers.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
Property | Type | Description
|
||||||
|
--- | --- | ---
|
||||||
|
isBuffering | boolean | Boolean indicating whether buffering is active
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
isBuffering: true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Platforms: Android ExoPlayer, iOS
|
||||||
|
|
||||||
#### onEnd
|
#### onEnd
|
||||||
Callback function that is called when the player reaches the end of the media.
|
Callback function that is called when the player reaches the end of the media.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user