Page 1 of 1

ActiveX and --rtp-client-port option

Posted: 16 Mar 2006 15:55
by Alf_fr
Hello !

I'm trying to use the VLC activex to read data on a rstp flux in a VB.net application.

Using one of the latest nightly builds, I can use the --rtp-client-port to force the port to use when reading a rstp flux with a command like:
Shell("C:\vlc.exe -q rtsp://mafreebox.freebox.fr/freeboxtv/203 --rtp-client-port=31336", AppWinStyle.NormalFocus)

If I try to use vlc activex, I do that:
Dim myoptions As New ArrayList
myoptions.Add(":--rtp-client-port=31336")
Dim myMRL As String
myMRL = "rtsp://mafreebox.freebox.fr/freeboxtv/203"
myVLC.addTarget(myMRL, myoptions, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, -666)


but i have nothing.
Does the activex support this option, and how can i use it ?

Thx for all !

Raphaƫl

Posted: 16 Mar 2006 18:45
by tonsofpcs
Try making the last member of the options array be "".

Posted: 16 Mar 2006 20:39
by Alf_fr
I tried "" and also a Nothing, but it returned an exception error: incorrect parameter in the axvlc.dll.

I suppose my first code was right but the way I give arguments is bad.

Anyone got an idea ?

Posted: 30 Mar 2006 16:26
by Alf_fr
ok I found the point ! :D
don't use : and -- before options !

Now the code is:
Dim myoptions() As String = {Nothing}
myoptions(0) = "rtp-client-port=31336"
Dim myMRL As String
myMRL = TextBox2.Text
myVLC2.addTarget(myMRL, myoptions, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, -666)


Guess what ? It works !

Posted: 04 Oct 2006 13:21
by lagarazo
What nightly builds did you use to be able to set

--rtp-client-port

I need to use it. Thank you!