Hi all,
I am currently experimenting with gstreamer and rust, but I have encountered a small issue while trying to set some properties of the opusenc element.
let opusenc = gst::ElementFactory::make("opusenc")
.property("audio-type", "restricted-lowdelay")
.property("frame-size", 10)
.build()
.unwrap();
self.pipeline.add(&opusenc).unwrap();
thread 'main' panicked at ...:
property 'audio-type' of type 'GstOpusEnc' can't be set from the given type (expected: 'GstOpusEncAudioType', got: 'gchararray')
or
thread 'main' panicked at ...:
property 'frame-size' of type 'GstOpusEnc' can't be set from the given type (expected: 'GstOpusEncFrameSize', got: 'gint')
I suspect that I am missing an import, but I am unable to determine where to find the necessary GstOpusEnc types.
Thanks for your help!