Page 1 of 1

ActiveX problem with VB6

Posted: 29 Oct 2008 17:02
by billy_mo
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.

Re: ActiveX problem with VB6

Posted: 30 Oct 2008 01:01
by Chuen
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.

Re: ActiveX problem with VB6

Posted: 30 Oct 2008 12:39
by billy_mo
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.