Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
mgl:functionreferencemovie [2011/07/20 01:56]
justin
mgl:functionreferencemovie [2014/05/08 06:14] (current)
justin
Line 2: Line 2:
 **availability**:​ [[mgl:​beta|mgl 2.0]] Mac OS X 64-bit Matlab only\\ **availability**:​ [[mgl:​beta|mgl 2.0]] Mac OS X 64-bit Matlab only\\
 **usage**: movieStruct = mglMovie(filename,​position) or mglMovie(movieStruct,​command,<​argument>​);​\\ **usage**: movieStruct = mglMovie(filename,​position) or mglMovie(movieStruct,​command,<​argument>​);​\\
-**purpose**:​ Used to display quicktime movies. (This *only* works on 64 bit Mac. There is some issue with the quicktime library QTKit and threads which does not seem to be a problem on 64 bit). You also need to be using a cocoa window, so make sure to set mglSetParam('​movieMode',​1) before running mglOpen.+**purpose**:​ Used to display quicktime movies. (This *only* works on 64 bit Mac. There is some issue with the quicktime library QTKit and threads which does not seem to be a problem on 64 bit). You also need to be using a cocoa window, so make sure to set mglSetParam('​movieMode',​1) before running mglOpen. Check the sample experiment, taskTemplateMovie for a working example.
    
 Also, note that the movies will play in front of the openGL buffer. Thus you can't draw on top of the movie and mglFrameGrab won't grab the movie frame -- you can grab movie frames with mglMovie(m,'​getFrame'​);​ Also, note that the movies will play in front of the openGL buffer. Thus you can't draw on top of the movie and mglFrameGrab won't grab the movie frame -- you can grab movie frames with mglMovie(m,'​getFrame'​);​