rtsp server from android to pc

yoyosuper8 yoyosuper8 at yahoo.com
Tue Oct 1 12:04:19 PDT 2013


This is my code in c

	  GMainLoop *loop;
	  GstRTSPServer *server;
	  GstRTSPMediaMapping *mapping;
	  GstRTSPMediaFactory *factory;

	  loop = g_main_loop_new (NULL, FALSE);
	  server = gst_rtsp_server_new ();
	  mapping = gst_rtsp_server_get_media_mapping (server);
	  factory = gst_rtsp_media_factory_new ();
	  //gst_rtsp_media_factory_set_launch (factory,
	  //	"( videotestsrc is-live=1 ! ffenc_mpeg4 ! rtpmp4vpay send-config=true
name=pay0 pt=96 )");
	  gst_rtsp_media_factory_set_launch (factory,
	  	  "( videotestsrc is-live=1 ! x264enc ! rtph264pay name=pay0 pt=96 )");

	  gst_rtsp_media_factory_set_shared (factory, TRUE);
	  gst_rtsp_media_mapping_add_factory (mapping, "/test", factory);
	  g_object_unref (mapping);
	  gst_rtsp_server_attach (server, NULL);

I dont have the pipeline saved in a string variable, I'm providing it all to
gst_rtsp_media_factory_set_launch.




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/rtsp-server-from-android-to-pc-tp4662269p4662300.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list