I need to control the VLC activeX component from inside Powerpoint.
Honestly... don't laugh.
I inserted the ActiveX component and created a button.
The hero() subroutine is a macro linked to the button.
The following code compiles and runs
Sub hero()
Dim strMRL As String
MsgBox ("hero")
strMRL = "C:\hero.mpg"
Original.MRL = strMRL
Original.Play
End Sub
Now I want to use the powerful yet troublesome addTarget method to be able to control the streaming of the file.
The following code compiles but does not run. I get a runtime error 5 Invalid procedure call or argument.
Sub hero()
Dim strMRL As String
MsgBox ("hero")
strMRL = "C:\hero.mpg"
Original.addTarget uri:=strMRL, Options:="", Mode:=VLCPlayListAppend, Position:=0
End Sub
For the option field I tried vbEmpty and Nothing...
NADA - the same run time error occurs
So I also kindly request a VB project that illustrates the various examples of playing and streaming.
Thanks
Just having a few issues.
Simply wanting to use the ActiveX with VB .Net.
Trawling through this forum I have found C# code that works nice but I would prefer VB. Someone did post a VB sample but it does not convert into .Net. Any example code where picking up a direct show from a web cam and recording to disk would be appreciated. Especially in the area of setting the Options array (:sout etc...)
Thanks in advance for any help.