Differences

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

Link to this comparison view

mgl:functionreferencemovie [2011/07/19 18:56]
mgl:functionreferencemovie [2014/05/07 23:14]
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'​);​