aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session/HttpSessionController.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-11-20 13:02:59 -0500
committerGitHub <noreply@github.com>2017-11-20 13:02:59 -0500
commit8f78652398ad4e9e9af53a1bd065afe4b9d9260e (patch)
tree32bc4144212d7f6ee3941c9c2471b56ab9c5d3e2 /Emby.Server.Implementations/Session/HttpSessionController.cs
parent7d15b140cfe4f761e03f661f82cf946f327863f5 (diff)
parent71ff88284be60fb39a7389e0c4990c94f2207ed4 (diff)
Merge pull request #3032 from MediaBrowser/beta
Beta
Diffstat (limited to 'Emby.Server.Implementations/Session/HttpSessionController.cs')
-rw-r--r--Emby.Server.Implementations/Session/HttpSessionController.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Session/HttpSessionController.cs b/Emby.Server.Implementations/Session/HttpSessionController.cs
index 940c821e2..e1c1bbe2b 100644
--- a/Emby.Server.Implementations/Session/HttpSessionController.cs
+++ b/Emby.Server.Implementations/Session/HttpSessionController.cs
@@ -109,6 +109,18 @@ namespace Emby.Server.Implementations.Session
{
dict["StartPositionTicks"] = command.StartPositionTicks.Value.ToString(CultureInfo.InvariantCulture);
}
+ if (command.AudioStreamIndex.HasValue)
+ {
+ dict["AudioStreamIndex"] = command.AudioStreamIndex.Value.ToString(CultureInfo.InvariantCulture);
+ }
+ if (command.SubtitleStreamIndex.HasValue)
+ {
+ dict["SubtitleStreamIndex"] = command.SubtitleStreamIndex.Value.ToString(CultureInfo.InvariantCulture);
+ }
+ if (!string.IsNullOrWhiteSpace(command.MediaSourceId))
+ {
+ dict["MediaSourceId"] = command.MediaSourceId;
+ }
return SendMessage(command.PlayCommand.ToString(), dict, cancellationToken);
}