Add:Click and drag player progress track #110

This commit is contained in:
advplyr 2022-05-29 18:13:25 -05:00
parent c1c56f8f52
commit 58bd0e0cee
3 changed files with 71 additions and 18 deletions

View file

@ -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
})
}