aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-06-06 00:56:47 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-06-06 00:56:47 -0400
commit6120286bfdc274b8cb388b1d67bf616b6c2d09d0 (patch)
tree720a5be16b229523deb1cdb125af4217c5166782
parentf7cd7182d55779b623c8da34bb3ca3b524194830 (diff)
add additional transcoding info
-rw-r--r--MediaBrowser.Api/ApiEntryPoint.cs5
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs2
-rw-r--r--MediaBrowser.Model/Session/PlayerStateInfo.cs4
-rw-r--r--MediaBrowser.Server.Implementations/Session/SessionManager.cs2
4 files changed, 11 insertions, 2 deletions
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs
index 7109fc8cf..f71180754 100644
--- a/MediaBrowser.Api/ApiEntryPoint.cs
+++ b/MediaBrowser.Api/ApiEntryPoint.cs
@@ -176,7 +176,10 @@ namespace MediaBrowser.Api
VideoCodec = videoCodec,
Container = state.OutputContainer,
Framerate = framerate,
- CompletionPercentage = percentComplete
+ CompletionPercentage = percentComplete,
+ Width = state.OutputWidth,
+ Height = state.OutputHeight,
+ AudioChannels = state.OutputAudioChannels
});
}
}
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 202862da4..6362f1084 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -1584,6 +1584,8 @@ namespace MediaBrowser.Api.Playback
state.OutputAudioCodec = GetAudioCodec(state.Request);
+ state.OutputAudioChannels = GetNumAudioChannelsParam(state.Request, state.AudioStream, state.OutputAudioCodec);
+
if (videoRequest != null)
{
state.OutputVideoCodec = GetVideoCodec(videoRequest);
diff --git a/MediaBrowser.Model/Session/PlayerStateInfo.cs b/MediaBrowser.Model/Session/PlayerStateInfo.cs
index 24f9ef3e0..e196d9d59 100644
--- a/MediaBrowser.Model/Session/PlayerStateInfo.cs
+++ b/MediaBrowser.Model/Session/PlayerStateInfo.cs
@@ -66,5 +66,9 @@
public float? Framerate { get; set; }
public double? CompletionPercentage { get; set; }
+
+ public int? Width { get; set; }
+ public int? Height { get; set; }
+ public int? AudioChannels { get; set; }
}
} \ No newline at end of file
diff --git a/MediaBrowser.Server.Implementations/Session/SessionManager.cs b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
index 2d032cc31..a758b3b8d 100644
--- a/MediaBrowser.Server.Implementations/Session/SessionManager.cs
+++ b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
@@ -464,7 +464,7 @@ namespace MediaBrowser.Server.Implementations.Session
UpdateNowPlayingItem(session, info, libraryItem);
- if (!string.IsNullOrEmpty(session.DeviceId))
+ if (!string.IsNullOrEmpty(session.DeviceId) && info.PlayMethod != PlayMethod.Transcode)
{
ClearTranscodingInfo(session.DeviceId);
}