I think I "solved" part o f the problem.
I´ve just duplicated the factory with another .SDP file.
char *argv1 = "filesrc location=new1.sdp ! sdpdemux ! identity ";
factory = gst_rtsp_media_factory_new ();
gst_rtsp_media_factory_set_launch (factory, argv1);
char *argv2 = "filesrc location=new2.sdp ! sdpdemux ! identity ";
factory2 = gst_rtsp_media_factory_new ();
gst_rtsp_media_factory_set_launch (factory2, argv2);
/* attach the test factory to the /test url */
gst_rtsp_mount_points_add_factory (mounts, "/test", factory);
gst_rtsp_mount_points_add_factory (mounts, "/test2", factory2);
However it seems that if I start the stream new2.sdp before a start the first stream the player (ffplay) will only be able to play both together in a particular order of starting. (If I start sending in order the players will work fine)
Is that a bug or do I have to make extra tweaks?
This is only a test, I would like to be able to plug in and out multiple streams at the same time (at least 5), and I won´t know the other of each one.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel