Using axvlc.dll in VB 6.0

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
callxpert
Blank Cone
Blank Cone
Posts: 52
Joined: 19 Jul 2008 15:32

Using axvlc.dll in VB 6.0

Postby callxpert » 19 Jul 2008 15:55

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

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Using axvlc.dll in VB 6.0

Postby thannoy » 19 Jul 2008 16:32

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

callxpert
Blank Cone
Blank Cone
Posts: 52
Joined: 19 Jul 2008 15:32

Re: Using axvlc.dll in VB 6.0

Postby callxpert » 20 Jul 2008 08:09

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

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Using axvlc.dll in VB 6.0

Postby thannoy » 20 Jul 2008 08:23

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

callxpert
Blank Cone
Blank Cone
Posts: 52
Joined: 19 Jul 2008 15:32

Re: Using axvlc.dll in VB 6.0

Postby callxpert » 20 Jul 2008 08:38

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

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Using axvlc.dll in VB 6.0

Postby thannoy » 20 Jul 2008 08:58

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

callxpert
Blank Cone
Blank Cone
Posts: 52
Joined: 19 Jul 2008 15:32

Re: Using axvlc.dll in VB 6.0

Postby callxpert » 20 Jul 2008 11:53

Hi,
Nothing works...
But Thanks for your patience...
Naveen

callxpert
Blank Cone
Blank Cone
Posts: 52
Joined: 19 Jul 2008 15:32

Re: Using axvlc.dll in VB 6.0

Postby callxpert » 21 Jul 2008 09:21

My problem got solved...
The video URl i used was wrong it seems.
Thank you all for your valuable suggestions...
Naveen

hanna21
New Cone
New Cone
Posts: 2
Joined: 17 Sep 2017 00:52

Re: Using axvlc.dll in VB 6.0

Postby hanna21 » 17 Sep 2017 17:25

can we add user agent please help

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Using axvlc.dll in VB 6.0

Postby thannoy » 22 Sep 2017 22:31

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)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 35 guests