public MediaSettingsIMG(MediaServerDevice device, string prefix, bool nativeFile, string fileFeature, string encodeFeature, params EncoderBuilder[] encode) : base(device, prefix, encode) { this.nativeFile = nativeFile; this.fileFeature = fileFeature; this.encodeFeature = encodeFeature; }
public MediaSettingBase(MediaServerDevice device, string prefix, params EncoderBuilder[] encode) { this.prefix = prefix; this.device = device; this.encode = new ReadOnlyCollection <EncoderBuilder>(encode); }
public MediaSettings(MediaServerDevice upnpDevice) { this.audio = new MediaSettingsAV(upnpDevice, "AudioSettings", true, "DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000", "DLNA.ORG_OP=10;DLNA.ORG_FLAGS=01500000000000000000000000000000", "DLNA.ORG_OP=00;DLNA.ORG_FLAGS=01500000000000000000000000000000", EncoderBuilder.GetEncoder("&codec=mp3_ts&audbitrate=128&video=0&quality=100&obufsize=1024")); this.image = new MediaSettingsIMG(upnpDevice, "ImageSettings", true, "DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00d00000000000000000000000000000", "DLNA.ORG_OP=01;DLNA.ORG_FLAGS=00d00000000000000000000000000000", EncoderBuilder.GetEncoder("&codec=jpeg&width=160&height=160&keepaspect")); this.video = new MediaSettingsAV(upnpDevice, "VideoSettings", true, "DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000", "DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000", "DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000", EncoderBuilder.GetEncoder("&codec=mpeg2_ps&vidbitrate=3000&audbitrate=128&width=720&height=576&fps=25&obufsize=2048")); this.stream = new MediaSettingBase(upnpDevice, "StreamSettings", EncoderBuilder.GetEncoder("&codec=mpeg2_ps&vidbitrate=3000&audbitrate=128&width=720&height=576&fps=25&obufsize=2048"), EncoderBuilder.GetEncoder("&codec=mpeg2_ps&vidbitrate=5000&audbitrate=128&width=1280&height=768&fps=25&audio=0&obufsize=2048"), EncoderBuilder.GetEncoder("&codec=mpeg2_ps&vidbitrate=8000&audbitrate=128&width=1920&height=1080&fps=25&audio=0&obufsize=2048"), EncoderBuilder.GetEncoder("&codec=mp3_ts&audbitrate=128&video=0&quality=100&obufsize=1024")); }
public HlsManager(MediaServerDevice device) { this.device = device; device.Server.HttpServer.AddRoute("GET", "/Hls/playlist.m3u8", new HttpRouteDelegate(GetPlaylist)); device.Server.HttpServer.AddRoute("GET", "/Hls/*", new HttpRouteDelegate(GetEncode)); }
public ContentDirectoryService(MediaServerDevice device, UpnpServer server) : base(server, "urn:schemas-upnp-org:service:ContentDirectory:1", "urn:upnp-org:serviceId:ContentDirectory", "/ContentDirectory.control", "/ContentDirectory.event", "/ContentDirectory.xml") { this.device = device; }
public ConnectionManagerService(MediaServerDevice device, UpnpServer server) : base(server, "urn:schemas-upnp-org:service:ConnectionManager:1", "urn:upnp-org:serviceId:ConnectionManager", "/ConnectionManager.control", "/ConnectionManager.event", "/ConnectionManager.xml") { this.device = device; }
public MediaSettingsAV(MediaServerDevice device, string prefix, bool nativeFile, string fileFeature, string encodeFeature, string streamFeature, params EncoderBuilder[] encode) : base(device, prefix, nativeFile, fileFeature, encodeFeature, encode) { this.streamFeature = streamFeature; }
public ItemManager(MediaServerDevice upnpDevice) { this.upnpDevice = upnpDevice; this.settings = new MediaSettings(upnpDevice); }
public UpnpControlPoint(MediaServerDevice upnpDevice) { this.upnpDevice = upnpDevice; this.portForwardingDel = new PortForwardingDelType(PortForwarding); }
public MediaReceiverRegistrarService(MediaServerDevice device, UpnpServer server) : base(server, "urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1", "urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar", "/X_MS_MediaReceiverRegistrar.control", "/X_MS_MediaReceiverRegistrar.event", "/X_MS_MediaReceiverRegistrar.xml") { this.device = device; }