Provide delivery URLs for attachments in PlaybackInfo.

This commit is contained in:
Andrew Mahone
2019-10-18 07:59:03 -04:00
parent 8c89d89932
commit 01b1c847e9
2 changed files with 14 additions and 0 deletions

View File

@@ -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)