How to reach GstPlayFlags for PlayBin through GObject introspection?
Tim-Philipp Müller
t.i.m at zen.co.uk
Sat Dec 22 05:49:48 PST 2012
On Sat, 2012-12-22 at 13:25 +0000, Nox Deleo wrote:
> 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
> >>> Gst.init(None)
> []
> >>> playbin = Gst.ElementFactory.make('playbin', None)
> >>> Gst.util_set_object_arg(playbin, 'flags', 'video')
> >>> print(playbin.flags)
> 32
> >>> Gst.util_set_object_arg(playbin, 'flags', 'audio')
> >>> print(playbin.flags)
> 32
> >>> Gst.util_set_object_arg(playbin, 'flags', 'audio+vis')
> >>> print(playbin.flags)
> 32
>
> Sorry if I've missed something obvious...didn't have the best night's
> sleep.
I suspect those are some other flags not related to playbin's flags
property.
Try with
print playbin.get_property('flags')
(the output of which might be a bit confusing, because we abuse one of
the enum fields for the description).
Cheers
-Tim
More information about the gstreamer-devel
mailing list