ActiveX streaming: has anybody succeeded?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
jboileau
Blank Cone
Blank Cone
Posts: 17
Joined: 13 Dec 2005 21:05

ActiveX streaming: has anybody succeeded?

Postby jboileau » 18 Jan 2006 19:35

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!

StellarWind
New Cone
New Cone
Posts: 7
Joined: 22 Nov 2005 09:12

Postby StellarWind » 20 Jan 2006 10:38

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

jboileau
Blank Cone
Blank Cone
Posts: 17
Joined: 13 Dec 2005 21:05

ActiveX streaming: has anybody succeeded?

Postby jboileau » 20 Jan 2006 17:17

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.

Quovodis
Cone that earned his stripes
Cone that earned his stripes
Posts: 271
Joined: 16 Jun 2004 11:13
Location: Cork, Ireland

Postby Quovodis » 23 Jan 2006 11:35

This may look like a bug in VLC ActiveX plugin, could you specify which version of VLC you are using

StellarWind
New Cone
New Cone
Posts: 7
Joined: 22 Nov 2005 09:12

Postby StellarWind » 23 Jan 2006 12:20

This may look like a bug in VLC ActiveX plugin, could you specify which version of VLC you are using
0.8.4a

jboileau
Blank Cone
Blank Cone
Posts: 17
Joined: 13 Dec 2005 21:05

ActiveX streaming: has anybody succeeded?

Postby jboileau » 23 Jan 2006 14:26

I am using 0.8.4.

Guest

Re: ActiveX streaming: has anybody succeeded?

Postby Guest » 26 Apr 2006 11:56

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!

Guest

Postby Guest » 07 May 2006 06:08

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.

MrExNice1979
Blank Cone
Blank Cone
Posts: 46
Joined: 25 Apr 2006 14:11
Contact:

Postby MrExNice1979 » 09 May 2006 09:13

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests