summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@freedesktop.org>2013-05-13 18:05:31 -0700
committerJoe Rayhawk <jrayhawk@freedesktop.org>2013-05-13 18:05:31 -0700
commit1267ce53e22871e12e87cf7e54fa048e1112284a (patch)
tree1401d9964047dc864a082d6977490b14508d6e27
parentf01b7c7e95621c088d03ae99ffcc37b3961fe35b (diff)
GStreamer: markdown cleanup
-rw-r--r--GStreamer.mdwn12
1 files changed, 10 insertions, 2 deletions
diff --git a/GStreamer.mdwn b/GStreamer.mdwn
index d238180..6448a88 100644
--- a/GStreamer.mdwn
+++ b/GStreamer.mdwn
@@ -1,8 +1,16 @@
-
libnice has been designed to nice integrate with GStreamer, two GStreamer element are provided "nicesrc" and "nicesink" to help with that.
libnice works with both GStreamer 0.10 and GStreamer 1.x
-Steps: # Create a [[NiceAgent|NiceAgent]] # Create a stream with nice_add_agent # Create a nicesrc for each component # Set the [[NiceAgent|NiceAgent]], stream id and compoenent id on each nicesrc # Put the nicesrc elements inside a [[GstPipeline|GstPipeline]] and connect them to the elements that will receive the packets, most likely rtpbin # Set the [[GstPipeline|GstPipeline]] to the PLAYING state # libnice can now receive packets. # Use the [[NiceAgent|NiceAgent]] API to gather candidates and establish connectivity, be aware that as soon as connectivity is established (component state is CONNECTED), nicesrc may start producing data packets
+## Steps
+
+ * Create a [[NiceAgent]]
+ * Create a stream with nice_add_agent
+ * Create a nicesrc for each component
+ * Set the [[NiceAgent|NiceAgent]], stream id and compoenent id on each nicesrc
+ * Put the nicesrc elements inside a [[GstPipeline]] and connect them to the elements that will receive the packets, most likely rtpbin
+ * Set the [[GstPipeline]] to the PLAYING state
+ * libnice can now receive packets.
+ * Use the [[NiceAgent]] API to gather candidates and establish connectivity, be aware that as soon as connectivity is established (component state is CONNECTED), nicesrc may start producing data packets
At any time after the Nice Stream has been created, you can create nicesink elements and add them to your pipeline to send packets, you can do that at the same time as the nicesrc elements or later.