ofxHAPQTKitPlayer

Hi All,

I’m trying to get the HAP codec (https://github.com/vidvox/hap#readme) working in OF but am having some trouble and wondering if anyone can help me with a few things (please excuse my rudimentary opengl knowledge)

In the HAP quicktime playback example Tom uses the following to get the opengl context - [[glView openGLContext] CGLContextObj] - is the best way to do the same in openframeworks the CGLGetCurrentContext() function or is there some other method I need to use?

I’m also doing the same with the pixel format - Tom uses [[glView pixelFormat] CGLPixelFormatObj]
and I’m using CGLGetPixelFormat(CGLGetCurrentContext()) - is this ok?

If anyone want to have a look at the code its up at - https://github.com/sheridanis/ofxHAPQTKitPlayer

Any help much appreciated - James

check out - https://github.com/bangnoise/ofxHapPlayer