I would like to be able to stream media on-demand with the LibVLCSharp library for c#.
I've created a server and client application which are able to stream and receive media, but I can't figure out how to stream as on-demand.
Server:
Core.Initialize();
LibVLC vlc = new LibVLC();
MediaPlayer mediaPlayer = new MediaPlayer(vlc);
Media media = new Media(vlc, @"pathToMyFile", FromType.FromPath);
media.AddOption(":sout=#rtp{sdp=rtsp://:555/test}");
mediaPlayer.Play(media);
Client:
Core.Initialize();
LibVLC vlc = new LibVLC();
Media media = new Media(vlc, "rtsp://localhost:555/test", FromType.FromLocation);
MediaPlayer mediaPlayer = new MediaPlayer(vlc);
mediaPlayer.Play(media);
Do any of you have a small c# example for streaming on-damand ?