MCI Wrapper

BlitzPlus Forums/BlitzPlus Programming/MCI Wrapper

CopperCircle(Posted 2004) [#1]
Here is a Windows MCI Wrapper Swift wrote for me, it will let you play video files on a window/canvas, seek and set the speed. But we can`t get the brightness/contrast/etc to work, if anyone can or improves it please post the code, otherwise use as you wish.

Wrapper: http://www.apaj15.dsl.pipex.com/mci-007.bb
Test: http://www.apaj15.dsl.pipex.com/mcitest-004.bb


Beaker(Posted 2004) [#2]
I tried the code above and it crashes on program exit every time. "Memory at XXXXXX cannot be 'read'".

Also, it reports that brightness/contrast aren't supported on the MCI device.

You found any frame-seeking commands in there?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_mci_seek.asp
[OOPS - just found the MCIseek() function in the include :)]


Beaker(Posted 2004) [#3]
Also, I don't get any sound (at least from the movie I tested).


CopperCircle(Posted 2004) [#4]
press escape to exit, I get sound on the movies i have tried but im sure its not totaly stable. Also brightness/contrast aren't supported on the MCI device is what I get, but I can`t see why the device is opened as a digital video so it should work.


Beaker(Posted 2004) [#5]
I do press escape to exit, thats not the problem.


Beaker(Posted 2004) [#6]
I tried a different video clip (so many don't work at all), and the sound worked fine *AND* the crash went away! The audio must've been crashing the whole thing.

So, as long as the video clip is accepted and plays back ok with sound, then all is well! Nice one sswift.


sswift(Posted 2004) [#7]
Hey Coppercircle... Maybe you should post this in the code archives?