-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Registering a custom Element #133
Comments
Sorry, this isn't currently supported. Is the element written in C with a Java wrapper, or are you trying to write it entirely in Java? |
The element is written entirely in Java. It is based on an element I have written in python. Would it be possible to use that element if I create a Java wrapper for that? |
OK, will need to look into how we support this, or whether we already can. I won't be working on the library until next week, so if you can get me a basic example of what you're trying to do (could be a simple pass-through element, but in the way you're trying to do this) I'll take a look. |
Ok, here is a very basic version of what I am trying to do:
|
@neilcsmith-net, I wasn't entirely certain as to whether you saying "will need to look into how we support this, or whether we already can" was in reference to creating a custom element entirely in java, or to creating a java wrapper for an element written in C or python. If I already have a python custom element, do you know if I could load this into the gstreamer java library? EDIT: I realize now that a python element could not work, but what about loading a custom element written in C? |
@hauges you can load any registered element via We should be able to provide the ability to create a custom element from Java, but I think we're missing some necessary things here, or at least I definitely haven't looked at doing this since the 0.10 bindings were forked. |
I have created a custom Element, and now I am trying to register it so I can call
ElementFactory.make
to get the element. I have calledGst.registerClass(CustomElement.class)
to register it, and I have aGTYPE_NAME
andGST_NAME
field in the class, but when I callElementFactory.make
with the properfactoryName
, I get the following exception:How do I go about instantiating a custom element?
The text was updated successfully, but these errors were encountered: