mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-26 02:39:05 +02:00
Fix: iOS mobile audio stream support #180
This commit is contained in:
parent
72f9732b67
commit
41f05f7a7b
3 changed files with 21 additions and 9 deletions
|
@ -95,6 +95,10 @@ class Stream extends EventEmitter {
|
|||
return this.client ? this.client.user || {} : null
|
||||
}
|
||||
|
||||
get userToken() {
|
||||
return this.clientUser ? this.clientUser.token : null
|
||||
}
|
||||
|
||||
get clientUserAudiobooks() {
|
||||
return this.client ? this.clientUser.audiobooks || {} : null
|
||||
}
|
||||
|
@ -205,7 +209,7 @@ class Stream extends EventEmitter {
|
|||
|
||||
async generatePlaylist() {
|
||||
fs.ensureDirSync(this.streamPath)
|
||||
await hlsPlaylistGenerator(this.playlistPath, 'output', this.totalDuration, this.segmentLength, this.hlsSegmentType)
|
||||
await hlsPlaylistGenerator(this.playlistPath, 'output', this.totalDuration, this.segmentLength, this.hlsSegmentType, this.userToken)
|
||||
return this.clientPlaylistUri
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue