gstreamer-java / gst1-java-core

Java bindings for GStreamer 1.x
GNU Lesser General Public License v3.0
194 stars 72 forks source link

How to get RTPSession from rtpbin #274

Closed kingle-zhuang closed 1 year ago

kingle-zhuang commented 1 year ago
public class RTPSession extends GstObject
{
    protected RTPSession(Initializer init) {
        super(init);
    }

    protected RTPSession(Handle handle, boolean needRef) {
        super(handle, needRef);
    }
}

        RTPSession session = this.rtpbin.emit(RTPSession.class, "get-internal-session", 1);
        session.connect(name, RTCP_LISTENER.class, listener, new GstAPI.GstCallback() {
            @SuppressWarnings("unused")
            public void callback(Element element, Buffer buffer, boolean early, GPointer data) {
                listener.handle(element, buffer, early, data);
            }
        });

        for session still return null

        how to register class & how to get  RTPSession instance