About what is an internal source?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

About what is an internal source?

liangzhihong1984
Hi friends.
I have done some operations on a GstRtpbin like this:
    /* get session 0 */
    g_signal_emit_by_name(rtpbin, "get-internal-session", 0, &session);

    /* print all the sources in the session ,this includes the internal source */
    g_object_get(session, "sources", &arr, NULL);

    for (i = 0; i < arr->n_values; i++) {
        GObject *source;

        val = g_value_array_get_nth(arr, i);
        source = (GObject*)g_value_get_object(val);

        printSourceStats(source);
    }

and I have some questions:
1. What is an internal session to this rtpbin? Then what is an external?
2.I was sending only one video stream, but I don't know why I got two sources?
Also like the first question, what is an internal source and what is external?

Can anyone give me some help?


Thank you in advance.


Best Regards,
Leon LIang











网易邮箱,中国第一大电子邮件服务商

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: About what is an internal source?

Wim Taymans
On Wed, 2009-02-25 at 10:49 +0800, liangzhihong1984 wrote:

> Hi friends.
> I have done some operations on a GstRtpbin like this:
>     /* get session 0 */
>     g_signal_emit_by_name(rtpbin, "get-internal-session", 0,
> &session);
>
>     /* print all the sources in the session ,this includes the
> internal source */
>     g_object_get(session, "sources", &arr, NULL);
>
>     for (i = 0; i < arr->n_values; i++) {
>         GObject *source;
>
>         val = g_value_array_get_nth(arr, i);
>         source = (GObject*)g_value_get_object(val);
>
>         printSourceStats(source);
>     }
>
> and I have some questions:
> 1. What is an internal session to this rtpbin? Then what is an
> external?

Maybe the action signal should just be named "get-session". Anyway, it
gives you the RTPSession with the given ID.

> 2.I was sending only one video stream, but I don't know why I got two
> sources?

You get the internal source of the session (the SSRC used for sending SR
or RR reports in this session) and a source for each participant in the
session (the SSRCs sending SR or RR to this session).

> Also like the first question, what is an internal source and what is
> external?

Wim
 

>
> Can anyone give me some help?
>
>
> Thank you in advance.
>
>
> Best Regards,
> Leon LIang
>
>
>
>
>
>
>
>
>
>
>
> ______________________________________________________________________
> 网易邮箱,中国第一大电子邮件服务商
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel