ShareController check ?t param is less than duration, revert frontend mounted usage of param

This commit is contained in:
advplyr 2026-04-25 17:13:22 -05:00
parent 5a6b3d8e61
commit 928051744a
2 changed files with 4 additions and 5 deletions

View file

@ -363,9 +363,8 @@ export default {
console.log('Loaded media item share', this.mediaItemShare)
}
const startTime = this.$route.query.t && !isNaN(this.$route.query.t)
? parseFloat(this.$route.query.t)
: (this.playbackSession.currentTime || 0)
const startTime = this.playbackSession.currentTime || 0
this.localAudioPlayer.set(null, this.audioTracks, false, startTime, false)
this.localAudioPlayer.on('stateChange', this.playerStateChange.bind(this))
this.localAudioPlayer.on('timeupdate', this.playerTimeUpdate.bind(this))