AVFoundation player isFrameNew()

Hi OF community,

I’m having a couple of issues with the AVFoundation player and I would like to discuss it with you.

First of all, I’m working on a MacBook Pro Retina 15 inch with dedicated graphics card and MacOS 10.12 Sierra

So, let’s get started:

First of all the method is frame new is not working properly. If I do this:

if(videoPlayer.isFrameNew())
{
    //Do something
}

I get more calls than frames are in the video.

That I fixed it like this:

     if(videoPlayer.isFrameNew())
        {
            int frame = videoPlayer.getCurrentFrame();
            if(m_frameNumber != frame)
            {
                  //Do something
            }
        }

That didn’t happen with the QTKit base player.

that sounds like a bug, can you open an issue in github?

Done,

you can find the issue right here:

https://github.com/openframeworks/openFrameworks/issues/5509

thanks!