mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-02 00:54:30 +02:00
Add:Click and drag player progress track #110
This commit is contained in:
parent
c1c56f8f52
commit
58bd0e0cee
3 changed files with 71 additions and 18 deletions
|
@ -187,6 +187,7 @@ class AbsAudioPlayerWeb extends WebPlugin {
|
|||
return
|
||||
}
|
||||
this.player.currentTime = this.trackStartTime
|
||||
|
||||
this.sendPlaybackMetadata(PlayerState.READY)
|
||||
if (this.playWhenReady) {
|
||||
this.player.play()
|
||||
|
@ -195,10 +196,9 @@ class AbsAudioPlayerWeb extends WebPlugin {
|
|||
evtTimeupdate() { }
|
||||
|
||||
sendPlaybackMetadata(playerState) {
|
||||
var currentTime = this.player ? this.player.currentTime || 0 : 0
|
||||
this.notifyListeners('onMetadata', {
|
||||
duration: this.totalDuration,
|
||||
currentTime,
|
||||
currentTime: this.overallCurrentTime,
|
||||
playerState
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue