Callback from gstreamer to application
Dimitrios Katsaros
patcherwork at gmail.com
Wed Feb 1 08:18:19 UTC 2017
you can also use gst_bus_async_signal_func to convert messages on the bus
to signals which you can mask as callbacks within your interface. What you
are trying to do is similar if not the same as what gstplayer does. I would
suggest you check gstplayer under gst-libs/gst/player in gst-plugins-bad.
Dimitrios
On Wed, Feb 1, 2017 at 1:48 AM, Nicolas Dufresne <nicolas at ndufresne.ca>
wrote:
> 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
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170201/39a7deca/attachment.html>
More information about the gstreamer-devel
mailing list