VLC WebPlugin addTarget fails, VLC command-line works
Posted: 03 Oct 2009 08:27
Hi folks,
I've tried this in both VB6 and VB 2005.
Running Windows XP Pro SP with all updates current.
I'm trying to get the WebPlugin's addTarget to recognize a STB capture.
Putting this command-line in a shortcut works perfectly:
"vlc.exe" dshow:// --dshow-vdev="Motorola AV/C Tuner Device" --dshow-adev=""
Running any of the following in VB6 produces a blue screen, along with the affirming "dshow://" fading title at the bottom of the screen:
VLCPlugin1.addTarget "dshow://", Array(":dshow-vdev=""Motorola AV/C Tuner Device""", ":dshow-adev="""""), VLCPlayListInsert, 0
VLCPlugin1.play
VLCPlugin1.addTarget "dshow://", Array(":dshow-vdev=Motorola AV/C Tuner Device", ":dshow-adev="), VLCPlayListInsert, 0
VLCPlugin1.play
VLCPlugin1.addTarget "dshow://", Array(":dshow-vdev=""Motorola AV/C Tuner Device""", ":dshow-adev="""""), VLCPlayListInsert, -666
VLCPlugin1.play
VLCPlugin1.addTarget "dshow://", Array(":dshow-vdev=Motorola AV/C Tuner Device", ":dshow-adev="), VLCPlayListInsert, -666
VLCPlugin1.play
Running similar code through VS 2005 produces the same result.
Is this an Array problem? Wrong type? Plugin issue?
I've also experimented with ANSI byte strings, in case the Plugin is expecting something other than Unicode. Lock up, requiring reset.
Has anyone a VB example of addTarget as "dshow://" that works?
Thanks!
-Johnny
I've tried this in both VB6 and VB 2005.
Running Windows XP Pro SP with all updates current.
I'm trying to get the WebPlugin's addTarget to recognize a STB capture.
Putting this command-line in a shortcut works perfectly:
"vlc.exe" dshow:// --dshow-vdev="Motorola AV/C Tuner Device" --dshow-adev=""
Running any of the following in VB6 produces a blue screen, along with the affirming "dshow://" fading title at the bottom of the screen:
VLCPlugin1.addTarget "dshow://", Array(":dshow-vdev=""Motorola AV/C Tuner Device""", ":dshow-adev="""""), VLCPlayListInsert, 0
VLCPlugin1.play
VLCPlugin1.addTarget "dshow://", Array(":dshow-vdev=Motorola AV/C Tuner Device", ":dshow-adev="), VLCPlayListInsert, 0
VLCPlugin1.play
VLCPlugin1.addTarget "dshow://", Array(":dshow-vdev=""Motorola AV/C Tuner Device""", ":dshow-adev="""""), VLCPlayListInsert, -666
VLCPlugin1.play
VLCPlugin1.addTarget "dshow://", Array(":dshow-vdev=Motorola AV/C Tuner Device", ":dshow-adev="), VLCPlayListInsert, -666
VLCPlugin1.play
Running similar code through VS 2005 produces the same result.
Is this an Array problem? Wrong type? Plugin issue?
I've also experimented with ANSI byte strings, in case the Plugin is expecting something other than Unicode. Lock up, requiring reset.
Has anyone a VB example of addTarget as "dshow://" that works?
Thanks!
-Johnny