LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VLC and LabView 2009

Dave,

 

I have been able to create my own play routine for WMP using the CurrentPosition.  My process was:

 

1) Load the AVI file into the URL parameter of the WMP ActiveX control.

2) Hide the WMP control.

3) Turn on "Play," wait 300ms, then "Stop" it.

4) Change the size of the WMP container to fit my defined dimensions.

5) Show the WMP control.

6) Use the CurrentPosition within a loop to step through the AVI file.

 

I found that setting the CurrentPosition only worked if I had initially set the file to Play, then Stop through ActiveX.  Also I had to hide the control during this process as the WMP control resizes automatically during Play, and I didn't want this glitch visible to my user.  I found that once my WMP control was set to the right dimension after this setup that the CurrentPosition control worked very well.

 

Stephen

0 Kudos
Message 11 of 12
(975 Views)

VLC scripting and call to DLL can be used instead of ActiveX.

 

-Artur

 

P.S. You can also render frame by frame with Quartz.dll, example attached.

0 Kudos
Message 12 of 12
(734 Views)