mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-30 20:24:05 +01:00
Add new api endpoint for direct playing audio files using session id #4259
This commit is contained in:
1 parent
45987ffd63
commit
336de49d8d
5 files changed
+62
-13
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user