juliusfriedman/net7mma

Can't get it to work

REPRESSION opened this issue · 1 comments

Hi,

I am trying to use net7mma as an RTSP proxy. Here is my code :

using Media.Rtsp;
using Media.Rtsp.Server.MediaTypes;
using System;
using System.Threading;

namespace ConsoleApp6
{
    class Program
    {
        static void Main(string[] args)
        {
            if (args.Length < 1)
                return;
            Console.WriteLine(args[0]);

            RtspServer server = new RtspServer()
            {
                Logger = new Media.Rtsp.Server.RtspServerConsoleLogger()
            };

            RtspSource source = new RtspSource("test", args[0])
            {
            };
            server.TryAddMedia(source);
            server.Start();

            while (true)
            {
                Thread.Sleep(1500);
            }
        }
    }
}

I use this rtsp link :
rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov

When using the Nugget package, nothing happens in VLC : failed to connect.

Server Started @ 09/10/2018 09:52:59
Starting Stream: test Id=7177b3ba-7a83-473f-834a-7f5eaa1434fd
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Data Received
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Receiving Data
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Data Received
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Receiving Data
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Data Received
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Receiving Data
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Data Received
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Receiving Data
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Data Received
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Receiving Data
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Data Received
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Receiving Data
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Data Received
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Receiving Data
Media.Rtsp.RtspClient-9992111e-84f8-46fe-bfd2-9c58d067d04b@MonitorProtocol: Data Received

When building the sources and importing the dlls into the project I get a Stackoverflow exception.

Thanks for your post and sorry for the delayed response. Is this really something you need and expected help with or was just a fyi?