Update share endpoint to return playback session, add get share file endpoint

This commit is contained in:
advplyr 2024-06-26 17:03:12 -05:00
parent 042035051d
commit 8cadaa57f6
6 changed files with 161 additions and 12 deletions

View file

@ -109,7 +109,7 @@ class PlaybackSession {
currentTime: this.currentTime,
startedAt: this.startedAt,
updatedAt: this.updatedAt,
audioTracks: this.audioTracks.map((at) => at.toJSON()),
audioTracks: this.audioTracks.map((at) => at.toJSON?.() || { ...at }),
videoTrack: this.videoTrack?.toJSON() || null,
libraryItem: libraryItem?.toJSONExpanded() || null
}