Page 1 of 1

Using axvlc.dll in VB 6.0

Posted: 19 Jul 2008 15:55
by callxpert
Hi,
Im developing a application in Vb 6 that uses axvlc.dll .
Im unclear of the process and events,So can anyone help me with a sample code to play media files using VB6.
Also please tell me how to create a list & play videos.

Your one minute can solve my one week struggle...
Thanks...
Naveen

Re: Using axvlc.dll in VB 6.0

Posted: 19 Jul 2008 16:32
by thannoy
You will need the API documentation, here:
http://wiki.videolan.org/Documentation: ... o_0.8.5.29

You insert the axvlc plugin (version 2 if you have the choice between 1 and 2) in your control-list bar to be able to drag&drop it inside a form. Give it a name and then control the plugin through its API.

Example to play a file:

Code: Select all

mypluginname.playlist.add("http://example.tld/my_video.avi") mypluginname.playlist.play()

Re: Using axvlc.dll in VB 6.0

Posted: 20 Jul 2008 08:09
by callxpert
Thanks,
But it shows an syntax error.
I used VLC Plugin2 and named it as V..
My code snippet..
V.playlist.Add ("E:\video song\1")
V.playlist.play()

But it shows a syntax error for line 2 code
Any help will be greatly appreciated..
Naveen

Re: Using axvlc.dll in VB 6.0

Posted: 20 Jul 2008 08:23
by thannoy
Hi,
three ideas in minds which may help you:

1- There is no spaces after "V.playlist.Add"
2- I don't remember if a ';' is needed at the end of VB program lines
3- You can try to remove parenthesis for "V.playlist.play"

regards,
Anthony

Re: Using axvlc.dll in VB 6.0

Posted: 20 Jul 2008 08:38
by callxpert
Hi,
Thanks for your instant reply,
1.It is a standard Vb syntax,even if dont leave a space,it automatically generates a space.
2.No ; in Vb
3.I removed the paranthasys but no improvement
Thanks
Naveen

Re: Using axvlc.dll in VB 6.0

Posted: 20 Jul 2008 08:58
by thannoy
Lets try another shot :-)

1- You could try to replace parenthesis by spaces for both lines
2- to lowercase the "add" method name (replacing parenthesis and not, without spaces before the opening one)
3- to wait for fresh ideas of another guy :-)

regards,
Anthony

Re: Using axvlc.dll in VB 6.0

Posted: 20 Jul 2008 11:53
by callxpert
Hi,
Nothing works...
But Thanks for your patience...
Naveen

Re: Using axvlc.dll in VB 6.0

Posted: 21 Jul 2008 09:21
by callxpert
My problem got solved...
The video URl i used was wrong it seems.
Thank you all for your valuable suggestions...
Naveen

Re: Using axvlc.dll in VB 6.0

Posted: 17 Sep 2017 17:25
by hanna21
can we add user agent please help

Re: Using axvlc.dll in VB 6.0

Posted: 22 Sep 2017 22:31
by thannoy
I guess you can. Here are some entry points:

1. Plugin documentation [Documentation:WebPlugin]
--> Look at vlc.playlist.add(mrl,name,options) and associated example
2. Existing options [VLC_command-line_help]
--> Look at Options-styles and --http-user-agent=<string>

I think you can then give a try to something like this (full string flavor):

Code: Select all

mypluginname.playlist.add("http://example.tld/my_video.avi", "my video", ":http-user-agent=foo")
or this (array flavor):

Code: Select all

var options = new Array(":http-user-agent=foo"); mypluginname.playlist.add("http://example.tld/my_video.avi", "my video", options)