123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805 |
- using MediaBrowser.Common.Net;
- using MediaBrowser.Controller.Configuration;
- using MediaBrowser.Model.Logging;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Xml.Linq;
- namespace MediaBrowser.Dlna.PlayTo
- {
- public class Device : IDisposable
- {
- const string ServiceAvtransportType = "urn:schemas-upnp-org:service:AVTransport:1";
- const string ServiceRenderingType = "urn:schemas-upnp-org:service:RenderingControl:1";
- #region Fields & Properties
- private Timer _timer;
- public DeviceInfo Properties { get; set; }
- private int _muteVol;
- public bool IsMuted
- {
- get
- {
- return _muteVol > 0;
- }
- }
- private string _currentId = String.Empty;
- public string CurrentId
- {
- get
- {
- return _currentId;
- }
- set
- {
- if (_currentId == value)
- return;
- _currentId = value;
- NotifyCurrentIdChanged(value);
- }
- }
- public int Volume { get; set; }
- public TimeSpan Duration { get; set; }
- private TimeSpan _position = TimeSpan.FromSeconds(0);
- public TimeSpan Position
- {
- get
- {
- return _position;
- }
- set
- {
- _position = value;
- }
- }
- private string _transportState = String.Empty;
- public string TransportState
- {
- get
- {
- return _transportState;
- }
- set
- {
- if (_transportState == value)
- return;
- _transportState = value;
- if (value == TRANSPORTSTATE.PLAYING || value == TRANSPORTSTATE.STOPPED)
- NotifyPlaybackChanged(value == TRANSPORTSTATE.STOPPED);
- }
- }
- public bool IsPlaying
- {
- get
- {
- return TransportState == TRANSPORTSTATE.PLAYING;
- }
- }
- public bool IsTransitioning
- {
- get
- {
- return (TransportState == TRANSPORTSTATE.TRANSITIONING);
- }
- }
- public bool IsPaused
- {
- get
- {
- return TransportState == TRANSPORTSTATE.PAUSED || TransportState == TRANSPORTSTATE.PAUSED_PLAYBACK;
- }
- }
- public bool IsStopped
- {
- get
- {
- return TransportState == TRANSPORTSTATE.STOPPED;
- }
- }
- public DateTime UpdateTime { get; private set; }
- #endregion
- private readonly IHttpClient _httpClient;
- private readonly ILogger _logger;
- private readonly IServerConfigurationManager _config;
- public Device(DeviceInfo deviceProperties, IHttpClient httpClient, ILogger logger, IServerConfigurationManager config)
- {
- Properties = deviceProperties;
- _httpClient = httpClient;
- _logger = logger;
- _config = config;
- }
- private int GetPlaybackTimerIntervalMs()
- {
- return 2000;
- }
- private int GetInactiveTimerIntervalMs()
- {
- return 20000;
- }
- public void Start()
- {
- UpdateTime = DateTime.UtcNow;
- var interval = GetPlaybackTimerIntervalMs();
- _timer = new Timer(TimerCallback, null, interval, interval);
- }
- private void RestartTimer()
- {
- var interval = GetPlaybackTimerIntervalMs();
- _timer.Change(interval, interval);
- }
- /// <summary>
- /// Restarts the timer in inactive mode.
- /// </summary>
- private void RestartTimerInactive()
- {
- var interval = GetInactiveTimerIntervalMs();
- _timer.Change(interval, interval);
- }
- private void StopTimer()
- {
- _timer.Change(Timeout.Infinite, Timeout.Infinite);
- }
- #region Commanding
- public Task<bool> VolumeDown(bool mute = false)
- {
- var sendVolume = (Volume - 5) > 0 ? Volume - 5 : 0;
- if (mute && _muteVol == 0)
- {
- sendVolume = 0;
- _muteVol = Volume;
- }
- return SetVolume(sendVolume);
- }
- public Task<bool> VolumeUp(bool unmute = false)
- {
- var sendVolume = (Volume + 5) < 100 ? Volume + 5 : 100;
- if (unmute && _muteVol > 0)
- sendVolume = _muteVol;
- _muteVol = 0;
- return SetVolume(sendVolume);
- }
- public Task ToggleMute()
- {
- if (_muteVol == 0)
- {
- _muteVol = Volume;
- return SetVolume(0);
- }
- var tmp = _muteVol;
- _muteVol = 0;
- return SetVolume(tmp);
- }
- public async Task<bool> SetVolume(int value)
- {
- var command = RendererCommands.ServiceActions.FirstOrDefault(c => c.Name == "SetVolume");
- if (command == null)
- return true;
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceRenderingType);
- if (service == null)
- {
- throw new InvalidOperationException("Unable to find service");
- }
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, RendererCommands.BuildPost(command, service.ServiceType, value))
- .ConfigureAwait(false);
- Volume = value;
- return true;
- }
- public async Task<TimeSpan> Seek(TimeSpan value)
- {
- var command = AvCommands.ServiceActions.FirstOrDefault(c => c.Name == "Seek");
- if (command == null)
- return value;
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- if (service == null)
- {
- throw new InvalidOperationException("Unable to find service");
- }
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, AvCommands.BuildPost(command, service.ServiceType, String.Format("{0:hh}:{0:mm}:{0:ss}", value), "REL_TIME"))
- .ConfigureAwait(false);
- return value;
- }
- public async Task<bool> SetAvTransport(string url, string header, string metaData)
- {
- StopTimer();
- await SetStop().ConfigureAwait(false);
- CurrentId = "0";
- var command = AvCommands.ServiceActions.FirstOrDefault(c => c.Name == "SetAVTransportURI");
- if (command == null)
- return false;
- var dictionary = new Dictionary<string, string>
- {
- {"CurrentURI", url},
- {"CurrentURIMetaData", CreateDidlMeta(metaData)}
- };
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- if (service == null)
- {
- throw new InvalidOperationException("Unable to find service");
- }
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, AvCommands.BuildPost(command, service.ServiceType, url, dictionary), header)
- .ConfigureAwait(false);
- await Task.Delay(50).ConfigureAwait(false);
- await SetPlay().ConfigureAwait(false);
- _lapsCount = GetLapsCount();
- RestartTimer();
- return true;
- }
- private string CreateDidlMeta(string value)
- {
- if (value == null)
- return String.Empty;
- var escapedData = value.Replace("<", "<").Replace(">", ">");
- return String.Format(BaseDidl, escapedData.Replace("\r\n", ""));
- }
- private const string BaseDidl = "<DIDL-Lite xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\" xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\">{0}</DIDL-Lite>";
- public async Task<bool> SetNextAvTransport(string value, string header, string metaData)
- {
- var command = AvCommands.ServiceActions.FirstOrDefault(c => c.Name == "SetNextAVTransportURI");
- if (command == null)
- return false;
- var dictionary = new Dictionary<string, string>
- {
- {"NextURI", value},
- {"NextURIMetaData", CreateDidlMeta(metaData)}
- };
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- if (service == null)
- {
- throw new InvalidOperationException("Unable to find service");
- }
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, AvCommands.BuildPost(command, service.ServiceType, value, dictionary), header)
- .ConfigureAwait(false);
- await Task.Delay(100).ConfigureAwait(false);
- return true;
- }
- public async Task<bool> SetPlay()
- {
- var command = AvCommands.ServiceActions.FirstOrDefault(c => c.Name == "Play");
- if (command == null)
- return false;
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- if (service == null)
- {
- throw new InvalidOperationException("Unable to find service");
- }
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, RendererCommands.BuildPost(command, service.ServiceType, 1))
- .ConfigureAwait(false);
- _lapsCount = GetLapsCount();
- return true;
- }
- public async Task<bool> SetStop()
- {
- var command = AvCommands.ServiceActions.FirstOrDefault(c => c.Name == "Stop");
- if (command == null)
- return false;
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, RendererCommands.BuildPost(command, service.ServiceType, 1))
- .ConfigureAwait(false);
- await Task.Delay(50).ConfigureAwait(false);
- return true;
- }
- public async Task<bool> SetPause()
- {
- var command = AvCommands.ServiceActions.FirstOrDefault(c => c.Name == "Pause");
- if (command == null)
- return false;
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, RendererCommands.BuildPost(command, service.ServiceType, 1))
- .ConfigureAwait(false);
- await Task.Delay(50).ConfigureAwait(false);
- TransportState = "PAUSED_PLAYBACK";
- return true;
- }
- #endregion
- #region Get data
- private int GetLapsCount()
- {
- // No need to get all data every lap, just every X time.
- return 10;
- }
- int _lapsCount = 0;
- private async void TimerCallback(object sender)
- {
- if (_disposed)
- return;
- StopTimer();
- try
- {
- await GetTransportInfo().ConfigureAwait(false);
- //If we're not playing anything no need to get additional data
- if (TransportState != TRANSPORTSTATE.STOPPED)
- {
- var hasTrack = await GetPositionInfo().ConfigureAwait(false);
- // TODO: Why make these requests if hasTrack==false?
- // TODO ANSWER Some vendors don't include track in GetPositionInfo, use GetMediaInfo instead.
- if (_lapsCount > GetLapsCount())
- {
- if (!hasTrack)
- {
- await GetMediaInfo().ConfigureAwait(false);
- }
- await GetVolume().ConfigureAwait(false);
- _lapsCount = 0;
- }
- }
- }
- catch (Exception ex)
- {
- _logger.ErrorException("Error updating device info", ex);
- }
- _lapsCount++;
- if (_disposed)
- return;
- //If we're not playing anything make sure we don't get data more often than neccessry to keep the Session alive
- if (TransportState != TRANSPORTSTATE.STOPPED)
- RestartTimer();
- else
- RestartTimerInactive();
- }
- private async Task GetVolume()
- {
- var command = RendererCommands.ServiceActions.FirstOrDefault(c => c.Name == "GetVolume");
- if (command == null)
- return;
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceRenderingType);
- if (service == null)
- {
- throw new InvalidOperationException("Unable to find service");
- }
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, RendererCommands.BuildPost(command, service.ServiceType))
- .ConfigureAwait(false);
- if (result == null || result.Document == null)
- return;
- var volume = result.Document.Descendants(uPnpNamespaces.RenderingControl + "GetVolumeResponse").Select(i => i.Element("CurrentVolume")).FirstOrDefault(i => i != null);
- var volumeValue = volume == null ? null : volume.Value;
- if (volumeValue == null)
- return;
- Volume = Int32.Parse(volumeValue);
- //Reset the Mute value if Volume is bigger than zero
- if (Volume > 0 && _muteVol > 0)
- {
- _muteVol = 0;
- }
- }
- private async Task GetTransportInfo()
- {
- var command = AvCommands.ServiceActions.FirstOrDefault(c => c.Name == "GetTransportInfo");
- if (command == null)
- return;
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- if (service == null)
- return;
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, RendererCommands.BuildPost(command, service.ServiceType))
- .ConfigureAwait(false);
- if (result == null || result.Document == null)
- return;
- var transportState =
- result.Document.Descendants(uPnpNamespaces.AvTransport + "GetTransportInfoResponse").Select(i => i.Element("CurrentTransportState")).FirstOrDefault(i => i != null);
- var transportStateValue = transportState == null ? null : transportState.Value;
- if (transportStateValue != null)
- TransportState = transportStateValue;
- UpdateTime = DateTime.UtcNow;
- }
- private async Task GetMediaInfo()
- {
- var command = AvCommands.ServiceActions.FirstOrDefault(c => c.Name == "GetMediaInfo");
- if (command == null)
- return;
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- if (service == null)
- {
- throw new InvalidOperationException("Unable to find service");
- }
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, RendererCommands.BuildPost(command, service.ServiceType))
- .ConfigureAwait(false);
- if (result == null || result.Document == null)
- return;
- var track = result.Document.Descendants("CurrentURIMetaData").Select(i => i.Value).FirstOrDefault();
- if (String.IsNullOrEmpty(track))
- {
- CurrentId = "0";
- return;
- }
- var uPnpResponse = XElement.Parse(track);
- var e = uPnpResponse.Element(uPnpNamespaces.items) ?? uPnpResponse;
- var uTrack = uParser.CreateObjectFromXML(new uParserObject
- {
- Type = e.GetValue(uPnpNamespaces.uClass),
- Element = e
- });
- if (uTrack != null)
- CurrentId = uTrack.Id;
- }
- private async Task<bool> GetPositionInfo()
- {
- var command = AvCommands.ServiceActions.FirstOrDefault(c => c.Name == "GetPositionInfo");
- if (command == null)
- return true;
- var service = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- if (service == null)
- {
- throw new InvalidOperationException("Unable to find service");
- }
- var result = await new SsdpHttpClient(_httpClient, _config).SendCommandAsync(Properties.BaseUrl, service, command.Name, RendererCommands.BuildPost(command, service.ServiceType))
- .ConfigureAwait(false);
- if (result == null || result.Document == null)
- return true;
- var durationElem = result.Document.Descendants(uPnpNamespaces.AvTransport + "GetPositionInfoResponse").Select(i => i.Element("TrackDuration")).FirstOrDefault(i => i != null);
- var duration = durationElem == null ? null : durationElem.Value;
- if (duration != null)
- {
- Duration = TimeSpan.Parse(duration);
- }
- var positionElem = result.Document.Descendants(uPnpNamespaces.AvTransport + "GetPositionInfoResponse").Select(i => i.Element("RelTime")).FirstOrDefault(i => i != null);
- var position = positionElem == null ? null : positionElem.Value;
- if (position != null)
- {
- Position = TimeSpan.Parse(position);
- }
- var track = result.Document.Descendants("TrackMetaData").Select(i => i.Value)
- .FirstOrDefault();
- if (String.IsNullOrEmpty(track))
- {
- //If track is null, some vendors do this, use GetMediaInfo instead
- return false;
- }
- var uPnpResponse = XElement.Parse(track);
- var e = uPnpResponse.Element(uPnpNamespaces.items) ?? uPnpResponse;
- var uTrack = uBaseObject.Create(e);
- if (uTrack == null)
- return true;
- CurrentId = uTrack.Id;
- return true;
- }
- #endregion
- #region From XML
- private async Task GetAVProtocolAsync()
- {
- var avService = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceAvtransportType);
- if (avService == null)
- return;
- var url = avService.ScpdUrl;
- if (!url.Contains("/"))
- url = "/dmr/" + url;
- if (!url.StartsWith("/"))
- url = "/" + url;
- var httpClient = new SsdpHttpClient(_httpClient, _config);
- var document = await httpClient.GetDataAsync(new Uri(Properties.BaseUrl + url));
- AvCommands = TransportCommands.Create(document);
- }
- private async Task GetRenderingProtocolAsync()
- {
- var avService = Properties.Services.FirstOrDefault(s => s.ServiceType == ServiceRenderingType);
- if (avService == null)
- return;
- string url = avService.ScpdUrl;
- if (!url.Contains("/"))
- url = "/dmr/" + url;
- if (!url.StartsWith("/"))
- url = "/" + url;
- var httpClient = new SsdpHttpClient(_httpClient, _config);
- var document = await httpClient.GetDataAsync(new Uri(Properties.BaseUrl + url));
- RendererCommands = TransportCommands.Create(document);
- }
- internal TransportCommands AvCommands
- {
- get;
- set;
- }
- internal TransportCommands RendererCommands
- {
- get;
- set;
- }
- public static async Task<Device> CreateuPnpDeviceAsync(Uri url, IHttpClient httpClient, IServerConfigurationManager config, ILogger logger)
- {
- var ssdpHttpClient = new SsdpHttpClient(httpClient, config);
- var document = await ssdpHttpClient.GetDataAsync(url).ConfigureAwait(false);
- var deviceProperties = new DeviceInfo();
- var name = document.Descendants(uPnpNamespaces.ud.GetName("friendlyName")).FirstOrDefault();
- if (name != null)
- deviceProperties.Name = name.Value;
- var name2 = document.Descendants(uPnpNamespaces.ud.GetName("roomName")).FirstOrDefault();
- if (name2 != null)
- deviceProperties.Name = name2.Value;
- var model = document.Descendants(uPnpNamespaces.ud.GetName("modelName")).FirstOrDefault();
- if (model != null)
- deviceProperties.ModelName = model.Value;
- var modelNumber = document.Descendants(uPnpNamespaces.ud.GetName("modelNumber")).FirstOrDefault();
- if (modelNumber != null)
- deviceProperties.ModelNumber = modelNumber.Value;
- var uuid = document.Descendants(uPnpNamespaces.ud.GetName("UDN")).FirstOrDefault();
- if (uuid != null)
- deviceProperties.UUID = uuid.Value;
- var manufacturer = document.Descendants(uPnpNamespaces.ud.GetName("manufacturer")).FirstOrDefault();
- if (manufacturer != null)
- deviceProperties.Manufacturer = manufacturer.Value;
- var manufacturerUrl = document.Descendants(uPnpNamespaces.ud.GetName("manufacturerURL")).FirstOrDefault();
- if (manufacturerUrl != null)
- deviceProperties.ManufacturerUrl = manufacturerUrl.Value;
- var presentationUrl = document.Descendants(uPnpNamespaces.ud.GetName("presentationURL")).FirstOrDefault();
- if (presentationUrl != null)
- deviceProperties.PresentationUrl = presentationUrl.Value;
- var modelUrl = document.Descendants(uPnpNamespaces.ud.GetName("modelURL")).FirstOrDefault();
- if (modelUrl != null)
- deviceProperties.ModelUrl = modelUrl.Value;
-
- deviceProperties.BaseUrl = String.Format("http://{0}:{1}", url.Host, url.Port);
- var icon = document.Descendants(uPnpNamespaces.ud.GetName("icon")).FirstOrDefault();
- if (icon != null)
- {
- deviceProperties.Icon = uIcon.Create(icon);
- }
- var isRenderer = false;
- foreach (var services in document.Descendants(uPnpNamespaces.ud.GetName("serviceList")))
- {
- if (services == null)
- return null;
- var servicesList = services.Descendants(uPnpNamespaces.ud.GetName("service"));
- if (servicesList == null)
- return null;
- foreach (var element in servicesList)
- {
- var service = Create(element);
- if (service != null)
- {
- deviceProperties.Services.Add(service);
- if (service.ServiceType == ServiceAvtransportType)
- {
- isRenderer = true;
- }
- }
- }
- }
- if (isRenderer)
- {
- var device = new Device(deviceProperties, httpClient, logger, config);
- await device.GetRenderingProtocolAsync().ConfigureAwait(false);
- await device.GetAVProtocolAsync().ConfigureAwait(false);
- return device;
- }
- return null;
- }
- #endregion
- private static DeviceService Create(XElement element)
- {
- var type = element.GetDescendantValue(uPnpNamespaces.ud.GetName("serviceType"));
- var id = element.GetDescendantValue(uPnpNamespaces.ud.GetName("serviceId"));
- var scpdUrl = element.GetDescendantValue(uPnpNamespaces.ud.GetName("SCPDURL"));
- var controlURL = element.GetDescendantValue(uPnpNamespaces.ud.GetName("controlURL"));
- var eventSubURL = element.GetDescendantValue(uPnpNamespaces.ud.GetName("eventSubURL"));
- return new DeviceService(type, id, scpdUrl, controlURL, eventSubURL);
- }
- #region Events
- public event EventHandler<TransportStateEventArgs> PlaybackChanged;
- public event EventHandler<CurrentIdEventArgs> CurrentIdChanged;
- private void NotifyPlaybackChanged(bool value)
- {
- if (PlaybackChanged != null)
- {
- PlaybackChanged.Invoke(this, new TransportStateEventArgs
- {
- Stopped = IsStopped
- });
- }
- }
- private void NotifyCurrentIdChanged(string value)
- {
- if (CurrentIdChanged != null)
- CurrentIdChanged.Invoke(this, new CurrentIdEventArgs(value));
- }
- #endregion
- #region IDisposable
- bool _disposed;
- public void Dispose()
- {
- if (!_disposed)
- {
- _disposed = true;
- _timer.Dispose();
- }
- }
- #endregion
- public override string ToString()
- {
- return String.Format("{0} - {1}", Properties.Name, Properties.BaseUrl);
- }
- private class TRANSPORTSTATE
- {
- public const string STOPPED = "STOPPED";
- public const string PLAYING = "PLAYING";
- public const string TRANSITIONING = "TRANSITIONING";
- public const string PAUSED_PLAYBACK = "PAUSED_PLAYBACK";
- public const string PAUSED = "PAUSED";
- }
- }
- }
|