views:

304

answers:

1

Does the QTKit Capture API support screen recording- i.e., can I specify the current screen output as the input source to record? If so, how?

Quicktime Player X supports screen recording, yet the QTKit Capture API Documentation only mentions capturing from external cameras.

+1  A: 

One approach could be to capture static screenshots with the CGWindow API (search: Son of Grab), and append them to a QTMovie object using addImage:forDuration:withAttributes:

Related Apple Code example: StillMotion (developer.apple.com/mac/library/samplecode/StillMotion/Introduction/Intro.html)

bjoern
A different approach is to sidestep QTKit altogether and use OpenGL. Apple has sample code here: http://developer.apple.com/mac/library/samplecode/OpenGLScreenCapture/Introduction/Intro.html
bjoern