public BlockItemContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { Title = "Доступно только в полной версии"; Id = "block"; ParentId = "0"; _childItems.Add(this); }
public ItemRootContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { Title = "Root"; Id = "0"; ParentId = "0"; _childItems.Add(new ChannelItemContainer(this, device)); _childItems.Add(new ArchiveItemContainer(this, device)); _childItems.Add(new RecordItemContainer(this, device)); var plugs = _device.PluginProvider.GetPlugins(); foreach (var plug in plugs) { try { if (plug.GetContent(null) != null) { _childItems.Add(new PluginContainer(this, device, plug)); } } catch (Exception e) { P2pProxyApp.Log.Write(e.Message, TypeMessage.Error); } } }
public PluginContentProvider(P2pProxyDevice device) { _device = device; _plugins = new List<IPluginProxy>(); LoadPlugins(); InitPlugins(); RoutePlugins(); }
public ArchiveContentProvider(WebServer server, P2pProxyDevice device) { server.AddRouteUrl("/archive/", SendResponse, HttpMethod.Get); server.AddRouteUrl("/archive/play", Play, HttpMethod.Get); server.AddRouteUrl("/archive/play", SendHead, HttpMethod.Head); server.AddRouteUrl("/archive/channels", GetChannelsRequest, HttpMethod.Get); _device = device; }
public PluginContentProvider(P2pProxyDevice device) { _device = device; _plugins = new List <IPluginProxy>(); LoadPlugins(); InitPlugins(); RoutePlugins(); }
protected Item(ItemContainer parent, P2pProxyDevice device) { Title = "Unknown"; Id = "0"; ParentId = "0"; IconUrl = null; this.parent = parent; _device = device; }
public ChannelContentProvider(WebServer server, P2pProxyDevice device) { server.AddRouteUrl(PLAYLIST_PATH, SendResponse, HttpMethod.Get); server.AddRouteUrl(PLAY_PATH, Play, HttpMethod.Get); server.AddRouteUrl(PLAY_PATH, SendHead, HttpMethod.Head); server.AddRouteUrl(FAVOURITE_ADD, AddFavouriteRequest, HttpMethod.Get); server.AddRouteUrl(FAVOURITE_DEL, DelFavouriteRequest, HttpMethod.Get); _device = device; }
public ArchiveItemContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { Type = MediaType.Video; _childItems = new List <Item>(); IconUrl = ""; Id = "archives"; Title = "Архив"; ParentId = parent.GetIds(); this.parent = parent; }
public ChannelItemContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { Type = MediaType.Video; _childItems = new List <Item>(); IconUrl = ""; Id = "channels"; Title = "Каналы"; ParentId = parent.GetIds(); this.parent = parent; }
public RecordContentProvider(WebServer server, P2pProxyDevice device) { server.AddRouteUrl(PLAYLIST_PATH, SendResponse, HttpMethod.Get); server.AddRouteUrl(ADD_PATH, AddRequest, HttpMethod.Get); server.AddRouteUrl(DEL_PATH, DelRequest, HttpMethod.Get); server.AddRouteUrl(STOP_PATH, StopRequest, HttpMethod.Get); server.AddRouteUrl(API_PATH, AllRequest, HttpMethod.Get); server.AddRouteUrl(PLAY_PATH, Play, HttpMethod.Get); _device = device; }
public PluginContainer(ItemContainer parent, P2pProxyDevice device, IPluginProxy plugin) : base(parent, device) { _plugin = plugin; Id = _plugin.Id; Title = _plugin.Name; if (parent != null) { ParentId = parent.GetIds(); } Type = MediaType.Video; }
public EpgContentProvider(P2pProxyDevice device) { _device = device; _device.Web.AddRouteUrl("/epg/", SendResponse, HttpMethod.Get); }
public ItemManager(P2pProxyDevice TVProxyDevice) { this.P2pProxyDevice = P2pProxyDevice; _rootItems = new ItemRootContainer(null, TVProxyDevice); }
public ItemStream(ItemContainer parent, MediaType type, P2pProxyDevice device, string file_ext = ".m2ts") : base(parent, device) { Type = type; _info = device.UpnpSettings.Profile.Live.Info.FirstOrDefault(info => info.FileExt.Equals(file_ext, StringComparison.OrdinalIgnoreCase)) ?? device.UpnpSettings.Profile.Live.Info[0]; }
public ItemContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { _childItems = new List<Item>(); }
public PluginContainer(ItemContainer parent, P2pProxyDevice device, IPluginProxy plugin) : base(parent, device) { _plugin = plugin; Id = _plugin.Id; Title = _plugin.Name; if (parent != null) ParentId = parent.GetIds(); Type = MediaType.Video; }
public ArchiveItemContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { Type = MediaType.Video; _childItems = new List<Item>(); IconUrl = ""; Id = "archives"; Title = "Архив"; ParentId = parent.GetIds(); this.parent = parent; }
public ItemRootContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { Title = "Root"; Id = "0"; ParentId = "0"; _childItems.Add(new ChannelItemContainer(this, device)); _childItems.Add(new ArchiveItemContainer(this, device)); _childItems.Add(new RecordItemContainer(this, device)); var plugs = _device.PluginProvider.GetPlugins(); foreach (var plug in plugs) { try { if (plug.GetContent(null) != null) _childItems.Add(new PluginContainer(this, device, plug)); } catch (Exception e) { P2pProxyApp.Log.Write(e.Message, TypeMessage.Error); } } }
public RecordItemContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { Id = "records"; Title = "Локальные записи"; Type = MediaType.Video; }
public ChannelItemContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { Type = MediaType.Video; _childItems = new List<Item>(); IconUrl = ""; Id = "channels"; Title = "Каналы"; ParentId = parent.GetIds(); this.parent = parent; }
public ItemContainer(ItemContainer parent, P2pProxyDevice device) : base(parent, device) { _childItems = new List <Item>(); }