From c60103df64104459883f1244363cc9cd39187545 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 6 Apr 2014 13:53:23 -0400 Subject: chromecast updates --- MediaBrowser.Model/Session/GeneralCommand.cs | 5 ++++- MediaBrowser.Model/Session/PlaybackReports.cs | 10 +++++++++ MediaBrowser.Model/Session/SessionInfoDto.cs | 30 ++++++++++++++++----------- 3 files changed, 32 insertions(+), 13 deletions(-) (limited to 'MediaBrowser.Model/Session') diff --git a/MediaBrowser.Model/Session/GeneralCommand.cs b/MediaBrowser.Model/Session/GeneralCommand.cs index 0de7d6dd8..a50c3b5fe 100644 --- a/MediaBrowser.Model/Session/GeneralCommand.cs +++ b/MediaBrowser.Model/Session/GeneralCommand.cs @@ -43,6 +43,9 @@ namespace MediaBrowser.Model.Session VolumeDown = 18, Mute = 19, Unmute = 20, - ToggleMute = 21 + ToggleMute = 21, + SetVolume = 22, + SetAudioStreamIndex = 23, + SetSubtitleStreamIndex = 24 } } diff --git a/MediaBrowser.Model/Session/PlaybackReports.cs b/MediaBrowser.Model/Session/PlaybackReports.cs index 75dd3346c..b2361b876 100644 --- a/MediaBrowser.Model/Session/PlaybackReports.cs +++ b/MediaBrowser.Model/Session/PlaybackReports.cs @@ -16,6 +16,10 @@ namespace MediaBrowser.Model.Session public string[] QueueableMediaTypes { get; set; } + public int? AudioStreamIndex { get; set; } + + public int? SubtitleStreamIndex { get; set; } + public PlaybackStartInfo() { QueueableMediaTypes = new string[] { }; @@ -38,6 +42,12 @@ namespace MediaBrowser.Model.Session public bool IsPaused { get; set; } public bool IsMuted { get; set; } + + public int? AudioStreamIndex { get; set; } + + public int? SubtitleStreamIndex { get; set; } + + public int? VolumeLevel { get; set; } } /// diff --git a/MediaBrowser.Model/Session/SessionInfoDto.cs b/MediaBrowser.Model/Session/SessionInfoDto.cs index 5349a6360..4c51070ee 100644 --- a/MediaBrowser.Model/Session/SessionInfoDto.cs +++ b/MediaBrowser.Model/Session/SessionInfoDto.cs @@ -111,6 +111,24 @@ namespace MediaBrowser.Model.Session /// The name of the device. public string DeviceName { get; set; } + /// + /// Gets or sets the volume level. + /// + /// The volume level. + public int? VolumeLevel { get; set; } + + /// + /// Gets or sets the index of the now playing audio stream. + /// + /// The index of the now playing audio stream. + public int? NowPlayingAudioStreamIndex { get; set; } + + /// + /// Gets or sets the index of the now playing subtitle stream. + /// + /// The index of the now playing subtitle stream. + public int? NowPlayingSubtitleStreamIndex { get; set; } + /// /// Gets or sets a value indicating whether this instance is paused. /// @@ -140,12 +158,6 @@ namespace MediaBrowser.Model.Session /// /// The device id. public string DeviceId { get; set; } - - /// - /// Gets or sets a value indicating whether [supports fullscreen toggle]. - /// - /// true if [supports fullscreen toggle]; otherwise, false. - public bool SupportsFullscreenToggle { get; set; } /// /// Gets or sets a value indicating whether [supports remote control]. @@ -153,12 +165,6 @@ namespace MediaBrowser.Model.Session /// true if [supports remote control]; otherwise, false. public bool SupportsRemoteControl { get; set; } - /// - /// Gets or sets a value indicating whether [supports osd toggle]. - /// - /// true if [supports osd toggle]; otherwise, false. - public bool SupportsOsdToggle { get; set; } - /// /// Gets or sets a value indicating whether [supports navigation commands]. /// -- cgit v1.2.3