Callback from gstreamer to application

Nicolas Dufresne nicolas at ndufresne.ca
Wed Feb 1 00:48:52 UTC 2017


Le mardi 31 janvier 2017 à 04:31 -0800, deepthips a écrit :
> I have a gstreamer code (say playback.c) with basic functions such as load,
> play, stop, seek etc.
> I have a testapp which will link the playback.c library and call those
> functions.
> I need to post current position from playback.c to my testapp (to update the
> progress bar). Like a callback function. How is it done in gstreamer. Saw
> posting to gst bus and all. But my testapp should not be using gstreamer
> directly. It is like an independent application.

In general, the position is simply being polled using a timer (checked
regularly).

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170131/ad684e0b/attachment.sig>


More information about the gstreamer-devel mailing list