On Thu, 8 Jul 2021 at 14:21, Jan Andersson <
jan.an...@pureload.com> wrote:
> GObject session = rtpBin.emit(GObject.class, "get-internal-session", sessionId);
>
> but this throws a java.lang.InstantiationException.
Unfortunately, for "reasons" that are probably no longer relevant,
GObject is abstract. You could try doing a local build of the library
making it non-abstract to see if that works. Or use the type registry
and register your own RTPSession type extending GObject - see
https://javadoc.io/static/org.freedesktop.gstreamer/gst1-java-core/1.4.0/org/freedesktop/gstreamer/glib/Natives.html#registration-java.lang.Class-java.lang.String-java.util.function.Function-
Feel free to raise an issue on GitHub for making GObject non-abstract
if this fixes your problem.
Best wishes,
Neil
--
Neil C Smith
Codelerity Ltd.
www.codelerity.com
Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : Office 4 219 Kensington High Street,
Kensington, London, England, W8 6BD