aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.UI/Playback/PlayOptions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.UI/Playback/PlayOptions.cs')
-rw-r--r--MediaBrowser.UI/Playback/PlayOptions.cs89
1 files changed, 0 insertions, 89 deletions
diff --git a/MediaBrowser.UI/Playback/PlayOptions.cs b/MediaBrowser.UI/Playback/PlayOptions.cs
deleted file mode 100644
index 276e611b9..000000000
--- a/MediaBrowser.UI/Playback/PlayOptions.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-using MediaBrowser.Model.Dto;
-using System;
-using System.Collections.Generic;
-
-namespace MediaBrowser.UI.Playback
-{
- /// <summary>
- /// Class PlayOptions
- /// </summary>
- public class PlayOptions
- {
- /// <summary>
- /// Gets or sets the items.
- /// </summary>
- /// <value>The items.</value>
- public List<BaseItemDto> Items { get; set; }
-
- /// <summary>
- /// If true, the PlayableItems will be shuffled before playback
- /// </summary>
- /// <value><c>true</c> if shuffle; otherwise, <c>false</c>.</value>
- public bool Shuffle { get; set; }
-
- /// <summary>
- /// If true, Playback will be resumed from the last known position
- /// </summary>
- /// <value><c>true</c> if resume; otherwise, <c>false</c>.</value>
- public bool Resume { get; set; }
-
- private long? _startPositionTicks;
- /// <summary>
- /// Gets or sets the start position ticks.
- /// </summary>
- /// <value>The start position ticks.</value>
- public long StartPositionTicks
- {
- get
- {
- if (_startPositionTicks.HasValue)
- {
- return _startPositionTicks.Value;
- }
-
- if (Resume && Items.Count > 0)
- {
- var item = Items[0];
-
- if (item.UserData != null)
- {
- return item.UserData.PlaybackPositionTicks;
- }
- }
-
- return 0;
- }
- set
- {
- _startPositionTicks = value;
- }
- }
-
- /// <summary>
- /// Holds the time that playback was started
- /// </summary>
- /// <value>The playback start time.</value>
- public DateTime PlaybackStartTime { get; private set; }
-
- /// <summary>
- /// The _show now playing view
- /// </summary>
- private bool _showNowPlayingView = true;
- /// <summary>
- /// Determines whether or not the PlaybackController should show the now playing view during playback
- /// Note that this depends on PlaybackController implementation and support
- /// </summary>
- /// <value><c>true</c> if [show now playing view]; otherwise, <c>false</c>.</value>
- public bool ShowNowPlayingView { get { return _showNowPlayingView; } set { _showNowPlayingView = value; } }
-
- /// <summary>
- /// The _go full screen
- /// </summary>
- private bool _goFullScreen = true;
- /// <summary>
- /// Determines whether or not the PlaybackController should go full screen upon beginning playback
- /// </summary>
- /// <value><c>true</c> if [go full screen]; otherwise, <c>false</c>.</value>
- public bool GoFullScreen { get { return _goFullScreen; } set { _goFullScreen = value; } }
- }
-}