ActiveX problem with VB6
Posted: 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.
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.