How to reach GstPlayFlags for PlayBin through GObject introspection?
noxdeleo at googlemail.com
Sat Dec 22 05:25:31 PST 2012
Great, thanks. I gave it a try in the Python shell, but I'm not sure I've
got the usage right, since the flags don't seem to change:
>>> import gi
>>> gi.require_version('Gst', '1.0')
>>> from gi.repository import Gst
>>> playbin = Gst.ElementFactory.make('playbin', None)
>>> Gst.util_set_object_arg(playbin, 'flags', 'video')
>>> Gst.util_set_object_arg(playbin, 'flags', 'audio')
>>> Gst.util_set_object_arg(playbin, 'flags', 'audio+vis')
Sorry if I've missed something obvious...didn't have the best night's sleep.
On 22 December 2012 10:45, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:
> On Fri, 2012-12-21 at 20:13 +0000, Nox Deleo wrote:
> > I'm trying to set some flags on a PlayBin instance, but having
> > searched through all the introspection bindings I have, I can't seem
> > to find the GstPlayFlags enum anywhere. Anyone have any idea where it
> > is, or if I can even reach it through the introspection bindings?
> It's not exported, not via gobject introspection, nor in C.
> You can/have to look at gst-inspect-1.0 playbin and use the values you
> find there, they're part of our ABI.
> It's also a function called gst_util_set_object_arg() that lets you set
> values by nick/name/string, like in gst-launch.
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel