summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivierCrete <olivier.crete@collabora.co.uk>2013-01-18 00:10:11 +0000
committerOlivierCrete <olivier.crete@collabora.co.uk>2013-01-18 00:10:11 +0000
commit95dee6da3eabf5a20edcd1979c5f9c9cfdcb9f35 (patch)
tree9c27ef214f5ec1df9a75e78aa660467dc514fcd6
Explain how to use libnice with GStreamer
-rw-r--r--GStreamer.moin17
1 files changed, 17 insertions, 0 deletions
diff --git a/GStreamer.moin b/GStreamer.moin
new file mode 100644
index 0000000..e33dead
--- /dev/null
+++ b/GStreamer.moin
@@ -0,0 +1,17 @@
+#format creole
+
+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
+# Create a stream with nice_add_agent
+# Create a nicesrc for each component
+# Set the 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.