-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
get() on WebRTCBin causes java.lang.InstantiationException #240
Comments
You can register your own mappings by implementing `NativeObject.TypeProvider (eg. like https://github.com/gstreamer-java/gst1-java-core/blob/master/src/org/freedesktop/gstreamer/webrtc/WebRTC.java#L33 ) and registering it to be picked up by ServiceLoader However, this should be giving you a This might be better discussed on the mailing list - might get more people to see / comment there. Then we can follow up if there's an issue to fix, or features to add. |
I have been having the same problem while calling @neilcsmith-net mentioned that Tested with version 0.94 and 1.4 of the Java bindings. Will try registering a mapping like suggested to see if it works |
@gpr-indevelopment can you share a simple example that shows the problem you're facing exactly? That type should be a |
@neilcsmith-net Sure! Sorry for taking this long. I have an active unidirectional video stream going from my server to a browser client. In this example the pipeline is playing. I tried calling GstObject transceiver = webRtcBin.emit(GstObject.class, "get-transceiver", 0); // This returns a valid object
transceiver.get("sender"); // Throws InstantiationException |
@neilcsmith-net actually registering a new mapping for
|
@gpr-indevelopment could you please post the example code to register the mapping for GstWebRTCICE. GstWebRTCICE |
Hi,
I'm trying to get the ice-agent of on webRTCBin. This property is quite new (I don't know the exact gst version) and most probably isn't known within the java bindings. The property is type of GstWebRTCICE class and I couldn't find a GstWebRTCICE class within the java binding code.
webRTCBin = new WebRTCBin("sendonly"); Object agent = webRTCBin.get("ice-agent");
causes:
java.lang.RuntimeException: java.lang.InstantiationException at org.freedesktop.gstreamer.glib.NativeObject.objectFor(NativeObject.java:195) at org.freedesktop.gstreamer.glib.Natives.objectFor(Natives.java:166) at org.freedesktop.gstreamer.glib.Natives.callerOwnsReturn(Natives.java:140) at org.freedesktop.gstreamer.lowlevel.GTypeMapper$2.fromNative(GTypeMapper.java:113) at com.sun.jna.Function.invoke(Function.java:369) at com.sun.jna.Library$Handler.invoke(Library.java:244) at com.sun.proxy.$Proxy18.g_value_dup_object(Unknown Source) at org.freedesktop.gstreamer.glib.GObject.get(GObject.java:194)
Is there any workaround for this? How could a implement a binding for GstWebRTCICE?
BR Clemens
The text was updated successfully, but these errors were encountered: