Element properties of enum type
Opened this issue · 0 comments
Hi, I'm having trouble with element properties of enum types: is there a way to retrieve all possible values for an element enum property?
For instance, for audiotestsrc
element's wave
property, which is of type GstAudioTestSrcWave
, I'm looking for a way to retrieve the values included in https://gstreamer.freedesktop.org/documentation/audiotestsrc/index.html?gi-language=c#GstAudioTestSrcWave programmatically.
For now, these fall into GObject.get(String property)
"Unknown conversion" error. Is there any way using the underlying APIs?
I know I can get/set the current value using GstObject.getAsString
and GstObject.setAsString
.
But I would like to display a list of possible values to guide the user.
At least having a way to retrieve the property type (other than by parsing the exception) might help.
Thanks in advance, and thanks a lot for this library!