I'd like to write a DLNA server in Cocoa for the Mac. Are there any libraries for speaking UPnP/DLNA in Objective-C or C? Failing that, where is the spec for DLNA so I can write my own?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
How about this one:
http://code.google.com/p/upnpx/
回答2:
Have a look at Platinum UPnP. It's written in C++, but is very portable.
回答3:
I had a look at the Platinum UPnP Framework too and I found it quite cumbersome to work with since the API is C++ and (fortunately or unfortunately I am not sure) I am not a very experienced C++ developer.
I found this which seems to look promising and has a nicer Objective-C API: CyberLinkForObjC
回答4:
Don't know about DLNA, but if you want to do port mapping with UPnP, you can try TCMPortMapper.