I've tried it like that:
RtspServer server = new RtspServer();
Media.Rtsp.Server.MediaTypes.RtspSource source = new Media.Rtsp.Server.MediaTypes.RtspSource(name, "http://127.0.0.1/rtspmedia/sample1.mp4");
Also with rtsp instead of http, but the file is not being streamed from there, it's just saved locally and served by the localhost server (xampp).
With the http url, it gives this error:
Uri Scheme must be rtsp or rtspu or http
With rtsp url in the source, it does not fire any error but I can't play the stream either, neither vlc nor vxgplayer (browser rtsp player), both of which work on other rtsp streams.
Am I doing something wrong? How can I stream a video that's not coming from an rtsp source but a file?