Page 1 of 1
addTarget problem
Posted: 05 Apr 2006 23:04
by myangga
Hi everybody
I just discovered a few streaming possibilities of VLC ... Damned !!!!
What a beautiful work dudes !
I am developping a soft that can take advantage from vlc activeX.
And that's my prob....
Soft is developed with Windev .... (no comment
)Every thing work fine but when I try to addTarget on activeX, one of my parameter is not valid : the User Defined Mode !
I don't know what kind of parameter it is (int, string, ... ?) and what to do for. Can someone help about this...
Thanks
re
Posted: 06 Apr 2006 16:30
by myangga
In fact my problem come from this parameter :
VLCPlaylistMode.VLCPlayListInsert
I tried to addTarget in a windev application and a C# one but both of them don't recognize this parameter ...
HELLLLLLLLLLLLLLLLLLLLLLPPPPPPPPP !!!
re re
Posted: 06 Apr 2006 16:49
by myangga
VLCPlayListMode is a constant that can bring parameter like VLCPlayListInsert which is an integer valued to 1 ... well well ...
I nearly got it !
Posted: 07 Apr 2006 00:57
by myangga
So, i make it in C# :
Code: Select all
private void button1_Click(object sender, System.EventArgs e)
{
string[] options = new String[1];
string thisMRL = @"D:\evolution.avi";
this.axVLCPlugin1.addTarget(thisMRL,options,AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo,0);
this.axVLCPlugin1.play();
}
and I am near the end in Windev but I can't reach the constant in the DLL for the moment with API() function:
Code: Select all
vlcActivX>>addTarget("D:\evolution.avi",options,API("AXVLC","AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo"),0)
vlcActivX>>play()
I will give U more as soon as I can
Re: re re
Posted: 07 Apr 2006 02:49
by tonsofpcs
VLCPlayListMode is a constant that can bring parameter like VLCPlayListInsert which is an integer valued to 1 ... well well ...
It's an ENUMeration of values.
I can't reach the constant in the DLL for the moment with API() function:
What exactly do you mean by this?
the meaning
Posted: 07 Apr 2006 10:21
by myangga
In fact when I use "AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo" in my windev function, it doesn't work 'cause Windev doesn't recognize this object.
I thought that I can call this ENUMeration (
) with API() command to access to the .dll library but... it calls only functions.
I have to declare this string but how... ? That's what I will looking for this morning.
extended message
Posted: 07 Apr 2006 10:23
by myangga
by "constant in dll" I mean that In windev i have an activex browser which gives me all functions of activeX and Constant (windev words) with differents names and values.
Constant is : VLCPlaylistMode
Value is like : VLCPlayListReplaceAndGo
Posted: 07 Apr 2006 13:58
by myangga
So ... Windev soft is now bugging sometimes 'cause of activeX...
Doesn't matter, ... I succeeded to realize it with Visual C#.
If someone knows windev and vlc activex, Ur welcome for answer.
Bye thanks all
Posted: 10 Apr 2006 17:48
by myangga
I got it in windev: (sans retransmission, mais on peut en changeant les param de options)
Code: Select all
options est un tableau de 2 chaƮnes
options[1] = ":sout"
options[2] = ":duplicate"
usermode est un entier = 9 // Correspond au playlist mode
AXVLCPLUG>>playlistClear()
AXVLCPLUG>>addTarget("C:\monfilm.avi" ,options,usermode,0)
AXVLCPLUG>>play()
Write to me for more informations[/quote]
Posted: 21 Apr 2006 14:19
by Guest
I want to control vlc automatically and set it parameters automatically but do not exactly how to do. Is this the thing is close to what I want to do.
Please reply.
Thanking you.
nadz