ActiveX 1.0.5 and streaming in C# app
Posted: 26 Mar 2010 13:37
Hello,
I'm develloping an C# application using VLC's activeX in a winform.
Itried to use VLCPlugin1 and VLCPlugin2. It works fine, but not the option streaming.
Bellow you can see my code
Somebody have any idea on it? The ActiveX doesn't support all functionnal option maybee?
Thank you for your hepl...
Abel
I'm develloping an C# application using VLC's activeX in a winform.
Itried to use VLCPlugin1 and VLCPlugin2. It works fine, but not the option streaming.
Bellow you can see my code
Code: Select all
string[] Voption = { ":sout=#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}", ":duplicate{dst=std{access=udp,mux=ts,dst=224.1.1.1:1234},dst=display}" };
// Clear playlist
m_oOutputWindow.VLCPlugin2().playlist.clear();
// Add item to playlist
m_oOutputWindow.VLCPlugin2().playlist.add(oMedia.Path.ToString(), oMedia.Path.ToString(), Voption);
// Select playlist's Item 0
m_oOutputWindow.VLCPlugin2().playlist.playItem(0);
// Start playing
m_oOutputWindow.VLCPlugin2().playlist.play();
// Show VLC control
m_oOutputWindow.VLCPlugin2().Show();
Thank you for your hepl...
Abel