<div dir="ltr">Yes, so it must be some kind of platform specific problem. You need a detailed log from the android/server to see why it isn't working. There are several things that happen 'behind the scenes' that can cause this behavior. I just encountered one myself that an element called 'input-selector' wasn't installed on a system. I was simply using a different Linux system to test a working server. To find that I set GST_DEBUG=*:3. The logging in GStreamer leaves a lot to be desired. When there are fatal errors (errors that prevent the process from succeeding), they should be caught higher up and result in a GST_ERROR message. Currently, that doesn't happen too well and catastrophic errors can easily go un-reported.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 3, 2013 at 11:45 AM, yoyosuper8 <span dir="ltr"><<a href="mailto:yoyosuper8@yahoo.com" target="_blank">yoyosuper8@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Chuck, thanks for the info. However, the code I've posted works on linux as<br>
well. In fact, the code I posted is part of an example in the rtsp-server<br>
folder. So, if it works just like that in linux, I would have thought that<br>
it would work fine in android.<br>
When I launch my app in my phone, I can tell that it opens a port and its<br>
listening on port 8554 (default). From my computer, I monitor the traffic<br>
using wireshark and I can see that my computer and my phone perform the tcp<br>
handshake and all is well there. But when my computer sends the rtsp packet<br>
requesting the video feed, the phone does not respond with a rtsp 200 OK<br>
packet. It just hangs and nothing happens. The code posted above works well<br>
in linux. I've tested using vlc as the requestor to view the streaming<br>
video. So why isn't working in android? There has got to be something out<br>
there that I'm missing.<br>
Someone please help :)<br>
<br>
Here is the code again:<br>
<br>
          loop = g_main_loop_new (NULL, FALSE);<br>
          server = gst_rtsp_server_new ();<br>
          gst_rtsp_server_set_address(server, "192.168.1.10"); <-- IP address on<br>
the phone<br>
          gst_rtsp_server_set_service(server, "8554");<br>
          mapping = gst_rtsp_server_get_media_mapping (server);<br>
          factory = gst_rtsp_media_factory_new ();<br>
          //gst_rtsp_media_factory_set_launch (factory,<br>
          //    "( videotestsrc is-live=1 ! ffenc_mpeg4 ! rtpmp4vpay send-config=true<br>
name=pay0 pt=96 )");<br>
          gst_rtsp_media_factory_set_launch (factory,<br>
            "( videotestsrc is-live=1 ! x264enc ! rtph264pay name=pay0 pt=96 )");<br>
<br>
          gst_rtsp_media_factory_set_shared (factory, TRUE);<br>
          gst_rtsp_media_mapping_add_factory (mapping, "/test", factory);<br>
          g_object_unref (mapping);<br>
<br>
          g_timeout_add_seconds (2, (GSourceFunc) timeout, server);<br>
          g_main_loop_run (loop);<br>
<br>
<br>
Thank you<br>
Andy<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/rtsp-server-from-android-to-pc-tp4662269p4662355.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/rtsp-server-from-android-to-pc-tp4662269p4662355.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>