mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-01 00:35:07 +02:00
Add new api endpoint for direct playing audio files using session id #4259
This commit is contained in:
parent
45987ffd63
commit
336de49d8d
5 changed files with 62 additions and 13 deletions
|
@ -26,6 +26,12 @@ class PlaybackSessionManager {
|
|||
this.sessions = []
|
||||
}
|
||||
|
||||
/**
|
||||
* Get open session by id
|
||||
*
|
||||
* @param {string} sessionId
|
||||
* @returns {PlaybackSession}
|
||||
*/
|
||||
getSession(sessionId) {
|
||||
return this.sessions.find((s) => s.id === sessionId)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue