Merge pull request #2942 from johnbillion/patch-1

Document the `onError` prop
This commit is contained in:
Olivier Bouillet 2022-12-06 19:16:41 +01:00 committed by GitHub
commit 50705336ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
API.md
View File

@ -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.