ActiveX problem with VB6

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
billy_mo
New Cone
New Cone
Posts: 7
Joined: 29 Oct 2008 13:08

ActiveX problem with VB6

Postby billy_mo » 29 Oct 2008 17:02

Hi,

I am new with using the VLC ActiveX with VB6 and wondering whether anyone can help me with the following problems I am having:

1. I want to included command options when using the Playlist.Add method of the ActiveX. For example VLC.Playlist.Add("C:\test.mpg",""," --volume=1"). But no matter how I format the Option string I cannot get it to work. I want to use the volume and marq-marquee options.

2. I've used the following code to play a file but execution always failed at the line VLC.audio.channel=3. What have I done wrong?

PLItem = VLC.playlist.Add(uSong.strFileLink, Null, strOpt)
VLC.playlist.playItem PLItem
While VLC.input.State <> 3
DoEvents
Wend
VLC.audio.channel = 3

3. Sometime after repeatly playing a number of files, the screen become blank but I can still hear the audio. If I double-click the screen the video is back on again.

Thanks for your help.

Chuen
Blank Cone
Blank Cone
Posts: 49
Joined: 19 Sep 2008 04:40
Contact:

Re: ActiveX problem with VB6

Postby Chuen » 30 Oct 2008 01:01

Hi,

First, try using vlc command-line
http://wiki.videolan.org/VLC_command-line_help
for testing.

If it works, copy the command line to the mrl parameter.
Hope it helps.
Regards
Chuen

billy_mo
New Cone
New Cone
Posts: 7
Joined: 29 Oct 2008 13:08

Re: ActiveX problem with VB6

Postby billy_mo » 30 Oct 2008 12:39

Hi,

Thanks for your reply.

I try your recommendation and its appears that some options work and some don't. For example no-audio work but volume=1 don't.
after some investigation its seem that options with values don't work but options without value work.

Thanks.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 2 guests