openframeworks/openFrameworks — pull request #1310 by julapy (2012-06-07 08:52:48+00:00)
Title: bugfix-ios-moviePlayer

ofiPhoneVideoPlayer has been rewritten from the ground up.

ofiPhoneVideoPlayer wraps AVFoundationVideoPlayer.
its been built so that AVFoundationVideoPlayer can be used separate from OF as a native video player in other non-OF dependent projects. this hopefully makes it handy for OF users as well as non-OF users.

the ofiPhoneVideoPlayer wrapper extracts pixels and texture data to be used in OF but apart from that it simply makes calls on AVFoundationVideoPlayer to perform all video tasks.

its been optimised to update pixels and texture data only when a new frame is available.
it also supports texture cache for a nice performance boost, but its currently disabled as i have to work out how to make it work with ios prior to ios5.

example has been updated so that it can test all of ofiPhoneVideoPlayer functionality.