Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element properties of enum type #285

Open
mrlem opened this issue Oct 29, 2024 · 0 comments
Open

Element properties of enum type #285

mrlem opened this issue Oct 29, 2024 · 0 comments

Comments

@mrlem
Copy link

mrlem commented Oct 29, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant