Dealing with asynchronous calls


using asynchronous media-frameworks like AVFoundation and gstreamer brings up the issue how to deal with event completion.
like in this issue: nextFrame() is reported as not working properly, which it actually is not…
similar pointed out here for gstreamer: Gstreamer async CB

how is this on windows?

i think it would make sense to define interfaces for callbacks in ofVideoPlayer to deal with this.
any thought on this?


instead of working with callbacks it probably would be better to add some events…

as proposed by gaborpapp, we also could address this by just adding asynchronous calls aside the synchronous ones. like already done with load() and loadAsync() in GstVideoPlayer and ofAvFoundationPlayer.
this would mean identifying and adding calls qualifying for asynchronous use.