Merge pull request #2942 from johnbillion/patch-1
Document the `onError` prop
This commit is contained in:
commit
50705336ba
14
API.md
14
API.md
@ -321,6 +321,7 @@ var styles = StyleSheet.create({
|
||||
|[onBandwidthUpdate](#onbandwidthupdate)|Android|
|
||||
|[onBuffer](#onbuffer)|Android, iOS|
|
||||
|[onEnd](#onend)|All|
|
||||
|[onError](#onerror)|Android, iOS|
|
||||
|[onExternalPlaybackChange](#onexternalplaybackchange)|iOS|
|
||||
|[onFullscreenPlayerWillPresent](#onfullscreenplayerwillpresent)|Android, iOS|
|
||||
|[onFullscreenPlayerDidPresent](#onfullscreenplayerdidpresent)|Android, iOS|
|
||||
@ -1014,6 +1015,17 @@ Payload: none
|
||||
|
||||
Platforms: all
|
||||
|
||||
#### onError
|
||||
Callback function that is called when the player experiences a playback error.
|
||||
|
||||
Payload:
|
||||
|
||||
Property | Type | Description
|
||||
--- | --- | ---
|
||||
error | object | Object containing properties with information about the error
|
||||
|
||||
Platforms: all
|
||||
|
||||
#### onExternalPlaybackChange
|
||||
Callback function that is called when external playback mode for current playing video has changed. Mostly useful when connecting/disconnecting to Apple TV – it's called on connection/disconnection.
|
||||
|
||||
@ -1618,4 +1630,4 @@ allprojects {
|
||||
}
|
||||
```
|
||||
If you encounter an error `Could not find com.android.support:support-annotations:27.0.0.` reinstall your Android Support Repository.
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user