Hi friends.<br>I have done some operations on a GstRtpbin like this:<br>&nbsp;&nbsp;&nbsp; /* get session 0 */<br>&nbsp;&nbsp; &nbsp;g_signal_emit_by_name(rtpbin, "get-internal-session", 0, &amp;session);<br><br>&nbsp;&nbsp; &nbsp;/* print all the sources in the session ,this includes the internal source */<br>&nbsp;&nbsp; &nbsp;g_object_get(session, "sources", &amp;arr, NULL);<br><br>&nbsp;&nbsp; &nbsp;for (i = 0; i &lt; arr-&gt;n_values; i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;GObject *source;<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;val = g_value_array_get_nth(arr, i);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;source = (GObject*)g_value_get_object(val);<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;printSourceStats(source);<br>&nbsp;&nbsp; &nbsp;}<br><br>and I have some questions:<br>1. What is an internal session to this rtpbin? Then what is an external?<br>2.I was sending only one video stream, but I don't know why I got two sources?<br>Also like the first question, what is an internal source and what is external?<br><br>Can anyone give me some help?<br><br><br>Thank you in advance.<br><br><br>Best Regards, <br>Leon LIang<br><br><br><br><br><br><br><br><br><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net">网易邮箱,中国第一大电子邮件服务商</a>
</span>