Well I finally got this working and although I don't like the idea of my solution, it seems to work quite nicely.
so in your prog you would
1/ make a copy of the file "vlcrc" in your \Application Data\vlc directory
2/ change some settings in the copy for visualizations
e.g.
audio-visual=visual
effect-list=scope
put a # against vout-filter if you want to use goom because it doesn't like it.
#vout-filter=deinterlace
3/ every time you want to show visualizations you swap the two config files round, then create a new vlc control on your form, with vb6 you would use
Code: Select all
Set VLCPlugin1 = Controls.add("VideoLAN.VLCPlugin.1", "VLCActiveX1")
with this solution you can only ever have one vlc activex on the form at a time otherwise the app ends up hanging, so before you create a new one you must remove the last one with;
if it wasn't for that you could use load and unload with a control array.
4/ swap the config files back
if you want to turn visualizations off you need to do the same but without swapping the config files.
in vb6 you need to untick the box in the project properties about removing information re unused activex controls
Maybe I'm not going to win any awards with this but at least its possible.