Page 1 of 1

ActiveX streaming: has anybody succeeded?

Posted: 18 Jan 2006 19:35
by jboileau
I am trying to test streaming from the ActiveX without any luck so far. The media always plays in the control and is not streamed. I am using visual Studio and C#. Here is a snippet of my C# code:

Code: Select all

axVLCPlugin.playlistClear(); string[] lOptions = new string[] {":sout=#duplicate{dst=std{access=udp,mux=ts,url=239.20.30.40:1234}}"}; axVLCPlugin.addTarget(@"c:\temp\ice_mulCBR.avi", lOptions, AXVLC.VLCPlaylistMode.VLCPlayListAppendAndGo, -666);
If anybody has succeeded at streaming from the ActiveX I would love to hear from you. Code in any language showing how it's done is fine.

Thanks!

Posted: 20 Jan 2006 10:38
by StellarWind
I used VLC ActiveX to display and save network video streams.
Also I've managed to stream video file using VLC ActiveX. Here's the code:

Code: Select all

///// VLCPlugin m_Vlc; ///// CString sTarget = "e:\\test_video\\test_video.avi"; COleSafeArray saOptions; saOptions.Clear(); CString cmdLine = ":sout=#duplicate{dst=display,dst=std{access=http,mux=ts,url=10.0.0.9:1234}}"; BSTR bsOptions[5]; bsOptions[0]=SysAllocString(cmdLine.AllocSysString()); bsOptions[1]=SysAllocString(L":duplicate{dst=display}"); saOptions.CreateOneDim(VT_BSTR,2,bsOptions); m_Vlc.addTarget(sTarget,saOptions,m_Vlc.VLCPlayListReplaceAndGo,-100);
I'm using MS Visual C++ 7.1

ActiveX streaming: has anybody succeeded?

Posted: 20 Jan 2006 17:17
by jboileau
Thanks for your help. Looking at your code helped me figure things out in C#. I tried your way and because you had 2 option strings, things started to work. It seems there must be more than one option strings for it to work, or that a terminating string be added. A null string works. Here is some code in C# that works in case someone looks at this thread with the same question as I:

Code: Select all

string[] lOptions = new string[] {":sout=#duplicate{dst=std{access=udp,mux=ts,url=239.20.30.40:1234}}", null}; axVLCPlugin.addTarget(textBoxMRL.Text, lOptions, AXVLC.VLCPlaylistMode.VLCPlayListAppend, 0);
It is similar to my previous code but with the null string added it now works.

Posted: 23 Jan 2006 11:35
by Quovodis
This may look like a bug in VLC ActiveX plugin, could you specify which version of VLC you are using

Posted: 23 Jan 2006 12:20
by StellarWind
This may look like a bug in VLC ActiveX plugin, could you specify which version of VLC you are using
0.8.4a

ActiveX streaming: has anybody succeeded?

Posted: 23 Jan 2006 14:26
by jboileau
I am using 0.8.4.

Re: ActiveX streaming: has anybody succeeded?

Posted: 26 Apr 2006 11:56
by Guest
I am trying to test streaming from the ActiveX without any luck so far. The media always plays in the control and is not streamed. I am using visual Studio and C#. Here is a snippet of my C# code:

Code: Select all

axVLCPlugin.playlistClear(); string[] lOptions = new string[] {":sout=#duplicate{dst=std{access=udp,mux=ts,url=239.20.30.40:1234}}"}; axVLCPlugin.addTarget(@"c:\temp\ice_mulCBR.avi", lOptions, AXVLC.VLCPlaylistMode.VLCPlayListAppendAndGo, -666);
If anybody has succeeded at streaming from the ActiveX I would love to hear from you. Code in any language showing how it's done is fine.

Thanks!

Posted: 07 May 2006 06:08
by Guest
I used VLC ActiveX to display and save network video streams.
Also I've managed to stream video file using VLC ActiveX. Here's the code:

Code: Select all

///// VLCPlugin m_Vlc; ///// CString sTarget = "e:\\test_video\\test_video.avi"; COleSafeArray saOptions; saOptions.Clear(); CString cmdLine = ":sout=#duplicate{dst=display,dst=std{access=http,mux=ts,url=10.0.0.9:1234}}"; BSTR bsOptions[5]; bsOptions[0]=SysAllocString(cmdLine.AllocSysString()); bsOptions[1]=SysAllocString(L":duplicate{dst=display}"); saOptions.CreateOneDim(VT_BSTR,2,bsOptions); m_Vlc.addTarget(sTarget,saOptions,m_Vlc.VLCPlayListReplaceAndGo,-100);
I'm using MS Visual C++ 7.1
I'm not quite following this. I'm trying to use ActiveX within HTML to save a stream to a file. I have no problem getting the file to play within IE using the ActiveX plugin, but I cannot figure out from the Wiki how to set parameters to have it save the stream to a file.

Posted: 09 May 2006 09:13
by MrExNice1979
just a right click on the link to the embedded stream, and then use the option, save the file to

C:/anything/favorite/myplace, or anywhere else...

I just want to configure a button on my videoOnDemand-webpage, where you can just click on the button, and the download-window will open, I think it´s easy, cos many webpages use this option, but I don´t get out.

Anyone can post the code? please



:lol: thx and rock on