示例#1
0
 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;
 }
示例#2
0
            public MediaSettingBase(MediaServerDevice device, string prefix, params EncoderBuilder[] encode)
            {
                this.prefix = prefix;
                this.device = device;

                this.encode = new ReadOnlyCollection <EncoderBuilder>(encode);
            }
示例#3
0
        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"));
        }
示例#4
0
        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));
        }
示例#5
0
 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;
 }
示例#6
0
 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;
 }
示例#7
0
 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;
 }
示例#8
0
 public ItemManager(MediaServerDevice upnpDevice)
 {
     this.upnpDevice = upnpDevice;
     this.settings   = new MediaSettings(upnpDevice);
 }
示例#9
0
 public UpnpControlPoint(MediaServerDevice upnpDevice)
 {
     this.upnpDevice        = upnpDevice;
     this.portForwardingDel = new PortForwardingDelType(PortForwarding);
 }
示例#10
0
 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;
 }