mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-01-01 08:39:39 +00:00
Add displayTitle and displayAuthor to playback session
This commit is contained in:
parent
9ae71615bc
commit
3d3f20296c
5 changed files with 37 additions and 7 deletions
|
|
@ -7,6 +7,8 @@ export default class PlayerHandler {
|
|||
this.ctx = ctx
|
||||
this.libraryItem = null
|
||||
this.episodeId = null
|
||||
this.displayTitle = null
|
||||
this.displayAuthor = null
|
||||
this.playWhenReady = false
|
||||
this.player = null
|
||||
this.playerState = 'IDLE'
|
||||
|
|
@ -160,6 +162,8 @@ export default class PlayerHandler {
|
|||
prepareSession(session) {
|
||||
this.startTime = session.currentTime
|
||||
this.currentSessionId = session.id
|
||||
this.displayTitle = session.displayTitle
|
||||
this.displayAuthor = session.displayAuthor
|
||||
|
||||
console.log('[PlayerHandler] Preparing Session', session)
|
||||
var audioTracks = session.audioTracks.map(at => new AudioTrack(at, this.userToken))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue