add additional transcoding info

pull/702/head
Luke Pulverenti 11 years ago
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…
Cancel
Save