public OnDemandShellViewModel(AssetViewerViewModel assetViewerViewModel, InteractionViewModel interactionViewModel, CaptionSettingsViewModel captionSettingsViewModel, ISettingsService settingsService, LocationService locationService, IEventAggregator eventAggregator) : base(eventAggregator) { this._settingsService = settingsService; this._LocationService = locationService; base.AssetViewer = assetViewerViewModel; base.Interaction = interactionViewModel; base.CaptionSettings = captionSettingsViewModel; }
public PlayerDiagnostics(PlayerViewModel playerViewModel, AssetViewerViewModel assetViewerViewModel, BaseShellViewModel shellViewModel, ISettingsService settingsService, ScriptBridge scriptBridge) { EventHandler<ViewAttachedEventArgs> handler = null; this._playerViewModel = playerViewModel; this._assetViewerViewModel = assetViewerViewModel; this._baseShellViewModel = shellViewModel; this._settingsService = settingsService; if (handler == null) { handler = delegate (object s, ViewAttachedEventArgs e) { this._bufferingTimeMonitor = new BufferingTimeMonitor(this._playerViewModel.Instance); this._videoPlayer = this._playerViewModel.Instance; }; } this._playerViewModel.ViewAttached += handler; this._playerViewModel.PropertyChanged += new PropertyChangedEventHandler(this._playerViewModel_PropertyChanged); }
public LiveTVShellViewModel(AssetViewerViewModel assetViewerViewModel, InteractionViewModel interactionViewModel, AssetInfoViewModel assetInfoViewModel, ChannelBrowserViewModel channelBrowserViewModel, CaptionSettingsViewModel captionSettingsViewModel, ISettingsService settingsService, IEventAggregator eventAggregator) : base(eventAggregator) { this._lastChannelStartTime = DateTime.MinValue; this._lastEpisodeInfoRefreshTime = DateTime.MinValue; this._nextAirTime = DateTime.MaxValue; this._currentChannelBrowserState = HideChannelBrowserState; this._settingsService = settingsService; base.AssetViewer = assetViewerViewModel; base.Interaction = interactionViewModel; this.ChannelBrowser = channelBrowserViewModel; base.CaptionSettings = captionSettingsViewModel; DispatcherTimer timer = new DispatcherTimer { Interval = new TimeSpan(0, 0, 0, 2) }; this._channelBrowserTimeoutTimer = timer; this._channelBrowserTimeoutTimer.Tick += new EventHandler(this.BrowserTimeoutTimerTick); this._channelThrottleTimer = new DispatcherTimer(); this._channelThrottleTimer.Interval = TimeSpan.FromSeconds(1.0); this._channelThrottleTimer.Tick += new EventHandler(this._channelThrottleTimer_Tick); }