我想从支持 DLNA 的 Sony NEX-6 相机下载图像。发现 ConnectionManager 将返回:
<device
xmlns="urn:schemas-upnp-org:device-1-0">
<dlna:X_DLNADOC
xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMS-1.50
</dlna:X_DLNADOC>
<deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>
<friendlyName>NEX-6</friendlyName>
<manufacturer>Sony Corporation</manufacturer>
<manufacturerURL>http://www.sony.com/</manufacturerURL>
<modelDescription>SonyDigitalMediaServer</modelDescription>
<modelName>SonyImagingDevice</modelName>
<modelURL>http://www.sony.net/</modelURL>
<UDN>uuid:00000000-0000-0010-8000-2002af0fa742</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId>
<SCPDURL>/CdsDesc.xml</SCPDURL>
<controlURL>/upnp/control/ContentDirectory</controlURL>
<eventSubURL>/upnp/event/ContentDirectory</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<SCPDURL>/CmsDesc.xml</SCPDURL>
<controlURL>/upnp/control/ConnectionManager</controlURL>
<eventSubURL>/upnp/event/ConnectionManager</eventSubURL>
</service>
</serviceList>
<iconList>
<icon>
<mimetype>image/jpeg</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/DLNA_camera_48.jpg</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/DLNA_camera_120.jpg</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/DLNA_camera_48.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/DLNA_camera_120.png</url>
</icon>
</iconList>
<av:standardCDS
xmlns:av="urn:schemas-sony-com:av">5.0
</av:standardCDS>
<av:photoRoot
xmlns:av="urn:schemas-sony-com:av">PhotoRoot
</av:photoRoot>
</device>
据我所知,这款相机不提供 AVTransport 服务。真的吗?那么如何从相机中获取图像呢?最大。ContentDirectory 服务的分辨率太小(JPEG_LRG
)。