mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-11-27 10:42:43 +01:00
Add:Click and drag player progress track #110
This commit is contained in:
1 parent
c1c56f8f52
commit
58bd0e0cee
3 files changed
+71
-18
No files matched your search
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user