mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-22 07:30:52 +01:00
Provide delivery URLs for attachments in PlaybackInfo.
This commit is contained in:
@@ -524,6 +524,14 @@ namespace MediaBrowser.Api.Playback
|
||||
SetDeviceSpecificSubtitleInfo(streamInfo, mediaSource, auth.Token);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var attachment in mediaSource.MediaAttachments)
|
||||
{
|
||||
attachment.DeliveryUrl = string.Format("/Videos/{0}/{1}/Attachments/{2}/Attachment",
|
||||
item.Id,
|
||||
mediaSource.Id,
|
||||
attachment.Index);
|
||||
}
|
||||
}
|
||||
|
||||
private long? GetMaxBitrate(long? clientMaxBitrate, User user)
|
||||
|
||||
Reference in New Issue
Block a user