Help with VBA code for Power Point 2003 VLC plugin in

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
nytechman
New Cone
New Cone
Posts: 7
Joined: 14 Oct 2009 16:51

Help with VBA code for Power Point 2003 VLC plugin in

Postby nytechman » 04 Nov 2009 17:05

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

nicole_kidman_731
Blank Cone
Blank Cone
Posts: 15
Joined: 04 Nov 2009 18:59

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

Postby nicole_kidman_731 » 04 Nov 2009 19:20

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

nytechman
New Cone
New Cone
Posts: 7
Joined: 14 Oct 2009 16:51

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

Postby nytechman » 05 Nov 2009 11:36

Thanks for replying Nicole :o ,

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

Gino NYC

nicole_kidman_731
Blank Cone
Blank Cone
Posts: 15
Joined: 04 Nov 2009 18:59

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

Postby nicole_kidman_731 » 05 Nov 2009 15:44

my pleasure dear :)

nytechman
New Cone
New Cone
Posts: 7
Joined: 14 Oct 2009 16:51

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

Postby nytechman » 05 Nov 2009 23:31

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


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 54 guests