feat: add isSeeking to onPlaybackStateChanged (#3899)

* feat: add `isSeeking` to `onPlaybackStateChanged``

* refactor `onSeek` event emit logic

* fix rebase
This commit is contained in:
Krzysztof Moch
2024-07-11 10:08:36 +02:00
committed by GitHub
parent b25e43ee79
commit 111a5d2163
5 changed files with 36 additions and 9 deletions

View File

@@ -296,15 +296,17 @@ Callback function that is called when the playback state changes.
Payload:
| Property | Type | Description |
| --------- | ----------- | ------------------------------------------------- |
| isPlaying | boolean | Boolean indicating if the media is playing or not |
| Property | Type | Description |
| --------- | ----------- | -------------------------------------------------- |
| isPlaying | boolean | Boolean indicating if the media is playing or not |
| isSeeking | boolean | Boolean indicating if the player is seeking or not |
Example:
```javascript
{
isPlaying: true,
isSeeking: false
}
```