RTSP server only adding client the first time it requests a connection
Frank M.
fm at slums.de
Tue Jan 7 14:32:45 PST 2014
Hello Sebastian,
Thanks for the response.
- The factory creation and the mount points look as follows (so yes, I'm
setting
the factory to shared once it's created):
factory = gst_rtsp_media_factory_new ();
gst_rtsp_media_factory_set_launch (factory, pipe_desc->str);
g_string_free (pipe_desc, TRUE);
gst_rtsp_media_factory_set_shared (factory, TRUE);
mounts = gst_rtsp_server_get_mount_points( mpserver->rtspServer );
s = g_string_new("/mjpeg/1/media.amp/trackID=1");
gst_rtsp_mount_points_add_factory (mounts, s->str , factory);
g_string_free (s, TRUE);
g_object_unref(mounts);
- I checked with wireshark and I see the second client sending out the
OPTIONS request
28 65.415895000 10.10.10.141 10.10.10.222 RTSP 199 OPTIONS
rtsp://10.10.10.222:554/mjpeg/1/media.amp/trackID=1 RTSP/1.0
It doesn't get a reply from the server.
- On the server side I set GST_DEBUG=5 and it looks like the rtsp server is
not even listening on the
socket anymore once the first session was closed. I would expect something
like "client 0x831a6f0 connected to server ip 10.10.10.222". It should
even do that regardless of the existence of the factory.
I would assume that the same socket is used for incoming connections in
between sessions.
The only two warnings on the server are: "gst_rtsp_media_set_state: media
0xb5c1d068 was not prepared"
at the time the first session is closed and "Your GLib version is < 2.36,
UDP multicasting support may be broken" at startup which I think are
unrelated.
Frank
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-server-only-adding-client-the-first-time-it-requests-a-connection-tp4664508p4664543.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list