UPNP 的 AVTransport 服务的 SetCurrentURI 的元数据中 "class" 属性的所有可能选项是什么

what are all the possible options for "class" attribute in the Metadata of AVTransport service's SetCurrentURI of UPNP

我试图在 UPnP 使用的 AVTransport 服务的元数据 DIDL XML 片段中找到 "class" 属性的所有可能选项。我在官方规格中找不到它们,我唯一的来源是这个 page。我得到的选项是这些:

  1. object.item.imageItem
  2. object.item.audioItem
  3. object.item.videoItem
  4. object.item.playlistItem
  5. object.item.textItem
  6. object.item.bookmarkItem
  7. object.item.epgItem

事实证明,每一个都有像 "object.item.audioItem.audioTrack" 这样的子项,它可以在官方规范中找到,但没有 link 任何可能的子项的完整列表。 我可以从任何来源获取该信息吗?

您可以查看列出所有合法值的 XML 架构。可在 http://www.upnp.org/schemas/av/upnp.xsd

    <xsd:simpleType name="className.wc.type">
        <xsd:restriction base="xsd:NCName">
            <xsd:enumeration value="object.item"/>
            <xsd:enumeration value="object.item.imageItem"/>
            <xsd:enumeration value="object.item.imageItem.photo"/>
            <xsd:enumeration value="object.item.audioItem"/>
            <xsd:enumeration value="object.item.audioItem.musicTrack"/>
            <xsd:enumeration value="object.item.audioItem.audioBroadcast"/>
            <xsd:enumeration value="object.item.audioItem.audioBook"/>
            <xsd:enumeration value="object.item.videoItem"/>
            <xsd:enumeration value="object.item.videoItem.movie"/>
            <xsd:enumeration value="object.item.videoItem.videoBroadcast"/>
            <xsd:enumeration value="object.item.videoItem.musicVideoClip"/>
            <xsd:enumeration value="object.item.playlistItem"/>
            <xsd:enumeration value="object.item.textItem"/>
            <xsd:enumeration value="object.item.bookmarkItem"/>
            <xsd:enumeration value="object.item.epgItem"/>
            <xsd:enumeration value="object.item.epgItem.audioProgram"/>
            <xsd:enumeration value="object.item.epgItem.videoProgram"/>
            <xsd:enumeration value="object.container.person"/>
            <xsd:enumeration value="object.container.person.musicArtist"/>
            <xsd:enumeration value="object.container.playlistContainer"/>
            <xsd:enumeration value="object.container.album"/>
            <xsd:enumeration value="object.container.album.musicAlbum"/>
            <xsd:enumeration value="object.container.album.photoAlbum"/>
            <xsd:enumeration value="object.container.genre"/>
            <xsd:enumeration value="object.container.genre.musicGenre"/>
            <xsd:enumeration value="object.container.genre.movieGenre"/>
            <xsd:enumeration value="object.container.channelGroup"/>
            <xsd:enumeration value="object.container.channelGroup.audioChannelGroup"/>
            <xsd:enumeration value="object.container.channelGroup.videoChannelGroup"/>
            <xsd:enumeration value="object.container.epgContainer"/>
            <xsd:enumeration value="object.container.storageSystem"/>
            <xsd:enumeration value="object.container.storageVolume"/>
            <xsd:enumeration value="object.container.storageFolder"/>
            <xsd:enumeration value="object.container.bookmarkFolder"/>
        </xsd:restriction>
    </xsd:simpleType>

Standardized DCP spec在示例中使用它:

<?xml version="1.0" encoding="UTF-8"?>
<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/ http://www.upnp.org/schemas/av/didl-lite.xsd urn:schemas-upnp-org:metadata-1-0/upnp/ http://www.upnp.org/schemas/av/upnp.xsd">
  <item id="18" parentID="13" restricted="0">
    <dc:title>Try a little tenderness</dc:title>
    <upnp:class>object.item.audioItem.musicTrack</upnp:class>
    <res protocolInfo="http-get:*:audio/mpeg:*" size="3558000">http://168.192.1.1/audio197.mp3</res>
  </item>
</DIDL-Lite>