From 327af0fe62bb3a055e4286154e9ba6104969af24 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 21 Mar 2014 23:35:03 -0400 Subject: rework media versions to be based on original item id --- MediaBrowser.Controller/Session/PlaybackInfo.cs | 6 +++++ .../Session/PlaybackProgressInfo.cs | 6 +++++ .../Session/PlaybackStopInfo.cs | 6 +++++ MediaBrowser.Controller/Session/SessionInfo.cs | 26 +++++++++++++++++++++- 4 files changed, 43 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Controller/Session') diff --git a/MediaBrowser.Controller/Session/PlaybackInfo.cs b/MediaBrowser.Controller/Session/PlaybackInfo.cs index ab3111e766..5cb488ff1c 100644 --- a/MediaBrowser.Controller/Session/PlaybackInfo.cs +++ b/MediaBrowser.Controller/Session/PlaybackInfo.cs @@ -34,5 +34,11 @@ namespace MediaBrowser.Controller.Session /// /// The session id. public Guid SessionId { get; set; } + + /// + /// Gets or sets the media version identifier. + /// + /// The media version identifier. + public string MediaVersionId { get; set; } } } diff --git a/MediaBrowser.Controller/Session/PlaybackProgressInfo.cs b/MediaBrowser.Controller/Session/PlaybackProgressInfo.cs index a075432605..0c825932c8 100644 --- a/MediaBrowser.Controller/Session/PlaybackProgressInfo.cs +++ b/MediaBrowser.Controller/Session/PlaybackProgressInfo.cs @@ -34,5 +34,11 @@ namespace MediaBrowser.Controller.Session /// /// The position ticks. public long? PositionTicks { get; set; } + + /// + /// Gets or sets the media version identifier. + /// + /// The media version identifier. + public string MediaVersionId { get; set; } } } diff --git a/MediaBrowser.Controller/Session/PlaybackStopInfo.cs b/MediaBrowser.Controller/Session/PlaybackStopInfo.cs index 5d1ce01315..3391c96cf7 100644 --- a/MediaBrowser.Controller/Session/PlaybackStopInfo.cs +++ b/MediaBrowser.Controller/Session/PlaybackStopInfo.cs @@ -22,5 +22,11 @@ namespace MediaBrowser.Controller.Session /// /// The position ticks. public long? PositionTicks { get; set; } + + /// + /// Gets or sets the media version identifier. + /// + /// The media version identifier. + public string MediaVersionId { get; set; } } } diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs index 73e33d78c1..953d186e84 100644 --- a/MediaBrowser.Controller/Session/SessionInfo.cs +++ b/MediaBrowser.Controller/Session/SessionInfo.cs @@ -119,12 +119,24 @@ namespace MediaBrowser.Controller.Session /// The now playing item. public BaseItem NowPlayingItem { get; set; } + /// + /// Gets or sets the now playing media version identifier. + /// + /// The now playing media version identifier. + public string NowPlayingMediaVersionId { get; set; } + + + /// + /// Gets or sets the now playing run time ticks. + /// + /// The now playing run time ticks. + public long? NowPlayingRunTimeTicks { get; set; } + /// /// Gets or sets the now playing position ticks. /// /// The now playing position ticks. public long? NowPlayingPositionTicks { get; set; } - /// /// Gets or sets a value indicating whether this instance is paused. /// @@ -161,6 +173,18 @@ namespace MediaBrowser.Controller.Session /// true if [supports fullscreen toggle]; otherwise, false. public bool SupportsFullscreenToggle { 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]. + /// + /// true if [supports navigation commands]; otherwise, false. + public bool SupportsNavigationControl { get; set; } + /// /// Gets a value indicating whether this instance is active. /// -- cgit v1.2.3