addTarget problem

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
myangga
Blank Cone
Blank Cone
Posts: 25
Joined: 03 Feb 2006 11:23
Location: Est

addTarget problem

Postby myangga » 05 Apr 2006 23:04

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

myangga
Blank Cone
Blank Cone
Posts: 25
Joined: 03 Feb 2006 11:23
Location: Est

re

Postby myangga » 06 Apr 2006 16:30

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 !!! ;-)

myangga
Blank Cone
Blank Cone
Posts: 25
Joined: 03 Feb 2006 11:23
Location: Est

re re

Postby myangga » 06 Apr 2006 16:49

VLCPlayListMode is a constant that can bring parameter like VLCPlayListInsert which is an integer valued to 1 ... well well ...

myangga
Blank Cone
Blank Cone
Posts: 25
Joined: 03 Feb 2006 11:23
Location: Est

I nearly got it !

Postby myangga » 07 Apr 2006 00:57

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 ;-)

tonsofpcs
Cone that earned his stripes
Cone that earned his stripes
Posts: 363
Joined: 04 Jan 2006 10:03
Location: Binghamton, NY, USA
Contact:

Re: re re

Postby tonsofpcs » 07 Apr 2006 02:49

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?

myangga
Blank Cone
Blank Cone
Posts: 25
Joined: 03 Feb 2006 11:23
Location: Est

the meaning

Postby myangga » 07 Apr 2006 10:21

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.

myangga
Blank Cone
Blank Cone
Posts: 25
Joined: 03 Feb 2006 11:23
Location: Est

extended message

Postby myangga » 07 Apr 2006 10:23

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

myangga
Blank Cone
Blank Cone
Posts: 25
Joined: 03 Feb 2006 11:23
Location: Est

Postby myangga » 07 Apr 2006 13:58

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

myangga
Blank Cone
Blank Cone
Posts: 25
Joined: 03 Feb 2006 11:23
Location: Est

Postby myangga » 10 Apr 2006 17:48

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]

Guest

Postby Guest » 21 Apr 2006 14:19

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 11 guests