From fc9c9a98486567ea225e97df980c750b55278921 Mon Sep 17 00:00:00 2001 From: Tim Hobbs Date: Thu, 20 Mar 2014 21:32:57 -0700 Subject: [PATCH] Revert DLNA changes DLNA has no fullscreen support - or rather it is _always_ in fullscreen --- MediaBrowser.Dlna/PlayTo/Device.cs | 29 ---------------------- MediaBrowser.Dlna/PlayTo/DlnaController.cs | 3 --- 2 files changed, 32 deletions(-) diff --git a/MediaBrowser.Dlna/PlayTo/Device.cs b/MediaBrowser.Dlna/PlayTo/Device.cs index b05a47491d..5952a213ae 100644 --- a/MediaBrowser.Dlna/PlayTo/Device.cs +++ b/MediaBrowser.Dlna/PlayTo/Device.cs @@ -30,15 +30,6 @@ namespace MediaBrowser.Dlna.PlayTo } } - private bool _fullscreen; - public bool IsFullscreen - { - get - { - return _fullscreen; - } - } - private string _currentId = String.Empty; public string CurrentId { @@ -216,26 +207,6 @@ namespace MediaBrowser.Dlna.PlayTo return SetVolume(tmp); } - public async Task ToggleFullscreen() - { - var command = RendererCommands.ServiceActions.FirstOrDefault(c => c.Name == "Fullscreen"); - if (command == null) - return true; - - var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceRenderingType); - - if (service == null) { - throw new InvalidOperationException("Unable to find service"); - } - - _fullscreen = !_fullscreen; - - var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, RendererCommands.BuildPost(command, service.ServiceType, _fullscreen)) - .ConfigureAwait(false); - - return true; - } - public async Task SetVolume(int value) { var command = RendererCommands.ServiceActions.FirstOrDefault(c => c.Name == "SetVolume"); diff --git a/MediaBrowser.Dlna/PlayTo/DlnaController.cs b/MediaBrowser.Dlna/PlayTo/DlnaController.cs index dc62d60627..4180154a40 100644 --- a/MediaBrowser.Dlna/PlayTo/DlnaController.cs +++ b/MediaBrowser.Dlna/PlayTo/DlnaController.cs @@ -283,9 +283,6 @@ namespace MediaBrowser.Dlna.PlayTo case PlaystateCommand.PreviousTrack: _currentItem = null; return SetPrevious(); - - case PlaystateCommand.Fullscreen: - return _device.ToggleFullscreen(); } return Task.FromResult(true);