Page 1 of 1

ActiveX switching show

Posted: 28 Dec 2005 22:22
by BillW
Using VB6.0 and version .8.4.
I have multiple multicast and want to spin through them so I call:
vc.stop
vc.playlistclear
vc.addTarget <Playstr>, VOptions, VLCPlayListReplace, -666
vc.play
where vc is the videolan activeX control
vOptions = Array(":no-audio")
the stop seems to work as I see the pylon on screen
but the playlistclear/addTarget only works every other time
Any clues??
THANX in advance

Posted: 29 Dec 2005 06:25
by Troberg
You'll have to wait for it to be ready at some points. I did it like this:

Code: Select all

vlc.stop vlc.playlistClear 'Wait until everything is really stopped Do While vlc.Length >= 0 DoEvents Loop vlc.addTarget File, Null, VLCPlayListReplaceAndGo, -666 'Wait until loaded Do While vlc.Length <= 0 DoEvents Loop vlc.play
Works fine for me.

Additional solution

Posted: 29 Dec 2005 16:58
by BillW
I will try it your way as well. but under experimentation I found this also works:
.playlistClear
.addTarget PlayStr, VOptions, VLCPlayListReplace, -666
.stop
.play
Thanx