Page 1 of 1

Help with VBA code for Power Point 2003 VLC plugin in

Posted: 04 Nov 2009 17:05
by nytechman
Does anyone know how to write VBA code for the VLC Plugin, in Power Point 2003?

I am trying to find a way to play back a video file titled "3.mov" which is located on the root of my c drive.
I would like to play this back with --no-video-title-show option enabled, to by pass the VLC Plugin v1/v2 default option: "display title/ path" function. I have found out how to get the "view code" VBA editing option in Power Point but don't know how to get it to work. Macro ? Below is my attempt to write a code to perform this function:

Private Sub VLCPlugin1_play()

vlc.Play "c:\3.mov", --no - video - Title - Show, -666

vlc.Play
End Sub

Does anybody know how to get this to work? Or have any suggestions? Any help would be greatly appreciated.

Gino NYC

Re: Help with VBA code for Power Point 2003 VLC plugin in

Posted: 04 Nov 2009 19:20
by nicole_kidman_731
Hi.

Download the latest version of VLC, i'm sure it will work anyway, but just to have the same setup as me.

Add the VLC ActiveX as a component to the VB5 /6 project, it will put 2 traffic cones into the toolbox, called VLCPLugin and VLCPlugin2.

Place a new VLCPlugin control on your form and size it suitably, and add the following code to a button or the form load:

VLCPlugin1.addTarget "c:\winvideo\sample.avi", Null, VLCPlayListInsert, -666
VLCPlugin1.play

Re: Help with VBA code for Power Point 2003 VLC plugin in

Posted: 05 Nov 2009 11:36
by nytechman
Thanks for replying Nicole :o ,

I will give this a try today and post back on the turn out.

Gino NYC

Re: Help with VBA code for Power Point 2003 VLC plugin in

Posted: 05 Nov 2009 15:44
by nicole_kidman_731
my pleasure dear :)

Re: Help with VBA code for Power Point 2003 VLC plugin in

Posted: 05 Nov 2009 23:31
by nytechman
Nicole, I'm not sure what I am doing wrong.
Here's what I've done so far

In power point, using the toolbox inserted the VLCPlugin and choose an good window size for my slide.
Right clicked over the cone, and selected "View Code"
I then pasted in the code you gave me; changing your video path to "c:\3.mov"

I the tried selecting run in the VB editor and I get
"Compile Error:
Object library invalid or contains references to object definitions that could not be found."

I also tried running the power point slide show and got nothing but a black blank window in my side.

Is there something additional I have install or allow ?

Thanks soo much

Gino NYC