NET的UPnP库 [英] UPnP Library for .Net

查看:171
本文介绍了NET的UPnP库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试UPnP。具体来说,我正在尝试浏览 PS3媒体服务器的内容库。

I'm trying to play around with UPnP. Specifically, I'm trying to browse the content library of a PS3 Media Server.

我尝试了 upnp.dll (Windows附带的COM库),发现它易于使用。我可以很容易地发现设备并查看它们的服务,但是在尝试访问媒体服务器的服务时会抛出异常(其他设备,例如我的路由器和Windows Media Player,可以正常工作)。经过一番网上搜索后发现,upnp.dll的实施不正确,其他人也遇到了同样的问题,没有找到解决方法。

I tried upnp.dll (a COM library that ships with windows) and found it easy to use. I can discover devices and look at their services pretty easily, however it throws an exception when trying to access the services of the media server (other devices, like my router and windows media player, work fine). A bit of searching around the net revealed that upnp.dll is not well implemented and other people have the same problem and found no solutions.

所以我一直在寻找一个另一种方法,并找到 Mono.Upnp 。看起来很有希望,但我根本无法使它正常工作。

So I've looked for an alternative and found Mono.Upnp. It looks promising but I just can't get it to work, at all.

我看到有人提到英特尔的UPnP SDK,但这似乎已被弃用,我不能找到可下载的软件包。

I saw mentions of Intel's UPnP SDK but this seems to be deprecated and I can't find a downloadable package.

我很茫然。除了upnp.dll,没有其他选择了吗?

I'm at a loss. Is there no alternative to upnp.dll ?

推荐答案

我决定咬牙枪,自己动手。没那么难。简单的udp + xml + soap。

I decided to bite the bullet and just roll my own. It's not that hard. Simple udp + xml + soap.

此链接对我很有帮助:

http://www.upnp.org/download/UPnP_Device_Architecture_Generic_20000710.ppt

This link was very helpful to me:
http://www.upnp.org/download/UPnP_Device_Architecture_Generic_20000710.ppt

有关媒体服务器内容目录的详细信息,请参阅:
http://www.upnp.org/standardizeddcps/ document / ContentDirectory1.0.pdf

For the specifics of a media server's content directory, see: http://www.upnp.org/standardizeddcps/documents/ContentDirectory1.0.pdf

Mono.Upnp 源代码也很有帮助。

我没有计划制作此开源代码,因为它不会完全实现(我正在为我的项目做最低限度的工作。)

I have no plans to make this open source as it won't be a complete implementation (I'm doing the strict minimum for my project).

这篇关于NET的UPnP库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆