Dealing with asynchronous calls

hello.

using asynchronous media-frameworks like AVFoundation and gstreamer brings up the issue how to deal with event completion.
like in this issue: https://github.com/openframeworks/openFrameworks/issues/3750 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?

2 Likes

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.