This commit is contained in:
Bond_009 2020-01-12 21:55:04 +01:00
parent da5893b0f1
commit 84d1b12530
2 changed files with 1 additions and 7 deletions

View File

@ -264,13 +264,6 @@ namespace MediaBrowser.Api.Playback
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)
{
var user = _userManager.GetUserById(userId);

View File

@ -76,6 +76,7 @@ namespace MediaBrowser.Model.Dto
{
Formats = Array.Empty<string>();
MediaStreams = new List<MediaStream>();
MediaAttachments = Array.Empty<MediaAttachment>();
RequiredHttpHeaders = new Dictionary<string, string>();
SupportsTranscoding = true;
SupportsDirectStream = true;