Attempt #2
This commit is contained in:
parent
da5893b0f1
commit
84d1b12530
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user