gpt4 book ai didi

upnp - 浏览排序标准

转载 作者:行者123 更新时间:2023-12-05 05:27:38 31 4
gpt4 key购买 nike

我正在尝试为视频编写一个 upnp/dlna 客户端,我希望允许按标题和日期排序的选项。

使用 Windows7/wmp 作为服务器,我可以使用“dc:title”或“dc:date”进行排序,它似乎可以工作,但测试人员告诉我它在其他服务器上不起作用。有没有一种通用的方法来知道是否允许排序以及排序标准应该是什么?

谢谢。

最佳答案

有一种方法可以对此进行查询(但要准备好应对可能会影响其能力的错误实现)。引用 ContentDirectory service spec (v3) :

2.3.3 SortCapabilities

This state variable is a CSV list of property names that the ContentDirectory service can use to sort Search() or Browse() action results. An empty string indicates that the device does not support any kind of sorting. A wildcard (“*”) indicates that the device supports sorting using all property names supported by the ContentDirectory service. The property names returned MUST include the appropriate namespace prefixes, except for the DIDL-Lite namespace. Properties in the DIDL-Lite namespace MUST always be returned without the prefix. All property names MUST be fully qualified using the double colon (“::”) syntax as defined in Section 2.2.20, “property”. For example, “upnp:foreignMetadata::fmBody::fmURI”

关于upnp - 浏览排序标准,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18304594/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com