Add:Chapters to podcast episodes #1646

This commit is contained in:
advplyr 2023-04-09 14:32:51 -05:00
parent 5e5b674c17
commit 3dc9416da6
6 changed files with 49 additions and 22 deletions

View file

@ -123,7 +123,7 @@ export default class PlayerHandler {
playerError() {
// Switch to HLS stream on error
if (!this.isCasting && !this.currentStreamId && (this.player instanceof LocalAudioPlayer)) {
if (!this.isCasting && (this.player instanceof LocalAudioPlayer)) {
console.log(`[PlayerHandler] Audio player error switching to HLS stream`)
this.prepare(true)
}
@ -183,6 +183,8 @@ export default class PlayerHandler {
}
async prepare(forceTranscode = false) {
this.currentSessionId = null // Reset session
const payload = {
deviceInfo: {
deviceId: this.getDeviceId()
@ -260,6 +262,7 @@ export default class PlayerHandler {
this.player = null
this.playerState = 'IDLE'
this.libraryItem = null
this.currentSessionId = null
this.startTime = 0
this.stopPlayInterval()
}