我一直试图使用托管媒体聚合开放源码。
我有一个服务器,正在从我的局域网中的另一台PC上获取它的源代码。
几个问题:
这里是我的代码:
public ServerExample()
{
//Create the server optionally specifying the port to listen on
server = new RtspServer(554);
source = new RtspSourceStream("RtspSourceTest",
"rtsp://192.168.30.11:5544/stream");
// Add the stream to the server
server.AddStream(source);
// Start the server and underlying streams
server.Start();
//The server is now running, you can access the stream with VLC, QuickTime, etc
AccessWithClient();
}
private void AccessWithClient()
{
RtspClient client = new RtspClient("rtsp://localhost:554/RtspSourceTest", RtspClient.ClientProtocolType.Tcp);
client.Connect();
}有什么想法吗?谢谢!
发布于 2014-11-05 04:18:53
我是那个图书馆的作者。
您的示例看起来是正确的,堆栈溢出不是我的库的论坛。
如果你需要在回顾其他讨论之后发布问题https://net7mma.codeplex.com/discussions,以确保你的问题没有得到回答。
https://stackoverflow.com/questions/25419265
复制相似问题