public class GstPlayBin2Test {
public static void main(String [] args) throws Exception {
Gst.init("GstPlayBin2Test", args);
URI uri = new URI("rtsp://127.0.0.1:8551/test");
PlayBin2 playbin2 = new PlayBin2("GstPlayBin2Test", uri);
Element videoSink = ElementFactory.make("autovideosink", "videosink");
playbin2.setVideoSink(videoSink);
playbin2.connect("notify::source", Object.class, null, new NotifySourceCallback());
playbin2.play();
Gst.main();
playbin2.stop();
}
static class NotifySourceCallback implements GstAPI.GstCallback {
public void callback(Element element, GParamSpec spec, Pointer user_data) {
Element source = (Element) element.get("source");
String sourceFactory = source.getFactory().getName();
if ("rtspsrc".equals(sourceFactory)) {
source.set("latency", 10000);
}
}
}
}
public class PipelineLauncher {
public static void main(String[] args) {
args = Gst.init("PipelineLauncher", args);
String def = "rtspsrc location=xxx name=src ! fakesink";
Pipeline pipe = Pipeline.launch(def);
Element rtsp = pipe.getElementByName("src");
rtsp.set("latency", 6000);
pipe.play();
Gst.main();
pipe.stop();
}
--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/vjjgAM47cH0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kurento+u...@googlegroups.com.
I am looking at providing this interface. However, I am new to Kurento and am quite unfamiliar with the code and it's layout. I'm hoping you or someone else can give me some pointers. I am looking at the solution provided here: https://gist.github.com/hunternet93/a7b4a791ce8bf2c29ccf.Looking at the code, my best guess is that I would1) Add a BastRtpEndpoint property in kms-core/src/server/interface/core.kmd.json
2) Add the corresponding methods in kurento-java/kurento-client/target/generated-sources/kmd/org/kurento/client/BaseRtpEndpoint.java
I'm not sure if there is anything else I need to do to define the interface.
Finally, once in the kms-elements/src/gst-plugins/kmsplayerendpoint.c how do I get the variable that was passed in?
Any guidance, insight, or tutorial would be greatly appreciated.Thanks, David