mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-12-03 13:34:12 +01:00
Update auth to handle refresh tokens
This commit is contained in:
1 parent
67bab72783
commit
d8cdb7073e
13 files changed
+828
-141
No files matched your search
@@ -245,7 +245,7 @@ class AbsAudioPlayerWeb extends WebPlugin {
|
||||
this.trackStartTime = Math.max(0, this.startTime - (this.currentTrack.startOffset || 0))
|
||||
const serverAddressUrl = new URL(vuexStore.getters['user/getServerAddress'])
|
||||
const serverHost = `${serverAddressUrl.protocol}//${serverAddressUrl.host}`
|
||||
this.player.src = `${serverHost}${this.currentTrack.contentUrl}?token=${vuexStore.getters['user/getToken']}`
|
||||
this.player.src = `${serverHost}${this.currentTrack.contentUrl}`
|
||||
console.log(`[AbsAudioPlayer] Loading track src ${this.player.src}`)
|
||||
this.player.load()
|
||||
this.player.playbackRate = this.playbackRate
|
||||
|
||||
Reference in new issue
Block a user