11-10-2011 08:21 AM
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
09-11-2012 12:03 PM - edited 09-11-2012 12:16 PM
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.