mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Attempt #2
This commit is contained in:
parent
da5893b0f1
commit
84d1b12530
@ -264,13 +264,6 @@ namespace MediaBrowser.Api.Playback
|
|||||||
return ToOptimizedResult(result);
|
return ToOptimizedResult(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
private T Clone<T>(T obj)
|
|
||||||
{
|
|
||||||
|
|
||||||
var json = JsonSerializer.SerializeToUtf8Bytes(obj);
|
|
||||||
return JsonSerializer.Deserialize<T>(json);
|
|
||||||
}
|
|
||||||
|
|
||||||
private async Task<PlaybackInfoResponse> GetPlaybackInfo(Guid id, Guid userId, string[] supportedLiveMediaTypes, string mediaSourceId = null, string liveStreamId = null)
|
private async Task<PlaybackInfoResponse> GetPlaybackInfo(Guid id, Guid userId, string[] supportedLiveMediaTypes, string mediaSourceId = null, string liveStreamId = null)
|
||||||
{
|
{
|
||||||
var user = _userManager.GetUserById(userId);
|
var user = _userManager.GetUserById(userId);
|
||||||
|
@ -76,6 +76,7 @@ namespace MediaBrowser.Model.Dto
|
|||||||
{
|
{
|
||||||
Formats = Array.Empty<string>();
|
Formats = Array.Empty<string>();
|
||||||
MediaStreams = new List<MediaStream>();
|
MediaStreams = new List<MediaStream>();
|
||||||
|
MediaAttachments = Array.Empty<MediaAttachment>();
|
||||||
RequiredHttpHeaders = new Dictionary<string, string>();
|
RequiredHttpHeaders = new Dictionary<string, string>();
|
||||||
SupportsTranscoding = true;
|
SupportsTranscoding = true;
|
||||||
SupportsDirectStream = true;
|
SupportsDirectStream = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user