Streaming static file

Topics: Question
Nov 15, 2016 at 3:48 PM
Hi, I'm trying to use net7mma to stream a static mp4 file using RTSP.

Is it possible? How do I do that? What kind of source do I use and how do construct the url, since it's not in a server but on my computer? Is it the same methods as with a rtsp source?

I've tried some things from the examples but it doesn't seem to work.

Thank you
Nov 16, 2016 at 10:48 AM
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");
server.TryAddMedia(source);
server.Start();
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?

Thanks
Coordinator
Nov 21, 2016 at 2:35 AM
Http support isn't 100% implemented yet, it would take a few quick changes.

If you can provide a reliable test uri which is RTSP over HTTP compliant I may be able to finish HTTP support.

See also

https://github.com/SpecForge/html5_rtsp_player/wiki/HTML5-RTSP-Player
Marked as answer by juliusfriedman on 11/20/2016 at 6:35 PM