Document onSeek
This commit is contained in:
parent
413a7b87c6
commit
fcee7b662b
26
README.md
26
README.md
@ -295,6 +295,7 @@ var styles = StyleSheet.create({
|
|||||||
* [onLoad](#onload)
|
* [onLoad](#onload)
|
||||||
* [onLoadStart](#onloadstart)
|
* [onLoadStart](#onloadstart)
|
||||||
* [onProgress](#onprogress)
|
* [onProgress](#onprogress)
|
||||||
|
* [onSeek](#onseek)
|
||||||
* [onTimedMetadata](#ontimedmetadata)
|
* [onTimedMetadata](#ontimedmetadata)
|
||||||
|
|
||||||
### Methods
|
### Methods
|
||||||
@ -848,6 +849,29 @@ Example:
|
|||||||
|
|
||||||
Platforms: all
|
Platforms: all
|
||||||
|
|
||||||
|
#### onSeek
|
||||||
|
Callback function that is called when a seek completes.
|
||||||
|
|
||||||
|
Payload:
|
||||||
|
|
||||||
|
Property | Type | Description
|
||||||
|
--- | --- | ---
|
||||||
|
currentTime | number | The current time after the seek
|
||||||
|
seekTime | number | The requested time
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
currentTime: 100.5
|
||||||
|
seekTime: 100
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Both the currentTime & seekTime are reported because the video player may not seek to the exact requested position in order to improve seek performance.
|
||||||
|
|
||||||
|
|
||||||
|
Platforms: Android ExoPlayer, Android MediaPlayer, iOS, Windows UWP
|
||||||
|
|
||||||
#### onTimedMetadata
|
#### onTimedMetadata
|
||||||
Callback function that is called when timed metadata becomes available
|
Callback function that is called when timed metadata becomes available
|
||||||
|
|
||||||
@ -941,7 +965,7 @@ Platforms: iOS
|
|||||||
|
|
||||||
Seek to the specified position represented by seconds. seconds is a float value.
|
Seek to the specified position represented by seconds. seconds is a float value.
|
||||||
|
|
||||||
`seek()` can only be called after the `onLoad` event has fired.
|
`seek()` can only be called after the `onLoad` event has fired. Once completed, the [onSeek](#onseek) event will be called.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user