【问题标题】:using Managed Media Aggregation使用托管媒体聚合
【发布时间】:2014-08-21 06:04:37
【问题描述】:

我一直在尝试使用托管媒体聚合开源。

我的服务器正在从局域网中的另一台 PC 获取其源代码。

几个问题:

  1. 我让我的 RtspClient 连接到我的服务器, 现在我希望能够与客户端一起工作(发送播放、暂停并实际查看视频播放的位置)并且还没有找到任何代码示例。

  2. 我希望能够通过我的服务器在我的计算机中流式传输本地视频文件,有没有办法做到这一点?

  3. 我试图从我的 PC 上的 VLC 连接到服务器 (localhost) - 没有成功..

这是我的代码:

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();
    }

有什么想法吗? 谢谢!

【问题讨论】:

    标签: stream media rtsp rtp


    【解决方案1】:

    我是那个库的作者。

    您的示例看起来正确,Stack Overflow 不是我的图书馆的论坛。

    如果您需要在查看其他讨论后发布问题https://net7mma.codeplex.com/discussions,以确保您的问题没有得到回答。

    【讨论】:

      猜你喜欢
      • 2010-12-03
      • 1970-01-01
      • 1970-01-01
      • 2010-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多