The following examples show sample NOTIFY messages sent by the Windows 7 NSS. Depending on the computer that is hosting NSS, some fields might have different values:
NOTIFY * HTTP/1.1\r\n
Host:239.255.255.250:1900\r\n
NT:urn:schemas-upnp-org:service:ConnectionManager:1\r\n
NTS:ssdp:alive\r\n
Location:http://192.168.1.100:2869/upnphost/udhisapi.dll?content=uuid:224e2bb9-6961-4d79-b05f-f72cb415dc6c\r\ns
USN:uuid:224e2bb9-6961-4d79-b05f-f72cb415dc6c::urn:schemas-upnp-org:service:ConnectionManager:1\r\n
Cache-Control:max-age=1800\r\n
Server:Microsoft-Windows-NT/5.1 UPnP/1.0 UPnP-Device-Host/1.0\r\n
\r\n
NOTIFY * HTTP/1.1\r\n
Host:239.255.255.250:1900\r\n
NT:urn:schemas-upnp-org:service:ContentDirectory:1\r\n
NTS:ssdp:alive\r\n Location:http://192.168.1.100:2869/upnphost/udhisapi.dll?content=uuid:224e2bb9-6961-4d79-b05f-f72cb415dc6c\r\n
USN:uuid:224e2bb9-6961-4d79-b05f-f72cb415dc6c::urn:schemas-upnp-org:service:ContentDirectory:1\r\n
Cache-Control:max-age=1800\r\n
Server:Microsoft-Windows-NT/5.1 UPnP/1.0 UPnP-Device-Host/1.0\r\n
\r\n
NOTIFY * HTTP/1.1\r\n
Host:239.255.255.250:1900\r\n
NT:urn:schemas-upnp-org:device:MediaServer:1\r\n
NTS:ssdp:alive\r\n Location:http://192.168.1.100:2869/upnphost/udhisapi.dll?content=uuid:224e2bb9-6961-4d79-b05f-f72cb415dc6c\r\n
USN:uuid:224e2bb9-6961-4d79-b05f-f72cb415dc6c::urn:schemas-upnp-org:device:MediaServer:1\r\n
Cache-Control:max-age=1800\r\n
Server:Microsoft-Windows-NT/5.1 UPnP/1.0 UPnP-Device-Host/1.0\r\n
\r\n
NOTIFY * HTTP/1.1\r\n
Host:239.255.255.250:1900\r\n
NT:upnp:rootdevice\r\n
NTS:ssdp:alive\r\n
Location:http://192.168.1.100:2869/upnphost/udhisapi.dll?content=uuid:224e2bb9-6961-4d79-b05f-f72cb415dc6c\r\n
USN:uuid:224e2bb9-6961-4d79-b05f-f72cb415dc6c::upnp:rootdevice\r\n
Cache-Control:max-age=1800\r\n
Server:Microsoft-Windows-NT/5.1 UPnP/1.0 UPnP-Device-Host/1.0\r\n
\r\n
The following example shows a UPnP M-SEARCH message response by NSS:
M-SEARCH * HTTP/1.1\r\n
Host:239.255.255.250:1900\r\n
ST:urn:schemas-upnp-org:device:MediaServer:1\r\n
Man:"ssdp:discover"\r\n
MX:3\r\n
\r\n
The following example shows a sample SSDP announcement from a UPnP MediaRenderer:
NOTIFY * HTTP/1.1\r\n
HOST: 239.255.255.250:1900\r\n
CACHE-CONTROL: max-age=1800\r\n
LOCATION: http://192.168.1.100:80/description.xml\r\n
NT: urn:schemas-upnp-org:device:MediaRenderer:1\r\n
NTS: ssdp:alive\r\n
SERVER: NetDeviceOS/5.4 UPnP/1.0 DMP/5.0\r\n
USN: uuid: 224e2bb9-6961-4d79-b05f-f72cb415dc6c::urn:schemas-upnp-org:device:MediaRenderer:1\r\n
\r\n
Appendix 2: Resource Elements for Transcoded Content
The following example shows multiple resource elements exposed for the testImage.jpg file.
In each resource element, the name of the file in the root URL is intentionally shortened for brevity and clarity.
-
testImage
object.item.imageItem.photo
[No Keywords]
2002-03-04
http://192.168.1.111:10243/WMPNSSv4/1234/{name}.jpg?
albumArt=true
protocolInfo="http-get:*:image/jpeg:*" colorDepth="24">
http://192.168.1.111:10243/WMPNSSv4/1234/{name}.jpg
http://192.168.1.111:10243/WMPNSSv4/1234/{name}.jpg?formatID=23,width=160,height=104
http://192.168.1.111:10243/WMPNSSv4/1234/{name}.jpg?formatID=23,width=640,height=419
http://192.168.1.111:10243/WMPNSSv4/1234/{name}.?formatID=23,width=1024,height=671
http://192.168.1.111:10243/WMPNSSv4/1234/{name}.jpg?formatID=24,width=136,height=90,thumbnail=false,aspectRatio=9:8,rFill=20,gFill=20,bFill=20
http://192.168.1.111:10243/WMPNSSv4/1234/{name}.jpg?formatID=24,width=684,height=456,thumbnail=false,aspectRatio=9:8,rFill=20,gFill=20,bFill=20
protocolInfo="http-get:*:image/x-ycbcr-yuv420:*" colorDepth="24">
http://192.168.1.111:10243/WMPNSSv4/1234/{name}.jpg?formatID=24,width=3000,height=1968,thumbnail=false,aspectRatio=1:1,rFill=20,gFill=20,bFill=20