Updated UPnP so it does disco async, updated DiscoProviders to handle that approriately, Added JsonAction result with JS Ajax call for client side detection, on a timer for media controllers

This commit is contained in:
nothingmn
2010-10-07 22:04:25 -07:00
parent 78dba9c668
commit dfbf13b868
7 changed files with 45 additions and 17 deletions

View File

@@ -8,13 +8,7 @@ namespace NzbDrone.Core.Providers
public class MediaDiscoveryProvider : IMediaDiscoveryProvider
{
#region IMediaDiscoveryProvider Members
public void Discover()
{
//calling the static instance will kick off the discovery process
OpenSource.UPnP.AudioVideoDevices instance = OpenSource.UPnP.AudioVideoDevices.Instance;
}
public bool DiscoveredMedia
{
get { return (OpenSource.UPnP.AudioVideoDevices.Instance.Devices.Count > 0); }