I am trying to write a client-server videostreaming app in c# and i am using libvlc. The client is working fine, but i am not sure how can i do the server. It is like the client, with the modification to media AddOptions method? and then play the media?
UPDATE: I have tried this:
private void button1_Click(object sender, EventArgs e)
{
//MyLibVlc vlc = new MyLibVlc();
string[] args = new string[] { "-I", "dummy", "--ignore-config","" };
instance = new VlcInstance(args);
//:sout=#rtp{dst=79.114.124.180,port=5004,mux=ts,ttl=1} :sout-keep
player = null;
string source = "D:\\CM.mp4" ;
VlcMedia media = new VlcMedia(instance, source);
string[] options=new string[]{":sout=#rtp{dst=79.114.124.180,port=5004,mux=ts,ttl=1} :sout-keep"};
media.AddOptions(options);
if (player == null)
{
player = new VlcMediaPlayer(media);
}
else
{
player.Media = media;
}
player.Play();
}
and i have looked in the log file. Could not open file... I passed the arg in a wrong way, or something is missing.