我在哪里可以开始用 C# 编写媒体服务器,比如 PlayOn
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/507815/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where can I get started writing a media server in C# like PlayOn
提问by Jamey McElveen
Where can I get started writing a media server in C# like PlayOn http://www.themediamall.com/playon
我在哪里可以开始用 C# 编写媒体服务器,比如 PlayOn http://www.themediamall.com/playon
UPDATE:
I have learned that PlayOn is a is a DLNA/UPnP media server but I am still looking for C# example implementation of this type of server. I am placing a bounty and will award it if you can point me to some sample code that I can use to server photos and/or video content to a media client like XBOX 360, Playstation 3, Media Center, or Media Center Extenders
更新:
我了解到 PlayOn 是一个 DLNA/UPnP 媒体服务器,但我仍在寻找此类服务器的 C# 示例实现。如果您能指出一些示例代码,我可以使用这些代码将照片和/或视频内容提供给媒体客户端(如 XBOX 360、Playstation 3、Media Center 或 Media Center Extenders),我将悬赏并奖励它
采纳答案by Jamey McElveen
After more research I have learned that PlayOn is a is a DLNA/UPnPmedia server. There is not lots of information on it but there are a few. If anyone can reference an example that would be awesome.
经过更多研究,我了解到 PlayOn 是一个DLNA/ UPnP媒体服务器。关于它的信息并不多,但有一些。如果有人可以参考一个很棒的例子。
here some links I found after discovering I was looking for DLNA/UPnP
Creating a DLNA server/service in VB.NET
回答by jro
回答by Simon
Perhaps have a look at the codebase for Media Portal
也许看看媒体门户的代码库
Here is the developer page http://www.team-mediaportal.com/contribute_to_mediaportal.html
这是开发者页面 http://www.team-mediaportal.com/contribute_to_mediaportal.html
There is also a media sharing library on code plex that might help
Code plex 上还有一个媒体共享库可能会有所帮助
回答by Jarod Elliott
Thisquestion may also help point you in the right direction.
这个问题也可以帮助您指明正确的方向。
Specifically the accepted answer point to the Platinum UPnP library. Whilst it's a C++ library, it looks promising and i'm sure it could be integrated with a C# solution or at least give you ideas for your own implementation.
特别是对Platinum UPnP 库的公认答案。虽然它是一个 C++ 库,但它看起来很有前途,我相信它可以与 C# 解决方案集成,或者至少为您自己的实现提供想法。
回答by Chris Craft
Here's a couple of things to look into:
这里有几件事情需要研究:
/whsUpnp360 UPnP MediaServer using Intels SDK for Windows Home Server and Xbox 360 (written in C#)
/whsUpnp360 UPnP MediaServer 使用 Intels SDK for Windows Home Server 和 Xbox 360(用 C# 编写)
http://www.mperfect.net/whsUpnp360/
http://www.mperfect.net/whsUpnp360/
UPnP library for C#? http://bytes.com/groups/net-c/741142-upnp-library-c
C# 的 UPnP 库? http://bytes.com/groups/net-c/741142-upnp-library-c
回答by Robert MacLean
My recommendation would be not to write you own server for the reason that Windows Media Services- which is a great FREE streaming server from Microsoft is available already. It focuses on the heavy lifting of how do you stream, formats etc... is well documented and understood which makes deployment easier. Your focus could then be on the areas it sucks at, which is client front end - i.e. a nice web or Silverlightinterface, maybe an RSS feed of videos. This shouldn't be hard as the server API and how to write code against it is well documented.
我的建议是不要编写您自己的服务器,因为Windows Media Services(Microsoft 提供的一款出色的免费流媒体服务器)已经可用。它专注于如何流式传输、格式等的繁重工作......有充分的文档记录和理解,这使得部署更容易。然后,您可以将重点放在它不擅长的领域,即客户端前端——即一个不错的 Web 或Silverlight界面,也许是视频的 RSS 提要。这应该不难,因为服务器 API 以及如何针对它编写代码都有很好的文档记录。