Skip to content

Element properties of enum type #285

@mrlem

Description

@mrlem

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions