mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
add additional transcoding info
This commit is contained in:
parent
f7cd7182d5
commit
6120286bfd
@ -176,7 +176,10 @@ namespace MediaBrowser.Api
|
|||||||
VideoCodec = videoCodec,
|
VideoCodec = videoCodec,
|
||||||
Container = state.OutputContainer,
|
Container = state.OutputContainer,
|
||||||
Framerate = framerate,
|
Framerate = framerate,
|
||||||
CompletionPercentage = percentComplete
|
CompletionPercentage = percentComplete,
|
||||||
|
Width = state.OutputWidth,
|
||||||
|
Height = state.OutputHeight,
|
||||||
|
AudioChannels = state.OutputAudioChannels
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1584,6 +1584,8 @@ namespace MediaBrowser.Api.Playback
|
|||||||
|
|
||||||
state.OutputAudioCodec = GetAudioCodec(state.Request);
|
state.OutputAudioCodec = GetAudioCodec(state.Request);
|
||||||
|
|
||||||
|
state.OutputAudioChannels = GetNumAudioChannelsParam(state.Request, state.AudioStream, state.OutputAudioCodec);
|
||||||
|
|
||||||
if (videoRequest != null)
|
if (videoRequest != null)
|
||||||
{
|
{
|
||||||
state.OutputVideoCodec = GetVideoCodec(videoRequest);
|
state.OutputVideoCodec = GetVideoCodec(videoRequest);
|
||||||
|
@ -66,5 +66,9 @@
|
|||||||
|
|
||||||
public float? Framerate { get; set; }
|
public float? Framerate { get; set; }
|
||||||
public double? CompletionPercentage { get; set; }
|
public double? CompletionPercentage { get; set; }
|
||||||
|
|
||||||
|
public int? Width { get; set; }
|
||||||
|
public int? Height { get; set; }
|
||||||
|
public int? AudioChannels { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -464,7 +464,7 @@ namespace MediaBrowser.Server.Implementations.Session
|
|||||||
|
|
||||||
UpdateNowPlayingItem(session, info, libraryItem);
|
UpdateNowPlayingItem(session, info, libraryItem);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(session.DeviceId))
|
if (!string.IsNullOrEmpty(session.DeviceId) && info.PlayMethod != PlayMethod.Transcode)
|
||||||
{
|
{
|
||||||
ClearTranscodingInfo(session.DeviceId);
|
ClearTranscodingInfo(session.DeviceId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user